|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Returning a string from C++ dll to VB.netI'm having a lot of trouble with this one so any help would be appreciated.
The C++ dll is just using the standard libraries. I have no trouble getting numeric values. thanks "Ellie" <ellymay999nospam@nospamnetzero.com> wrote in message You will need Marshal.PtrToStringAnsi. Google for code examples.news:uNfJSSD9JHA.5780@TK2MSFTNGP03.phx.gbl... > I'm having a lot of trouble with this one so any help would be > appreciated. The C++ dll is just using the standard libraries. I have no > trouble getting numeric values. thanks "Ellie" <ellymay999nospam@nospamnetzero.com> ha scritto nel messaggio Could you please show us the exact prototype of the C++ DLL function?news:uNfJSSD9JHA.5780@TK2MSFTNGP03.phx.gbl... > I'm having a lot of trouble with this one so any help would be > appreciated. The C++ dll is just using the standard libraries. What do you exactly mean with "the C++ dll is just using the standard libraries": does it mean that you are using std::wstring at DLL interface? Instead, if you are using raw TCHAR pointers at DLL interface to return strings, you could look at PInvoke of GetWindowText API: http://www.pinvoke.net/default.aspx/user32/GetWindowText.html (The key idea there is to use the StringBuilder class.) HTH, Giovanni
What are HashTables good for?
.net 3.5 with vs 2005 Need some help from VB Programmers... How to hide base class member variable in derived class (w/o shadows)? distributing software Alternative to strongly typed datasets winmm book? writing to file from web service "Random" numbers cause pattern? Need help in finding error in SOAP web service call |
|||||||||||||||||||||||