Questions tagged [createobject]

The CreateObject function is used to instantiate COM objects.

The CreateObject function is used to instantiate COM objects.

Example (VB Late Binding):

Dim obj As Object
Set obj = CreateObject("Outlook.Application")

Example (VB Early Binding):

Dim obj As Outlook.Application
Set obj = CreateObject("Outlook.Application")

Related Tags:

Links:

154 questions
4
votes
3 answers

difference between server.createObject and createobject in asp classic

according to http://msdn.microsoft.com/en-us/library/ms524620.aspx you should use server.createObject If you are already familiar with VBScript or JScript, note that you do not use the scripting language's function for creating a new object…
opensas
  • 52,870
  • 69
  • 227
  • 340
4
votes
4 answers

Start Visual Studio programmatically; C# equivalent of VB's CreateObject("VisualStudio.DTE.8.0")

I can start a new hidden Visual Studio process from VBScript, and drive it programmatically, by doing this: Set DTE = CreateObject("VisualStudio.DTE.8.0") DTE.DoStuff() How do I do that in C#? (Edit: using the correct types, not generic COM…
RichieHindle
  • 244,085
  • 44
  • 340
  • 385
4
votes
2 answers

VB6: Run-time error 424 When Calling CreateObject

I created a C# COM accessible dll that I want to consume in VB6 I was able to consume in VB6 my COM object with a hard reference to the TLB. What I am trying to do now is to remove this reference and load it dynamically I am creating it as…
engmtm
  • 61
  • 8
3
votes
1 answer

VBA binary file - cnc program

I'm using a macro to create a CNC program. To create the ".spf" file the machine is using I use: Dim m2_path as string m2_path = T:\Production\Cavity-Line\Eric R\Excel\PARAMETER.spf Dim text as string text = 'my data Dim fso As Object Dim Fileout…
rosi97
  • 198
  • 1
  • 16
3
votes
3 answers

Classic ASP: Server.CreateObject not supported

When I call Server.CreateObject(), from my Classic ASP page, I get Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method I've tried the following…
twh3375
3
votes
1 answer

How to dynamically append children to QML item that has alias for child items

Let's say I have a TestComponent.qml that uses alias for child items. The component file looks like this: TestComponent.qml import QtQuick 2.5 Column { default property alias children: cont.children; Text { text: "header" } …
tach
  • 629
  • 9
  • 19
3
votes
2 answers

ColdFusion CFC implementation of C# Partial Class?

Does ColdFusion offer a mechanism for splitting CFCs into multiple files? I am NOT talking about extension, I am talking about splitting the SAME CFC into multiple files; the same way C# allows for "partial" classes. The reason for this is because…
Brian David Berman
  • 6,920
  • 23
  • 74
  • 143
3
votes
1 answer

Alternative to Server.CreateObject

I am writing a navigation system in classic ASP (on Windows CE). I require a way to dynamically include navigation files based on the calling script. I have come up with the following code that includes nav.inc that is located in the folder of the…
Chris
  • 24,827
  • 43
  • 179
  • 317
3
votes
1 answer

vb6 kill/skip CreateObject call

Can someone suggest how I can terminate or go around a CreateObject operation that occasionally takes minutes to finish? Basically I have this code: Set m_Zeacom = CreateObject("QmCOM.QIntegrate") that works instantly most of the time, but for some…
3
votes
2 answers

CreateObject fails for COMVisible assembly once it is signed

We have a .NET exe (.NET 3.5, VS 2010 SP1, VB.NET) project that is COM visible. A VB6 application uses CreateObject to create an object from this assembly. This works without any problem if we do not sign the assembly. If we sign the assembly (with…
Markus
  • 15,389
  • 3
  • 25
  • 47
3
votes
1 answer

Create an object from another objects type

In Visual Basic.net, can I create an Object, or a List of T with the type from another object. Here is some code: Dim TestObjectType As Author Dim TestObject As TestObjectType.GetType I am getting an error: TestObjectType.GetType is not…
Simon
  • 331
  • 3
  • 8
  • 16
3
votes
1 answer

Reverse CreateObject in VBScript

I have an old vbscript the runs the command, foo = CreateObject(x.y). I want to run this script on another computer (which it doesn't run on now btw) but I don't know which dll's I should register, or what else I should do, to run the CreateObject…
Haim Bender
  • 7,243
  • 8
  • 48
  • 54
2
votes
0 answers

How to enable early binding of VBA object variable to COM classes created in .NET

I seem to be having trouble getting my COM class library (.NET-based) to support early binding. I am creating a class library in VB.NET 2003 for use in Office 2003 VBA (and later for Office 2010). Documentation @ StackOverflow and elsewhere has…
FMK
  • 21
  • 4
2
votes
2 answers

How to open an URL in a browser using VBA?

Trying to open a PDF(-website) with a referer which can only be opened with a link-click on the parents page. By Using CreateObject(WinHttp.WinHttpRequest.5.1) .setRequestHeader "referer", "https://...“ the access works, but I need to open the…
Jasco
  • 99
  • 1
  • 6
2
votes
2 answers

Discovering registered COM components

Is there a way to determine if a registered COM component is creatable as a stand-alone component simply by parsing the information available in the registry? In particular, by the information found in HKCR/ClsId? My system has over 12,000 entries…
acordner
  • 197
  • 1
  • 3
  • 8
1
2
3
10 11