Search found 1188 matches

by jj2007
Aug 02, 2019 16:48
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 8563

Re: StringArray Sort (case independent)

dodicat wrote:one million shortish strings
Average length, random, ...?
by jj2007
Aug 01, 2019 18:04
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 8563

Re: StringArray Sort (case independent)

Well, for me slow code is totally unacceptable. De gustibus non est disputandum ;-)
by jj2007
Jul 27, 2019 23:30
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 8563

Re: StringArray Sort (case independent)

Converting all strings to lcase or ucase strings is an overkill, and probably very slow. It would be sufficient to use a string compare function that is case-insensitive. If there is interest, I can offer a 32-bit DLL using StringsDiffer().
by jj2007
Jul 26, 2019 15:11
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 1378

Re: How to draw simple scatterplot with GSL

GnuPlot is ok but you cannot (afaik) use it to plot inside your own window or control.
by jj2007
Jul 25, 2019 20:15
Forum: General
Topic: Replace string throughout code
Replies: 7
Views: 1183

Re: Replace string throughout code

What's wrong with Find & Replace All? MS Word can even find your int in full word mode.
by jj2007
Jul 16, 2019 23:33
Forum: Community Discussion
Topic: no Windows system sounds after update
Replies: 4
Views: 1230

Re: no Windows system sounds after update

Sounds familiar (http://masm32.com/board/index.php?topic=7892.msg86518#msg86518): Open device manager and get the properties of your sound device. If the Roll Back Driver button is enabled, try rolling back. If it isn't, uninstall the device (NOT the driver software as well) and reboot. If that does...
by jj2007
Jul 15, 2019 10:45
Forum: Windows
Topic: InputBox() in console program
Replies: 34
Views: 3379

Re: InputBox() in console program

That's typically a dialog. I have my own wrappers called DlgDefine & DlgControl , under the hood you would see DialogBoxIndirectParamW (the "W" meaning Unicode). Example: include \masm32\MasmBasic\MasmBasic.inc Init DlgDefine "Please enter your opinion:", 0, 0, 150, -1, , 12 ...
by jj2007
Jul 12, 2019 22:04
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

Ok, and why does this fail so miserably? Half a string correct, half is garbage?

Code: Select all

Dim as Wstring*1024 filter=!"Text Files\0*.txt\0\0"
by jj2007
Jul 12, 2019 21:47
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

There is something wrong in this line: Dim as Wstring*1024 filter=!"Text Files\0*.txt\0\0" What does the ! mean? The string passed actually ends behind Files ; there is no *.txt behind it. I checked that at assembly level using a debugger. This works fine (as 32-bit code, using Gas): ofn.h...
by jj2007
Jul 12, 2019 16:12
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 4597

Re: use freebasic dll with msaccess

dodicat wrote:I feel I should buy Microsoft office just to keep up with you all.
. . .
But the feeling has faded already.
<smile>My old Office 2003 copy still works perfectly. Poor Micros**t, nobody wants to buy their new toys ;-)
by jj2007
Jul 12, 2019 12:43
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

Then you need a wOpen function of some sorts. Since you are on Windows anyway, CreateFileW will do the job. Rumours say "Open" in the FB manual mentions Utf8 (Encoding "utf8" (8-bit Unicode encoding is used)), but these are just rumours.
by jj2007
Jul 12, 2019 12:32
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

perhaps, but I would still like my first or second post to be made unicode compatible As written earlier, it is unicode compatible. All you need is GetOpenFileName W and a print function that knows how to handle wide character strings. Somewhere on this forum you can find a library for wide strings.
by jj2007
Jul 12, 2019 11:05
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

It works here on Win7-64 with Russian or Arabic names. I got this working, but it's not Unicode: #include once "windows.bi" #include once "crt.bi" #include once "win\commdlg.bi" dim shared FileName(0 to MAX_PATH - 1) as zstring ptr function ChooseProgram(byval FileName ...
by jj2007
Jul 12, 2019 10:45
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

Your original code is unicode compatible.
by jj2007
Jul 12, 2019 10:21
Forum: Windows
Topic: file requester for console program
Replies: 30
Views: 2647

Re: file requester for console program

Try GetOpenFileNameW with this:

Code: Select all

print str(ChooseProgram(@"*.txt"))
Sleep

Go to advanced search