Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bulk operations with Long binary. HELP Pin
l a u r e n5-Mar-01 4:33
l a u r e n5-Mar-01 4:33 
GeneralRe: Bulk operations with Long binary. HELP Pin
Alex Barzovski5-Mar-01 13:16
Alex Barzovski5-Mar-01 13:16 
GeneralRe: Bulk operations with Long binary. HELP Pin
Alex Barzovski5-Mar-01 13:17
Alex Barzovski5-Mar-01 13:17 
GeneralWindows Driver Development Pin
.::RockNix::.5-Mar-01 0:03
.::RockNix::.5-Mar-01 0:03 
GeneralRe: Windows Driver Development Pin
l a u r e n5-Mar-01 2:41
l a u r e n5-Mar-01 2:41 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 3:12
MickAB5-Mar-01 3:12 
GeneralRe: Windows Driver Development Pin
.::RockNix::.5-Mar-01 4:37
.::RockNix::.5-Mar-01 4:37 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 5:57
MickAB5-Mar-01 5:57 
Ahh, much clearer.

First off, to read and write to the serial port under Windows 98 & 2000 is not too difficult, just use the relevant Win32 API calls.

(CreateFile() with the correct parameters to open the device, then take it from there. Plenty of info on sequential and overlapped IO, etc. in the MSDN)

It sounds like you actually want your driver to appear as some kind of generic midi device and internally route midi commands via the serial port? (Or am I barking up the wrong tree?)
I imagine this requires a bit of registry jiggery-pokery to have your app. appear in the driver list. Not sure if this is possible with a pure user-mode driver, I'm not that au-fait with the user-mode part of WDM under Win2k/98 yet.

My development advice is to get the serial port access down pat first, then migrate it to some kind of 'virtual device' driver later (No I *didn't* mean a VxD in case anyone reading this was about to flame me).

As for the different modes (user mode or kernel), the difference is that kernel mode drivers can use privileged processor instructions (IO read and writes for example) and can therefore access hardware directly. User mode drivers need to go via a kernel mode (or other user-mode) driver to access hardware.
There are other differences of course, but you need to read the books I mentioned in the first post for more detail.

The book you mentioned, nope, sorry but I haven't heard of it.

If I'm right about what I *think* your asking about (see comment above, 'barking up the wrong tree' Wink | ;) ) then the books I mentioned are not the ones you want right now. If you need info on serial communications under windows, use the MSDN.
Can't remember if there's anything on the topic in Petzold(not likely) or Richter(maybe).
Richter goes into overlapped and sequential IO and threading issues, but I'm not sure if he specifically looks at the serial port.

Hope this helps Cool | :cool:
GeneralRe: Windows Driver Development Pin
.::RockNix::.5-Mar-01 21:29
.::RockNix::.5-Mar-01 21:29 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 1:17
MickAB6-Mar-01 1:17 
GeneralRe: Windows Driver Development Pin
.::RockNix::.6-Mar-01 4:31
.::RockNix::.6-Mar-01 4:31 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 5:50
MickAB6-Mar-01 5:50 
GeneralRe: Windows Driver Development Pin
.::RockNix::.6-Mar-01 21:35
.::RockNix::.6-Mar-01 21:35 
GeneralRe: Windows Driver Development Pin
MickAB6-Mar-01 23:42
MickAB6-Mar-01 23:42 
GeneralRe: Windows Driver Development Pin
Joe Moldovan5-Mar-01 7:10
Joe Moldovan5-Mar-01 7:10 
GeneralRe: Windows Driver Development Pin
MickAB5-Mar-01 3:12
MickAB5-Mar-01 3:12 
GeneralHelp needed with PropertySheet Pin
4-Mar-01 23:36
suss4-Mar-01 23:36 
GeneralSetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 20:07
suss4-Mar-01 20:07 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
4-Mar-01 22:56
suss4-Mar-01 22:56 
GeneralRe: SetProcessWorkingSetSize and Memory Locking Pin
5-Mar-01 1:49
suss5-Mar-01 1:49 
GeneralGlobal variable ... Pin
Hadi Rezaee4-Mar-01 18:15
Hadi Rezaee4-Mar-01 18:15 
GeneralWriting VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 16:16
suss4-Mar-01 16:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
l a u r e n4-Mar-01 20:40
l a u r e n4-Mar-01 20:40 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:16
suss4-Mar-01 22:16 
GeneralRe: Writing VC++ dll to work with Delphi 5? Help Please!! Pin
4-Mar-01 22:17
suss4-Mar-01 22:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.