Home › ELEKTOR FORUMS › Microcontrollers & Embedded › 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

9 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

9 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

Follow Elektor

      

Act now!

Sponsored

Bestseller

Controller Area Network Projects

The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus.

Package Deals

Elektor Bundles

Check our Package Deals and save money! Discounts up to 19% now available!

Price Slashed

Elektor OSPV

This Open Source People Vehicle is perfect for factory halls, warehouses, hospitals, colleges, schools etc.