question

kavehrahimi-5744 avatar image
0 Votes"
kavehrahimi-5744 asked SimpleSamples commented

Callback problem

Hi , I run the code below and receive the following errors:
typedef VOID ( CALLBACK * mPCH341_INT_ROUTINE ) ( // ÖжϷþÎñ³ÌÐò
ULONG iStatus );
Errors:
1-function returning function is not allowed
2-expected a ')'
3-Identifier "ULONG" is undefined
4-Identifier "mPCH341_INT_ROUTINE" is undefined

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Viorel-1 avatar image
0 Votes"
Viorel-1 answered

Try adding #include <Windows.h> to the beginning of your file.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kavehrahimi-5744 avatar image
0 Votes"
kavehrahimi-5744 answered SimpleSamples commented

My error with four mentioned errors was fixed. Now I have two new errors with following command line:
typedef VOID(CALLBACK* mPCH341_NOTIFY_ROUTINE)(ULONG iEventStatus);
Errors are:
1-'NTSTATUS' :redefinition different basic types
2-'left-side modifier':cannot modify pointers to data

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Mark the response that helped as the answer then create a new question for the new question.

1 Vote 1 ·