<< < 105 106 107 108 109 110 111 112 113 114 115 > >>   Sort: Rank

How do we create DCOM object in VB6
How do we create DCOM object in VB6? Using the CreateObject method you can create a DCOM object. You have to put the server name in the registry.
2007-10-22, 8004👍, 0💬

Can you explain what is DCOM
Can you explain what is DCOM ? DCOM differs from COM in that it allows for creating objects distributed across a network, a protocol for invoking that object’s methods, and secures access to the object. DCOM provides a wrapper around COM, hence it is a backwards compatible extension. DCOM uses Remot...
2007-10-22, 5684👍, 0💬

Can you describe IUKNOWN interface in short
Can you describe IUKNOWN interface in short ? Every COM object supports at least one interface, the IUnknown interface. All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and perform operations transparently to the programmer. For example, IU...
2007-10-22, 5082👍, 0💬

What is Reference counting in COM
What is Reference counting in COM ? Reference counting is a memory management technique used to count how many times an object has a pointer referring to it. The first time it is created, the reference count is set to one. When the last reference to the object is nulled, the reference count is set t...
2007-10-22, 4748👍, 0💬

What is COM
What is COM ? Microsoft’s COM is a technology for component software development. It is a binary standard which is language independent. DCOM is a distributed extension of COM.
2007-10-22, 5194👍, 0💬

When we use windows API in .NET is it managed or unmanaged code
When we use windows API in .NET is it managed or unmanaged code ? Windows API in .NET is unmanaged code. Note:- Even though VB6 and V C++ has gone off still many people do ask these old questions again and again. Still there are decent old application which are working with COM very much fine. So in...
2007-10-22, 5242👍, 0💬

How can we make Windows API calls in .NET
How can we make Windows API calls in .NET? Windows API call are not COM based and they are invoked through Platform Invoke Services. Declare StringConversionType (Function | Sub) MethodName Lib "DllName" ([Args]) As Type ã StringConversionType is for what type of conversion should take place. Eithe...
2007-10-22, 6016👍, 0💬

How can we use .NET components in COM
What is CCW (COM callable wrapper) ? or How do we ensure that .NET components is compatible with COM ? .NET components can not be used in straight forward way with COM. You will need to create CCW in order that COM components communicate with .NET assemblies. Following are the different approaches t...
2007-10-22, 6205👍, 0💬

Once I have developed the COM wrapper do I have to still register the
Once I have developed the COM wrapper do I have to still register the COM in registry? Yes.
2007-10-22, 8623👍, 0💬

What is RCW
How can we use COM Components in .NET? .NET components communicate with COM using RCW (Runtime Callable Wrapper). Following are the ways with which you can generate RCW :- ã Adding reference in Visual Studio.net. See figure below (Adding reference using VS.NET 2005). Wrapper class is generated and ...
2007-10-22, 5574👍, 0💬

What is CodeDom
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designed to be language independent - once you create a “CodeDom” hierarchy for a program we can then generate the source code in any .NET compliant language. So let’s try to do something real practical an...
2007-10-22, 7443👍, 0💬

If we have two version of same assembly in GAC how do we make a
If we have two version of same assembly in GAC how do we make a choice ? OK first let’s try to understand what the interviewer is talking about. Let’s say you have made an application and its using a DLL which is present in GAC. Now for some reason you make second version of the same DLL and put it ...
2007-10-22, 8843👍, 0💬

What is Native Image Generator (Ngen.exe)
What is Native Image Generator (Ngen.exe)? The Native Image Generator utility (Ngen.exe) allows you to run the JIT compiler on your assembly's MSIL and generate native machine code which is cached to disk. After the image is created .NET runtime will use the image to run the code rather than from th...
2007-10-22, 9529👍, 0💬

What is the difference between Convert.toString and .toString()
What is the difference between Convert.toString and .toString() method ? Just to give an understanding of what the above question means seethe below code. int i =0; MessageBox.Show(i.ToString()); MessageBox.Show(Convert.ToStri ng(i));We can convert the integer “i” using “i.ToString()” or “Convert....
2007-10-22, 5543👍, 0💬

How to prevent my .NET DLL to be decompiled
How to prevent my .NET DLL to be decompiled? By design .NET embeds rich Meta data inside the executable code using MSIL. Any one can easily decompile your DLL back using tools like ILDASM (owned by Microsoft) or Reflector for .NET which is a third party. Secondly there are many third party tools whi...
2007-10-22, 6709👍, 0💬

What is CODE Access security
What is CODE Access security? CAS is part of .NET security model that determines whether or not a piece of code is allowed to run and what resources it can use while running. Example CAS will allow an application to read but not to write and delete a file or a resource from a folder..
2007-10-22, 5495👍, 0💬

What is the difference between System exceptions and Application
What is the difference between System exceptions and Application exceptions? All exception derives from Exception Base class. Exceptions can be generated programmatically or can be generated by system. Application Exception serves as the base class for all applicationspecific exception classes. It d...
2007-10-22, 5913👍, 0💬

What is the difference between VB.NET and C#
What is the difference between VB.NET and C# ? Well this is the most debatable issue in .NET community and people treat there languages like religion. Its a subjective matter which language is best. Some like VB.NET’s natural style and some like professional and terse C# syntaxes. Both use the same ...
2007-10-22, 5160👍, 0💬

What is concept of Boxing and Unboxing
What is concept of Boxing and Unboxing ? Boxing permits any value type to be implicitly converted to type object or to any interface type implemented by value type. Boxing is a process in which object instances are created and copy values in to that instance. Unboxing is vice versa of boxing operati...
2007-10-22, 5103👍, 0💬

What are Value types and Reference types
What are Value types and Reference types ? Value types directly contain their data which are either allocated on the stack or allocated in-line in a structure. Reference types store a reference to the value's memory address, and are allocated on the heap. Reference types can be self-describing types...
2007-10-22, 5019👍, 0💬

What are different types of JIT
What are different types of JIT ? Note :- This question can only be asked when the interviewer does not know what he wants. It was asked to me in one of interview and for 15 minutes he was roaming around the same question in order to get answer from me (requirement was for a simple database project)...
2007-10-22, 5257👍, 0💬

What is reflection
What is reflection? All .NET assemblies have metadata information stored about the types defined in modules. This metadata information can be accessed by mechanism called as “Reflection”.System. Reflection can be used to browse through the metadata information. Using reflection you can also dynamica...
2007-10-22, 5371👍, 0💬

Can we force garbage collector to run
Can we force garbage collector to run ? System.GC.Collect() forces garbage collector to run. This is not recommended but can be used if situations arises.
2007-10-22, 4666👍, 0💬

What is garbage collection
What is garbage collection? Garbage collection is a CLR feature which automatically manages memory. Programmers forget to release the objects while coding ..... Laziness (Remember in VB6 where one of the good practices is to set object to nothing). CLR automatically releases objects when they are no...
2007-10-22, 4945👍, 0💬

<< < 105 106 107 108 109 110 111 112 113 114 115 > >>   Sort: Rank