Search found 474 matches

by BasicScience
May 14, 2008 22:14
Forum: General
Topic: Help with DLL
Replies: 28
Views: 4292

Well... I still get the same error even if I try: #inclib "epcdll" or if I try declare function EPC9_DLLVersion lib "epcdll" () as integer or if I try declare function EPC9_DLLVersion lib "epcdll" alias "EPC_DLLVersion" () as integer And what really seems strange is that if I leave off the #inclib a...
by BasicScience
May 14, 2008 19:21
Forum: General
Topic: Help with DLL
Replies: 28
Views: 4292

Help with DLL

Trying to call a function from a commercially supplied DLL. In FB 0.185 running from FBIDE here's the code: declare function EPC_DLLVersion lib "epcdll" () as integer print EPC_DLLVersion sleep Which gives me this error.... Command executed: "C:\Program Files\FreeBASIC 185\fbc.exe" "C:\Documents and...
by BasicScience
May 08, 2008 19:20
Forum: Tips and Tricks
Topic: Show and Hide the Console with the WinAPI (ShowWindow)
Replies: 1
Views: 1205

Hmm... each example worked once, with the first trial, but then failed on re-try. Tried restarting FBIDE, or running from compiled version... no luck.

System: Win XP, FBC 0.18.5
by BasicScience
Apr 22, 2008 21:48
Forum: Tips and Tricks
Topic: FBGFX font render
Replies: 20
Views: 5770

Ditto to Cherry's request. It would be nice to have a 8 bit version so this font capability could be used in QB-only graphics mode.
by BasicScience
Apr 22, 2008 20:59
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 16
Views: 7856

Thanks. Seems to work, after one line was changed (? typo)

ofn.hInstance=hInstance

Should be

ofn.hInstance=GetModuleHandle(NULL)
by BasicScience
Apr 19, 2008 21:43
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 16
Views: 7856

Yup. Output is

123-N

then a bunch of spaces and an extended character (a with diacritical mark).

So... the null character termination is working ???
by BasicScience
Apr 19, 2008 21:21
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 16
Views: 7856

Calstover..... Tried your suggestion, but the Open File Dialog Box only listed the first file_type option in the drop down menu (i.e only *.TXT), and even worse, the folder listing was for all file types (*.*), not just *.TXT. Here's a partial listing of the modifications I tried. (PARTIAL CODE) dim...
by BasicScience
Apr 19, 2008 20:55
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 16
Views: 7856

Thanks Zippy. Your code did the trick with TopMost.
by BasicScience
Apr 19, 2008 18:10
Forum: Tips and Tricks
Topic: Windows API: Open Dialog to Browse for a File
Replies: 16
Views: 7856

Thanks for the Open File Dialog Box tip. I'm quite experienced with QB45, new to Freebasic, and a total newbie for Win API calls. I tried to modify your code to pass the argument for .lpstrFilter = Strptr(!"All Files, (*.*)\0*.*\0Bas Files, (*.BAS)\0*.bas\0Dat Files, (*.DAT)\0*.dat\0\0") as a string...

Go to advanced search