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