Programming IP with C++ under DOS

H

Hugo

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´m 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...
 
B

Bob Hairgrove

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.

Funny, I have a hard time imagining you saying the above sentences out
loud with a Texas accent ...
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´m not even sure if it would run in DOS.

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.
So I need your help in two things:

So where is your C++ question??
1) Would run a program made in Borland C++ 5.02 under DOS?

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++.
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.

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.
I'd appreciate your help since I'm in a rush at work
Thanks you so much...

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

JH Trauntvein

Hugo said:
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´m 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?


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.
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 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
 
H

Hugo

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,490
Latest member
Finplus

Latest Threads

Top