Search found 12 matches

by Herminio Gomes
Jan 08, 2015 22:29
Forum: Beginners
Topic: A simple program: Sum of two numbers
Replies: 30
Views: 7949

Re: A simple program: Sum of two numbers

Thank You All.
I´m very happy with all these answers.
Herminio
by Herminio Gomes
Jan 04, 2015 0:37
Forum: Beginners
Topic: A simple program: Sum of two numbers
Replies: 30
Views: 7949

A simple program: Sum of two numbers

Please,
How to do a GUI program with two labels and two
textfields (one for each number) to add two numbers
e put result in another field.
by Herminio Gomes
Jul 22, 2012 23:55
Forum: Beginners
Topic: How to read the entire text file in just one string in FB?
Replies: 4
Views: 1749

How to read the entire text file in just one string in FB?

How to read the entire text file in just one string in FreeBasic? The program below reads a line at once. I need to use the entire string in the text file. How to do this ? Open Myfileinput For Input As #1 If Err>0 Then Print "Error accessing file" Sleep Else Open Myfileoutput For Output A...
by Herminio Gomes
Aug 06, 2008 1:24
Forum: Beginners
Topic: "Deck" Data Structure
Replies: 6
Views: 2353

Thank you. Again.

umm..i dont exactly know what you mean by "deck" data structure... But this program implements Stack data structure using pointer and dynamic memory allocation (for a variable sized array) For using it without pointers, just replace "deck_stack as integer ptr" with a static size...
by Herminio Gomes
Aug 06, 2008 1:18
Forum: Beginners
Topic: "Deck" Data Structure
Replies: 6
Views: 2353

That´s it. Exactly what I need . Thank you.

umm..i dont exactly know what you mean by "deck" data structure... But this program implements Stack data structure using pointer and dynamic memory allocation (for a variable sized array) For using it without pointers, just replace "deck_stack as integer ptr" with a static size...
by Herminio Gomes
Aug 03, 2008 12:20
Forum: Beginners
Topic: "Deck" Data Structure
Replies: 6
Views: 2353

"Deck" Data Structure

How to do a simple Deck data structure, using or not explicit pointers, but with objects ( Via "Type" command) ? (Not a homework)
by Herminio Gomes
Oct 27, 2007 23:51
Forum: Beginners
Topic: editable window
Replies: 8
Views: 2791

Thanks a lot. Regards. You don't *have to* use the Windows API. FBgfx comes with a graphics library (gfxlib2), which is very nice, but for software. You can use: FBgfx, WinAPI, OpenGL, or DirectX O.O;; Quite a lot of options here. There's a lot of documentation for the FBgfx here, and a lot of infor...
by Herminio Gomes
Oct 27, 2007 23:48
Forum: Beginners
Topic: editable window
Replies: 8
Views: 2791

Thank you. I'm very greatful for all. I'm learning a lot. ** WINDOWS ONLY, the solution provided by anonymous1337 is cross-platform, mine is not, however, here's something i hacked up in 10 minutes (spent most of it commenting the code), it's fairly simple, but i think it's what you're asking for.. ...
by Herminio Gomes
Oct 27, 2007 23:45
Forum: Beginners
Topic: editable window
Replies: 8
Views: 2791

Thank you. Thank you everybody too. I'm happy. I’m not too sure about the meaning of “editable”, but this is another Windows-only example. '==================================================================== '' DrawText demo, application window as main. '============================================...
by Herminio Gomes
Oct 27, 2007 23:43
Forum: Beginners
Topic: editable window
Replies: 8
Views: 2791

Thanks a lot. I'll use this routine. Regards. You don't *have to* use the Windows API. FBgfx comes with a graphics library (gfxlib2), which is very nice, but for software. You can use: FBgfx, WinAPI, OpenGL, or DirectX O.O;; Quite a lot of options here. There's a lot of documentation for the FBgfx h...
by Herminio Gomes
Oct 26, 2007 0:15
Forum: Beginners
Topic: editable window
Replies: 8
Views: 2791

editable window

I want to know how to print "Hello World" in an editable (white) window, not in a DOS window, neither in a message box. Please tell me someone !
What command from windows API ? How can I put in a Basic program?