Search found 1153 matches

by jj2007
Jul 16, 2019 23:33
Forum: Community Discussion
Topic: no Windows system sounds after update
Replies: 4
Views: 189

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: 716

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: 435

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: 435

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: 1052

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: 435

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: 435

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: 435

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: 435

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: 435

Re: file requester for console program

Try GetOpenFileNameW with this:

Code: Select all

print str(ChooseProgram(@"*.txt"))
Sleep
by jj2007
Jul 11, 2019 20:44
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 1052

Re: use freebasic dll with msaccess

jj2007, that worked Good ;-) The culprit in this case is MS Access. Instead of wrongly shouting "dll not found", it should use the built-in Windows error message, which returns in my case (Italian OS) "somepath\Whatever.dll non è un'applicazione di Win32 valida". Which is correc...
by jj2007
Jul 11, 2019 16:58
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 1052

Re: use freebasic dll with msaccess

michaelleewebb, The code I posted further up works perfectly, from MS Access calling the FB dll. Your problem is not whether the dll sits in System32 or Wow64, it is something completely different. As far as I've understood, your MS Access does not even find the DLL file...! Check if your MS Access ...
by jj2007
Jul 11, 2019 13:24
Forum: Libraries
Topic: Accessing GIF Frames and Displaying GIF Images/Animations
Replies: 13
Views: 1760

Re: Accessing GIF Frames and Displaying GIF Images/Animations

It's all in GdiPlus. If Windows is fine for you, search for GdipImageSelectActiveFrame
by jj2007
Jul 11, 2019 13:20
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 1052

Re: use freebasic dll with msaccess

No idea why it doesn't work for you. Here (Windows 7-64), I call the DLL from MS Access using the full path - it's even on a different drive. No registration needed. I can't see a reason why it shouldn't work, this is a very, very basic Windows setup and procedure.
by jj2007
Jul 11, 2019 10:56
Forum: Beginners
Topic: use freebasic dll with msaccess
Replies: 52
Views: 1052

Re: use freebasic dll with msaccess

This works fine with Ms Access (special thanks to deltarho - the Extern did the job): Declare Function SayHello Lib "C:\FreeBasic\Whatever.dll" (ByVal pString As String) As Integer Sub SayHi() Dim Res As Integer Res = SayHello("Hello") End Sub #include "Windows.bi" ' fo...

Go to advanced search