|
-
June 14th, 2007, 01:55 PM
#12
Re: Pass string to c# program from C dll
Sorry, _TCHAR & _tcscpy are MS way of making it possible to build both unicode and not from a single source.
Build your DLL the DevC++ way but remember that C# expects a unicode wide string so if the DLL not produce that you have to convert using before copying to return pointer. MultiByteToWideChar() should be helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|