Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ dll in C# code
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01599867
Message ID:
01599871
Views:
82
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform