473,503 Members | 5,284 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

use C dll in C# application, how make the application see the dll when setup?

1 New Member
Hi every body,
I created C dll (Dynamic-link library) using .Net to use C function in C# application , I used DLL Export in the C project (when creating the dll) in order to export its function, then I used DLL Import In C# project to use the C function..
To make the C# project see the dll’s functions I just put it in the Debug folder of the C# project, and it works properly. Now after finishing making the C# application, you know that I have to make the setup of the application to install it in the client PC, and here is the problem! how to make the application see the dll in the client PC, When I installed the application in the client PC and tried to run it, it made an error showing that the application couldn’t see the dll functions at all!!
You know that in his PC there will not be a debug folder, on the other hand C dll can’t be added to the C# project as a reference!!
Also C dll can’t be registered in the operating system with the instruction:
regsvr32
I tried the following:
- Put the dll file in the installation folder of the client PC (it didn’t work)
- Put the dll file in the system32 folder of windows (it didn’t work)
- Put the dll in the setup ad a content file to be set in the installation folder (it didn’t work)
So anybody can help me please ! How to make the program see the dll to use its functions in the Client PC?
Jul 24 '10 #1
1 2297
fastestindian
74 New Member
I think your main problem is how to get the Dll Address when install then u can write a script which would run while installing. Where it would create a folder where u can copy your dll.

Check if below link helps you or not..
http://www.c-sharpcorner.com/UploadF...tinVS.NET.aspx

Best of luck...
Jul 26 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1096
by: Julia | last post by:
Hi, I am looking for books about design patterns for server application.\distrubuted application I have an Adaptable multithreaded server which send and receive different type of messages...
6
20036
by: orekin | last post by:
Hi There I have been trying to come to grips with Application.Run(), Application.Exit() and the Message Pump and I would really appreciate some feedback on the following questions .. There are...
0
2503
by: forge | last post by:
Installing Merge Modules from C# Windows Form Application (not using a setup and deployment project) Hi, Currently, we have an InstallShield project that creates a setup.exe that only...
0
1095
by: Asif | last post by:
Hi all, I am working on an MDI application using VB.NET. Applications launches normally either from Program Files or Desktop shortcut but some times when it launches from Windows Explorer by...
1
2144
by: radix2 | last post by:
hello, anybody can help me to make application encryption(using AES 256 bit)+steganography(using LSB insertion technique)...thanks before..i really need help....
1
1046
by: Sylvie | last post by:
After copying application to somewhere, we must go IIS and make some settings by hand, how can I automatically setup web app's ?
3
2200
by: mrkcse | last post by:
I have developed on exe application using vb6.0 which includes crystal reports and I have used business object's crystal reports version XI while developing. Reports are working fine while running...
2
1949
by: zacks | last post by:
I have an application that stores its configuration file in the user's Local Application special folder in a subfolder COMPANYNAME \PRODUCTNAME. The application creates the file the first time the...
42
2007
by: lorlarz | last post by:
Contrary to what one authority in the JavaScript field says: JavaScript does make errors when dealing with just with integers. This authority (Douglas Crockford.) says: "integer arithmetic in...
2
4762
by: jake | last post by:
I am new to web development. I published a VS 2008 web page (default.aspx) file (along with its .cs file), using the "Publish Web Site" feature, to a Windows 2003 server that has all the .Net...
0
7070
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
7267
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,...
0
5566
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.