Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
I have a project (eg. xyz) when I build this project (debug mode) it’s create a .dll (e.g. abc.dll). Source code is written in C language.

This dll (abc.dll) contains some function. I have to use those functions.


Now I have to make a project (that give me executable) in visual studio 2008, using that dll (abc.dll), and write some code that call the function from that dll.


Can you please suggest us? I am very beginner. Please give me step by step, so that I am able to do it.


** which project I have to create, in visual studio there are many option for creating a project, I have to make a project which gives me executable.


I have done a lot in Google but not able to get the solution.

I am a java developer, but in one of the project I have to do this task.

thanks :)
Posted
Updated 4-Mar-10 23:03pm
v2

I would open the dll[^] to observe its content firstly :)
 
Share this answer
 
You need to buy a book and read it!

For now:
1. Create a project
2. Add reference of this abc.dll to your project
3. Now using the abc.dll method (with full namespace), use it! (Can avoid full namespace by puttin the using directive of the dll class)
 
Share this answer
 
so try this :
create a new project C# for example
in solution explorer window you can see your project ;
Right click on your project and click > Add reference...
select the brows tab in reference window ,so here you can select your
*.dll file and add it to your ref.ok?
now you how you wanna use that :

in your form code behind(you can Rclick your form and select view code or
click on your form design (Form1.cs[Design]) and press f7).

you must instance your class like this:
mydllclass  ob=new  mydllclass();
ob.  //when you type your object it gives you your classes that is written                      //     in the dll file)
:thumbsup:
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900