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, 6528👍, 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, 2400👍, 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, 1766👍, 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 188.8.131.52. There is a security bug in that assembly, and I publish the patch, issuing it under name MyApp.dll 184.108.40.206. How do ... 2014-12-29, 1683👍, 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, 1602👍, 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, 1672👍, 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, 1748👍, 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, 1483👍, 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, 1534👍, 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, 1565👍, 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, 1504👍, 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, 1618👍, 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, 1688👍, 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, 1646👍, 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, 1673👍, 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, 1572👍, 0💬
What is the sequence of UML diagrams in project? First let me say some fact about this question, you...
How do you handle change request? Normally change request are handled by preparing an Impact analysi...
I have 5 questions please give me the answer ,explanation,suggestions if any?? what is PMP(project m...
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...