|
-
Aug 10th, 2004, 04:08 AM
#1
Thread Starter
New Member
Com / Dcom
Hi friends,
many greetings,
I want to know how to implement early binding and late binding while creating a com object.
I also want to know array starting element is zero but i want to start array from 4 number element.
I want to know how to create a n number parameters function.
I want to know the details for creating COM component and how to use it.
Regards
Harish
-
Aug 10th, 2004, 11:18 AM
#2
Wouldn't it be the same as when you early/late bind in a
standard exe?
VB Code:
Dim oRS As Object 'Late binding
Dim oRS as ADODB.Recordset 'Early binding
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 7th, 2004, 06:14 PM
#3
Re: Com / Dcom
Originally posted by harishpatel
I want to know the details for creating COM component and how to use it.
This question gets asked alot here, and gets just as few good answers. Why? It's like asking for help building your own city from scratch (Insert Sim-joke here). There is alot of information out there, but the topic is large, and hard to understand, and frankly becoming legacy.
I recommend getting several books on the topic and put your nose to the grindstone; you've got a lot of work ahead. Better get crackin!
-
Sep 9th, 2004, 12:23 PM
#4
-
Sep 12th, 2004, 09:41 PM
#5
PowerPoster
Re: Com / Dcom
Originally posted by harishpatel
I want to know how to implement early binding
'Early binding using Excel for example
'Set a reference to Excel using Project-References menu options in VB IDE then:
Dim objExcel as New Excel.Application
'or you can:
Dim objExcel as Excel.Application
Set objExcel = New Excel.Application
Originally posted by harishpatel
and late binding while creating a com object.
'Late Binding with Excel for example (no need to set Reference with menu options for Late Binding)
Dim objExcel as Object
Set objExcel = CreateObject("Excel.Application")
Originally posted by harishpatel
I also want to know array starting element is zero but i want to start array from 4 number element.
'To make this the default for everything with an element you can
Option Base 4
'Or you can do it as you Dim
Dim myArray(4 to 100) as Integer
Originally posted by harishpatel
I want to know how to create a n number parameters function.
Private Function myFunction(one as integer, two as double, ... , n as Long) As Double
'Code here
end Function
Originally posted by harishpatel
I want to know the details for creating COM component and how to use it.
When starting a project in VB6, select ActiveX exe or ActiveX DLL instead of EXE. Access and use the compiled project (dll or exe) using early or late binding
Last edited by Muddy; Sep 12th, 2004 at 09:46 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|