|
uzoyabuzo
9 posts
 Popping In
|
15-02-2010 12:02
Hi everybody !
I have mounted the "simple" version of the magic eye just to start learning AVRs. My hardware works well. I've tried to use the CPUshow.cpp code within Visual C++ 2008 express edition, but some compilation errors occur.
I suppose the code was written for the Visual C++ 6.0 and that it's not compatible with C++ 2008 express edition.
Could someone help me on this issue ? Many thanks for any hints and information.
Have a good day !
|
|
uzoyabuzo
9 posts
 Popping In
|
15-02-2010 15:59
Well, I've found the problems :
1) First of all, comment structure _MEMRYSTATUSEX (due to redefinition problems somewhere):
/*
typedef struct _MEMRYSTATUSEX {
DWORD dwLength;
DWORD dwMemoryLoad;
DWORDLONG ullTotalPhys;
DWORDLONG ullAvailPhys;
DWORDLONG ullTotalPageFile;
DWORDLONG ullAvailPageFile;
DWORDLONG ullTotalVirtual;
DWORDLONG ullAvailVirtual;
DWORDLONG ullAvailExtendedVirtual;
} MEMORYSTATUSEX,
*LPMEMORYSTATUSEX;
*/
2) Load libraries using 'TEXT' :
s_hKernel = LoadLibrary( TEXT("Kernel32.dll") );
|