But your code doesn't look bad to me. Just more indirection than you need. fC is already a type of "pointer to a function", so why make things work with "pointer to a pointer to a function"?
In the interests of science, I added these two lines to main:
fC p0 = fc;
fC *p1 = &fc;
And on the second line I get: "error C2440: 'initializing' : cannot convert from 'void (__cdecl *)(int *)' to 'void (__cdecl ** )(int *)'".
This leads me to suggest that you're seeing the same behaviour as when you try to get a pointer to an array - you get the first element of the array back. This is probably a C thing that's biting you. And then you manually cast it in your original main and things blow up later...
That's my theory, anyway!
In the process of moving to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!
I want to create one email notification application for outlook express 6.
i used "MAPIFindNext()" function to get whether unread messages are present inbox.
this function returns first unread messages id.
but i need to find number of unread messages. Is there any function to find that?
Yes this function gives notification based on messagetype.
i already tried this...
But consider inbox have three 'x' type messages, call the MAPIFindNext function three time with x messagetype.
it repeats the same message id and not give other message id.
Reason is it's another functionality is, it will give first unread messageid of messagetype 'x'.
am i correct?
Can you give give me a good tutorial about device driver programming,maybe codeproject has articles about make it or using google we can find a lot info about it but I want to start of first,what is device driver and then start to writing code in MFC?
im using UrlDownloadtofile() to download some files ...but the issue is if the file is present im able to download file(With return value S_OK) ...but if the server is not accessible ie (some issue with IIS or any other..) or if the file is not present im not getting the exact return value from UrlDownloadtofile to specify to user whether it is server issue or File not present...in MSDN it was given that if the return value is INET_E_DOWNLOAD_FAILURE then file is not present in the server but...im getting some junk value like -2146697210...when the file is not present in the server or server is not accessible....
So please let me know how can i notify user what is the exact problem....