المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : /clr:pure question



C++ Programming
08-02-2011, 11:40 PM
I posted a question on here a few days ago and got a great deal of help. Hopefully someone will be able to help me again.

Some quick background: I've got very little experience with C++ and was thrown into a job that needed some custom application for a client's scanner. My background is in web development, so I may explain something incorrectly now and then.

Much of the code I'm working with is from the Canon CapturePerfect SDK.

The error I'm receiving is

error C3641: 'CpCallBackFunc' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe
The line causing this error reads:

int WINAPI CpCallBackFunc( int, WPARAM, LPARAM, DWORD );
The line is in a header file attached to the main document. Is there a way to adjust this so that the program will still run with clr:pure, or a clr support setting that will allow the function to compile without changing everything else? The project so far has been coded with clr:pure.