Search found 586 matches

by UEZ
Jun 06, 2020 14:20
Forum: General
Topic: Windowtitle not working when using SetProcessDpiAwareness
Replies: 7
Views: 241

Re: Windowtitle not working when using SetProcessDpiAwareness

Which means you have no API error. Which Windows version? Does "test" appear when you Alt-Tab with other windows? I've added these information to the 1st post. When I hover the mouse cursor over the taskbar of the window I can see the windows title but nothing changes when using alt-tab. ...
by UEZ
Jun 06, 2020 13:25
Forum: General
Topic: Windowtitle not working when using SetProcessDpiAwareness
Replies: 7
Views: 241

Re: Windowtitle not working when using SetProcessDpiAwareness

jj2007 wrote:I see the window title ("test") on Win7-64

Try this:

Code: Select all

SetLastError(123)
Windowtitle "Test"
Print "LastError=";GetLastError()
If you don't see 123, there was an error in SetWindowTextA

I can see 123 in the console.
by UEZ
Jun 06, 2020 12:30
Forum: General
Topic: Windowtitle not working when using SetProcessDpiAwareness
Replies: 7
Views: 241

Windowtitle not working when using SetProcessDpiAwareness

When I use the winapi call SetProcessDpiAwareness then the windows title is empty. Example: #Include "windows.bi" #Include "fbgfx.bi" Using FB Enum PROCESS_DPI_AWARENESS DPI_AWARENESS_INVALID = -1, PROCESS_DPI_UNAWARE = 0, PROCESS_SYSTEM_DPI_AWARE = 1, PROCESS_PER_MONITOR_DPI_AWA...
by UEZ
Jun 04, 2020 18:12
Forum: General
Topic: Why is it crashing?
Replies: 6
Views: 298

Re: Why is it crashing?

wow. It looks like its made of pixels but I see that lines is the primitive. still somewhat in shock; it's very beautiful This is how it should look like Beautiful - my compliments! Thank you for your feedback. :-) - removal of: Do -- Loop (it's not serving any usefull purpose, by cons it's a CPU h...
by UEZ
Jun 04, 2020 10:25
Forum: General
Topic: Why is it crashing?
Replies: 6
Views: 298

Re: Why is it crashing?

dist should be #Define Dist(x1, y1, x2, y2) (Sqr((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2))) you had - (which if probably a function of the distance to the nearest black hole). Thanks dodicat. It fixes the issue. It should be the Euclidean distance. I don't know why I used minus instead of plus...
by UEZ
Jun 04, 2020 9:48
Forum: General
Topic: Why is it crashing?
Replies: 6
Views: 298

Why is it crashing?

I have this code: #Include "fbgfx.bi" Using FB Type Vector As Single x, y End Type Dim Shared As Ushort iArrayLen Dim Shared As Vector pathPoints(64) Const iW = 500, iH = iW, iW2 = iW \ 2 Const As Single r = iW / 2.1, PI = Acos(-1), PId4 = PI / 4, PId3 = PI / 3, PIm2 = 2 * PI, PId2 = PI / ...
by UEZ
Jun 01, 2020 19:59
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

@badidea: using the disk is similar using atoms! If you forget to cleanup or at app crash you cannot check for 1st run, imho.

What about multi user environment, something like a terminal server? For example, the exe should only be allowed to start once per user....
by UEZ
May 31, 2020 21:11
Forum: Projects
Topic: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.7 May 31, 2020)
Replies: 718
Views: 128850

Re: WinFBE Editor and FreeBASIC Compiler (All-in-One Package) (V2.1.7 May 31, 2020)

Version 2.1.7 (May 31, 2020) Editor: - Added: Occurrences Highlighting. Editor will highlight words under the current cursor position (Visual Studio has this type of feature as well). - Changed: Changed the default toolchain to: FreeBASIC-1.07.1-gcc-8.4 - Fixed: Performance issue with parsing docum...
by UEZ
May 30, 2020 21:51
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

@SARG: I've tested your semaphore version and it works properly - simple and short. According to MS: "Use the CloseHandle function to close the handle. The system closes the handle automatically when the process terminates. The semaphore object is destroyed when its last handle has been closed....
by UEZ
May 30, 2020 19:49
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

The disadvantage of jj2007's atom version is when you forget to use GlobalDeleteAtom(IsRunning) or the program crashes then the atom with Command(0) already exists.

How does the check will know if it was started the first time?
by UEZ
May 30, 2020 12:52
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

@jj2007 I have hit a snag with your method. I did not want to be told of a successful start so commented the second MessageBox. Running as a console program the following does not work. '#Console On #include "Windows.bi" Dim ItsMe as string=Command(0) If GlobalFindAtom(ItsMe) Then Message...
by UEZ
May 29, 2020 23:01
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

#include "Windows.bi" Dim ItsMe as string=Command(0) If GlobalFindAtom(ItsMe) Then Messagebox Null, ItsMe+" is already running", "Sorry:", MB_IconWarning Or MB_Topmost else Dim IsRunning as short=GlobalAddAtom(ItsMe) Messagebox Null, ItsMe+" successfully started&q...
by UEZ
May 29, 2020 21:20
Forum: General
Topic: Start a program just one time
Replies: 59
Views: 1666

Re: Start a program just one time

Here the ported Autoit function _Singleton 'Ported from Autoit's function _Singleton #Include "windows.bi" 'iFlag: '0 - Exit the script with the exit code -1 if another instance already exists. '1 - Return from the function without exiting the script. '2 - Allow the object to be accessed b...
by UEZ
May 27, 2020 14:40
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 26
Views: 9001

Re: Windows API: Open Dialog to Browse for a File

Dear Guys; I compiled this code with FreeBASIC 1.07.1 32bit version (Windows 10). by spodhaje » Apr 21, 2008 22:00 Then, the following errors were displayed. Please tell me how to fix it. (I'm sorry I didn't look it up myself and just gave it away.) error 181: Invalid assignment/conversion, at para...
by UEZ
May 27, 2020 12:39
Forum: Projects
Topic: FreeBasic IDE-poseidonFB(Update 2020.07.20)
Replies: 1074
Views: 170229

Re: FreeBasic IDE-poseidonFB(Update 2020.05.27)

........@@.......... Dear UEZ: Please tell me more details about this bug, iu occur while using "Goto Definition" / "Show Type"? of just simple key in? Is there a fixed and easy way to reproduce it? That's not easy to reproduce because it doesn't occur everytime. As far as I can...

Go to advanced search