QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Kernelpanic on October 06, 2020, 03:46:23 pm

Title: Another question - QB64 and C
Post by: Kernelpanic on October 06, 2020, 03:46:23 pm
First: Why my question has been removed? Is QuickBasic an enemy now?

Second: Can one call a C-function from QB64?
I have all variations tested, everything I could thought of and all are failed.
It worked at that time.

Code: QB64: [Select]
  1. 'Gemischtsprachiges Programm, 14. Okt. 1994
  2. 'Dieses Basic-Programm ruft eine Funktion (mit Rückgabe)
  3. 'in einem QuickC-Programm auf.
  4.  
  5.  
  6.  
  7. LOCATE 3, 3
  8. INPUT "Fibonacci-Zahl von ( n ): ", X
  9. LOCATE 5, 3
  10. PRINT USING "Die Fibonacci-Zahl von ## ist  : ###.###"; X; fibo&(X)
  11. LOCATE 8, 3
  12. PRINT USING "... und die Fakult„t von ## ist: ###.###"; X; bfakultaet%(X)
  13.  
  14.  
Title: Re: Another question - QB64 and C
Post by: FellippeHeitor on October 06, 2020, 03:49:07 pm
If you're talking about the VirtualBox topic, it has been moved to off-topic: https://www.qb64.org/forum/index.php?topic=3092.0 - it mentions qbasic but it's discussing VirtualBox.
Title: Re: Another question - QB64 and C
Post by: Kernelpanic on October 06, 2020, 04:19:22 pm
Na, ok. And, can one call a C-function from QB64?
Title: Re: Another question - QB64 and C
Post by: jack on October 06, 2020, 04:34:26 pm
see https://www.qb64.org/forum/index.php?topic=3093.msg123676#msg123676