Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CreateObjectEX
Message
 
To
02/11/2000 14:51:24
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00437121
Message ID:
00437319
Views:
16
>>>I have a VFP COM object that I use on my web pages with no problem. It is installed and registered on my web server. I am now trying to do a CreateObjectEX('{8795FE62-4127-11D4-B8A9-005004B2CDCF}','\\MyServer') from a workstation and it always fails with "Class not registered" errors. What do I need to do to be able to instantiate this object from a remote workstation?
>>
>>Steve, you have to copy your COM object .EXE .TLB. and .VBR files on the worstation and register your COM on the workstation with:
>>
>>CLIREG32.EXE yourcomobject.VBR
>>
>>If CLIREG32.EXE is not accessible, just search for it - you can find several copies under your Visual Studio installation, or copy it from another PC.
>>
>>Then run DCOMCNFG.EXE on the workstation and make sure that under properties for your COM the Location tab shows: "Run application on the following computer" and \\MyServer as a name. (you will be also asked about it when you run CLIREG32.EXE)
>>You also need to configure the "Default Security" in DCOMCNFG on the server PC to setup the Default Launch Permissions and Default Access Permissions to add the "Network" user. The custom permissions also may be configured individually for your COM server in its Properties/Security tab.
>>Security configuration is up to you.
>
>Nick-
>
>The steps you are describing will work, but should not be necessary. After performingthe steps you describe, the component would be callable with only CREATEOBJECT("ProgID"). But CREATEOBJECTEX does not require that the server component be registered on the client machine.
>

In order not to confuse people :), I just follow the procedure which you can find in docs, as many people attended Toni Feltman's DCOM seminar at DevCon and she says the following:

"Using the ProgId.
The second option is to use the ProgId as the first parameter for CREATEOBJECTEX(). The ProgId is in the format Exe_Name.Class_Name (i.e. Sample.Customers). When using the ProgId, either the entire executable must be registered on the client machine or at a minimum; the type library must be registered."

After this setup you can use either CREATEOBJECT() or CREATEOBJECTEX().
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform