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:
01599934
Views:
136
This message has been marked as a message which has helped to the initial question of the thread.
>>>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.
>
>That may be the problem. I know that dll is set for 32-bit and I have Any CPU for all 3 projects in that solution.
>
>Do you suggest to change this to match?

Yes.
-Paul

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

Click here to load this message in the networking platform