What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » trouble with strings [C++]

trouble with strings [C++]
Author: Message:
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
O.P. trouble with strings [C++]
I'm having trouble receiving strings from a dll.

First I create a Databloc of whatever length and pass the pointer in an Interop Call. On the function side the dll receives it as:

code:
int function(wchar_t* param)

Then I create a temporary string and assign it to the one function received.

code:
wchar_t* test = L"Hello World";
param = test;

And then I try to read the string from Plus using Interop.ReadString but that returns nothing. I know I'm doing something really stupid just need some one to point it out. This is just a test code that I need to get running (and understand) to do something more complex.

------------------------------------
Issue 2:

It would be better for me to have the string as single byte chars. I have everything working with char* strings but I do not know how I can get Plus to read single byte ASCII strings from memory. ReadString function assigns them weird characters. This would be better for me because further on I have to read buffers from memory that consist of u_char.



THanks
CD

This post was edited on 06-08-2007 at 04:26 AM by cooldude_i06.
[Image: clb2.jpg]
06-08-2007 03:40 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
trouble with strings [C++] - by cooldude_i06 on 06-08-2007 at 03:40 AM
RE: trouble with strings [C++] - by TazDevil on 06-08-2007 at 07:49 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 08:54 AM
RE: trouble with strings [C++] - by vikke on 06-09-2007 at 09:07 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 08:29 PM
RE: RE: trouble with strings [C++] - by TazDevil on 06-09-2007 at 08:44 PM
RE: trouble with strings [C++] - by cooldude_i06 on 06-09-2007 at 10:29 PM
RE: trouble with strings [C++] - by CookieRevised on 06-10-2007 at 03:06 AM
RE: RE: trouble with strings [C++] - by cooldude_i06 on 06-10-2007 at 07:06 AM
RE: trouble with strings [C++] - by TheBlasphemer on 06-10-2007 at 12:05 PM
RE: trouble with strings [C++] - by cooldude_i06 on 06-10-2007 at 09:09 PM
RE: trouble with strings [C++] - by -dt- on 06-11-2007 at 04:10 AM
RE: trouble with strings [C++] - by cooldude_i06 on 06-11-2007 at 07:34 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On