|
-
Apr 5th, 2008, 02:56 PM
#1
Thread Starter
New Member
Creating object of a non registered class.
Hi,
Please find below a descriptin of my probem:
My motive is to run an application as standalone, i.e. I do not want any writing into registry to happen.
1) I have an application, lets call it ABC.exe which registers itself as COM when installed fully and if its not installed ie. run as standalone, the CLSID and other details which has to go in registry, goes into a temporary file(created by me) under temp directory.
2) Now I have another application, lets call it XYZ.exe which makes use of ABC.exe.
3) If the abc.exe application is installed, I can easily create its object using CreateObject(<PROG-NAME>)
But since my ABC.exe application is in standalone, so there isn't any registry entry for CreateObject call to be successful.
So, kindly provide me any help on as to how to create object of an application if its not registered as COM.
Thanks in advance.
-
Apr 6th, 2008, 08:42 AM
#2
Re: Creating object of a non registered class.
An ActiveX EXE has to be registered in order to be used via COM. Even the registration-free COM introduced in Windows XP doesn't handle out of process components like an ActiveX EXE.
-
Apr 6th, 2008, 10:58 AM
#3
Thread Starter
New Member
Re: Creating object of a non registered class.
Guess, i'm not clear in describing my problem. I have an unregistered COM DLL of ABC.exe application (my application) and another of my application XYZ.exe needs to create an object of ABC.exe at run time.
Untill now, everything was smooth coz ABC.exe was first installed on PC and over that XYZ.exe was supposed to run. Now neither of them has to be installed.
They both have to operate as stand alone i.e. without any registry interaction(reading registry woud do, motive being that non admin user should be able to "run" application if not install). Now since no registry writing has to happen so ABC.exe would not register its class id in regedit but it will indeed provide all relevant information in a say "registry.ini" file.
So now I want to create an object of ABC.exe within XYZ.exe. CreateObject would fail, so is there any alternative to it?
Searching through VBForums led me to this topic http://www.vbforums.com/showthread.p...t=createobject
my problem is more or less same. and the FAQ article mentioned http://www.vbforums.com/showpost.php...6&postcount=14 if useful for a registered application word/excel, anything for non registered application ??
Regards,
S. Saun
PS:
Apologies for post being too long or if im not in right forum, I thought this forum to be suitable for my post hence posted here.
-
Apr 6th, 2008, 11:29 AM
#4
Re: Creating object of a non registered class.

I moved your thread to this forum because it doesn't seem to be a VB6 question.
-
Apr 6th, 2008, 11:45 AM
#5
Re: Creating object of a non registered class.
It sounds like ABC.exe uses some LMN.dll and that XYZ.exe needs to use LMN.dll as well? But LMN.dll is not to be registered?
If true there are two possibilities then. You could use reg-free COM, or use a kind of clever hackish thing called DirectCOM that is supposed to work on Win95 and later.
-
Apr 6th, 2008, 12:28 PM
#6
Thread Starter
New Member
Re: Creating object of a non registered class.
thanks @ moderator for moving thread to relevant forum
and @ dillettante, thanks for suggestion, anyother alternative ?
Besides, a general query, would a non admin user have rights to "edit" "classes" section of registry ??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|