Search found 1444 matches

by St_W
Jul 28, 2009 17:05
Forum: Projects
Topic: FbEdit
Replies: 962
Views: 151404

Hi, I think FBedit's Resource Editor 'ResEd' should be able to parse valid Resource files using"{" and "}" instead of "BEGIN" and "END". //edited, 2009-08-03 Maybe it would also better, if the #define's would be in a separate *.bi-File and both - the *.rc and the *.bas file - can include the #define...
by St_W
Jul 20, 2009 18:55
Forum: Projects
Topic: FbEdit
Replies: 962
Views: 151404

Hi,
I think it would be better if the caret would jump to the first error - not to the last - when compiling.

Thanks in advance,
St_W
by St_W
Jul 05, 2009 18:00
Forum: General
Topic: Macros
Replies: 4
Views: 806

Thank you very much stylin!

I'll use double underscores because FBedit doesn't like single ones too.
//edit: FBedit also doesn't like double underscores.
Passing the parameters in brackets works fine!
by St_W
Jul 05, 2009 17:42
Forum: General
Topic: Macros
Replies: 4
Views: 806

The macro will be expanded in various functions. So the DIMs wouldn't cause problems. I've detected a strange behaviour of the compiler: dim _test as String = "Hello" '#define r(_variable_) _##_variable_ #define s(_variable_) _t##_variable_ 'print r(test) print s...
by St_W
Jul 05, 2009 16:19
Forum: General
Topic: Macros
Replies: 4
Views: 806

Macros

I'm trying to write a macro that implements a very simple linked list. Here is my attempt: #macro LL_Add(DataType, BasicType, Parameters) dim Cnt as Integer dim q as integer dim ElemA as DataType ptr dim ElemB as DataType ptr dim tmpIndex as Integer Cnt = this.##BasicType##Count() El...
by St_W
Jul 01, 2009 17:41
Forum: Projects
Topic: FbEdit
Replies: 962
Views: 151404

I think I've found a bug in FBedit 1.0.7.0 try the following Code: type test_udt a as Integer b as String declare function mySecondFunction(a as Integer, b as String) as Integer End Type 'function myFunction(a_ as Integer, b_ as Integer) as Integer ' return a_ + b_ 'End Function func...
by St_W
May 31, 2009 21:19
Forum: Windows
Topic: Windows GUI
Replies: 8
Views: 3138

Thank you for you quick answer. Some guys from the german freeBasic forum also told me that GUI-programming is very inconvenient with the current version of the freeBasic compiler. But on the other hand I see great applications like FBedit, which are written (mainly) in freeBasic. I can't believe th...
by St_W
May 31, 2009 19:40
Forum: Windows
Topic: Windows GUI
Replies: 8
Views: 3138

Windows GUI

Hi! I want to learn how to write FreeBasic programs that have an attractive user interface. I'm completely new to the Win32 API and Windows programming techniques. So I created a simple application using some of the basic controls provided by windows like buttons, list boxes, labels, progress bars a...
by St_W
May 25, 2009 8:33
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3329

Thank you very much! The program rc2code is great, but doesn't create an example how the controls are resized. But the function "MapDialogRect" is really great - i didn't know that such a function existed. The conversion from DLU into Pixels works without problems (up to now :-) ). I've read in the ...
by St_W
May 24, 2009 10:26
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3329

I'm a Microsoft-Windows-Programming-beginner. I'd like to resize the Controls (Buttons, Textboxes, Listboxes, Labels, etc.) when the outer Window (maybe Dialog? I don't know the difference yet.) gets resized. #Include Once "windows.bi" #include once "win/commctrl.bi" #include onc...
by St_W
May 23, 2009 18:34
Forum: Windows
Topic: Convert FBedit Form-Designer Units into Pixels
Replies: 9
Views: 3329

Convert FBedit Form-Designer Units into Pixels

Hi, I'd like to calculate the position of a control when a Windows gets resized, because the Controls within this windows should change their size too. I use the Win32-API Function "MoveWindow" which asks for the coordinates of the controls in Pixels. Case WM_SIZE GetClientRect(hWnd,@rect) M...
by St_W
May 22, 2009 11:41
Forum: Community Discussion
Topic: Bug using Unix LineFeed
Replies: 1
Views: 858

Bug using Unix LineFeed

Hi, I don't know if it's a real bug, so i'd like to get some opinions from you before I submit it to the bugtracker at sourceforge. Please try and think over the following code: 'Prepare Bug-Situation if dir("File.txt")<>"" then kill "File.txt" open "File.t...
by St_W
Feb 19, 2009 18:03
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1764

As mentioned above I've written an InStrRev-Function in FreeBasic+Inline Assembler that should work correctly, can handle larger strings and is multiple times faster than the origin. If somebody needs such a function - here's the source: function InStrRev2(byref searchstr as string, byref search...
by St_W
Feb 19, 2009 9:47
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1764

I'd like to read some data from a file and search for a pattern. The file(s) contain NULL-Characters. I store them also in a big string, which contains the whole content of the file. But then there are also these NULL-Chars in the string and some of the string functions wouldn't work correctly. What...
by St_W
Feb 19, 2009 0:49
Forum: Community Discussion
Topic: Bug in InStrRev Function ??
Replies: 9
Views: 1764

The source-code above is only an example. Usually I don't append a chr(0) to strings, of course. I've encountered the problem while reading Data from various files which contain binary data. It's also possible (but uncommon) that the files end with a chr(0) as last character. I think a Null-Characte...

Go to advanced search