Sort: Date

How do you hide Public .NET Classes and other public members from COM?
Managed Code and Unmanaged Code related ASP.NET - How do you hide Public .NET Classes and other public members from COM? In some cases, you might want to hide selected .NET classes from COM but keep them public for use from other .NET assemblies. The ComVisible attribute allows you to select which p...
2009-04-09, 7999👍, 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, 7894👍, 0💬

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, 7146👍, 0💬

How Can we change priority & what levels of priority are provided by Dot Net?
How Can we change priority & what levels of priority are provided by Dot Net? Thread Priority can be changed by using Threadname.Priority = ThreadPriority.Highest. In the sample provided look out for code where the second thread is ran with a high priority. Following are different levels of Prio...
2009-03-13, 7016👍, 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, 5568👍, 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, 5549👍, 0💬

How to implement DTC in .NET
How to implement DTC in .NET ? DTC is implemented using COM+. Following are the steps to implement COM + in .NET :- ã gEnterpriseServiceh namespace has all the classes by which we can implement DTC in .NET. You have to add reference gEnterpriseServiceh namespace. omits it all together, then w...
2007-10-22, 5480👍, 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, 5133👍, 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, 4977👍, 0💬

How do you do object pooling in .NET
How do you do object pooling in .NET ? COM+ reduces overhead by creating object from scratch. So in COM+ when object is activated its activated from pool and when its deactivated it’s pushed back to the pool. Object pooling is configures by using the “ObjectPoolingAttribute” to the class. Note:- Wh...
2007-10-22, 4889👍, 0💬

What is equivalent for regsvr32 exe in .NET
What is equivalent for regsvr32 exe in .NET ? Regasm
2007-10-22, 4846👍, 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, 4744👍, 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, 4719👍, 0💬

What are types of compatibility in VB6
What are types of compatibility in VB6? There are three possible project compatibility settings: ã No Compatibility ã Project Compatibility ã Binary Compatibility No Compatibility With this setting, new class ID’s, new interface ID’s and a new type library ID will be generated by VB each time ...
2007-10-22, 4706👍, 0💬

.NET Remoting versus Distributed COM ?
.NET Remoting versus Distributed COM ? In the past interprocess communication between applications was handled through Distributed COM, or DCOM. DCOM works well and the performance is adequate when applications exist on computers of similar type on the same network. However, DCOM has its drawbacks i...
2009-03-19, 4666👍, 0💬

What does address of operator do in background? any example.
What does address of operator do in background? any example. The AddressOf operator creates a delegate object to the BackgroundProcess method. A delegate within VB.NET is a type-safe, object-oriented function pointer. After the thread has been instantiated, you begin the execution of the code by cal...
2009-03-13, 4639👍, 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, 4630👍, 0💬

How many types of Transactions are there in COM + .NET
How many types of Transactions are there in COM + .NET ? There are 5 transactions types that can be used with COM+. Whenever an object is registered with COM+ it has to abide either to these 5 transaction types. Disabled: - There is no transaction. COM+ does not provide transaction support for this ...
2007-10-22, 4501👍, 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, 4398👍, 0💬

What are the limitations of using Unmanaged Code from within a .NET assembly?
Managed Code and Unmanaged Code related ASP.NET- What are the limitations of using Unmanaged Code from within a .NET assembly? Performance : Although native-code DLLs can perform some operations more quickly than equivalent code managed by the CLR, these benefits might be offset by the time it takes...
2009-04-07, 4290👍, 0💬

  Sort: Date