Home › ELEKTOR FORUMS › My circuit does not work (yet)! › USB EM84 Magic Eye

ELEKTOR FORUMS

Please log in to post a reply or subscribe / unsubscribe to topics

Topic: USB EM84 Magic Eye

Author Post

uzoyabuzo

5 posts

Popping In
Popping In

Read post 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

5 posts

Popping In
Popping In

Read post 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") );

Please log in to post a reply or subscribe / unsubscribe to topics

Sponsored


Design your unique front panel with our free CAD software - it is quick and easy! Front Panel Express will machine your design with modern CNC technology. You will receive the panel exactly as you need it in a couple of days.

New book

Python Programming and GUIs

This book is aimed at people who want to interface PCs with hardware projects using graphic user interfaces. The programming language used is Python, an object-oriented scripting language.