Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ActixeX component can't create object (429)

Posted on 1998-07-01
8
Medium Priority
?
495 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 400 total points
ID: 1464679
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…
Suggested Courses

876 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