Interfacing ANSI C with QB45/VBDOS?

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
HarryPotter14
Newbie
Posts: 9
Joined: Mon Feb 02, 2015 8:44 am

Interfacing ANSI C with QB45/VBDOS?

Post by HarryPotter14 »

How do I interface ANSI C functions to a QB45 or VBDOS program? For example, what object code format do I use? How do I build the libraries? How do I declare the functions? I'd appreciate any help.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Interfacing ANSI C with QB45/VBDOS?

Post by burger2227 »

You can use C library functions with QB64 using DECLARE LIBRARY:

http://www.qb64.net/wiki/index.php/C_Libraries
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
HarryPotter14
Newbie
Posts: 9
Joined: Mon Feb 02, 2015 8:44 am

Re: Interfacing ANSI C with QB45/VBDOS?

Post by HarryPotter14 »

Yes, but I'm using VBDOS here, and I want the option to be available on QB45 as well.
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Re: Interfacing ANSI C with QB45/VBDOS?

Post by burger2227 »

Time to move up. 64 bit is talking nowadays...
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
HarryPotter14
Newbie
Posts: 9
Joined: Mon Feb 02, 2015 8:44 am

Re: Interfacing ANSI C with QB45/VBDOS?

Post by HarryPotter14 »

That is pretty much true, but I am still programming for legacy platforms. :)
Post Reply