Search found 3447 matches

by MichaelW
Nov 07, 2016 10:11
Forum: Community Discussion
Topic: [offtopic]How can you be proud in future of your country with clinton or trump ?
Replies: 28
Views: 2809

Re: How can you be proud in future of your country with clinton or trump ?

marcov wrote:You mean like...


Yes, and lots more, but not everything.
by MichaelW
Nov 06, 2016 20:13
Forum: Community Discussion
Topic: [offtopic]How can you be proud in future of your country with clinton or trump ?
Replies: 28
Views: 2809

Re: How can you be proud in future of your country with clinton or trump ?

The lessor of two evils is a real choice, just not one you can feel good about. Fortunately, the framers of our constitution provided for separation of powers and built in a system of checks and balances, to prevent any one branch of the government from becoming too powerful, and screwing everything...
by MichaelW
Nov 06, 2016 15:20
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 15635

Re: Windows GUI

I was assuming "image" meant a static image. ''============================================================================= #include "windows.bi" ''============================================================================= ''---------------------------------------------------...
by MichaelW
Nov 06, 2016 11:19
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 15635

Re: Windows GUI

CreatePatternBrush is a possibility, as are some of the related brushes.
by MichaelW
Nov 06, 2016 2:07
Forum: General
Topic: 64-bit inline assembler
Replies: 44
Views: 4473

Re: 64-bit inline assembler

Per Agner Fog's calling_conventions.pdf, available here, for Linux and BSD, for the default small memory model the compiler can use 32-bit signed absolute addresses. There are two other models listed for application programs (medium and large).
by MichaelW
Nov 04, 2016 17:14
Forum: General
Topic: 64-bit inline assembler
Replies: 44
Views: 4473

Re: 64-bit inline assembler

This is a test of variable access from inline assembly: dim shared as integer shared1 = 1, shared2 dim shared as integer shared3 = 1, shared4 sub Test print shared1, shared2 asm mov rax, shared1 mov shared2, rax end asm print shared1, shared2 end sub dim as integer module1 = 1, module2 print print s...
by MichaelW
Nov 02, 2016 22:31
Forum: Linux
Topic: Optimization algorithm again
Replies: 12
Views: 2088

Re: Optimization algorithm again

Why not try RDRAND, assuming your processor supports it.
by MichaelW
Nov 02, 2016 19:22
Forum: Windows
Topic: Read System Variables in Windows
Replies: 1
Views: 743

Re: Read System Variables in Windows

GetEnvironmentVariable works the same from a Windows GUI app as it does from a console app. The problem is with trying to display the variable value with Print, which needs a console to display on. One easy way around this problem is to build the Windows GUI app as a console app, so in addition to t...
by MichaelW
Oct 29, 2016 3:14
Forum: Beginners
Topic: Windows GUI
Replies: 145
Views: 15635

Re: Windows GUI

A single window procedure can be used for multiple windows, but unless the windows have similar features and functionality, doing so will probably be more or less impractical.
by MichaelW
Oct 28, 2016 10:50
Forum: Windows
Topic: CreateTimerQueueTimer function
Replies: 6
Views: 1731

Re: CreateTimerQueueTimer function

The Timer Queue timers do not seem to me to be very useful. They appear to have the same maximum resolution (= minimum period) that the other Windows timers (other than the High-Resolution Performance Counter timer that the FreeBASIC Timer function is based on) have, 10 or 15.6ms, depending on the v...
by MichaelW
Oct 19, 2016 19:11
Forum: General
Topic: 64-bit inline assembler
Replies: 44
Views: 4473

Re: 64-bit inline assembler

This is the first example, with minimal corrections to handle the parameters and return value as per the calling convention, but more changes will be needed to fully conform, because per the calling convention "All floating point operations are done using the 16 XMM registers." function iP...
by MichaelW
Oct 19, 2016 13:47
Forum: General
Topic: 64-bit inline assembler
Replies: 44
Views: 4473

Re: 64-bit inline assembler

On my Windows 10 notebook I can compile either of the apps with -gen gcc and -O 3 and they run with no problems.
by MichaelW
Oct 02, 2016 11:09
Forum: General
Topic: 64-bit inline assembler
Replies: 44
Views: 4473

Re: 64-bit inline assembler

I didn't have time to do everything that I wanted, but I did verify that for 64-bit code, and using compiler Version 1.05.0 (01-31-2016), built for win64 (64bit), naked functions conform to the 64-bit calling convention. Edit: Added code to do RIP-relative access to shared variables. Edit2: Sorry, t...
by MichaelW
Jun 26, 2016 8:20
Forum: Windows
Topic: getpixel slow on Win 10.
Replies: 9
Views: 1909

Re: getpixel slow on Win 10.

Perhaps part of the problem in the 64-bit code is your choice of a 32-bit loop counter.
by MichaelW
Apr 14, 2016 2:59
Forum: Windows
Topic: Somethin' went wrong :'(
Replies: 4
Views: 829

Re: Somethin' went wrong :'(

There is a function here that returns a system-defined error message for the last-error code value, making it a little easier to interpret the error code. Note that the returned message is valid only after a function that sets the last-error code value returns (to the caller) a value that indicates ...

Go to advanced search