ToutEnMasm
Messages postés587Date d'inscriptionjeudi 28 novembre 2002StatutMembreDernière intervention13 décembre 2022
-
20 avril 2009 à 10:12
cs_rt15
Messages postés3874Date d'inscriptionmardi 8 mars 2005StatutModérateurDernière intervention 7 novembre 2014
-
20 avril 2009 à 19:04
J'essaye d'executer une fonction d'un programme executable en m'appuyant sur cet article.
Il me manque la class DHHostControl au rôle plutot obscur.
Ci dessous la partie de code que j'ai écrit.
Quelqu'un aurait-il la pièce manquante ou une idée ?.
HRESULT hrCorBind = CorBindToRuntimeEx(
NULL, // Load the latest CLR version available
NULL, // Workstation GC ("wks" or "svr" overrides) L"wks"
0, // No flags needed
CLSID_CLRRuntimeHost,
IID_ICLRRuntimeHost,
(PVOID*)&pClrHost);
HRESULT hrExecute = pClrHost->ExecuteInDefaultAppDomain(
(LPCWSTR) "c:/Documents and Settings/Yves/Mes documents/Visual Studio 2008/Projects/ExeAppele/debug/ExeAppele.exe",
(LPCWSTR)"ExeAppele, Version=1.0.3395.36543, Culture=neutral, PublicKeyToken=5c43dd1cfd0dffe7",
(LPCWSTR)"Essais::Fonctions",(LPCWSTR) "SayHello",
retVal);
;retval reste indeterminé