Solved

ActixeX component can't create object (429)

Posted on 1998-07-01
8
477 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

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
 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 89
Best way to parse out a json string in VB6? 10 220
how to know if my Checkbox is True in VB6.0? 9 60
Problem to line 23 53
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

856 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