Click here to Skip to main content
15,867,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM Interop Pin
Ungi.20-Jan-04 18:04
Ungi.20-Jan-04 18:04 
GeneralRe: COM Interop Pin
Heath Stewart21-Jan-04 3:42
protectorHeath Stewart21-Jan-04 3:42 
GeneralRe: COM Interop Pin
Ungi.21-Jan-04 20:23
Ungi.21-Jan-04 20:23 
GeneralGOT IT!!!! Pin
Ungi.28-Jan-04 2:14
Ungi.28-Jan-04 2:14 
Questionhow to avoid references Pin
Mephisto18720-Jan-04 3:44
Mephisto18720-Jan-04 3:44 
AnswerRe: how to avoid references Pin
Heath Stewart20-Jan-04 4:17
protectorHeath Stewart20-Jan-04 4:17 
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 4:54
Mephisto18720-Jan-04 4:54 
GeneralRe: how to avoid references Pin
Heath Stewart20-Jan-04 5:26
protectorHeath Stewart20-Jan-04 5:26 
What do you mean, "The studio can create references to any registered component on the system."? Your project needs to reference the assemblies required by your project, period. When you add components, the assemblies in which that component and its dependencies are defined are added automatically if they aren't added already, but only when you use the designer. If you manually type the code, it does not do this automatically. It's all because of the designer.

If you're talking about the assemblies that show up in the Add Reference dialog, you can add additional directories in which to search in the HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\Assembly folders key.

If you don't want to worry about where assemblies are located (even though VS.NET will copy assemblies to the application directory that aren't installed in the GAC), you can use gacutil.exe to add assemblies to the Global Assembly Cache (GAC), or drag-n-drop the assemblies into the %WINDIR%\assembly directory.

This is no different than any other language or platform, as I said before. In Java, the classes or JAR files have to be in the CLASSPATH when compiling or running the application (you can override the CLASSPATH on the command line, though). In Win32, libs must be linked in when compiling and the DLLs must either be in the application directory or in a directory in the PATH environment variable. In linux, the shared objects must be in a lib directory configured in the SO cache. With COM, a CLSID is used but that CLSID must be registered on the system, in which case the path to the file is specified in the registry, or a file can be referenced that is already in a PATH directory (though not recommended).

That's just how everything works. The only assembly that doesn't show up in the references is mscorlib.dll, which is implied by the compiler unless overridden (possible in the VS.NET 2003 C# project properties, or using the command-line compiler since .NET 1.0 (v1.0.3705)).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 22:12
Mephisto18720-Jan-04 22:12 
GeneralRe: how to avoid references Pin
Heath Stewart21-Jan-04 3:46
protectorHeath Stewart21-Jan-04 3:46 
GeneralRe: how to avoid references Pin
Mephisto18721-Jan-04 5:08
Mephisto18721-Jan-04 5:08 
AnswerRe: how to avoid references Pin
Jose Fco Bonnin20-Jan-04 5:30
Jose Fco Bonnin20-Jan-04 5:30 
GeneralRe: how to avoid references Pin
Jose Fco Bonnin20-Jan-04 6:01
Jose Fco Bonnin20-Jan-04 6:01 
GeneralRe: how to avoid references Pin
Mephisto18720-Jan-04 22:28
Mephisto18720-Jan-04 22:28 
GeneralRe: how to avoid references Pin
Heath Stewart21-Jan-04 3:24
protectorHeath Stewart21-Jan-04 3:24 
AnswerRe: how to avoid references Pin
Paul Evans20-Jan-04 22:56
Paul Evans20-Jan-04 22:56 
GeneralSTRING MANIPULATION Pin
POKRI20-Jan-04 3:31
POKRI20-Jan-04 3:31 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 3:46
Larry J. Siddens20-Jan-04 3:46 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 4:12
protectorHeath Stewart20-Jan-04 4:12 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 5:59
Larry J. Siddens20-Jan-04 5:59 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 6:05
protectorHeath Stewart20-Jan-04 6:05 
GeneralRe: STRING MANIPULATION Pin
Larry J. Siddens20-Jan-04 6:09
Larry J. Siddens20-Jan-04 6:09 
GeneralRe: STRING MANIPULATION Pin
Jose Fco Bonnin20-Jan-04 5:33
Jose Fco Bonnin20-Jan-04 5:33 
GeneralRe: STRING MANIPULATION Pin
Heath Stewart20-Jan-04 5:42
protectorHeath Stewart20-Jan-04 5:42 
GeneralRe: STRING MANIPULATION Pin
leppie20-Jan-04 6:23
leppie20-Jan-04 6:23 

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.