Send a string to BMX created Dll
BlitzMax Forums/BlitzMax Programming/Send a string to BMX created Dll
| ||
EDIT !!! But look down there is the same Problem in another Way (it's DONE !!!!) EDIT !!! OK It's done !! , THX to BtnB and Leadwerks !! Hi, I write a litle DLL with BMX, but i can't send a Sting to it, the DECLS are right but the String that was Received by the DLL isn't correct. I have read many many of Threads but i don't know how i can do that this will work :( Please Help !! I've try'd $z or $w in Externblocks and other things, but nothing works. Can anyone write a Simple code thats help me to understand how i can send btw. read a received String in my DLL. Problem: A B3D programm send a String to the BMX DLL but the BMX DLL can't read the String correct. Function XNETJoinSession:Int(IP:String,Port:Int=44444) ' here I have a ROUTINE TO WRITE the IP STRING to a FILE to view if this was receive right. Local ID:Int=XNETSessionIDtoIntID(TxnetSession.Join(IP,Port)) Return ID EndFunction sincere Regards C64. |
| ||
Function Do(cs:Byte Ptr) "Win32" GCEnter() Notify String.FromCString(cs) EndFunction |
| ||
Thx, Leadwerks ! |
| ||
Oh No this stuff makes me realy Ready :( . Yes of Course B3D can't do anything with a Byte PTR but i don't know how to convert this stuff to send it Back to a B3D APP. I made a look this http://www.blitzmax.org/index.php?title=C%2B%2B_Wrappers. BUT Case 1 I'm to Ready from the Last day's sit each time on my PC and Work, and now im tired and understand nothing more ?!. Case 2 i'm to stupid ?!. Wha't ever wether case 1 or case 2 , i need help again and i think bevore i try it again for many hours :( i ask again in hope for help. Function XNETGetString:Byte Ptr (intID:Int,SlotID:Int) "win32" Local MyString:String[]=[ XnetObjectbyIntID(intID).GetString(SlotID) ] Local ptr_:Byte Ptr ptr_=MyString Return ptr_ end function My Brain is burning and i don't have Idea's anymore. regards C64. |
| ||
Hehe THX again to Leadwerks i found your thread http://blitzbasic.com/Community/posts.php?topic=68516#765543 The search function isn't realy the Best so that this was a Good look to find this ! Yeah Now it's READY i think, XNET DLL for Blitz+ and Blitz3D sincere regards C64. |