Search found 1309 matches

by sir_mud
Jan 07, 2014 4:12
Forum: Community Discussion
Topic: fbc-ng
Replies: 10
Views: 3312

Re: fbc-ng

FreeBASIC Compiler next generation is a project that will add sound and other game dev functions to FreeBASIC. Have you taken a look at what we have done with the Extended Library project? We don't have a sound module yet, but there is a ton of graphical and other functions/classes that would be us...
by sir_mud
Jan 07, 2014 3:59
Forum: Community Discussion
Topic: Extended Library 0.5.0 is out!
Replies: 13
Views: 8487

Extended Library 0.5.0 is out!

TL;DR 0.24 is required for full support, status: https://code.google.com/p/fb-extended-lib/source/browse/status.fb901.txt Downloads at http://ext.freebasic.net/get Online API Reference at http://ext.freebasic.net/dev-docs Links to all the other stuff: http://ext.freebasic.net About the Extended Libr...
by sir_mud
Dec 04, 2013 23:47
Forum: Community Discussion
Topic: relsoft...
Replies: 28
Views: 10386

Re: relsoft...

And my Axe!
by sir_mud
Jun 02, 2013 17:54
Forum: General
Topic: Translating from C to FB (lang FB) [SOLVED]
Replies: 65
Views: 9926

Re: Translating from C to FB (lang FB)

Example of that

Code: Select all

dim as zstring ptr hello = @"Hello, World!"
? *hello 'have to deref because is a pointer
'Hello, World!
? hello[7] 'do not have to deref because is not a pointer
'World!
sleep
by sir_mud
Jun 02, 2013 13:51
Forum: Windows
Topic: xfont library problems
Replies: 3
Views: 1197

Re: xfont library problems

Looks like you need to recompile xfont for .9
by sir_mud
May 31, 2013 10:58
Forum: Community Discussion
Topic: I've redesigned my website...
Replies: 1
Views: 587

I've redesigned my website...

And upgraded the ancient codebase i was using. I've also taken the liberty of uploading some of my un and under-released games. Check it out: http://mud.owlbox.net direct to games (not all in freebasic): ROTBdx: http://mud.owlbox.net/project/freebasic/dr-mudball-rise-of-the-bustrons-dx Others: Proje...
by sir_mud
May 31, 2013 9:56
Forum: Beginners
Topic: Open "filename" for output as #1
Replies: 10
Views: 5635

Re: Open "filename" for output as #1

try changing your open call from open file for output as #whatever to open file for binary as #whatever Based on how the runtime library opens files this should work as it does in other languages. Here's a StackOverflow that explains the issue and another solution that uses the winapi although it's ...
by sir_mud
May 31, 2013 9:39
Forum: Beginners
Topic: Header translation
Replies: 4
Views: 699

Re: Header translation

Code: Select all

sub __init_func () constructor
'initialization code here
end sub

sub __destroy_func() destructor
'release resources, etc
end sub
by sir_mud
May 30, 2013 17:28
Forum: Beginners
Topic: Open "filename" for output as #1
Replies: 10
Views: 5635

Re: Open "filename" for output as #1

Seriously though, your config file doesn't need to be made hidden, just put it in a standard location like APPDATA. Normal users will never find it there. If there is sensitive data stored in the config file then you should encrypt it either using the winapi functions or a trusted 3rd party library....
by sir_mud
May 29, 2013 11:35
Forum: DOS
Topic: Using TCP/IP - DOS networking with NDIS drivers
Replies: 8
Views: 3710

Re: Using TCP/IP - DOS networking with NDIS drivers

I found this with a quick google: https://code.google.com/p/mtcp/ but it looks to be written for C++

*edit*
I translated this header: http://jafile.com/uploads/sir_mud/dos_tcp.bi awhile back but can't recall what the corresponding library was.
by sir_mud
May 27, 2013 11:55
Forum: General
Topic: "Deleting" non-existent file
Replies: 4
Views: 1203

Re: "Deleting" non-existent file

There is also: http://freebasic.net/wiki/keypgkill so you don't have to use the shell.
by sir_mud
May 27, 2013 11:50
Forum: Beginners
Topic: Open "filename" for output as #1
Replies: 10
Views: 5635

Re: Open "filename" for output as #1

The application has a configuration file, that sits on C:\somefile.ini with attribute as +H, so the user will not mess up with the configuration. The root directory is a protected directory and you would need admin permissions to write there. I would suggest storing your configuration files in %APP...
by sir_mud
May 23, 2013 18:13
Forum: General
Topic: Best way to convert a image to a rle bmp?
Replies: 6
Views: 1827

Re: Best way to convert a image to a rle bmp?

The display of a rle bitmap would be that same as any other image format because it is only stored on disk encoded for compression. Displaying is a memory copy and relatively fast. Unless you are targeting extremely old machines i would use PNGs as they are going to be smaller in nearly all cases.
by sir_mud
May 23, 2013 12:25
Forum: Beginners
Topic: Problem Create Dll Library
Replies: 10
Views: 1289

Re: Problem Create Dll Library

Can you post a backtrace from gdb? The freebasic code would be helpful as well, if you're able to release it (minimal working example is ok). Compile your program and dll with the -g flag added Run your program with gdb: > path/to/freebasic_dir/bin/win32/gdb.exe yourprogramname.exe - r - bt > gdb yo...
by sir_mud
May 22, 2013 18:00
Forum: Beginners
Topic: Problem Create Dll Library
Replies: 10
Views: 1289

Re: Problem Create Dll Library

In the context of the code given in the first post, "name" is an identifier for a local variable and can be called anything. You would only need to #undef name if you were going to provide an alternate function or sub called "name". The parameter to On_Send_Dll_ID_Name is also li...