Solved

C Pascal & winsock

Posted on 1997-08-05
1
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
davmarc earned 50 total points
ID: 1403020
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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 …
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

710 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