Click here to Skip to main content
15,902,447 members
Home / Discussions / C#
   

C#

 
Questionhow can i minimize my program i the sytem try ? Pin
ariyanna9-Apr-09 0:09
ariyanna9-Apr-09 0:09 
AnswerRe: how can i minimize my program i the sytem try ? Pin
DaveyM699-Apr-09 0:15
professionalDaveyM699-Apr-09 0:15 
AnswerRe: how can i minimize my program i the sytem try ? Pin
Giorgi Dalakishvili9-Apr-09 0:16
mentorGiorgi Dalakishvili9-Apr-09 0:16 
AnswerRe: how can i minimize my program i the sytem try ? Pin
jaypatel5129-Apr-09 20:46
jaypatel5129-Apr-09 20:46 
QuestionCreate dll Pin
Trih8-Apr-09 23:55
Trih8-Apr-09 23:55 
AnswerRe: Create dll Pin
stancrm9-Apr-09 0:08
stancrm9-Apr-09 0:08 
AnswerRe: Create dll Pin
Giorgi Dalakishvili9-Apr-09 0:08
mentorGiorgi Dalakishvili9-Apr-09 0:08 
AnswerRe: Create dll Pin
dojohansen9-Apr-09 0:34
dojohansen9-Apr-09 0:34 
First of all, I think the previous poster is correct - DllImport is definitely meant for unmanaged libraries, like the Windows APIs, and not managed (.net) ones like yours. I can't say for sure that it cannot be used with managed assemblies, but I doubt it - there are better ways to do this you see.

That having been said, your DLL does not have any entry points! Entry points are necessarily static, and your library only contains a class with an instance method.

If you wanted to "convert" the program to a DLL in order to make it available to non-.NET clients there is presumably a way, but I don't know what it is (Google is your friend though).

If you just want to use the assembly in other .net applications, the simplest is of course to just add a reference to it. But if you want to load assemblies dynamically (this can be useful for things like a plug-in architecture) you should have a look at the Assembly class and in particular the Load() method. There's lots of goodies here and you can easily do things like discover all classes that implement certain interfaces or derive from particular classes. Smile | :)
QuestionStop while loop Pin
yesu prakash8-Apr-09 23:54
yesu prakash8-Apr-09 23:54 
AnswerRe: Stop while loop Pin
stancrm9-Apr-09 0:07
stancrm9-Apr-09 0:07 
GeneralRe: Stop while loop Pin
yesu prakash9-Apr-09 0:24
yesu prakash9-Apr-09 0:24 
GeneralRe: Stop while loop Pin
dojohansen9-Apr-09 0:49
dojohansen9-Apr-09 0:49 
AnswerRe: Stop while loop Pin
Dino Mulahusic9-Apr-09 0:11
professionalDino Mulahusic9-Apr-09 0:11 
AnswerRe: Stop while loop Pin
Rob Philpott9-Apr-09 0:16
Rob Philpott9-Apr-09 0:16 
GeneralRe: Stop while loop Pin
yesu prakash9-Apr-09 0:19
yesu prakash9-Apr-09 0:19 
GeneralRe: Stop while loop Pin
Rob Philpott9-Apr-09 0:26
Rob Philpott9-Apr-09 0:26 
GeneralRe: Stop while loop Pin
Deresen9-Apr-09 2:57
Deresen9-Apr-09 2:57 
GeneralRe: Stop while loop Pin
Rob Philpott9-Apr-09 3:10
Rob Philpott9-Apr-09 3:10 
GeneralRe: Stop while loop Pin
Deresen9-Apr-09 3:16
Deresen9-Apr-09 3:16 
Questionreading excel contents Pin
mist_psycho8-Apr-09 23:30
mist_psycho8-Apr-09 23:30 
AnswerRe: reading excel contents Pin
Rob Philpott9-Apr-09 0:54
Rob Philpott9-Apr-09 0:54 
QuestionGeneric method: Cast an object to a return type T Pin
Spunky Coder8-Apr-09 23:26
Spunky Coder8-Apr-09 23:26 
AnswerRe: Generic method: Cast an object to a return type T Pin
0x3c08-Apr-09 23:37
0x3c08-Apr-09 23:37 
GeneralRe: Generic method: Cast an object to a return type T Pin
_groo_8-Apr-09 23:49
_groo_8-Apr-09 23:49 
GeneralRe: Generic method: Cast an object to a return type T Pin
Spunky Coder8-Apr-09 23:51
Spunky Coder8-Apr-09 23:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.