Solved

C Pascal & winsock

Posted on 1997-08-05
1
378 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
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

679 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