Programming IP with C++ under DOS

Programming IP with C++ under DOS

Post by Hugo » Sun, 05 Feb 2006 05:04:41


Hi Y'All...


I really need your help!! I've used this groups to learn and get me out

of troubles but this is my first time writing a subject.


My problem is that I need to make a C program that run in DOS and
comunicates to another program made in VB.Net 2005. I used Borland C++
5.02 but I not even sure if it would run in DOS.


So I need your help in two things:


1) Would run a program made in Borland C++ 5.02 under DOS?


2) And Most Important: I need some kind of guide to make a program that

uses IP in order to get comunicate with another program.


I'd appreciate your help since I'm in a rush at work


Thanks you so much...
 
 
 

Programming IP with C++ under DOS

Post by Bob Hairgr » Sun, 05 Feb 2006 05:24:46


Funny, I have a hard time imagining you saying the above sentences out
loud with a Texas accent ...


Isn't that (i.e. Borland C++ 5.02) a 16-bit compiler? I hope you
aren't using that "at work"...if it is, you're probably doomed to
failure.

<OT-rant-mode>
If your question is about C language, you need to ask in comp.lang.c,
not comp.lang.c++. They are not the same language, in case you didn't
know.

If your question is about VB.Net or DOS, you need to ask in one of the
Microsoft groups ... it's off-topic to discuss platform-specific
operating systems and non-C++ programming languages in this group.

If your question is about Borland, you need to ask in one of the
Borland groups.
</OT-rant-mode>


So where is your C++ question??


Who knows? Probably ... but what you can do with it WRT interaction
with other processes depends on the OS as well as the version. Again,
this has nothing to do with C++.


Again, there is no built-in support for IP (whatever you think that
might be) in C++. You'll need to use third-party libraries for that,
and they might not be portable across platforms.


Much obliged, y'all hear now? <g>

Bob Hairgrove
XXXX@XXXXX.COM

 
 
 

Programming IP with C++ under DOS

Post by JH Trauntv » Sun, 05 Feb 2006 11:59:10


As I recall, BC 5.02 still came with a 16 bit DOS compiler. You'll
have to consult your compiler documentation regarding its use.


I faced a similar problem about two years ago. I was unable to locate
any API that would allow a dos-on-windows application to use the
sockets API. What I did find was that the dos app could open named
pipes as regular files. I wound up creating a server that offered two
named pipes (one for reading and one for writing) and this server
managed the sockets API for the DOS app. This isn't something that I
would want to tackle from VB (.NET or otherwise).


Regards,

Jon Trauntvein
 
 
 

Programming IP with C++ under DOS

Post by Hugo » Wed, 08 Feb 2006 00:38:28

Thank's for your help Jon! I'll try that... I don't have many options
since my boss is who make the calls... Thank you so much...

And Bob I'm so sorry cause I made question "off topic" here...