Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
1.89/5 (9 votes)
See more:
Hi,
I am new at making callback functions. I've made a few so far and they went well. However, now I need to make one for a function that has void as a parameter.
C
int SV_BotLibShutdown( void )
{
}

I wrote the following, and it doesn't seem to work.
C
 __declspec(dllexport) int SV_BotLibShutdown( void )
{
}

Beneath the calling location
C
int zgCBSV_BotLibShutdown( func_SV_BotLibShutdown pzgSV_BotLibShutdown ) {
    return pzgSV_BotLibShutdown();
}

In the header file:
C
typedef int (* func_SV_BotLibShutdown )( void ); // if caller is EXE to DLL use __cdecl
int zgCBSV_BotLibShutdown( func_SV_BotLibShutdown pzgSV_BotLibShutdown );


Help plz! Thanks
Posted
Updated 22-Feb-11 4:49am
v2
Comments
Henry Minute 22-Feb-11 10:50am    
FYI: you should use <pre> tags, not <code> ones.
coffeenet 22-Feb-11 11:06am    
whatever
Henry Minute 22-Feb-11 11:07am    
Way to get yourself liked!
coffeenet 22-Feb-11 11:09am    
I can easily say the same about you. Hence, another "whatever" to you.
And, don't bother replying again, cuz Im not visiting this question again.
Henry Minute 22-Feb-11 11:12am    
If you are unable to accept friendly advice then you really shouldn't use any sites where interaction is required. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900