Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:32:32+00:00 2026-06-18T01:32:32+00:00

There already is a working WAMP instance in a Windows 7 in which the

  • 0

There already is a working WAMP instance in a Windows 7 in which the line

$x = new COM("X");

does instantiate a COM object.

I was trying to locate a bug, and decided to use a fresh new WAMP installation on the same Windows 7 system as the previous one.

In the new one, the same line produces:

Failed to create COM object 'X': Class not registered ( Error code: 0x80040154 )

Now, since the first WAMP comes with it’s own installation application (along with its DLL which holds the COM class) I can’t exactly figure out what I need to change in the new WAMP so the line above will instantiate the object.

  • My WAMP version is: 2.2 and
  • Apache version : 2.2.21
  • PHP version : 5.3.10

Any idea what I need to set up properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:32:33+00:00Added an answer on June 18, 2026 at 1:32 am

    Managed to solve the problem by changing the working directory (using chdir) to be the same as the php.exe just before $x = new COM("X");.

    I think the DLL wasn’t propery registered, or lacked something in itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been given an already working Makefile which is actually working fine. Makefile
I'm trying to create a random maze generator in javascript. There may already be
I'm porting a process over to Java. There's already working versions in C# and
I'm trying to make an update form. The update part is already working, but
I'm new to C# and am working on a Windows Store App that lets
I'm trying to page a table, and while I have paging already working, it
i am new to working with nodejs and i'm just trying to start a
In the Meteor FAQs http://meteor.com/faq/how-do-i-package-a-new-templating-system there is some information about adding a different (than
There's already a working server service via socket, and I would like to test
Is there already a handy CI 2 library for AWS SDK 1.5.x? If not,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.