createobject

Overriding CreateObject Function in VBScript

Need help to figure out how to overide the default CreateObject() function in VBScript with my own. Basically the same exact thing as this example in VB6: http://www.darinhiggins.com/2007/08/22/TheVB6CreateObjectFunction.aspx I just need to adapt this to work in VBScript. The only thing I cannot figure out is this line: VBA.CreateObj...

Using VS 2008 (vb.net) I need to create an object I can use in Classic ASP with CreateObject

I am very new to VB.net. I have written these objects in VB6 before. I'm just lost in VB.net, but (kicking and screaming) I have to learn how to do this. I've been googling for hours with only minor steps forward. Can anyone post a link that explains start to finish how to do this? I have managed to write the class object, What I can no...

Question about CreateObject() in VB6 / VBA

I can do this: Dim fso As New FileSystemObject or I can do this: Dim fso As Object Set fso = CreateObject("Scripting.FileSystemObject") How do I know what string to use for CreateObject? For example, how would I know to use the "Scripting." part of "Scripting.FileSystemObject"? Where do you go to look that up? ...

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 (separately): Server.CreateObject("Microsoft.XMLHTTP") Server.CreateObject("MSXML2.XMLHTTP") Server.CreateObject("MSXML.DOMDocument") I know the ActiveX o...

Detect Plugins in Internet Explorer without Instantiating the Object

Normally when you use VBScript or JavaScript to CreateObject to detect a plug-in, the user gets the somewhat "jarring" security exception. What are some good ways to detect IE browser plugins without actually instantiating the object? ...

vb.net How can i kill the application that i created using createObject()

I'm using CreateObject(progId) in Vb to create a pdfDOcument. But the problem is that after i'm done and closing the document and release, How can i shutdown the process? How can i reference the process and know if it was already open by the user before i Created the object? and how can i kill the process if the process was not running ...

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 objects as used by that VBScript code.) I've tried this: using EnvDTE; ... DTE dte = new DTE...

AspAllowOutOfProcComponents error: many solutions, one programmer and no fix

Hello, I have been trying to work on integrating a NewsLetter for a companies local intranet and I keep running into the same error that everyone seems to be getting. I am running this on IIS 5.1 and on error exists at Server.CreateObject(ADODB.Connection), also the purpose of the ASP code is to read an Excel file Error Type: Server ob...

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 instance (CreateObject in VBScript or New in JScript). You must use the ASP Server.CreateObj...

Cannot instanciate .Net COM object in classic ASP/VBScript page (Error ASP 0177)

I've written a COM interop enabled class-library in C# using .Net 3.5. The object is meant to provide some utility functions for classic ASP pages. I've written a test.asp page which instanciates the desired object and calls its methods. Works fine on my machine. On a different machine (Windows Server 2003 - Standard Edition) it doesn't...

What is "Dim fso, MyFile, FileName, TextLine" in VBA?

I received this code from one of those nice people here who are willing to spend their time and energy to share their knowledge with noobs: Sub ReadLinesFromAFileOneAfterAnother () Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, MyFile, FileName, TextLine Set fso = CreateObject("Scripting.FileSystemObject") FileName = ...

Reverse CreateObject in VBScript

Hi, 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 command. How can I figure out what dll's I need to copy into the new computer, and do...

Passing arguments to constructors using CreateObject in Coldfusion

Hi there, I'm trying to use a Java object in Coldfusion using the CreateObject function. This works fine when the constructor in the Java class doesn't take any arguments e.g.: MyObject myObject = new MyObject(); Goes to myObject = CreateObject("java", "com.something.MyObject"); But I'm not sure how to pass arguments to the cons...

Inno: createoleobject on uninstall failed

I'm trying to create an OLE object during uninstall but it keeps failing with the message that MSXML is not installed. However it runs perfectly on install. begin // Create the main MSXML COM Automation object try XMLHTTP := CreateOleObject('MSXML2.ServerXMLHTTP'); except begin Log('Read_Thunderbird_Install_Info() - ...

Automation Error - Not enough storage is available to process this command

VB6 CreateObject() is advising this error msg: "Automation Error" - "Not enough storage is available to process this command" The object being created is a DLL written in C. I'm running the application that's trying to create the object on my machine, and the object itself is being created on my machine also. I'm running Windows Vi...

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 calling script to allow different folders to have different navigational features. This wo...

VB6 app not executing as scheduled task unless user is logged on

I would greatly appreciate some help on this one! It may be a tricky one. :) Problem I have an VB6 application which is set up as scheduled task. It starts every time, but when executing CreateObject() it fails if a user is not logged on to computer. I am looking for information on what could cause this. My primary suspicion is that s...

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 I am using T4 to generate a bunch of CFCs and I want to be able to tag functionality onto...

adding stock data to amibroker using c#

hello, I have had a hard time getting and answer to this and i would really , really appreciate some help on this. i have been on this for over 2 weeks without headway. i want to use c# to add a line of stock data to amibroker but i just cant find a CLEAR response on how to instantiate it in C#. In VB , I would do it something like; ...

How to force 32bit app to use a 64bit COM dll in CreateObject?

The following code behaves differently depending on if I use the 32 or 64 bit version of wscript: Set oSQLServer = CreateObject("SQLDMO.SQLServer") For Each o in oSQLServer.ListInstalledInstances MsgBox o Next In 32 bit, it will list the instances of my 32bit server (SQL Server 2000), in 64 bit I get the contents of my 64bit serv...