|
Improve availability by running a COM+ app as an NT service
|
Total Hit (1748) |
COM+ 1.5 has the ability to run any server application as a NT service, so that the application is up and running when the machine reboots, before any client makes the first requests. This improves the response time of the COM+ application. Besides, running a COM+ app as a service means that it can
....Read More |
Rating
|
|
|
Make COM objects in a COM+ application visible to clients
|
Total Hit (1734) |
What I describe for COM+, applies to MTS with some slight differences as well.
Registering COM objects remotely has been quite a pain before MTS showed up (remember the VBR file?). In COM+ it's very easy to do:
1) Right click on the COM+ application and choose export Choose application proxy,
....Read More |
Rating
|
|
|
Misconceptions on variables and binding
|
Total Hit (1800) |
Consider this line of code:
Dim x as Project1.Class1
Many developers think that we were declaring x as a "Project1.Class1" object. This is wrong. All object variables in VB are interface variables. In this line of code x is declared as the _Class1 interface defined in the Project1 Type librar
....Read More |
Rating
|
|
|
Never use New to create MTS/COM+ objects
|
Total Hit (1815) |
A common question among VB developers is: Why is it dangerous the use of the New keyword in VB to create COM objects registered under MTS/COM+?
The New keyword is the only way to go when you want to create objects that are defined as PublicNotCreatable or Private (CreateObject doesn't work) insid
....Read More |
Rating
|
|
|
Reduce COM+ context overhead: use non configured classes
|
Total Hit (1600) |
In another item in this Tip Bank (see link below), we mention that you can co-locate secondary instances within the context of the caller. If you don't need any services at all for your secondary components, then you don't have to configure them as COM+ components either. You lose the deployment and
....Read More |
Rating
|
|
|
Reduce context overhead for COM+ components
|
Total Hit (1469) |
Instances of configured components, that is, components configured in COM+, get runtime services owing to context objects. When you instantiate a COM+ component, your instance will live in a context object. When you call a method of your instance, the call will go through the context and that is whe
....Read More |
Rating
|
|
|
Replicate a complete COM+ catalog to another machine
|
Total Hit (1792) |
The Component Services MMC gives you an easy way to export and import COM+ applications. However, if you want to export the entire COM+ catalog to one or more systems on your LAN you can do it quickly with the COMREPL command-line utility, which you can find in the c:\windows\system32\com directory.
....Read More |
Rating
|
|
|
Setting authentication across different domains
|
Total Hit (1432) |
COM doesn't have a built in security mechanism, but relies on Windows authentication services (Security Service Providers). When you access a resource or invoke a method in a remote DCOM server (or MTS package / COM+ Application), security checks cannot be performed in the standard way if the client
....Read More |
Rating
|
|
|
The best setting for the RunAs option in a server package
|
Total Hit (1726) |
When you deploy COM objects in DLLs no security issues arise since DLLs run in the process of the caller. On the contrary, when you deploy your COM objects into an .EXE, you have to deal with such issues.
- (D)COM needs to know under what security principal (read identity) the process, where you
....Read More |
Rating
|
|
|
Tips for debugging MTS components in the VB IDE
|
Total Hit (1554) |
It was and it is still easy to debug MTS components written on Visual C++ version 5 and higher. Debugging components written on Visual Basic 5 is possible under VC IDE. Starting with version 6, Visual Basic allows to debug under its own IDE. Here are the things you should keep in mind while preparin
....Read More |
Rating
|
|
|
Setting authentication across different domains
|
Total Hit (1634) |
COM doesn't have a built in security mechanism, but relies on Windows authentication services (Security Service Providers). When you access a resource or invoke a method in a remote DCOM server (or MTS package / COM+ Application), security checks cannot be performed in the standard way if the client
....Read More |
Rating
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
How To Call CLSID And ProgID Related COM APIs in Visual Basic
|
Total Hit (5506) |
This article demonstrates how to use a set of related Component Object Model (COM) APIs that retrieve and manipulate CLSIDs and ProgIDs. The following APIs are discussed:
«UL»«LI»CLSIDFromProgID: To retrieve the CLSID of a COM object with a given ProgID.
«LI»StringFromCLSID: To convert a CLSID s
....Read More |
Rating
|
|
|
How to Create Constants and DLL Declarations in a Type Library
|
Total Hit (1615) |
It can be very useful to package constant definitions and DLL declarations in a type Library. Visual Basic allows you to access type libraries and their contents. Once you have made a reference to the type library, you can view its information in Visual Basic's own Object Browser. Type Libraries are
....Read More |
Rating
|
|
|
Create New GUIDs
|
Total Hit (2438) |
This sample, from Dion Wiggins (dionwiggins@hotmail.com) shows how to use the CoCreateGuid and StringFromGUID2 functions to create a GUID.
The code is compiled into an ActiveX DLL which gives the interesting possibility of using the code from an ASP page, or from other ActiveX-enabled scripting
....Read More |
Rating
|
|