Hello,
I've been trying to modify and then compile a portion of an open source C/C++ project with Visual Studio 2010. I'm very much a C++ beginner and this is a learning experience.
Relevant sections of the code:
VS highlights the "(gulong)FileIn fo->mtime" and "(gulong)FileIn fo->fsize" portions of the code, giving an error "Error: type name is not allowed."
If anybody can help explain this error to me, and possible resolutions, it would be much appreciated.
Thanks
Edit: Nevermind, I figured out the silly error.
I've been trying to modify and then compile a portion of an open source C/C++ project with Visual Studio 2010. I'm very much a C++ beginner and this is a learning experience.
Relevant sections of the code:
Code:
typedef struct { static gchar *inputfile; static gchar *uri; static gulong mtime; static gulong fsize; } FileInfo;
Code:
gchar *str_mtime, *str_fsize; str_mtime = g_strdup_printf("%lu", (gulong)FileInfo->mtime); str_fsize = g_strdup_printf("%lu", (gulong)FileInfo->fsize);
VS highlights the "(gulong)FileIn fo->mtime" and "(gulong)FileIn fo->fsize" portions of the code, giving an error "Error: type name is not allowed."
If anybody can help explain this error to me, and possible resolutions, it would be much appreciated.
Thanks
Edit: Nevermind, I figured out the silly error.