943,177 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 3778
  • C# RSS
Jan 24th, 2008
0

C# DLL's

Expand Post »
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?
Similar Threads
Reputation Points: 17
Solved Threads: 0
Junior Poster
complete is offline Offline
147 posts
since Dec 2005
Jan 25th, 2008
0

Re: C# DLL's

try including it i the references.....

let me know
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ujwaliyer is offline Offline
14 posts
since Jan 2008
Jan 31st, 2008
0

Re: C# DLL's

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?
Reputation Points: 17
Solved Threads: 0
Junior Poster
complete is offline Offline
147 posts
since Dec 2005
Feb 1st, 2008
0

Re: C# DLL's

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ujwaliyer is offline Offline
14 posts
since Jan 2008
Feb 1st, 2008
0

Re: C# DLL's

what's the type of DLL, managed or unmanaged?
Featured Poster
Reputation Points: 480
Solved Threads: 276
Postaholic
Ramy Mahrous is offline Offline
2,189 posts
since Aug 2006
10 Days Ago
-1

Kostenlose PDF-Bücher

BookGrill - download kostenlose Bücher
http://bookgrill.com/?geter.html
Kostenlose PDF-Bücher
Reputation Points: 10
Solved Threads: 0
Newbie Poster
boiokgoy is offline Offline
1 posts
since Feb 2012
Message:
Previous Thread in C# Forum Timeline: Using JavaScript in a windows program
Next Thread in C# Forum Timeline: Conditional deployment





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC