Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Basic

Status
Not open for further replies.

VISUALPARAM

Programmer
Feb 26, 2003
1
0
0
ES
Pass parameter to exe file in Visula Basic.
 
Some points about your query:
1. You can't use a VisualBasic .EXE file, use a .DLL (dynamically linked library) instead; choose to create a DLL when you compile your VB program - see VB compilation options.
2. DarkBasic will call a function/subroutine in VB.

First off, make sure you have at least v1.12 of darkbasic (check for patch upgrades).

Then you need to use the DB DLL commands to load the DLL and access functions/subs from it. Check the 'YourOwnCommands' sample programs (unfortunately only VC++, Delphi examples but should give you some ideas) which are located in your DarkBasic directory under 'extras\yourowncommands'. I recommend you check the Delphi version as even if you don't know Pascal the language is fairly intuitive & you should be able to find the function that the DB code calls.

n.b. You will only have these programs if you have the correct DB version as mentioned above.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top