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
Solved

32bit DLL problem in Borland C++ 4.5

Posted on 1997-02-27
1
269 Views
Last Modified: 2012-06-27
hello,
I have developed a 32 bit dll under Borland 4.5. The name of the DLL is "samp.dll" under WINDOWS 95 operating system.

When this DLL is used by single 32bit exe(Appln developed in Delphi 2.0) file it works fine but when I try run the 32 bit exe again(with the first copy already running)  I get a MessageBox with a Message as Follows:
"Cannot run multiple instances of a DLL under WIN32s" and when Ipress the ok button, I get another MessageBox with the following Message:
"The samp.dll file cannot start.Check the file to determine the problem".

Also If I run other 32bit exe file which uses the "samp.dll",I get the same message as above.

The purpose of a DLL should be to allow  multiple Applications to access the DLL not the other way !!!!

I would like to have a solution for the above problem ASAP.!!!

If this is a problem with Borland ver 4.5 then should I have to go forBorland Ver 5.0 ????????

thanks
senthil
K. SENTHIL KUMAR
Netherlands
senthil.kumar@rcc.nl
0
Comment
Question by:senthil-k
1 Comment
 
LVL 3

Accepted Solution

by:
os012897 earned 200 total points
ID: 1162003
Make sure you linked against the multi-thread aware runtime-
libraries!!

Regards,

       os

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

839 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