Search found 1184 matches
- Oct 26, 2013 3:54
- Forum: Windows
- Topic: GetOpenFileName questions
- Replies: 6
- Views: 2736
Re: GetOpenFileName questions
Well, my program is working fine with my original method. But, since I am using Excel automation in my program anyway, I found that Excel has it's own FileDialog function that I tested and it seems to work also. I probably won't change it now since the program is complete. Anyways, here is an Excel ...
- Oct 24, 2013 2:21
- Forum: Game Dev
- Topic: BLoad and Put not working? [SOLVED]
- Replies: 12
- Views: 4563
Re: BLoad and Put not working?
Since the the origin (0,0) of the screen is at the top left, your sprite will be to the bottom right of the coordinate you select. Since you didn't post a complete example of what you're attempting, I am posting a short example using some of the code you have shown. #include "fbgfx.bi" usi...
- Oct 23, 2013 23:16
- Forum: Game Dev
- Topic: BLoad and Put not working? [SOLVED]
- Replies: 12
- Views: 4563
Re: BLoad and Put not working?
Therein lies your problem. The screenres must be set before the imagecreate.
- Oct 16, 2013 1:41
- Forum: General
- Topic: Is there a bug with REDIM PRESERVE.
- Replies: 3
- Views: 696
Re: Is there a bug with REDIM PRESERVE.
A couple of minor changes and it works. #LANG "FBLITE" SUB DirFiles(F$(),Mask$, byref Total&) DF$ = DIR$(Mask$) WHILE DF$<> "" I& = I& + 1 REDIM PRESERVE F$(I&) F$(I&) = DF$ PRINT I&;" ";F$(I&) 'SLEEP DF$ = DIR$ WEND Total& = I& END S...
- Oct 02, 2013 19:36
- Forum: General
- Topic: Printing my program using FBIde0.4.6r4 and print run pgms
- Replies: 3
- Views: 666
Re: Printing my program using FBIde0.4.6r4 and print run pgm
In FBIDE you can also select the option to format the code as HTML. You then save that file and print it from a browser.
- Sep 27, 2013 13:57
- Forum: Windows
- Topic: Problem accessing COM Port FreeBasic/Firefly
- Replies: 14
- Views: 6770
Re: Problem accessing COM Port FreeBasic/Firefly
I see a couple of potential issues related to the file handle for the com port. First of all, in one portion of your program, you aren't closing a handle if you get an error. Open "Agora3D.prm" For Input As #f If LOF(f) = 0 Then myerror = 1 close #f 'add this Else Input #f, RelPort, CamPor...
- Sep 24, 2013 14:14
- Forum: Windows
- Topic: Problem accessing COM Port FreeBasic/Firefly
- Replies: 14
- Views: 6770
Re: Problem accessing COM Port FreeBasic/Firefly
Change
to
The first works for DOS
The second is for Windows
You may also need some flags in the statement to disable control lines.
Code: Select all
Open "COM2: 2400,N,8,1" as #1
Code: Select all
Open Com "COM2: 2400,N,8,1" as #1
The second is for Windows
You may also need some flags in the statement to disable control lines.
Code: Select all
Open Com "COM2: 2400,N,8,1,cs0,cd0,ds0,rs" as #1
- Sep 16, 2013 21:04
- Forum: Windows
- Topic: GetOpenFileName questions
- Replies: 6
- Views: 2736
Re: GetOpenFileName questions
Thanks for the responses. I guess that for now I'll just make sure I have plenty of space allocated for the return string. It seems to work fine. I just thought that there might be a better way than what I was doing.
- Sep 14, 2013 16:20
- Forum: Windows
- Topic: GetOpenFileName questions
- Replies: 6
- Views: 2736
GetOpenFileName questions
I'm using the GetOpenFileName with the OFN_allowmultiselect flag. I have a few questions. First of all, is there a simpler method to extract the file names since they are null separated? Second, is there a way to dynamically allocate the space for the file names since I'm not sure how many file name...
- Sep 11, 2013 0:54
- Forum: Libraries Questions
- Topic: Excel Disphelper help
- Replies: 253
- Views: 66644
Re: Excel Disphelper help
Never mind. It was way simpler than I made it out to be. I just selected the range first and then added the listobject.
Code: Select all
xlrangeselect("$A$1:$D$3")
xlcm(xlapp,"activesheet.listobjects.add")
- Sep 10, 2013 21:55
- Forum: Libraries Questions
- Topic: Excel Disphelper help
- Replies: 253
- Views: 66644
Re: Excel Disphelper help
It's been awhile since I've delved into my xlhelper wrapper. I Haven't done much programming lately. Anyways, I need to add a sub for creating a table from a range. The following is the VBA code. Could someone possibly show me how to do this with Disphelper? I've tried many variations without succes...
- Jul 31, 2013 14:22
- Forum: Hardware Interfaces / Communication
- Topic: Using COM ports above COM1 and COM2.
- Replies: 12
- Views: 6695
Re: Using COM ports above COM1 and COM2.
Ooops, sorry!. That was a typo in my post. Glad that you figured it out. My post has been corrected.
- Jul 29, 2013 22:46
- Forum: Hardware Interfaces / Communication
- Topic: Using COM ports above COM1 and COM2.
- Replies: 12
- Views: 6695
Re: Using COM ports above COM1 and COM2.
No clue. This test program has always worked for me. Haven't tried it with the latest compiler version though. As a quick test, jump pin 2 to 3 on your serial cable (not hooked up to another device) and see if what you type is returned. If so, you have some issue with what your hooking it up to. May...
- Jul 08, 2013 17:27
- Forum: Beginners
- Topic: Hi n question (using parallel port)
- Replies: 24
- Views: 4198
Re: Hi n question (using parallel port)
It's already supported.
http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgOut
http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgOut
- Mar 24, 2013 4:23
- Forum: General
- Topic: How to turn off blinking cursor
- Replies: 4
- Views: 1033
Re: How to turn off blinking cursor
locate ,,0