Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

C Pascal & winsock

Posted on 1997-08-05
1
Medium Priority
?
387 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 150 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

715 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