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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QBasic and Dynamic link library (DLL) --> Can they work together?

Status
Not open for further replies.

jinda

Programmer
Jun 14, 2000
1
US
I compiled my qBasic program (Microsoft Basic 7.1) with a C-language import library. When I run my qBasic program, I expect my program should invoke the dll automatically. But it didn't do that it only showed: "The system can not find the file PCSHLL." Note: The name of dll file is pcshll.dll. The question in general is: How do I make my program work with a DLL? Compilation is successful. At run time, my program is just no able to run. Any idea, gurus?
 
you cant get them to work together, from what I remeber, Qbasic cannot use any libraries, unless it was written for it. <p>Karl<br><a href=mailto:kb244@kb244.8m.com>kb244@kb244.8m.com</a><br><a href= </a><br>Experienced in , or have messed with : VC++, Borland C++ Builder, VJ++6(starting),VB-Dos, VB1 thru VB6, Delphi 3 pro, Borland C++ 3(DOS), Borland C++ 4.5, HTML,Visual InterDev 6, ASP(WebProgramming), QBasic(least i didnt start with COBOL)
 
I've never had to attempt to access a .dll file through QB.&nbsp;&nbsp;But, the reason you're successfully compiling is that you may have an <u>OPEN &quot;PCSHLL.DLL&quot;</u> function.&nbsp;&nbsp;And when QB compiles your code, it isn't required to check to see if the actual file &quot;PCSHLL.DLL&quot; is there or not.&nbsp;&nbsp;Otherwise, you'd get an error...for say opening a temp file that isn't there when you first start a program.<br><br>You'd need have a program (such as Visual Basic, Visual C, perferrably Visual Studio) to access the DLLs and make use of them.<br><br>If you do find a way or if someone else knows how this may be accomplished, please post it on this board--you'll get my vote for &quot;<b><u><i>TIP MASTER</b></u></i>&quot; for sure! <p> <br><a href=mailto: > </a><br><a href= > </a><br>You Show me your code, I'll show you mine. :cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top