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:
01599932
Views:
140
>I downloaded the other project, which I think uses the same thing:
>
>
>EXTERN_C LPCTSTR Invoke1	(LPCTSTR szIn)
>{
>	AFX_MANAGE_STATE(AfxGetStaticModuleState());
>	theApp.ProcessCall(CString(szIn), theApp.m_csRet);
>	return theApp.m_csRet;
>}
>

The code I gave earlier should work for this signature. LPCTSTR should automatically map to the string type.

Is it possible your code is set to compile for 64 bit (or the platform target is set to Any CPU) but the DLL you're calling is 32-bit? Not sure what the behavior would be in that case.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform