Firstly, you must look into the dbpro DLL string table
for your example, make objct is in DBProBasic3DDebug.dll
Open it with a software like Resource Hacker.
Here, you'll find in the string table the full command :
91, "MAKE OBJECT BOX%LFFF%?MakeBox@@YAXHMMM@Z%Object Number, Width, Height, Depth"
You see the final DBPro command : MAKE OBJECT BOX.
You also see that it ask for 1 integer ( L = Object number ) and 3 floats numbers ( FFF = Sizes )
You also see the internal DLL function : ?MakeBox@@YAXHMMM@Z
Under purebasic, you must open DLL , call function and close DLL
This way :
If OpenLibrary( 1 , "DBProBasic3DDebug.dll" )
funct_handler.l = IsFunction( 1 , "?MakeBox@@YAXHMMM@Z" )
CallCFunctionFast( funct_handler , object.l , XSize.l , YSize.l , ZSize.l )
CloseLibrary( 1 )
EndIf
You can also directly create sub functions to help
Procedure DBPMakeObjectBox( number.l , Xsize.f , Ysize.f , ZSize.f )
If OpenLibrary( 1 , "DBProBasic3DDebug.dll" )
funct_handler.l = IsFunction( 1 , "?MakeBox@@YAXHMMM@Z" )
CallCFunctionFast( funct_handler , number , Xsize , Ysize , ZSize )
CloseLibrary( 1 )
EndIf
EndProcedure