Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Dev C++: Input String is null

Author
Message
DigitalFury
14
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 9th Sep 2012 00:20 Edited at: 9th Sep 2012 00:25
I have no idea why Str is null. I get the message saying Str is blank. I am using Dev C++ Plugin Template BTW.

Function:


RC:


If I change the resource to this and output Str in a message box it is NOT Null:


DBP Code:


Help me fix this problem and I will have a plugin released very soon.

Thanks,

DigitalFury

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Sep 2012 01:03 Edited at: 9th Sep 2012 01:04
Read the help files or search the forums for the correct way to return strings, it's been covered loads of times. I also don't recommend Dev-C++ and you seem to be using a very old version of the plugin template for it not to handle strings correctly.

[b]
DigitalFury
14
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 9th Sep 2012 02:18 Edited at: 9th Sep 2012 02:46
@Diggsey - I did and I found this several times on the forums:


Is newer version of DBP different? Also I tried LPSTR and char * and I wouldn't know how to convert a DWORD to string.

DigitalFury

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 9th Sep 2012 13:07
Technical documents -> Third party commands -> 4. Technical Issues

Read that.

http://forum.thegamecreators.com/?m=forum_view&t=109551&b=18

And that.

[b]
DigitalFury
14
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 14th Sep 2012 23:19
@Diggsey - Thanks. Forgot to mention it was fixed. That worked perfectly.

DigitalFury

Login to post a reply

Server time is: 2024-11-21 12:00:36
Your offset time is: 2024-11-21 12:00:36