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 / Reading a string from a ptr, don't work

Author
Message
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 25th Dec 2005 06:41 Edited at: 25th Dec 2005 06:46
I have some simple but troublesome code
the compiled exe crashes(silent) when i se the read string function but write string is OK

here is my example dbp code



and heres my also very simple code



thanks in advance

edit:
I'm also thinking that dbp's strings aren't null terminated which would make the crash make sense

I didnt fail, I just found 10,000 ways that don't work
-Thomas Edison
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 25th Dec 2005 10:35 Edited at: 25th Dec 2005 10:45
Is read string from pointer(ptr) the function DWORD dbpstring(LPSTR pstring)?
If so, your getting parameter types messed up.

I would do something like :


As were not passing in a previous string, we dont need to worry about deleting it.

DBPro strings are null terminated.

Login to post a reply

Server time is: 2024-11-21 18:47:15
Your offset time is: 2024-11-21 18:47:15