954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

C# DLL's

I thought that my problem was how I was declaring a manifest file.
But now I think I can safely rule this out.

I think the probem lies in the way I am loading the DLL/COM object
that the manifest file references.

The program runs -- sort of. After I embed the manifest file into
the executable. I just cannot step through the code in debug mode.

So I put the manifest file into the list of files that the IDE had
to reference. And then I noticed a big change. Then the executable
that I produced had an error message (that I could ignore and continue
running the program, if I choose to) that said the probem was
with the way I was loading the COM object.

How do I load a DLL into a GUI front-end written in C#. Where
should I look for possible problems?

complete
Junior Poster
153 posts since Dec 2005
Reputation Points: 17
Solved Threads: 0
 

try including it i the references.....

let me know

ujwaliyer
Newbie Poster
15 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

That did not work.

Maybe there is a problem with the way I am using the DLL. How do I simply add a DLL to a project and expose its methods? All I am doing is this so far. I have added the DLL to the Solutions Explorer as a Reference. Then, in the C Sharp file where I make the function call, I list the DLL at the top of the file as one of the "using" types. That seems to be all that is done in the code. What more do I need?

complete
Junior Poster
153 posts since Dec 2005
Reputation Points: 17
Solved Threads: 0
 

i dont think u need anything more......

1) include the reference
2) put it in the using clause

try creating a whole new project with only that ref included

& then try using it.

ujwaliyer
Newbie Poster
15 posts since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

what's the type of DLL, managed or unmanaged?

Ramy Mahrous
Postaholic
2,196 posts since Aug 2006
Reputation Points: 480
Solved Threads: 276
 

BookGrill - download kostenlose Bücher
http://bookgrill.com/?geter.html
Kostenlose PDF-Bücher

boiokgoy
Newbie Poster
1 post since Feb 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You