473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Calling DLL written in C++

Hi,

I had written an application and few DLLs in VC++ before. Now I have
switched to .NET platform to compile. Then odd thing happens: the application
can be started and run as before on machines installed VS.NET
But on mahines without VS.NET, the app started but when it called a funcion
insdide the DLL, nothing appeared (there should be a dialog coming up if
successful).

Can anyone help me how to fix this? Is it because the C++ DLL is considered
as unmanaged code and the Framework can't run it? How come it can be run with
VS.NET installed? Both machines have the Framework 1.1 installed.

Thanks in advance for your advice.
Dave
Jul 21 '05 #1
2 1216
Hi there... did you check if the requested dll is in the machine you're
running your app from? If it is, the path specified in the DllImport
attribute referencing your dll is correct? The dll you want to run has any
dependencies on other dlls if so those dlls exist in the machine?

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://ajhsis.net

"Dave.NET" <Da*****@discussions.microsoft.com> escribió en el mensaje
news:31**********************************@microsof t.com...
Hi,

I had written an application and few DLLs in VC++ before. Now I have
switched to .NET platform to compile. Then odd thing happens: the
application
can be started and run as before on machines installed VS.NET
But on mahines without VS.NET, the app started but when it called a
funcion
insdide the DLL, nothing appeared (there should be a dialog coming up if
successful).

Can anyone help me how to fix this? Is it because the C++ DLL is
considered
as unmanaged code and the Framework can't run it? How come it can be run
with
VS.NET installed? Both machines have the Framework 1.1 installed.

Thanks in advance for your advice.
Dave

Jul 21 '05 #2
Hi,

I've checked the request DLL is located in the machine without VS.NET
installed.
How can I check the path specified in the DllImport attribute referencing
the dll?

Dave

"Angel J. Hernández M." wrote:
Hi there... did you check if the requested dll is in the machine you're
running your app from? If it is, the path specified in the DllImport
attribute referencing your dll is correct? The dll you want to run has any
dependencies on other dlls if so those dlls exist in the machine?

Regards,
--
Angel J. Hernández M.
MCP - MCAD - MCSD - MCDBA
http://groups.msn.com/desarrolladoresmiranda
http://ajhsis.net


Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Chris | last post by:
Hi I have a scenario where I've created another AppDomain to dynamically load a DLL(s) into. In this newly loaded DLL I want to call a static method on a class. The problem arise is that I have...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
9
by: Angel | last post by:
Hi again, I'm trying to call functions from a proprietary DLL but it's turned out to be more difficult than I thought. I have this W32.DLL which was written in C by USPS. They don't provide the...
1
by: Jesse McGrew | last post by:
Hi all, I'm trying to make a plugin DLL for a third-party application, using VC++ .NET 2003. This DLL acts as a bridge between the C++ plugin API of the application, and my actual plugin code...
1
by: Lakshmi | last post by:
Hi All, I am having performance issues with the .NET client calling the Java Webservice running on axis. Have detailed the problem below. Please help. I wrote a webservice in Java. Lets name...
4
by: Michael | last post by:
Hello, I want to use an object (LowCut) within another object (SampleRateConverter) like it is written as follows: class SampleRateConverter { public: SampleRateConverter( int...
18
by: John Friedland | last post by:
My problem: I need to call (from C code) an arbitrary C library function, but I don't know until runtime what the function name is, how many parameters are required, and what the parameters are. I...
7
by: teju | last post by:
hi, i have a code written in c now merged with c++ code i mean i am calling c functions in c++ using extern "C" but now i want to use some objects declared and defined in c++ to be available in...
10
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.