Bonjour,
Je suis en train de cr�er une dll en c++ manag� qui fait appel � des fonctions et callback cod�es en "non manag�".
J'ai une fonction qui attend en param�tre un pointeur de callback de type LPVOID. Je n'arrive pas � convertir mon pointeur de fonction dans ce type.
Quelqu'un a t il une id�e?
Voici l'appel de la fonction:
CallMAIDEntryPoint(pObject, kNkMAIDCommand_GetCapCount, 0, kNkMAIDDataType_UnsignedPtr, (NKPARAM)pulCapCount, (LPVOID)CompletionProc, (NKREF)pRefCompletion );
et voici la callback:
void CALLPASCAL CALLBACK CompletionProc(...)
Merci.
Morgan.
Partager