errors in source file
-
Monday, December 04, 2006 1:12 PM
Hello All,
I have a header file which has some code as follows..
typedef void ( __stdcall *RAW_DATA_CALLBACK)( DWORD UserParam, DWORD dwdataType, BYTE* buf, DWORD len );
this RAW_DATA_CALLBACK is used as one of the argument in the below function
DLL_API void __cdecl KSRDCallback( HANDLE h, DWORD UserParam, RAW_DATA_CALLBACK fnStatusCallback );
I included this header file to my source file.I called the function as follows
KSRDCallback(hSDK, (DWORD)this, RAWCB);
RAWCB is implemented as follow
void WINAPI RAWCB(DWORD UserParam, DWORD dwdataType, BYTE* buf, DWORD len)
{
Form1* pcDSD = (Form1*) UserParam;
/*some code here*/
}
It gives the following errors as follows….
Error 1 error C3699: '*' : cannot use this indirection on type 'AStreamingTest::Form1' e:\rnd\Astreamingtest\Astreamingtest\Form1.h 120
Error 2 error C3699: '*' : cannot use this indirection on type 'AStreamingTest::Form1' e:\rnd\Astreamingtest\Astreamingtest\Form1.h 120
Error 3 error C2440: 'type cast' : cannot convert from 'DWORD' to 'AStreamingTest::Form1 ^' e:\rnd\Astreamingtest\Astreamingtest\Form1.h 120
Error 4 error C2440: 'type cast' : cannot convert from 'AStreamingTest::Form1 ^const ' to 'DWORD' e:\rnd\Astreamingtest\Astreamingtest\Form1.h 139
Error 5 error C3867: 'AStreamingTest::Form1::RAWCB': function call missing argument list; use '&AStreamingTest::Form1::RAWCB' to create a pointer to member e:\rnd\Astreamingtest\Astreamingtest\Form1.h 139

