Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 2:02
CillyMe11-Nov-03 2:02 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 2:50
CillyMe11-Nov-03 2:50 
GeneralRe: Is MS Access transaction-aware? Pin
Hesham Amin11-Nov-03 7:44
Hesham Amin11-Nov-03 7:44 
GeneralRe: Is MS Access transaction-aware? Pin
CillyMe11-Nov-03 16:47
CillyMe11-Nov-03 16:47 
GeneralBuilding Objects with Reflection Pin
Dennis Klein10-Nov-03 22:49
Dennis Klein10-Nov-03 22:49 
GeneralRe: Building Objects with Reflection Pin
Heath Stewart11-Nov-03 3:32
protectorHeath Stewart11-Nov-03 3:32 
GeneralRe: Building Objects with Reflection Pin
Dennis Klein11-Nov-03 22:12
Dennis Klein11-Nov-03 22:12 
GeneralRe: Building Objects with Reflection Pin
Heath Stewart12-Nov-03 2:39
protectorHeath Stewart12-Nov-03 2:39 
Stux wrote:
If I try to get a System.Int32 or something else in the System assembly it works fine.

Actually, those types are in the mscorlib.dll assembly, the implicit library that is always included.

Stux wrote:
What's my mistake ?

Good question. t3 is the correct code. Unless something is in the mscorlib.dll assembly (which is why I mentioned that above) or in the currently loaded assembly, you must give an assembly name like you did there. Everything looks right, though. Type.GetType will load the assembly in which the Type is contained if it isn't already. And you don't have to include a reference to it in your project if you plan on using Reflection. The BCL assemblies are in the GAC (at least they should be, open the folder \Windows\assembly and verify) which is alway checked after private paths (like the bin directory in ASP.NET) or assembly binding redirections in the .config file.

The only other thing I can think of that you could do is use the fully-qualified the type name, i.e. "System.Drawing.Size, System.Drawing, Culture=neutral, Version=1.0.3300.0, PublicKeyToken=b03f5f7f11d50a3a" (for .NET 1.0), although I've never had to do this on my work machine - but I only have one framework currently installed. Do you, by chance, have both .NET 1.0 and 1.1 installed?

Anyway, try using the FQN (fully-qualified name) and see if that works. Other than that, you're doing it right.

 

-----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: Building Objects with Reflection Pin
Dennis Klein12-Nov-03 3:25
Dennis Klein12-Nov-03 3:25 
Generalcommunicate with service Pin
Member 67650610-Nov-03 22:45
Member 67650610-Nov-03 22:45 
GeneralRe: communicate with service Pin
Arjan Einbu10-Nov-03 23:03
Arjan Einbu10-Nov-03 23:03 
GeneralCOM+ application load balancing Pin
CillyMe10-Nov-03 20:34
CillyMe10-Nov-03 20:34 
GeneralLoading data to string variable Pin
Rostrox10-Nov-03 19:19
Rostrox10-Nov-03 19:19 
GeneralRe: Loading data to string variable Pin
Corinna John10-Nov-03 19:47
Corinna John10-Nov-03 19:47 
GeneralRe: Loading data to string variable Pin
Jeff Varszegi11-Nov-03 4:54
professionalJeff Varszegi11-Nov-03 4:54 
GeneralRe: Loading data to string variable Pin
Jeff Varszegi11-Nov-03 6:04
professionalJeff Varszegi11-Nov-03 6:04 
GeneralControl/Class Existence Pin
Anonymous10-Nov-03 17:47
Anonymous10-Nov-03 17:47 
GeneralRe: Control/Class Existence Pin
Heath Stewart11-Nov-03 3:36
protectorHeath Stewart11-Nov-03 3:36 
GeneralRe: Control/Class Existence Pin
Bhangorix11-Nov-03 23:55
Bhangorix11-Nov-03 23:55 
GeneralRe: Control/Class Existence Pin
Heath Stewart12-Nov-03 2:57
protectorHeath Stewart12-Nov-03 2:57 
GeneralRe: Control/Class Existence Pin
Bhangorix16-Nov-03 19:12
Bhangorix16-Nov-03 19:12 
GeneralConverting an Image to an Icon Pin
Adam Turner10-Nov-03 13:47
Adam Turner10-Nov-03 13:47 
GeneralRe: Converting an Image to an Icon Pin
Corinna John10-Nov-03 19:54
Corinna John10-Nov-03 19:54 
GeneralNew Line in CF textbox Pin
gadgetfbi10-Nov-03 13:01
gadgetfbi10-Nov-03 13:01 
GeneralRe: New Line in CF textbox Pin
MultiThread10-Nov-03 16:54
MultiThread10-Nov-03 16:54 

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.