בעיה ב-DDE....

InForN

New member
בעיה ב-DDE....

שלום, אני מנסה לעשות DDE ב-DLL מסויים שאני בונה ב-C++ הבעיה היא בפונקציה CALLBACK. כתבתי אותה ככה: (לקחתי מ-MSDN)
HDDEDATA CALLBACK DdeCallback( UINT uType, // Transaction type. UINT uFmt, // Clipboard data format. HCONV hconv, // Handle to the conversation. HSZ hsz1, // Handle to a string. HSZ hsz2, // Handle to a string. HDDEDATA hdata, // Handle to a global memory object. DWORD dwData1, // Transaction-specific data. DWORD dwData2) // Transaction-specific data. { return 0; }​
וככה איתחלתי את ה-DDE:
DdeInitialize(&inst,(PFNCALLBACK) DdeCallback,APPCLASS_STANDARD | APPCMD_CLIENTONLY,0);​
ואלו השגיאות:
C:\Documents and Settings\L&N\Desktop\api-hook-sdk\Hooking SDK Trial\SocketHook\HookFunc.cpp(977) : error C2065: 'DdeCallback' : undeclared identifier C:\Documents and Settings\L&N\Desktop\api-hook-sdk\Hooking SDK Trial\SocketHook\HookFunc.cpp(1001) : error C2373: 'DdeCallback' : redefinition; different type modifiers​
כמובן שעשיתי INCLUDE ל-ddeml.h ואני לא מבין מה הבעיה... תודה!
 
למעלה