Search found 254 matches

by codeFoil
Aug 17, 2012 22:41
Forum: Documentation
Topic: Sleep RESOLVED
Replies: 9
Views: 2609

Re: Sleep

That was my first guess when I saw that Sleep was documented as a function, but as currently written fb_Sleep does not return a value, and fb_Sleepex just calls fb_Sleep when the second parameter is 0. fb_Sleep is a wrapper for a hookable routine, and I haven't followed the calls, so I don't know ho...
by codeFoil
Aug 17, 2012 1:36
Forum: Documentation
Topic: Sleep RESOLVED
Replies: 9
Views: 2609

Sleep RESOLVED

http://www.freebasic.net/wiki/KeyPgSleep The wiki page for the Sleep statement indicates that there are two overloaded functions that both return an integer. The purpose of the return value is undocumented. However, Sleep interval results in a call to fb_Sleep defined in hook_sleep.c, which is defin...
by codeFoil
Aug 17, 2012 1:10
Forum: Projects
Topic: Just Starting - Economy
Replies: 28
Views: 3553

Re: Just Starting - Economy

Why ask me? http://www.freebasic.net/wiki/wikka.php?wakka=KeyPgSleep http://fbc.git.sourceforge.net/git/gitweb.cgi?p=fbc/fbc;a=blob;f=src/rtlib/hook_sleep.c;h=6bf337705fb90021616d72f0322a0f8c36206970;hb=HEAD http://fbc.git.sourceforge.net/git/gitweb.cgi?p=fbc/fbc;a=blob;f=src/rtlib/time_sleepex.c;h=...
by codeFoil
Aug 17, 2012 0:25
Forum: Projects
Topic: Just Starting - Economy
Replies: 28
Views: 3553

Re: Just Starting - Economy

@DCrawshawJr - Having looked at your code, I have noticed that you are not using the keyflag argument in your Sleep statements. Sleep 2000 ' This will be interrupted by keyboard input. Sleep 2000, 1 ' This will not be interrupted by keyboard input. That would account for the change in timing. This w...
by codeFoil
Aug 16, 2012 0:47
Forum: Projects
Topic: Just Starting - Economy
Replies: 28
Views: 3553

Re: Just Starting - Economy

' the long start number means the loop runs slower and somewhat smoother ive found Slower? Perhaps if you happen to be converting your loop control variable into a string or involving it in some other manner in the duration of an inner loop, there might be hint of substance to this assertion, but t...
by codeFoil
Aug 12, 2012 21:42
Forum: Windows
Topic: Gui Builder
Replies: 26
Views: 8471

Re: Gui Builder

I ran Sysinternal's Process Monitor while starting and exiting the program, and I did not notice anything unusual. When exactly did this MSE message activate? During program start? After a certain time? After user input?
by codeFoil
Aug 12, 2012 21:06
Forum: Beginners
Topic: Sorting a random file
Replies: 9
Views: 742

Re: Sorting a random file

@contrex You are right. The distinction is valid, but the notion that DOS is the command line interface is too widely held to hope to dispel. As a word, we have to accept that "DOS" is ambiguous. Here, unless the question is raised in either the Windows or DOS sections, the best we can do ...
by codeFoil
Aug 12, 2012 0:53
Forum: Windows
Topic: Gui Builder
Replies: 26
Views: 8471

Re: Gui Builder

@aloberoger
Nice stuff. I had a dialog box with a button and static text field running in under five minutes.
by codeFoil
Aug 11, 2012 13:51
Forum: DOS
Topic: This causes a GPF. [Solved]
Replies: 8
Views: 1695

Re: This causes a GPF. [Solved]

It was the ease of searching that was immediately suggested. For a beginner, I recommend the Intel manuals for the Pentium I. The versions for newer processors that combine the 32 and 64 bit information are important to have read, but for reference works they are getting cumbersome, and I think volu...
by codeFoil
Aug 11, 2012 4:41
Forum: DOS
Topic: This causes a GPF. [Solved]
Replies: 8
Views: 1695

Re: This causes a GPF. Bug, or my mistake?

Richard wrote:I use the multiple nop instructions as a code position markers.


Elegant!
by codeFoil
Aug 11, 2012 4:19
Forum: Windows
Topic: Window wrapper
Replies: 9
Views: 3268

Re: Window wrapper

How use ShellExecute to compile program? any example will be good... There is really very little reason to use the ShellExecute routine unless you are working with a file type that has been integrated into the shell by registering an application and file types, and this sort of effort is really onl...
by codeFoil
Aug 11, 2012 1:08
Forum: General
Topic: compiler issue with atexit() / rtlAtExit
Replies: 10
Views: 573

Re: compiler issue with atexit() / rtlAtExit

its curious why undeffing alot of the engine doesnt reduce its size =) thats part of the whole reason to have them to begin with to _actually_ remove debugging code etc. The file format of executable files on Windows is designed with the file system/virtual memory cache in mind, so the granularity ...
by codeFoil
Aug 11, 2012 0:26
Forum: Beginners
Topic: up.bas(108) warning 14(0): Function result was not explicitl
Replies: 42
Views: 2042

Re: up.bas(108) warning 14(0): Function result was not expli

We might be straying a little off topic, since this doesn't really concern FreeBASIC. However, since this thread has dealt a lot with environment variables and the command interpreter, we might pursue it a little further. The difference in behavior concerning quotes has to do with the fact that SETX...
by codeFoil
Aug 09, 2012 3:05
Forum: DOS
Topic: This causes a GPF. [Solved]
Replies: 8
Views: 1695

Re: This causes a GPF. Bug, or my mistake?

If you need to play at a low level, it's a good idea to examine the assembly source created by the compiler.
Use the -R compiler option to retain the .ASM file passed to the assembler, and use the -g option to make it a little easier to read.
by codeFoil
Aug 09, 2012 2:52
Forum: Beginners
Topic: up.bas(108) warning 14(0): Function result was not explicitl
Replies: 42
Views: 2042

Re: up.bas(108) warning 14(0): Function result was not expli

That's sums it up. (By the way, although I first learned about how errorLevel was handled by banging my head against the wall, I later discovered that it is documented in the help message for the command interpreter's IF command. ) Getting the exit code from programs run through a batch script is tr...

Go to advanced search