Solved

ActixeX component can't create object (429)

Posted on 1998-07-01
8
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

623 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