Click here to Skip to main content
15,908,909 members
Home / Discussions / C#
   

C#

 
GeneralRe: class diagram Pin
Ranjan Banerji3-Dec-02 2:09
Ranjan Banerji3-Dec-02 2:09 
GeneralRe: class diagram Pin
Michael P Butler3-Dec-02 3:30
Michael P Butler3-Dec-02 3:30 
GeneralRe: class diagram Pin
kaschimer3-Dec-02 4:11
kaschimer3-Dec-02 4:11 
GeneralRequest for adv C# tips & tricks Pin
ThaRudeDude2-Dec-02 20:58
ThaRudeDude2-Dec-02 20:58 
GeneralRe: Request for adv C# tips & tricks Pin
SimonS2-Dec-02 21:39
SimonS2-Dec-02 21:39 
GeneralLooping Problem. Pin
Steve McLenithan2-Dec-02 19:59
Steve McLenithan2-Dec-02 19:59 
GeneralRe: Looping Problem. Pin
Steve McLenithan2-Dec-02 20:01
Steve McLenithan2-Dec-02 20:01 
GeneralRe: Looping Problem. Pin
Daniel Turini2-Dec-02 22:14
Daniel Turini2-Dec-02 22:14 
GeneralRichTextBox Scrollbar Pin
ragear2-Dec-02 16:30
ragear2-Dec-02 16:30 
GeneralRe: RichTextBox Scrollbar Pin
leppie3-Dec-02 1:17
leppie3-Dec-02 1:17 
GeneralRe: RichTextBox Scrollbar Pin
ragear3-Dec-02 14:55
ragear3-Dec-02 14:55 
GeneralSome Bugs While Running C# Application On Win98 Pin
yccheok2-Dec-02 14:16
yccheok2-Dec-02 14:16 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Jeff J3-Dec-02 16:20
Jeff J3-Dec-02 16:20 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
yccheok3-Dec-02 16:43
yccheok3-Dec-02 16:43 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Nick Parker3-Dec-02 16:49
protectorNick Parker3-Dec-02 16:49 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
James T. Johnson3-Dec-02 16:59
James T. Johnson3-Dec-02 16:59 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Nick Parker3-Dec-02 18:17
protectorNick Parker3-Dec-02 18:17 
GeneralRe: Some Bugs While Running C# Application On Win98 Pin
Jeff J3-Dec-02 20:37
Jeff J3-Dec-02 20:37 
GeneralCom interop Pin
grv5752-Dec-02 14:07
grv5752-Dec-02 14:07 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 14:16
James T. Johnson2-Dec-02 14:16 
GeneralRe: Com interop Pin
grv5752-Dec-02 15:28
grv5752-Dec-02 15:28 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 15:38
James T. Johnson2-Dec-02 15:38 
GeneralRe: Com interop Pin
grv5752-Dec-02 16:14
grv5752-Dec-02 16:14 
GeneralRe: Com interop Pin
James T. Johnson2-Dec-02 16:41
James T. Johnson2-Dec-02 16:41 
grv575 wrote:
Well I don't see why it doesn't just *always* look in the current directory for the dll even if you are running a vb6 exe (I did copy the dll to the vb6 build dir).

It uses the same loading scheme that the framework uses when it goes to load a .NET assembly. Going from memory this means: Look in the GAC, look in the same directory as the executable, and finally look in the probing directories as specified in the configuration file (by default this is set to "bin\").

Using my current project (a C++ program using a custom .NET assembly via the CCW) as an example.

Test.exe -> C++ program
Managed.dll -> .NET assembly

Run regasm with /codebase on Managed.dll and I can place Test.exe in any directory with or without Managed.dll and it will run.

Run regasm without /codebase (after first /unregistering it). Now Managed.dll must reside in the same directory as Test.exe, but I can run Test.exe from any directory (ie place both in \test\ run from the commandline in \).

If you check out this thread[^] there are some comments about how loading works when using CCW'd components.

James

- out of order -
GeneralRe: Com interop Pin
grv5755-Dec-02 1:58
grv5755-Dec-02 1:58 

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.