Win32/DOS communication

This is a discussion on Win32/DOS communication within the Windows Programming forums, part of the Platform Specific Boards category; I am trying to get a win32 application to communicate with a dos application (dos not ms-dos) via piping information ...

  1. #1
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685

    Win32/DOS communication

    I am trying to get a win32 application to communicate with a dos application (dos not ms-dos) via piping information to one another through stdin and stdout. I have not actually been able to create a pipe between the two programs. I believe the problem may be due to the fact that the pipes created in the win32 application are even being interpreted by the dos app. In other words does CreatePipe() create a pipe that cannot be understood by dos?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Doubtful......

    Dos progs will make use of pipes internally, but the code doesnt know what a Win32Pipe is....so it would be tricky to say the least

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    I thought so...I'll take a different approach now. If the pipes had of worked correctly it could have saved so much time. I guess the plan was "too perfect" Thanks for the input Fordy.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    I'm only assuming mind......there may be a way, but I'm not aware....

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Well I'm sure it would be possible to make some sort of wrapper for the pipes but that is rather impractical. I did some digging and found a better route to obtaining my goal (without thunking). The QT_Thunk function. I'm sure it will get the job done nicely.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unkown Hang
    By Bladactania in forum C Programming
    Replies: 31
    Last Post: 04-22-2009, 10:33 AM
  2. Communication between programs?
    By johny145 in forum Windows Programming
    Replies: 3
    Last Post: 06-01-2005, 11:14 PM
  3. Looking for communication lib
    By BrownB in forum C Programming
    Replies: 3
    Last Post: 04-27-2005, 11:01 AM
  4. Serial communication packets
    By Roaring_Tiger in forum C Programming
    Replies: 3
    Last Post: 04-26-2003, 09:33 AM
  5. communication
    By in need of help in forum C Programming
    Replies: 3
    Last Post: 12-27-2002, 03:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21