Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have simple com dll using c++(using ATL). The dll is already registered in the system as i can i can find it when i search for the GUID and able to access it from another c++ program. But the problem is I am unable to access the dll using vbscript.
Its always showing the error "ActiveX cant create object". I have kept the object format as projectname.classname. Can anybody provide me the solution to it? Is there any way i can find the ProgID of the dll so that i can create the dll object?
Posted

Quote:
Is there any way i can find the ProgID of the dll so that i can create the dll object?

I guess you may use the "ProgIDFromCLSID function"[^] function.
 
Share this answer
 
Is your com dll 32-bit ?
Is your OS 64-bit ?
If so, you cannot (easily) use a 32-bit dll from a 64-bit app
Try running the vbs as 32-bit and see if it works

Something like:

C:\Windows\SysWOW64\wscript.exe c:\test.vbs
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900