Search found 1271 matches
- Jul 31, 2015 0:03
- Forum: Windows
- Topic: [Solved] Hanging Apps in Windows 10 Technical Preview
- Replies: 23
- Views: 12351
Re: Hanging Apps in Windows 10 Technical Preview
[more on my previous test] In the Event Log details I see this: 0000: 43 00 72 00 6F 00 73 00 C.r.o.s. 0008: 73 00 2D 00 74 00 68 00 s.-.t.h. 0010: 72 00 65 00 61 00 64 00 r.e.a.d. 0018: 00 00 44 00 65 00 61 00 ..D.e.a. 0020: 64 00 6C 00 6F 00 63 00 d.l.o.c. 0028: 6B 00 00 00 00 00 k..... Cross-thre...
- Jul 30, 2015 23:31
- Forum: Windows
- Topic: [Solved] Hanging Apps in Windows 10 Technical Preview
- Replies: 23
- Views: 12351
Re: Hanging Apps in Windows 10 Technical Preview
This 32-bit compiled (fbc Version 1.00.0 (09-14-2014)) code hangs on 64-bit Win10 driven by VMWare: ETA: I've tried also with fbc Version 1.03.0 (07-01-2015), still hangs. screen 18 print "Hello World!" from Event Viewer, Application: Event Name: AppHangTransient Response: Not available Ca...
- Jul 29, 2015 22:56
- Forum: Sources, Examples, Tips and Tricks
- Topic: Hide the console
- Replies: 3
- Views: 1609
Re: Hide the console
I don't know about "well known" by all but this isn't a new tip. Your reiteration doesn't hurt, albeit it is more complicated (and obscure/obfuscated) than necessary. The params to ShowWindow are enumerated (#defined) in "winuser.bi" which is included by "windows.bi". #...
- Jul 13, 2015 2:33
- Forum: General
- Topic: Reverse a number
- Replies: 18
- Views: 1926
Re: Reverse a number
@Zippy When there is an odd number of characters, it's not useful to swap the centrally character with itself: for a=ls to int(.5*(ls+1))+1 step -1 swap ts[a-1],ts[ls-a] Next Yes, the middle character of an odd-length string is unnecessarily swapped. The simplest fix was ugly, leaving a float termi...
- Jul 12, 2015 17:25
- Forum: General
- Topic: Reverse a number
- Replies: 18
- Views: 1926
Re: Reverse a number
@Tourist Trap Here's another method of string reversal, this using string indexing and swap(): 'revNum - string reverse... ' dim as integer a,ls dim as ulongint tn dim as double bt,et dim as string ts ' tn = 1e+9 + CULngInt (Rnd * 109999999900000000) ' ts=str(tn) ls=len(ts) ' print ts ' bt=timer for...
- May 05, 2015 21:20
- Forum: Windows
- Topic: Win32.CHM converted from Win32.HLP
- Replies: 3
- Views: 3269
Re: Win32.CHM converted from Win32.HLP
Spectacular. Excellent work! Notes to end users: 1. You'll need to "Unblock" the .chm after downloading. From the File Manager: right-click the file, select Properties, scroll down and click "Unblock". 2. This .chm serves as a drop-in replacement for win32.hlp in FBEdit [time per...
- May 03, 2015 20:13
- Forum: General
- Topic: Remove text from string [SOLVED]
- Replies: 7
- Views: 1452
Re: Remove text from string
An annotated version with minimal error checking: 'parse string, remove username ' dim as string ts,tsL,fs dim as integer ts1,ts2 ' ts="0000000 _____ () C:\Users\username\AppData\Local\{BFB0701E-BCA9-4E84-827C-0E41BDDE30F2}" ' 'convert to lowercase so we can use instr() tsL=lcase(ts) ' 'fi...
- May 31, 2014 22:34
- Forum: Windows
- Topic: Help with string pointers and GetPrivateProfileString
- Replies: 5
- Views: 2539
Re: Help with string pointers and GetPrivateProfileString
@AnotherLife You said you have defined "UNICODE". If the #define precedes the windows.bi include then GetPrivateProfileString() returns wide strings (16 bit characters) and you must code accordingly: #define UNICODE #include once "windows.bi" ' dim as integer res dim as wstring *...
- Apr 30, 2014 2:09
- Forum: Sources, Examples, Tips and Tricks
- Topic: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API only
- Replies: 7
- Views: 4126
Re: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API
bitmapobject.bi, supplemental documentation Method: dlfile( sURL DLbuffer mode This is a combination of 2 methods to [down]load files (from internet, not local) that I've posted recently. This is an exposed method, one independent of LoadBmp() and LoadFont(). You can use it in mid-stream without aff...
- Apr 29, 2014 21:45
- Forum: Sources, Examples, Tips and Tricks
- Topic: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API only
- Replies: 7
- Views: 4126
Re: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API
Notes: RE: UNICODE support As-is, as posted, bitmapobject.bi will not support UNICODE. I believe that LoadFont() will support UNICODE if the 2 "as string" references in the declaration and the bitmapobject.LoadBmp() header are changed to "as wstring ptr", and then (of course) wst...
- Apr 29, 2014 17:16
- Forum: Sources, Examples, Tips and Tricks
- Topic: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API only
- Replies: 7
- Views: 4126
Re: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API
bitmapobject documentation [partial] Method: LoadBmp( filename (local file or http: URL) Dont Create Gfx Scrn (1=TRUE, default is 0 = Create Gfx Scrn) x axis size (*) y axis size (*) Dont Auto-Resize bmp (1=TRUE, default is 0 = will auto-resize) The default is to load the bitmap and create a correct...
- Apr 29, 2014 17:14
- Forum: Sources, Examples, Tips and Tricks
- Topic: Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API only
- Replies: 7
- Views: 4126
Win: Use arbitrary fonts & load GIF/JPG/PNG to gfx, API only
[Windows-only, Win2k and newer.] [Need "bitmapobject.bi", included below, or next post if not enough space here.] [ Notes, CREDITS, and another example in 3rd post, below. ] This relatively-small and relatively easy to use object will load these 24/32bit bitmap types: BMP/GIF/JPEG/EXIF/PNG...
- Mar 25, 2014 1:09
- Forum: Sources, Examples, Tips and Tricks
- Topic: Windows print to console, with GFX screen
- Replies: 1
- Views: 1288
Re: Windows print to console, with GFX screen
consolePrint functions. These are fb-equivalent functions: fbEquiv print ConsolePrint (has params) locate ConsoleLocate (has params) locate ConsoleCursor (has params) color ConsoleColor (has params) cls ConsoleCls () These are non-fb add-on functions: ConsoleTitle (has param) ConsoleMove (has params...
- Mar 25, 2014 0:56
- Forum: Sources, Examples, Tips and Tricks
- Topic: Windows print to console, with GFX screen
- Replies: 1
- Views: 1288
Windows print to console, with GFX screen
What to do... You have a GFX program compiled "-s console". There's that pretty (?) console hanging out there but no "pretty" way to use it. At best you can write to it using "Open Cons, but that's limited. You can't change the text color, can't use locate() to position your...
- Mar 23, 2014 0:48
- Forum: General
- Topic: Error with 'Open "con.txt" For'
- Replies: 3
- Views: 581
Re: Error with 'Open "con.txt" For'
@anonymous1337 You aren't old enough to know that this was a problem in DOS. I'm old enough to have forgotten (albeit, I would have thought that this wouldn't be a problem in modern Windows). You are old enough (barely) to know how to use Google. Keep it up. By my count you have another 999 question...