Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling C++ dll from C# - how to debug?
Message
 
 
À
20/10/2017 13:37:25
Information générale
Forum:
C#
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01655067
Message ID:
01655120
Vues:
37
>>I tried, got 0 error, but the result looked like Chinese characters, not the normal string it was supposed to return.
>First ask your collegue what the calling convention is
>It’s not in the signature. Or have him put it in the signature

This is what I found in the idl file in that same project
import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(5F07AD53-A0AE-4964-9C01-3A55774276D2),
		dual,
		helpstring("Imain Interface"),
		pointer_default(unique)
	]
	interface Imain : IDispatch
	{
		[id(1), helpstring("method invoke")] HRESULT invoke([in] BSTR query, [out, retval] BSTR* result);
	};
Is it helpful?

I sent a question to my colleague as well.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform