Click here to Skip to main content
15,899,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Encryption Pin
Giorgi Dalakishvili11-Aug-07 23:17
mentorGiorgi Dalakishvili11-Aug-07 23:17 
GeneralRe: Encryption Pin
Vipin.d17-Aug-07 21:06
Vipin.d17-Aug-07 21:06 
QuestionSlow String Arrays Pin
Expert Coming11-Aug-07 19:55
Expert Coming11-Aug-07 19:55 
AnswerRe: Slow String Arrays Pin
Michael Sync12-Aug-07 3:39
Michael Sync12-Aug-07 3:39 
AnswerRe: Slow String Arrays Pin
DavidNohejl12-Aug-07 4:16
DavidNohejl12-Aug-07 4:16 
AnswerRe: Slow String Arrays Pin
Luc Pattyn12-Aug-07 4:26
sitebuilderLuc Pattyn12-Aug-07 4:26 
AnswerRe: Slow String Arrays Pin
Colin Angus Mackay12-Aug-07 4:29
Colin Angus Mackay12-Aug-07 4:29 
Questiontif image file to binary format using C# Pin
Parvai11-Aug-07 19:54
Parvai11-Aug-07 19:54 
AnswerRe: tif image file to binary format using C# Pin
Expert Coming11-Aug-07 19:56
Expert Coming11-Aug-07 19:56 
QuestionCreating .msi file for A windows Service Application Pin
boneyds11-Aug-07 19:10
boneyds11-Aug-07 19:10 
QuestionURGENT!!! Folder security code needed Pin
aravinda77711-Aug-07 18:26
aravinda77711-Aug-07 18:26 
AnswerRe: URGENT!!! Folder security code needed Pin
Expert Coming11-Aug-07 19:58
Expert Coming11-Aug-07 19:58 
QuestionAsk for Windows application implement communication between many clients and one server Pin
liucaihua11-Aug-07 17:09
liucaihua11-Aug-07 17:09 
AnswerRe: Ask for Windows application implement communication between many clients and one server Pin
Ravi Bhavnani11-Aug-07 19:40
professionalRavi Bhavnani11-Aug-07 19:40 
Questionproblem to use thread.Abort() method. Pin
hdv21211-Aug-07 15:01
hdv21211-Aug-07 15:01 
AnswerRe: problem to use thread.Abort() method. Pin
Leslie Sanford11-Aug-07 15:29
Leslie Sanford11-Aug-07 15:29 
AnswerRe: problem to use thread.Abort() method. Pin
S. Senthil Kumar11-Aug-07 15:33
S. Senthil Kumar11-Aug-07 15:33 
QuestionGraphically rich menus (like Microsoft Word) Pin
Muhammad Nauman Yousuf11-Aug-07 12:26
Muhammad Nauman Yousuf11-Aug-07 12:26 
AnswerRe: Graphically rich menus (like Microsoft Word) Pin
Paul Conrad11-Aug-07 16:02
professionalPaul Conrad11-Aug-07 16:02 
AnswerRe: Graphically rich menus (like Microsoft Word) Pin
ekynox12-Aug-07 13:30
ekynox12-Aug-07 13:30 
QuestionUsing Orca to modify a user interface dialog. Pin
steve_rm11-Aug-07 12:08
steve_rm11-Aug-07 12:08 
QuestionAccessing a single class instance from external assemblies Pin
thg97111-Aug-07 10:27
thg97111-Aug-07 10:27 
Hello,

I load dynamically an external class library compiled as a .dll file, using this kind of code:

Assembly classLibrary1 = null;
using (FileStream fs = File.Open(path, FileMode.Open))
{
using (MemoryStream ms = new MemoryStream())
{
//... (Read file byte per byte and store it to memorystream)
classLibrary1 = Assembly.Load(ms.ToArray());
}
}
foreach (Type type in classLibrary1.GetExportedTypes())
{
if (type.GetInterface("IPClass") != null)
return Activator.CreateInstance(type) as IPClass;
}


I would like these objects (created from an external assembly) to have access to a single instance of an object I previously created (in the project that loads external classes).

For example:
The static class 'Hello' in my main project has to be accessed by the loaded classes. But only to the 'Hello' instance of the main projet (what I can't apparently do when using class from external assemblies)

Somebody knows how to deal with this issue?

Thank you,
Thomas
AnswerRe: Accessing a single class instance from external assemblies Pin
S. Senthil Kumar11-Aug-07 15:39
S. Senthil Kumar11-Aug-07 15:39 
QuestionSimple Q about multidimension array .. plz Help Pin
legend_of_zanado11-Aug-07 9:07
legend_of_zanado11-Aug-07 9:07 
AnswerRe: Simple Q about multidimension array .. plz Help Pin
ScottM111-Aug-07 10:47
ScottM111-Aug-07 10:47 

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.