Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Create Object


I heard there is a simple way in VB 6 to create an object with code. does anyone know if this is true or if/how it works?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
ActiveX Component Can't Create Object Or Return Reference To This Object (Error 429)
MSDN talks about the "registry" and "setup program". I'm a beginner and CLUELESS! I tried to install Active X references and got the following notice: Name conflicts with existing module, project, or object library. The last line is where I get the run-time error in VB6:

Dim ppApp As PowerPoint.Application
Dim ppPres As PowerPoint.Presentation
Dim ppShape As PowerPoint.Shape
Dim ppCurrentSlide As PowerPoint.Slide
Dim msoTrue As New OLEObject
Dim msoFalse As New OLEObject
Dim oPicture As New OLEObject

Set ppApp = CreateObject("PowerPoint.Application")
ppApp.Visible = True

Set ppPres = ppApp.Presentations.Add(msoTrue)

Hope someone can help me....thanks Warren

How Can I Create Run-time Object References For Objects Of Office Object Model?
My problem is, that I don't know, how to create a reference at run-time to a word application object.
For example:

Dim myWordApp As Object
Set myWordApp = CreateObject("Word.Application")

Than I have a reference to a word application.
But, how can I check the value of myWordApp.Activedocument.Paragraphs(1).Alignment dynamically, if at compile-time I don't know yet, whose value I want to check, because it is generated from a string?
"Activedocument.Paragraphs(1).Alignment"
or
"ActiveDocument.Paragraphs(1).LineSpacing"
or
"ActiveDocument.CodeName"
...

Runtime Error 429 ActiveX Object Cannot Create Object
Hi All,
Am getting the following error,

"RunTime error 429
ActiveX Object Cannot Create Object"

The same application runs fine in other machines, but it throws error inNT Server.
Your help will be highly appreciated,
Thanks in advance,
Badri

Need To Create A Connection Object For An Existing Database Object
Below is a fragment where I create a local database and table
which I fill with data from a remote source....

    Dim wDef As Workspace
    Dim oDB As Database
    Dim oTD As TableDef
    Dim oRS As ADODB.Recordset
    '
    ' Get default Workspace.
    Set wDef = DBEngine.Workspaces(0)
    '
    ' Make sure there isn't already a file with the name of
    ' the new database.
    If Dir(cLocalDB) <> "" Then Kill cLocalDB
    '
    'create new database
    Set oDB = wDef.CreateDatabase(cLocalDB, dbLangGeneral)
    '
    'Create a new table
    Set oTD = oDB.CreateTableDef("JobMapDraft")
    
    With oTD
        'Create fields and append them to the new TableDef
        'object. This must be done before appending the
        'TableDef object to the TableDefs collection of the
        'new database.
        .Fields.Append .CreateField("DayNo", dbLong)

        etc...

        '
        ' Append the new TableDef object to the Northwind
        ' database.
        oDB.TableDefs.Append oTD
    End With
    
    Set oRS = New ADODB.Recordset
    
    query = "insert into JobMapDraft ...............
    oRS.Open query, oDB, adOpenDynamic, adLockOptimistic ****
   oDB.Close

This stalls at **** with a 'Run-time error 3001: Arguments of wrong type....' error

Now, as it happens, I know precisely why this fails - the oRS.Open statement **** needs a Connection object rather than the Database object oDB.

What I would like to know is if there is any way I can create a Connection object from the Database object oDB, or attach a Connection object to it, rather than closing the Databse and using a Connection to it - I would have thought this a sensible facility for MS to include, but you know MS


Leo Sutherland


Leo
-------------------------------------------------------
Time flies like an arrow, Fruit flies like a banana

Create A New Visio Object, && Create A New Document From VBA
Hello all,

I am trying to open Visio and paste a chart into it from Powerpoint, and from there saving it as a .wmf, or.emf file, all via VBA, not sure of the code though..
I tried creating a new Visio Application via-

Private VS As Visio.Application

-but it wasnt having any of it!

Any advice please?
Thanks

GARYBUG (bzz)

How To Create A New Object From A Object I Allready Have (with Index)
i am working on a snake game but when it hits the apple i want it to get an extra segment... how can i make a new object from one i allready have? Called Segment(integer)

it is a shape object

Using The Create Object/Get Object To Set Focus
I'm using the CreateObject keyword to establish an instance of Lotus Notes.

Once the instance has been created, I'd like to set focus to lotus notes later in the processing using GetObject.

Any suggestions on how I can do that?

Use COM Object From Excel VBA - Made In .NET "ActiveX Component Can't Create Object"
I have been unsuccessful at deploying a .NET project I created for Excel (VBA). I have this thread open in the VBA section. I figure I would try it in a higher traffic area of the site.

http://www.vbforums.com/showthread.p...hreadid=285832

Thanks

Use COM Object From Excel VBA - Made In .NET "ActiveX Component Can't Create Object"
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better.

I have created a simple COM DLL in .NET by using the COM class template and by setting output to a type library (DLL). All the object does is return a string value. At this point I have not checked the option to register for COM interop in Visual Studio.

So I go into Excel (where I want to use the object). Go to VB Editor and Tools -> References and to Add Reference. I browse until I find the in directory of the project. Select the .dll file outputted by the program. Then click open -> I get the message "Can't add reference to the specified file." So here is my first question: Why not?

So then I go to my project in Visual Studio. Highlight the project -> click properties ->go to Build -> and check "Register for COM interop" -> then I rebuild my solution. After this build there is another file in the in directory with the same name as the .dll but has the extension .tlb (Type Library).

So I go back into Excel. Go to VB Editor -> Tools -> References and to Add Reference. I browse until I find the in directory of the project. This time however I select the .tlb file outputted by the program. Then click open -> I don’t get an error message so this is good. So here is my second question: Why does the .tlb work and not the .dll at this point?

Now after this step. I create the object in VBA code. Compile and run the macro and sure enough it returns the string and puts in the right cell. Great! But wait. Now many more people need this object to work with Excel.

So I copy the Excel Workbook and everything in the in directory from my project to another person’s computer. Then I open the Excel workbook -> then to VB Editor -> References to double check the path to the .tlb file -> (then compile and save for peace of mind). But here is the big problem... when I run the macro on another person's computer I get the message "ActiveX component can't create object." And I get this at the line where I say: Set testObj = New Object.

My ideas... could it be that I am an Admin on my PC but not the other? If so, how do I get around this. Or is Visual Studio doing an extra step in the compile/build process that I’m not replicating on the other PC? Does it need to be an global assembly?

Also, .NET is installed on the other PC and I have tried to register the .DLL, but this is unsuccessful as well? I guess that is another question: why?

If someone could help me out here I would be very grateful. I have been trying to figure out a solution for a long time. I just don’t understand why everything works fine on my PC but won't run on another.

Thanks for being patient.
brazilnut

Vb6 Com+ Object Runs Once Then Errors With "activex Component Can't Create Object"
I have a vb6 com object that will run once successfully, then error with "activex component can't create object" on the call to the com object (see below, GetAppt.GetHRoomsAppointments). the com object (activex.dll) runs in com+ on a win2003 server. The project is set to run unattended, retain in memory, apartment threaded.

The com reads room numbers from oracle 9.2 client (via ado), then reads from outlook 2003 the rooms' appointments (cdo 1.21, outlook 11.0 object library references), and then writes the appointments back out to oracle (via ado). I have it running under com+ (in component services) using an administrator id (as identity) and activation as Server Application. I call the com object from a vb6 .exe.

If I run the code in vb6 debug mode, it works successfully on multiple runs. But once I compile into a .dll, add it to com+, and call from an .exe, it runs once. If I reboot the server, it will run successfully once. I was thinking I was leaving an object open but can not find it. I am doing close on recordsets, ado connections, and setting them to nothing.

How the code works is for each room, it will read from outlook, open an oracle recordset, add to the recordset, and then close the recordset.

Any ideas? I can send .dll code if need be. the .exe is below.
Is there a way to programmatically clean out the com object in the .exe besides setting it to Nothing?

Option Explicit
Sub Main()
Dim GetAppt As Object

Set GetAppt = New GetHRoomsAppts.clsGetHRoomsAppts
GetAppt.ProvID = "1234"
GetAppt.ProvName = "John Doe"
GetAppt.MailBoxServer = "xxx.abc.com"
GetAppt.eduDataBase = "ora.path.com"
GetAppt.apptFolderDir = "Public Folders/All Public Folders/Dept/SUN/Calendars/"
GetAppt.apptTableDir = "fileLoc.Appts"

GetAppt.GetHRoomsAppointments
Set GetAppt = Nothing

End Sub

Possible To Dynamically Create An Object Inside A Dynamically Created Object?
If I create a picture box dynamically, how do I go about dynamically creating an object in that picture box? So far everytime I attempt to dynamically create instances of the 2nd object (a shape), they show up in the orginal picture box instead of in the last one.

Can't Create Object
Hi out there!
This code does not work on other computers than mine:

Dim fs As Object
Dim f, s
Set fs = CreateObject("scripting.filesystemobject")
f = fs.folderexists("c:programwebitrental")
s = fs.fileexists("c:programwebitrentalokningsli.mdb")

My "testcomouter" give me the error answer "Can't create Axtive X object" ?!?!?!

Why?

/Jonas

Create Object ?
When i get activeX can t create object,
may it mean that i have to create it in another way ?

Note: the objects are concerning another appliacation called Rational Rose RT whose libraries i have got

thanks a lot

Can't Create Object
hi there,

i've downloaded an activex (ocx) from vbaccelerator site and its running alright in my computer, then i run package and deployment wizard and included it in the package. but when i install it already to another computer a message "CAN'T create object..." was appearing.. what seems to be the problem??

thanks,

alexis

How Do I Create An Object
as the title says....how to i create an object and allow it to change size and move ect....

Create Object
hi, i was trying 2 create an object(without invoking ActiveX) using
Line(a, b)-(c,d),,b
my ultimate aim: to get rectangles as objects using "Line" statement so that i can play around with the rectangles.
PLZ help!!!!

Create Object
sup chaps, well the problem is, i need a simple app where, i have a fom,textbox and what ever number i have in that textbox, it will create that amount of buttons i have did a "search" and i couldnt find anything at all. so if anyone has something like this and doesnt mind shareing it i would be much apreciated. thanks

Create Object
hi friends,

how to create the flexgrid object programmatically. what i want to do is i would like to have a temporory flexgrid object that after performing some operations i would like to assign that temporary object to any other flexgrid object on the form.

Thanks

Create Object
i want to create polygon object just like rectangle which i can make colour and other object properties.if this is possible help me

Can't Create Object
I get the following error:

"ActiveX component can't create object"

on the following line:


VB Code:
Set oCN = CreateObject("ADOCE.Connection.3.1")


What in the world causes that? I included the ADO libraries in my installation but it won't work when I run that statement on another computer.

Create Object
How would you go about creating a command button at run time?
(NOT PREPLACED!!!!!!!!)

code plz...

How Do I Create A Log On Object...
I want to make a bank template that will act like a virtual bank ATM ie: the user will have to log on through the use of a username and password , a screen will display which user is logged on as well as the balance available....


please take a look at what I've got so far.. and comment.....


/vbcode

Option Explicit
Private m_curBalance As Currency
Private m_strUserName As String
Private m_strPIN As String
Private Sub Class_Initialize()
Dim blnSuccess As Boolean
blnSuccess = LogOn(strName, strPin)
If blnSuccess = True Then
m_curBalance = John.InitBalance
Else
'Initialise Accounts
Public Enum John
Name = John
InitBalance = 5000
PIN = Lennon
End Enum
Public Enum Paul
Name = Paul
InitBalance = 2500
PIN McCartney
End Enum
Public Enum George
Name = George
InitBalance = 700
PIN = Harrison
End Enum
Public Enum Ringo
Name = Ringo
InitBalance = 100
PIN = Starr
End Enum

End Sub
Public Property Get Balance() As Currency
'Retrieve the current balance
Balance = m_curBalance
End Property
Public Property Let Balance(ByVal curBalance As Currency)
'Assign the property value
m_curBalance = curBalance
End Property
Public Property Get Username() As String
'Retrieve the current value
Username = m_strUserName
End Property
Public Property Let Username(ByVal strUserName As String)
'Assign the current value
m_strUserName = strUserName
End Property
Public Property Get PIN() As String
'Assign the property value
PIN = m_strPIN
End Property
Public Property Let PIN(ByVal strPin As String)
'Assign the current value
m_strPIN = strPin
End Property
Public Function Withdraw() As Currency
'this function will allow the user to withdraw money from the bank
'and update the total money remaining in the bank...
End Function
Public Function Deposit() As Currency
'this function will allow the user to deposit into the bank
'and update the current the balance
End Function
Public Sub LogOn()
'this Sub will allow the user to log on to the ATM

End Sub
Public Sub LogOff()
' this sub will allow the user to log off the ATM
End Sub
/end vbcode

How Do U Create An Object
What's the code for creating an object... well an instance of an object, at runtime

Cannot Create Object!?
I'm trying to run a program but when I click 'Connect', I get the following error;


Run-time error '429' ActiveX component cannot create object

This doesn't happen on the machine with VB Pro installed, only, others. I think it must be something to do with the .dll not being recognised on the machines other than the VB machine.

Any ideas how I can get it to work?

Create Object????
does anyone know how to create an object for paperport.
or whether or not this is possible.
i looked in the refrences and there are some refrences to paperport.
so i dont know if this is possible or not.
what i am trying to do is automate some repeated stuff in paperport (by scansoft)
if any one has any idea on how to do this or any refrences let me know.

Create New Object
Hi
I would like to create a new Label object in run time(on blank form), but I don't know how to do it. Please, help. Thanks!

Jure

Create Object
How do you use VB's create object Function, I want to know if I can use it to create a picturebox inside a class module so I can use some of it's methods, eg it's scaleX and scaleY functions from inside a class module without having a picturebox passed in.

Does anyone know ?

Can&#039;t Create Object
I am trying to deploy a small dao database application. It works fine on my machine but after I installed it on my users machine it says "ActiveX component can't create object". I assume it has to do with dao becuase it pops up when I attempt to open the database or make updates to the database. Any ideas. I used the deployment wizard to package all necesarry files. What am I missing? Thanks

Create XML DOM Object In COM+
Hi.

I'm trying to port a whole load of rather poorly-written ASP over to VB COM objects.

One of the functions I'm trying to reproduce created an XMLHTTP object to send an XML request and get an XML response, and then created a XMLDOM object to deal with that response. Like (ASP):

Server.CreateObject ("Microsoft.XMLHTTP")
and
Server.CreateObject ("Microsoft.XMLDOM")

Now - I'm trying to create a COM+ DLL that does the same thing, and I'll warn you now that my VB is a trifle dodgy. But anyway:

I've added a reference to "Microsoft XML, v5.0" in my VB project, and then - in the function that's supposed to be doing all this XML business:

Dim oXMLHTTP As MSXML2.XMLHTTP50
Dim oXMLDOM As MSXML2.DOMDocument50

That seemed to make sense.

I wasn't sure what to do about actually creating the object instances, though, so I just copied the ASP and took out the "Server." part :


Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.Open "POST", sJFAURL, False
oXMLHTTP.send sXMLRequest
sJFAResponse = oXMLHTTP.responseText
Set oXMLHTTP = Nothing

That one works fine. I don't know why, or how, it knows what a "Microsoft.XMLHTTP" is - but if it works, it works.

The error (oh yes, there's an error ) occurs when I try to create the XMLDOM object:


Set oXMLDOM = Server.CreateObject("Microsoft.XMLDOM")

And this time it clearly doesn't understand what a "Microsoft.XMLDOM" is - I get a type mismatch.

Trouble is, it doesn't work with "MSXML2.DOMDocument50", either. That prompts the error "ActiveX component can't create object". I just don't know what I'm supposed to be putting in there, or why the first one works and the second one doesn't, or where to look for an example that makes some sort of sense.

How To Create An Object In Vb6.0
how to create an object in vb6.0 ...?

Create An Object And Use In A Sub
hi all, im doin a time killer game and i need to create an object (as simple as a red circle) and then use it in a sub:

private sub command1_click ()
create circle (x coordinate), (y coordinate)
end sub

private sub timer1_timer ()
if ... then
circle1. ... = ...
end if
end sub

thanks

Create Object (VB6)
Hello. I have the following problem:

IN THE FORM1 I HAVE CREATED 2 FRAMES. INSIDE THE FIRST ONE I HAVE PLACED A TEXTBOX1 WITH A SPECIFIC FORMAT. I NEED FOR VB CODE TO CREATE A TEXTBOX2 AS INSTANCE OF THE TEXTBOX1 AND TO PLACE IT INSIDE THE SECOND ONE FRAME

Create Object?
What is this used for? I have never used it before! Maybe it could help?

History - A thing of the past
Those who dont know the past are bound to repeat it.
Veni, Vidi, Vici - Julius Caesar

Can Not Create Object
Can anyone tell me why I get the Can not create object error on this line of code.
Set objNetCalls = New NetCalls_32.cNetCalls

The netcalls32 reference is checked.

Thanks
Jason

Create An Object
say we have a dll
and instead making a reference
we can create a object as

createobject("scripting.filesystem")



is there any way we can create an object of any dll
say I know only the dll name ,it is easy to make a reference,but for this I need to know the objectid,how can I get the same for a Dll or OCX
Can any one help me out
My advance thanks for the help

Create DSN With COM Object
there is an "ODBC driver & data source names functions" COM component in the references in my VB 6installation.

Has anyone ever used the CreateDSN method of the ODBCTool.DSN object with success?

No matter what I entered, it didn't create a DSN nor did it raise an error.

Can't Create Object
I installed a VB program (using VB, SQL Server, Access 97) on a new machine. And I am getting an error:

429 AxtiveX component can't create object.

I reinstalled "mdac" and "dcom" but still getting the error. What could be the solution for this problem?

Create Object
I have an object that must be created be created in 3 different pages of my ASP .NET Application.
The problem is that I can create the object in only one of that pages and in
the others gives me two differents errors
in one says: 'Object reference not set to an instance of an object.'
an in another says: 'Cannot create ActiveX component.'

I don't understand why because the creation mode in the 3 pages is exactly
the same (belive me, I check it out a "million" times).

This is how I create the Object

---------------------------------------------
Imports System.Object
Dim obj as Object

obj = CreateObject("msu0pr.rfvHard")
........
//then I have the code that I need.
---------------------------------------------


Can you help me? I don't understand why the errors ocurrs in 2 pages and
give 2 different errors.

ActiveX Can't Create Object
I keep getting VB's super friendly error 429, "ActiveX Can't Create Object" and I don't have the TLB files for the ActiveX's - the developer is out of business.

How do I find all the files an ActiveX needs? I have tried 'Dependancy Walker' and all the files are installed that DW says are needed.
By creating test exe's for each ActiveX I think I have narrowed it down to which ocx is causing the error. Please don't tell me to get another ActiveX as it would be a major change to my great prog.

I spent all day Sunday trying everything and I am sick of it![/color] Why can't anyone make a good installer? None of them will watch your program run and list all the files it accesses - even InstallShield which I tried. None of them pick up all the text and spreadsheet files a program uses.

Create Comm Object ?
Hi all,

I Would like to manipulate the pins of a RS232 9pin DB plug individually.I have a inpout32.dll from the FAQ sticky so I'm communicating with the port fine.....(not using MSComm because trying to develop non PCSC reader interface)
I'm a little confused as far as smart cards go with the low level
stuff.Looking for a way to talk to the port without reverting to in-line assembly. Basically what I need to do is:

[createsome_object].setRTS'set RTS line to high
sleep (50)' using sleep kernnel32 lib for this
[createsome_object].clearRTS 'Set RTS line To low

The object will have to be the serial port....What I'm thinking so far is:
Private Type S_port
intPins() As Integer'Array to index the 9 Pins,(I'll define
'them in Form_Load)
End Type

S_port = &H3F8'Assign S-port to the Serial Port

IS this the correct way to actually assign the object to the serial port???

I've seen it done like this in C++
ie:
m_port.setRTS();
sleep (50)
m_port.clearRTS();

Just learning about creating and using User Defined Objects and it's sure a mouthful to digest.......aside from the fact that I'm no where near knowledgeable enough in C++ to create the GUI part of an interface software........hence VB

Appreciate any help.....

ActiveX Can'nt Create Object
Hi, everyone i have problrm with my code. I use Win NT.4.0, and using macro in excel. when i write in the macro :
set test=createObject("Scripting.FileSystemObject") this code doesn't work.
The message appear is "ActiveX can'nt create object".
What the Ocx and dll for this command? in W2K its working properly
thanx for the help

On Using The Create.Object() Method
Hi all,

Since I started programming with VB6, I have always used the Create.Object() method to load a Word or Excel application. For instance:

Code:
Dim xl as Object, wd as Object
Set xl = CreateObject("Excel.Application")
Set wd = CreateObject("Word.Application")
...
I have a question at this point. What is the difference between creating a reference to the Microsoft Word/Excel 11.0 Library and using an Object type to work with office applications?

On one side, no erros whatsoever have ever been raised with the CreateObject() method. On the other side, it does not mean that erros don't exist. Could anyone tell me any tips I should keep in mind and any crucial differences I should be aware of? (I have been programming with VB6 and Office Appl. since 2002).

.tlb Useage In Vb6 Can't Create Object
I'm trying to access some "server" software (it gives access to a proprietary database) that is accesible via .tlb calls from a VC++ 6.0 program. I can't read VC++ worth a hoot and need to make enough changes to the client software that I might as rewrite it, so I'm trying to access the same "server" software in VB6.

In C++, the .tlb based object is created(?loaded?instantiated?) via code that looks like this:
softwareLIB::SoftwareServer *PServer = 0;

I've tried to define a variable in VB6 and use it, but can't figure out the magic formula.
I've tried
Dim test1 As softwareLIB.SoftwareServer
set test1 = CreateObject("softwareLIB.SoftwareServer")
But that gives "Run-time error 429: ActiveX component can't create object"
So I tried
Dim Test2 as new softwareLIB.SoftwareServer
But that gives "Invalid use of new keyword".
I've also tried
Dim test3 As softwareLIB.SoftwareServer
set test3 = new softwareLIB.SoftwareServer
But that gives "Invalid use of new keyword".
Interestingly, as long as I don't use the New keyword, all the Dim statements pass muster.
Also, this dim statement
Dim Test4 as SoftwareServer
will pass muster.
This line
Dim test1 As softwareLIB.SoftwareServer
Test1.Open("machinename")
also passes muster, but complains at run-time "Object variable or With block variable not set"
I can see the SoftwareLIB in the Object Browser with a class of SoftwareServer; I just can't figure out how to get a working (instantiated?) object to use.
I'm sure I'm tripping over the answer, but can't find it. Can somebody throw me a bone?
Thanks
Paul

Activex Cannot Create Object...
Im using a winsock in one of my class, (but not on a form)...so I just added a reference to c:WINDOWS/System32/MSWINSCK.OCX (had to browse for it...)
so I am now able to use the winsock programatically...

Everything is working fine, however, when I send it to my friend, he gets a Runtime 429 (Activex cannot create object)....

I know he has MSWINSOCK.OCX in his System folder, and its registered...


any ideas?

Create A Checkbox Object
Dear vb users,

We have the problem that we have need sometimes 1 checkbox and sometimes a lot off checkboxes.

In .net we have the solution:

Dim Checkbox1 As New Checkbox
Checkbox1 .Location = New Point(256, 64)
Checkbox1 .Size = New Size(120, 40)
Checkbox1 .TabIndex = 1
Checkbox1 .Text = "Click Me!"
Me.Controls.Add(Checkbox1 )

Our customer is using VB6.0 and we tried on the same way to create the checkboxes on the .net way.

"Dim Checkbox1 as new Checkbox" is not possible because we can't create a new Checkbox. Do we have to chose the right component? Which component?

Does someone has an idea how we have to do it? If it is possible, how do we get the events configured?

Nice regards,
Michelle.

Vb Dll ActiveX Can't Create Object
Hello all vb professional
Thank you for reading!!!
I have written a VB dll that will be used in delphi7. The dll mainly create mscomm object.
The part of code is in below ( the problem come from this function):

Public Sub initialiseRS232(COMPORT As Integer)
Dim mscomm1 as Object
Set mscomm1 = CreateObject("mscommlib.mscomm")
mscomm1.CommPort = COMPORT
mscomm1.Settings = "2400,n,8,1"
mscomm1.PortOpen = True
End Sub

The problem is that dll used by delphi7 is fine when it run in development computer or the computer installed vb6 before. But when running in computer that never install vb, it show "ActiveX component can' t create object".

Actually, I have create a package used by "Package & Deployment Wizard" and install it to computer . But it still show the message.

I have try so many times, but the problem is still here.
Please help me!!
Thx a lot
Daniel

Faxserver Can't Create Object
I have Winfax open and am doing the following
Set Faxserver = CreateObject("Faxserver.Faxserver")

I get the message Activex Component can't create object - any ideas?

I am running Windows XP Professional and Winfax Pro version 10

Visual Basic 6

Create Object With GUID
Is possible to create an object using a GUID ?

I want to crate an object that I see with spy, and I'm trying to create one object with the class displayed by the Spy:


I see the StartButton with SPY and his class name is Button and then I search the class name "Button" in the registry (HKEY_CLASSES_ROOT) and found this GUID for "Button" class name : FBB87588-FFF5-11D1-991D-006097C99385, is possible to create an object like StartButton using this class name or GUID?



Thanks !!!

Help! - Active X Cant Create Object
i am having a problem with some software i have been working on for a year now-

i use the microsoft setup addin to make a setup program

the setup program runs fine, but anytime it's installed on a machine that hasn't had VB installed on it i get the error "Active X Cant Create Object" immediatly when running the executable

running out of idea's and getting very frustrated
anybody have any advice??

thank you in advance

-- Nick

Copyright © 2005-08 www.BigResource.com, All rights reserved