Put Blitz 3d inside of anything

Miscellaneous Forums/Blitz Showcase/Put Blitz 3d inside of anything

Arrgh.. I wasted last evening trying to get blitz's TCP connection to work properly - FINIALLY I found that I needed to check ReadAvail() before reading and use ReadByte() instead of using ReadLine(). I wish the manual would have warned that ReadLine() destroys a TCP connection if there's nothing to read or nothing to read with a line feed on the end. Anyway, I'm happy now and my app is communicating with the embedded blitz3D program perfectly. :)

Boiled Sweets:

You'll just need to do the equivelant of this in Visual Basic:

hWnd = SystemProperty("AppHWND")
ExecFile "SelfEmbedder.exe " + hWnd


The blitz executable is the one that really does the work (it puts itself into the VB/etc. window). All you need to do is execute the blitz EXE, passing the handle of the VB window. I'm not sure about VB, but you can get a form's window handle in Borland C++ Builder like this: "Form1->Handle".