![]() "Who General Failure? and Why is he reading my disk drive?" RE: Peek and Poke chiph (Programmer) 13 Jul 00 10:04 Using APIs is very complex and you must learn a lot before you can start. It provides a list of all the functions that come with Windows, converted for VB. If you are interested in accessing a device, do a search for a file on your computer called Win32API.txt. They're called APIs and they are what is contained in DLL files. There are is a collection of functions that are provided with Windows to do everything Windows does. Now, you could access the device with old dos interrupts and it maybe even work, but not with VB. They have purposely removed that ability to save guard the code of a program. In VB nothing exists to access memory directly. With C it maybe seem like you do ,but it does tricks to hide when it moves memory. Windows will not let you access the memory directly. Now you are creating a multitasking, GUI application and the world is different. When you were programming in GWbasic it was in DOS and you had an app that had complete control over the processor. I'm sorry, but you do know that your not using KeyOn, Troff or Tron any more. Also, take a look at the 'Comm' Control (active x control) that ships with VB, if you can manage with 9 pins instead of 25, it'll most likely work for you.Īnd alt255, belive me, many VB programmers don't find this kind of thing the least bit difficult or complex to Peek and Poke Alt255 (Programmer) 13 Jul 00 06:10 The whole communications thing in MS Windows is so 'sticky' that I'd look to a third party C Communications libraries for windows before I even started such a project. You might be able to apply a DLL written in c or cpp. If you are creating software that is using a 25 pin serial connection and a UART chip that uses pins numbered above 9 (incidently pin 18 is 'unassigned' on the standard 25 pin adapter) then 'C' and Assembler are the language for you. Not so with VB.Īlso, pin 18 and 19 are not part of the 9 pin interface that has been standard on practically all PC's for quite some time now, further the 8250 and the (16550)UART chip (the standard communications chip installed in PC's for quite a few years) only uses pins 1 through 9. I believe you when you mention basica's 'peek & poke' functions which tell me that the language is equipted for low level programming. Actually, you'd always get the best result (as I recall) writing any serious serial communications program in C or assembler or a mix of both.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |