Hi, After I have read several articles on msdn and other tech sites, I am now bogged now with a doubt. Is CTS a specification checked by CLR or a component in CLR? I read all about the goals of CTS. But inside the .NET framework how it is placed? Is it defined as a set of rules inside CLR, hence can I take it is a component ? Or is the CLR programmed to check the some specifications( which we call CTS) while executing a CLR compliant language? Please explain me to get more insight in to this. Thanks, mani
He is Cool
Posts
-
Bit confused about CTS ... -
How to prevent code refactoring?Hi, I want to prevent code refactoring. To explain, I do not want to let any one to use tools like .NET Reflector and see the code inside my .NET dll. Is this possible ? If so , by what means we can achieve this. Thanks, Mani
-
Problem in InteropHi, I have a problem in interop. I have a c++ dll that has a function that takes the control handle as input and does some manipulation on the editable field. // HINSTANCE SetInstanceHandle(HINSTANCE hInstance) I have a .NET form in which I have a textbox control. Now I import the c++ dll and invoke the function. Now, I pass the textbox control's handle as Control.ControlAccessibleObject .Handle (which returns a IntPtr). This gives me an error quoting "The runtime has encountered a fatal error. The address of the error was at 0x79ef04d2, on thread 0x364. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack." I dont know what this error imply. I am also afraid that my way of accessing the handle in .NET is wrong. Please guide me to access this c++ function. Thanks, Mani
-
.NET Wizard problem.Hi, I have a problem in .NET custom wizards. Am getting an error on opening a wizard. It quotes .. "Could not run the 'C:\Program Files\Microsoft Visual Studio .NET 2003 \VC#\CSharpProjectItems\LocalProjectItems\..\ViewCodeWizrd.vsz' wizard." I tried the suggestion in the link http://www.petedavis.net/dotnet\_articles/wizardfix.html. But this doesnt seem to work though. Could any one please guide in this. Thanks, Mani
-
Doubt in NGEN and CLRSo, if I have a stand alone .NET application in a system, Ngening those .NET assemblies is recommended or not. Please clarify.
-
Doubt in NGEN and CLRHi, I need some basic low level details of what happens when you ngen a .NET assembly. Lets take a c++ code which when compiled creates a binary executable. On executing this binary, the OS allocates memory for the process and executes it. No concept of runtime or CLR here. Everything is present in the binary. I read the MSDN and understand that .NGEN creates a native image of the code and avoids JIT compilation while execution by the CLR. Hence, at the end, I understand that the ngen creates binary code for specific processor. If the native code (binary) is ready then why cant the OS take care of executing it and why the .NET runtime has to do the execution? What does the CLR do then for a ngended assembly ? I seem to get confused with this concept.Please clarify. Thanks, Mani
-
Doubt in Switch-Case statement.yup. i am giving a static value.
-
Doubt in Switch-Case statement.Hi, I have a basic doubt in using a switch case. For the case stmt am unable to have a static or readonly value. The compiler gives a error "A constant value is expected". i.e, if i have a variable like - private static myval = "R1"; -- switch { case classname.myval: // gives compiler error } Would be much happy to know the logic behind this. Thanks.
-
Making remote calls from a COM componentHi, I was asked this question in an interview and would like to know the correct answer for this. I have a .Net remoting component. (By remoting concept, the calls to the remote obect will be basically made on the proxy.)If we create a tlb for this remote component and use it from a COM component, in this case, will the remote calls be made on the proxy or on the server object. Please help me to get more insight in to this. Thanks, Mani
-
Not able to attach my code to .NET ProcessHi, I have a simple problem that I am trying to solve for the past 2 days.:(( I have an application in system that is basically a MFC application and for a module it does CLR hosting and then on it runs .NET code. I am trying to attach my .NET code to it but at the instant when I attach the app.exe to my code, it gives an error message with just the words "UNABLE TO ATTACH TO THE PROCESS". Whereas am able to do the same thing in another system.( a WIN 2000 machine but mine is XP :() Not sure if this is due to some OS problem or some security tweak that is missing in my system or something to do with CLR hosting.:confused: Thanks, Mani
-
Dll Import Problem in loading two c++ assemblies with same nameI am dealing with something related to .NET and C# and wonder about your comment. Hope you are clear in understanding my problem.
-
Dll Import Problem in loading two c++ assemblies with same nameI am dealing with something related to .NET and C# and wonder about your comment. Hope you are clear in understanding my problem.
-
Dll Import Problem in loading two c++ assemblies with same nameHi, I have a C#.net application. I have two C++ dlls with same name (but different version numbers that i see in the dll). When I use Dll Import to invoke methods on each dll separately in two different applications, all the methods in both the c++ dlls work fine. But if i tend to use dll import and invoke the functions in the two dlls, the first dll's methods are executing fine but when the second dll's methods are invoked, there is an error stating "cannot load the second dll. method not found". I wonder if it is something to do with loading two same named dlls in the same memory of an exe... Please help in identifying the cause and kindly clarify my doubt. Many Thanks.
-
Dll Import Problem in loading two c++ assemblies with same nameHi, I have a C#.net application. I have two C++ dlls with same name (but different version numbers that i see in the dll). When I use Dll Import to invoke methods on each dll separately in two different applications, all the methods in both the c++ dlls work fine. But if i tend to use dll import and invoke the functions in the two dlls, the first dll's methods are executing fine but when the second dll's methods are invoked, there is an error stating "cannot load the second dll. method not found". I wonder if it is something to do with loading two same named dlls in the same memory of an exe... Please help in identifying the cause and kindly clarify my doubt. Many Thanks.
-
Problems in Cross Platform Enryption?Hi, Iam trying to implement a cross-platform encryption system. i.e, in windows i will encrypt a file and in Linux will try to decrypt it and viceversa. The same encryption algorithm can be used on both platforms. NET has Cryptography namespace in which all this algo are implemented and API's available. But when we go in to linux , we cannot use this .NET API's. so, some libraries muist be available to implement this algo in both platforms. I got some info on using OPENSSL libraries which i can use for implementing encryption algo. But some problems is ther when it comes to cross platform. So, need some guidelines and ideas for this. Please mail me if u had come across similar situation and help in the same. Thanks. Mani
-
Problems in Cross Platform Enryption?Hi, Iam trying to implement a cross-platform encryption system. i.e, in windows i will encrypt a file and in Linux will try to decrypt it and viceversa. The same encryption algorithm can be used on both platforms. NET has Cryptography namespace in which all this algo are implemented and API's available. But when we go in to linux , we cannot use this .NET API's. so, some libraries muist be available to implement this algo in both platforms. I got some info on using OPENSSL libraries which i can use for implementing encryption algo. But some problems is ther when it comes to cross platform. So, need some guidelines and ideas for this. Please mail me if u had come across similar situation and help in the same. Thanks. Mani
-
Problems in Cross Platform Enryption?Problems in Cross Platform Enryption? Hi, Iam trying to implement a cross-platform encryption system. i.e, in windows i will encrypt a file and in Linux will try to decrypt it and viceversa. The same encryption algorithm can be used on both platforms. NET has Cryptography namespace in which all this algo are implemented and API's available. But when we go in to linux , we cannot use this .NET API's. so, some libraries muist be available to implement this algo in both platforms. I got some info on using OPENSSL libraries which i can use for implementing encryption algo. But some problems is ther when it comes to cross platform. So, need some guidelines and ideas for this. Please mail me if u had come across similar situation and help in the same. Thanks. Mani
-
Hi. How do we go about cross platform encyrption?Hi, Iam trying to implement a cross-platform encryption system. i.e, in windows i will encrypt a file and in Linux will try to decrypt it and viceversa. The same encryption algorithm can be used on both platforms. NET has Cryptography namespace in which all this algo are implemented and API's available. But when we go in to linux , we cannot use this .NET API's. so, some libraries muist be available to implement this algo in both platforms. I got some info on using OPENSSL libraries which i can use for implementing encryption algo. But some problems is ther when it comes to cross platform. So, need some guidelines and ideas for this. Please mail me if u had come across similar situation and help in the same. Thanks. Mani
-
Need some guidance on cross-paltform encryptionHi, Am trying to implement a encryption-decryption system beween, Windows and Linux. and am planning to implement it in .NET. Plese guide me and suggest some references. Thanks. Manivannan
-
Need some guidance on cross-paltform encryptionHi, Am trying to implement a encryption-decryption system beween, Windows and Linux. and am planning to implement it in .NET. Plese guide me and suggest some references. Thanks. Manivannan