Solved

C Pascal & winsock

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Insert filename column as column a 18 76
Excel Use VBA to get user's Mac Address for their computer 5 240
Build VS2015 project in bat command 3 93
Using MS Code on my Mac 6 68
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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