Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to enable and disable a device driver by using VC or BC? Pin
tsung-yu28-Sep-04 20:28
tsung-yu28-Sep-04 20:28 
AnswerRe: How to enable and disable a device driver by using VC or BC? Pin
22491728-Sep-04 20:41
22491728-Sep-04 20:41 
Generalparser Pin
Anonymous28-Sep-04 19:53
Anonymous28-Sep-04 19:53 
GeneralRe: parser Pin
Anonymous28-Sep-04 19:54
Anonymous28-Sep-04 19:54 
GeneralRe: parser Pin
Anthony_Yio28-Sep-04 20:24
Anthony_Yio28-Sep-04 20:24 
GeneralRe: parser Pin
Yulianto.28-Sep-04 20:01
Yulianto.28-Sep-04 20:01 
GeneralRe: parser Pin
Alan Chambers29-Sep-04 10:43
Alan Chambers29-Sep-04 10:43 
GeneralFunction pointer question... Pin
GDavy28-Sep-04 19:33
GDavy28-Sep-04 19:33 
Hello there,
I want to use a functionpointer to ReadFile and WriteFile in my program, but for some reason the code won^t compile correct. This is how I declare the function pointer:

BOOL (*pReadFile)(HANDLE /*hFile*/, LPVOID /*lpBuffer*/, DWORD /*nNumberOfBytesToRead*/, LPDWORD /*lpNumberOfBytesRead*/, LPOVERLAPPED /*lpOverlapped*/); <br />
<br />
pReadFile = &ReadFile;


The compiler complains about:
error C2440: '=' : cannot convert from 'int (__stdcall *)(void *,void *,unsigned long,unsigned long *,struct _OVERLAPPED *)' to 'int (__cdecl *)(void *,void *,unsigned

so problem seems to be the __stdcall and __cdecl declarators.. Anyone knows how I should declare my function pointer in order for this to work???

Thanks for any advice,
Davy
GeneralRe: Function pointer question... Pin
GDavy28-Sep-04 19:38
GDavy28-Sep-04 19:38 
GeneralRe: Function pointer question... Pin
22491728-Sep-04 20:47
22491728-Sep-04 20:47 
GeneralConvert .exe to .dll Pin
jw8128-Sep-04 19:16
jw8128-Sep-04 19:16 
GeneralRe: Convert .exe to .dll Pin
shaileshkumar28-Sep-04 19:53
shaileshkumar28-Sep-04 19:53 
GeneralRe: Convert .exe to .dll Pin
Michael Dunn28-Sep-04 22:38
sitebuilderMichael Dunn28-Sep-04 22:38 
GeneralRefresh a view Pin
Mughi28-Sep-04 18:14
Mughi28-Sep-04 18:14 
GeneralRe: Refresh a view Pin
Yulianto.28-Sep-04 18:26
Yulianto.28-Sep-04 18:26 
GeneralRe: Refresh a view Pin
Mughi29-Sep-04 1:12
Mughi29-Sep-04 1:12 
GeneralRe: Refresh a view Pin
Yulianto.29-Sep-04 16:48
Yulianto.29-Sep-04 16:48 
GeneralRe: Refresh a view Pin
Mughi29-Sep-04 19:35
Mughi29-Sep-04 19:35 
GeneralRe: Refresh a view Pin
Yulianto.30-Sep-04 18:46
Yulianto.30-Sep-04 18:46 
GeneralRe: Refresh a view Pin
22491728-Sep-04 18:27
22491728-Sep-04 18:27 
GeneralRe: Refresh a view Pin
Sujan Christo28-Sep-04 18:46
Sujan Christo28-Sep-04 18:46 
GeneralRe: Refresh a view Pin
Mughi30-Sep-04 1:40
Mughi30-Sep-04 1:40 
QuestionHow to add WAIT Dialog Box to the MFC Program Pin
pubududilena28-Sep-04 18:10
pubududilena28-Sep-04 18:10 
AnswerRe: How to add WAIT Dialog Box to the MFC Program Pin
Sujan Christo28-Sep-04 18:19
Sujan Christo28-Sep-04 18:19 
GeneralRe: How to add WAIT Dialog Box to the MFC Program Pin
pubududilena28-Sep-04 18:45
pubududilena28-Sep-04 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.