What's a HashTable
What's difference between HashTable and ArrayList ? You can access array using INDEX value of array, but how many times you know the real value of index. Hashtable provides way of accessing the index using a user identified KEY value, thus removing the INDEX problem. 2021-03-07, 7073👍, 0💬
What do you know about .NET assemblies?
What do you know about .NET assemblies? Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications. 2019-02-05, 2895👍, 1💬
What is delay signing?
What is delay signing? Delay signing allows you to place a shared assembly in the GAC by signing the assembly with just the public key. This allows the assembly to be signed with the private key at a later stage, when the development process is complete and the component or assembly is ready to be d... 2014-12-31, 1918👍, 0💬
How do I tell the client applications that are already installed to start using this new MyApp.dll?
How do I tell the client applications that are already installed to start using this new MyApp.dll? So letâ€™s say I have an application that uses MyApp.dll assembly, version 126.96.36.199. There is a security bug in that assembly, and I publish the patch, issuing it under name MyApp.dll 188.8.131.52. How do ... 2014-12-29, 1821👍, 0💬
Can you have two files with the same file name in GAC?
Can you have two files with the same file name in GAC? Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so itâ€™s possible for MyApp.dll and MyApp.dll ... 2014-12-29, 1745👍, 0💬
How can you tell the application to look for assemblies at the locations other than its own install?
How can you tell the application to look for assemblies at the locations other than its own install? Use the directive in the XML .config file for a given application. <probing privatePath=â€c:\mylibs; bin\debugâ€ /> should do the trick. Or you can add additional search paths in the Prope... 2014-12-17, 1835👍, 0💬
Whatâ€™s the difference between private and shared assembly?
Whatâ€™s the difference between private and shared assembly? Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name. 2014-12-17, 1954👍, 0💬
Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end?
Suppose I call a COM object from a .NET applicaiton, but COM object throws an error. What happens on the .NET end? COM methods report errors by returning HRESULTs; .NET methods report them by throwing exceptions. The runtime handles the transition between the two. Each exception class in the .NET Fr... 2014-12-15, 1634👍, 0💬
Can you inherit a COM class in a .NET application?
Can you inherit a COM class in a .NET application? The .NET Framework extends the COM model for reusability by adding implementation inheritance. Managed types can derive directly or indirectly from a COM coclass; more specifically, they can derive from the runtime callable wrapper generated by the ... 2014-12-10, 1696👍, 0💬
I want to expose my .NET objects to COM objects. Is that possible?
I want to expose my .NET objects to COM objects. Is that possible? Yes, but few things should be considered first. Classes should implement interfaces explicitly. Managed types must be public. Methods, properties, fields, and events that are exposed to COM must be public. Types must have a public de... 2014-12-10, 1728👍, 0💬
Can you retrieve complex data types like structs from the PInvoke calls?
Can you retrieve complex data types like structs from the PInvoke calls? Yes, just make sure you re-declare that struct, so that managed code knows what to do with it. 2014-12-08, 1674👍, 0💬
How do you call unmanaged methods from your .NET code through PInvoke?
How do you call unmanaged methods from your .NET code through PInvoke? Supply a DllImport attribute. Declare the methods in your .NET code as static extern. Do not implement the methods as they are implemented in your unmanaged code, youâ€™re just providing declarations for method signatures. 2014-12-08, 1766👍, 0💬
I canâ€™t import the COM object that I have on my machine. Did you write that object?
I canâ€™t import the COM object that I have on my machine. Did you write that object? You can only import your own objects. If you need to use a COM component from another developer, you should obtain a Primary Interop Assembly (PIA) from whoever authored the original object. The answer to (5) is o... 2014-12-04, 1839👍, 0💬
How do you generate an RCW from a COM object?
How do you generate an RCW from a COM object? Use the Type Library Import utility shipped with SDK. tlbimp COMobject.dll /out:.NETobject.dll or reference the COM library from Visual Studio in your project. 2014-12-04, 1806👍, 0💬
Are COM objects managed or unmanaged?
Are COM objects managed or unmanaged? Since COM objects were written before .NET, apparently they are unmanaged. Any code not written in the Microsoft .NET framework environment is UNMANAGED. So naturally COM+ is unmanaged because it is written in Visual Basic 6. 2014-12-02, 1899👍, 0💬
Describe the advantages of writing a managed code application instead of unmanaged one. Whatâ€™s involved in certain piece of co
Describe the advantages of writing a managed code application instead of unmanaged one. Whatâ€™s involved in certain piece of code being managed? The advantages include automatic garbage collection, memory management, support for versioning and security. These advantages are provided through .NET F... 2014-11-19, 1764👍, 0💬
What is the FP per day in your current company?
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thre...
How to measure functional software requirement specification (SRS) documents? Well, we need to defin...
How To Join a List of Keys with a List of Values into an Array? - PHP Script Tips - PHP Built-in Fun...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...