Search found 90 matches

by Rudiger
Oct 12, 2006 23:28
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

StrPLCopy(s2,s1,99999); seems to do the trick for copying data from string to pchar. callpas.bas 'main program ' create a function pointer, arguments must be the same as in the original function Dim funchttp As Function pascal ( Byval operand1 As string) As string dim var1 as string dim var2...
by Rudiger
Oct 12, 2006 16:01
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

Yes, it looks like returning a pchar will work. In my real pascal program, If I return a literal string everything works fine. but, If I convert the real output string to pchar using "s2=@s1[1];" and return it, it crashes and burns. The real output is a long, multi-line string. Its defined in the FB...
by Rudiger
Oct 12, 2006 2:49
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

The simple example of FB calling pascal DLL using pascal calling convention works. The situation with the pascal library that actually does stuff and uses objects does not seem to work with either stdcall, cdecl, or pascal conventions when called from FB. but it does work when called by another pasc...
by Rudiger
Oct 12, 2006 2:02
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

Using Pascal as calling convention seems to work.
Cdecl and Stdcall did not.
by Rudiger
Oct 11, 2006 16:36
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

thanks jdebord, that fixed it. but now I'm trying to call the pascal DLL from FB and it's crashing and buring. I added CDECL parm on both sides. This is just a simple pascal function with no object oriented stuff. libsimple.pas {$MODE DELPHI} library libsimple; function funcsimple (url...
by Rudiger
Oct 11, 2006 0:18
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

Here is a much simpler example. passimple.pas //{$MODE DELPHI} // Program passimple; var var1: string; var2: string; function funcsimple (url : string): string; external 'libsimple'; begin var1:='www.microsoft.com'; var2 := funcsimple(var1); writeln(var2); end. libs...
by Rudiger
Oct 11, 2006 0:00
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

sheeeeshh. I can't even get freepascal to work without even introducing FB into the mix. pasmain.pas {$MODE DELPHI} // Program pasmain; uses SysUtils; var var1: string; var2: string; // compile works with following statement, will look for libhttp.dll at runtime function funchttp (url ...
by Rudiger
Oct 09, 2006 15:47
Forum: General
Topic: FreeBasic FreePascal Interface
Replies: 15
Views: 4604

FreeBasic FreePascal Interface

I have scoured the internet and am unable to find anything on how to interface FreeBasic with FreePascal. Although, there are a few mindless rants about which language is "better". FreePascal does seem to be a more mature product and there is quite a bit of freely available delphi/kylix/pascal code ...
by Rudiger
Sep 22, 2006 0:14
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

Bugfix, booting from USB, Puppy 2.10

If anyone is having a problem installing or booting, you may want to try this

http://www.puppyos.net/blog/comments.php?y=06&m=09&entry=entry060916-064956
by Rudiger
Sep 20, 2006 18:23
Forum: Beginners
Topic: Cannot find -lc
Replies: 3
Views: 1325

I think that means you don't have GCC installed.
by Rudiger
Sep 20, 2006 3:00
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

There is a firefox extension "CHM Reader" which works nicely for reading and displaying Windows help files and weighs in at a mere 35K. The FB chm file is over 500K. The compressed helpfile fbhelp.daz used by the text based fbhelp program is about half that. CHM Reader cannot handle the fbhelp.daz f...
by Rudiger
Sep 18, 2006 14:20
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

I never tried installing to a partition. I saved my livecd session to a file in a fat32 or ext3 partition and booted off the cd. That worked fine. You can also create a boot floppy, but this only seems to work if using fat32. I think you can also use a ntfs partition if the file is created via windo...
by Rudiger
Sep 17, 2006 21:53
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

yetifoot. I am gratefull for your offer of ftp space, but I did find a free host, http://phpnet.us that offers 350MB plus a few other nice things. That way I can put 2 or 3 different versions out there at one time. I just began using today, so I dont know how reliable they are. I don't know what the...
by Rudiger
Sep 17, 2006 19:06
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

ISO image available for download at http://Ahole-L.com If using dialup, first run modem wizard from setup menu. Then "connect" from the desktop. Provide name of your ISP, phone number, user, and password. "CHAP" worked for me. If not, try "PAP". Does a good job of detecting and running external seri...
by Rudiger
Sep 14, 2006 13:15
Forum: Projects
Topic: Puppy Linux FB?
Replies: 22
Views: 6787

The wxWidgets I installed was a puppy package, so maybe there is something wrong with it.

The text-based FB help is installed and is working, so I think I'll just work out a few minor kinks and release what I have. Then people can try it out, throw rocks at it, and I can tweak it.

Go to advanced search