Solved

ActixeX component can't create object (429)

Posted on 1998-07-01
8
470 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 4

Expert Comment

by:tomook
Comment Utility
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
Comment Utility
You could run 'regsvr32 stdole2.tlb' to register the library again
0
 

Author Comment

by:liljegren
Comment Utility
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
Comment Utility
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

771 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

12 Experts available now in Live!

Get 1:1 Help Now