Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Visual Basic > COM/DCOM/COM+

COM/DCOM/COM+ - Page 4

dcom
61-80 of 116     Previous     Next
GetHiddenClasses - Retrieve all the hidden classes in a type library
by Alberto Falossi
Return a collection with all hidden types of a type library VB's Object Browser hides some types in a type library: you can show these types by right clicking on the Object Browser and activating the "Show hidden members" option. This option, however, shows only types labelled as "hidden", ...
GetMemberType - Check whether an object exposes a property, method, event
by Alberto Falossi
Returns a bit-coded value that specifies the type of an object's member (property, method, event) or zero if the member isn't there Object is the object which you want to work MemberName is the property, method or event name the return value is one of the following INVOKE_FUNC (method)
GetProcID - Retrieve the DispID of a procedure
by Alberto Falossi
Return the DispID of a procedure ProcName must be set to a procedure name of the object specified in the second parameter. Be sure that "TypeLib Information" type library (TlbInf32.tlb) is referenced in your VB project.
Creating help string for Enum constants
by Carl-Johan Lindgren
I've been trying to find a way to assign helpstrings for Enums in Visual Basic. The Class builder utility does that only for methods, events, and properties, but not for Enums. The IDL source code that corresponds to an Enum in a type library looks something like follws, and you can run ...
Return a Recordset from a COM Component to ASP
by DevX Pro
Can I make a COM component in VB return a query result in the form of a recordset to the calling ASP Script?
Get the Command$ value from inside an ActiveX DLL
by Francesco Balena
At times you may need to access the command line passed to the application from within an ActiveX DLL. Unfortunately, when inside a DLL the Command$ function returns a null string, so you have to resort to some API trickery: Private Declare Function GetCommandLine Lib "kernel32" Alias ...
Rebase compiled DLLs
by Francesco Balena
Many VB developers know that they should specify a DLL Base Address value - in the Compile tab of the Project Properties dialog box - that is different from the base address of any other DLL or OCX used in the project. When you are working with a compiled DLL or OCX for which you don't ...
Getting Recordsets With Remote Data Services
by Manoj K.
There are basically two ways to get recordsets with Remote Data Services (RDS). You can either use the system-provided RDSServer.DataFactory object or you can write your own full-blown custom ...
Take Advantage of Remote Data Services
by Manoj K.
If you can be sure that your users are only running Internet Explorer 4.0 or higher, you can take advantage of Remote Data Services (RDS), now part of MDAC 2.x. Basically, RDS is a collection of ...
Programmatically register an ActiveX control or DLL
by Marco Bellinaso
All ActiveX DLL or OCX export two functions: DllRegisterServer and DllUnregisterServer. They are used to register and unregister the ActiveX in the Windows registry, and are usually invoked from regsvr32.exe at registration time. However, you can register and unregister these files ...
Register and unregister components with context menus
by Francesco Balena
The stardard method to register and unregister ActiveX component is running the REGSVR32 utility, which forces you to bring up the Start|Run dialog and manually type the command line. A much better approach is to have the Register and Unregister commands right in the context menu that appears ...
Register and unregister type libraries
by Francesco Balena
All COM-oriented VB developers know how to register and unregister an ActiveX DLL, using the REGSVR32 utility. However, there is no such an utility to register and unregister a type library. You can quickly build your own TLB Registration utility with a handful of statements, thanks to ...
MTS running components on Web server
by DevX Pro
We have ASP pages on a Web server with VB6 components that produce the majority of the HTML. These components run on the same machine as the the Web server. Is there a way to put these components under MTS on the same machine? The goal is to obtain the benefits of just-in- time activation and ODBC connection pooling.
Returning Recordsets From COM Components
by DevX Pro
I have heard from some that it is a bad idea to return recordsets from COM components and that you should populate a variant array and send that back to the ASP page instead. Others have said that MTS handles the connection pooling (and all those other MTS features), regardless. Returning a recordset is easier, but what difference does it make?
Why Obtain Recordset From Middle-Tier?
by DevX Pro
I read the article 'Obtaining Recordset From Middle-Tier COM Component' and now am wondering why one would want to do this. As I understand it, this is only a difficult way of getting the same result as one would get if they used the ado.recordset directly in the ASP-page. The perfomance gain of this would be zero; or am I wrong?
Obtaining Recordset From Middle-Tier COM Component
by DevX Pro
Can I pass ADO objects like Command and Recordset to an ActiveX DLL (acting as a middle layer) so that it automatically fills the data in them and I can access it from ASP?
Use of void** in QueryInterface (COM)
by DevX Pro
When using Queryinterface in COM, why is the interface pointer cast to void** and why is it passed as a pointer to a pointer (double indirection)?
Server.CreateObject vs. the OBJECT Tag
by DevX Pro
What is the difference between creating objects using Server.CreateObject and the tag?
Don't include Extender properties in ActiveX Wizard
by Francesco Balena
The left-most listbox in the first page in the ActiveX Control Interface Wizard includes all the properties exposed by the constituent controls currently on the UserControl's surface. Unfortunately, this list includes Extender properties, methods, and events, which should be never added ...
Updating a VB6 DLL on the Web Server
by DevX Pro
We have Internet Information Server (IIS) 4.0 running Active Server Pages (ASP) with a Visual Basic 6.0 DLL serving data content to the ASP pages. The problem lies when we try to update the DLL on the Web server with a new version, it appears to always be in use and therefore we are unable to upload and re-register a new version. We have shutdown the Web site and also IIS but the DLL is still in use. The only way to clear this is to shutdown the server. As you can imagine, when the site is live, shutting down the box is not really an option. Do you know of a solution to this problem? There is a useful 16-bit utility named WPS which allows DLLs to be closed, however, it doesn't appear to work with VB6 DLLs.
61-80 of 116     Previous     Next
Sitemap