Search found 62 matches

by hippy
Nov 13, 2005 2:05
Forum: Hardware Interfaces / Communication
Topic: Serial Port - Send Break ?
Replies: 3
Views: 2678

OUT may be potentially possible, but looking at the run-time library source ( not that I really understand it ) it appears to be able to use any serial port windows thinks it has, not just motherboard hardware, and that includes virtual serial ports ( Com:->TCP/IP, Com:->USB, Com:-> IrDA ) where the...
by hippy
Nov 12, 2005 19:18
Forum: Hardware Interfaces / Communication
Topic: Serial Port - Send Break ?
Replies: 3
Views: 2678

Serial Port - Send Break ?

Is there a way to send a 'Break' to a serial port opened with OPEN COM "..." ?

I'm trying to talk to a microcontroller which needs to receive a Break before it will do any communicating.

Other than that, serial port handling is %&%£$ marvellous. Many thanks for implementing it.
by hippy
Nov 12, 2005 17:16
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

Many thanks v1ctor; some pain involved but not as much as I was expecting. Latest version uploaded compiles using 0.14 or 0.15 compiler/libraries. A couple of warnings under 0.15 and some functionality temporarily lost, but other than that it's progressing well. Timer control added, controls can be ...
by hippy
Nov 12, 2005 5:15
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

I've probably mangled things up. I installed 0.14 ( bundled installer .EXE with FBide ) and then slapped the 0.15 compiler ( .ZIP ) from SourceForge over the top, so not sure what mess I've created for myself. Where and how does one get the 0.15 headers ? I couldn't find any specific download on the...
by hippy
Nov 11, 2005 22:34
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

Well, I've got the basics working, but I've now hit that wall of having to learn the API ( SendMessage ) stuff which this is designed to avoid having to use ;-) Menus and Control Groups ( invisible Frames ) are the significant additions. Notably lacking is the ability to move or resize controls, ena...
by hippy
Nov 11, 2005 4:43
Forum: Beginners
Topic: File Attributes
Replies: 10
Views: 3175

Open the file and use the LOF(fileHandle) function.
by hippy
Nov 10, 2005 22:01
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

Ok; my first ever hand-crafted FreeBASIC program so I expect there to be some subtle buggettes hiding in there and the code could undouvbtedly be improved upon, but it seems to run okay on my PC, Win98SE and WinXP ... http://homepage.ntlworld.com/the.happy.hippy/freebas/winguifb.bas ( 100KB ) Commen...
by hippy
Nov 10, 2005 13:09
Forum: Beginners
Topic: easy GUI?
Replies: 13
Views: 2937

Im working on something simple like that at present but it could be a while before it's done as I've only just got into FB, but it is something I want for myself as well. All the API's and program initialisation is tucked in an include file, and the 'main program' has a single HandleEvent sub and ge...
by hippy
Nov 10, 2005 7:07
Forum: Beginners
Topic: File Attributes
Replies: 10
Views: 3175

File Attributes

Is there any intrinsic FB way to read the attributes of a named file and to set them ?

PowerBasic (MS-DOS) has the "Attrib" Function/Statement ...

' Set Archive Bit
fileAttrib% = Attrib("C:\MyFile.Txt")
Attrib "C:\MyFile.Txt", fileAttrib% OR 32
by hippy
Nov 10, 2005 7:06
Forum: Beginners
Topic: File Attributes
Replies: 0
Views: 539

File Attributes

Is there any intrinsic FB way to read the attributes of a named file and to set them ?

PowerBasic (MS-DOS) has the "Attrib" Function/Statement ...

' Set Archive Bit
fileAttrib% = Attrib("C:\MyFile.Txt")
Attrib "C:\MyFile.Txt", fileAttrib% OR 32
by hippy
Nov 07, 2005 3:45
Forum: General
Topic: Command$ - Feature Request
Replies: 9
Views: 1788

In Windows it would just a call to GetCommandLine D'Oh ! Many thanks for pointing out what is obvious in hindsight. It was only Win32 I was really concerned with; Linux isn't a problem where the globbing behaviour would be expected. #INCLUDE "win\kernel32.bi" Function MyCommand() ...
by hippy
Nov 06, 2005 14:43
Forum: General
Topic: Command$ - Feature Request
Replies: 9
Views: 1788

Don't know if it's worth the effort to do command line splitting ourselves because FB/DOS, FB/Win32 and FB/Linux behave the same way now and we had to rewrite all those command line stuff for all platforms. I can appreciate that. I don't know what FB's policy is on differences in functionality in t...
by hippy
Nov 06, 2005 14:02
Forum: General
Topic: Command$ - Feature Request
Replies: 9
Views: 1788

Another solution would be to not glob on any command line argument starting with / in an application compiled for Win32, and only do the globbing on \ which is the standard MS-DOS/Win32 filename separator. It currently treats both as filename separators.
by hippy
Nov 06, 2005 13:46
Forum: General
Topic: Command$ - Feature Request
Replies: 9
Views: 1788

Re: Command$ - Feature Request

FB doesn't do this kind of replacement. Simply don't use bash (which does this replacement) I'm using the MS-DOS command line under Win98SE, so there's no bash in sight. MS-DOS doesn't do that replacement in any other app I've ever written, so I can only assume it is done by FB or one of the runtim...
by hippy
Nov 06, 2005 4:31
Forum: General
Topic: Command$ - Feature Request
Replies: 9
Views: 1788

Command$ - Feature Request

FB Version 0.15 Win32 .EXE's 'glob' the command line to create a list of matching filenames which is then returned by Command$. Unfortunately this means that /? ( the defacto MS-DOS / Windows Command Line 'Help' switch ) expands to a list of matching one character filenames found in the current disk...

Go to advanced search