Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C++ dll in C# code
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01599867
Message ID:
01599871
Vues:
84
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>I have a Visual C++ dll I'd like to use in C# code. I have VFP code with invoke that uses that DLL.
>
>Here is VFP code
>
>
> clear dlls 'ww_localInvoke'
>         lcDLLMsg  = ''
>         declare string Invoke1 in (addbs(justpath(.cProgramPath)) + "ww_local.dll") as ww_localInvoke string cInvokeString
>
>I added that dll in References section. How should I use it now?
>
>Thanks in advance.


Something like this:
[DllImport("ww_local.dll")]
static extern string Invoke1(string cInvokeString);
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform