Solved

C Pascal & winsock

Posted on 1997-08-05
1
371 Views
Last Modified: 2013-12-03

I have  old programms, written in C (MSC5) and Pascal (MSPascal 4) and using TCP/IP libraries of Novell Lan Work Place.
My programms run well with MSDOS and in a MsDos window 3.1, using the LWP TCP/IP stack.

I try to make my programms run with with windows95.

I downlowded several winsock libraries, linked my programs with, and I have, evry time, the message
"This program cannot be run in DOS mode"
Can any body help me to resolv this?

Thanks

0
Comment
Question by:gabsi
1 Comment
 
LVL 4

Accepted Solution

by:
davmarc earned 50 total points
Comment Utility
Seems like you took your old "networked DOS" programs, compiled your app as a Win95 program (with new WinSock libraries), and tried to run it under a DOS environment.

If you use Windows libraries (network APIs are no exception) you absolutely need to run your programs under the corresponding Windows environment, DOS 7.x nor DOS-boxes in Win95 are acceptable. The message you get is generated by a stub .exe executed by Windows programs run under DOS.

My advice is to recompile your app a Win32 console app. This allows you to keep a DOS-like interface and program structure while fully integrating in the Windows environment.

Davide Marcato.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now