Solved

ActixeX component can't create object (429)

Posted on 1998-07-01
8
471 Views
Last Modified: 2012-05-04
After a reinstallation of Win95 and VB5, my application doesn't work. I have not changed anything in the code since the reinstallation. The error (429) occurs in my printing module, when I define different fonts. The declaration is no problem:

Private fntHeader As New StdFont

But when the font is defined, an error occurs:

With fntHeader
    .Name = "Times New Roman"
    .Size = 16
    .Bold = True
End With

And the question is...why?
0
Comment
Question by:liljegren
8 Comments
 

Expert Comment

by:SergeD
ID: 1464672
Have you checked that the file System32\StdOle2.lib is not corrupted or missing?
(OLE Automation object)

Looks really weird!
0
 

Author Comment

by:liljegren
ID: 1464673
Does this file really exist? I can't find it in my computer and there is no documentation on the file on the net.
0
 

Expert Comment

by:SergeD
ID: 1464674
Sorry, it's StdOle2.tlb not .lib!

It should be included in the Project\References\ as OLE Automation (which supports the StdFont object).

I guess it exists otherwise you couldn't declare your object, but it might be corrupted during the re-installation.

Contact: Serge.Dupraz@peregrine.ie
0
 

Author Comment

by:liljegren
ID: 1464675
Yes, I have OLE Automation in my references (and the file stdole2.tlb version 2.20.4122 on my disk). I guess next step is to make a new VB5 installation, but I'll wait for more answers.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Expert Comment

by:tomook
ID: 1464676
If this was an existing project, remove all the references you can, close VB, reopen VB and the project and put the references back. This fixes problems when vendors (usually Microsoft) release incompatable COM interfaces under the same GUID.
0
 
LVL 2

Expert Comment

by:swilt
ID: 1464677
You could run 'regsvr32 stdole2.tlb' to register the library again
0
 

Author Comment

by:liljegren
ID: 1464678
Thanks for supporting me. I tried Tomook's comment, but it didn't work with this file. I tried Swilt's comment, and got the following message:

"stdole2.tlb was loaded, but the DllRegisterServer entry point was not found. stdole2.tlb does not appear to be a .DLL or .OCX file."

I'm not used to the regsvr32 command, but it looks like it can't be used with .TLB files.
0
 

Accepted Solution

by:
spurssy earned 200 total points
ID: 1464679
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now