how can i use dcomcnfg to launch the .exe so that it appears on the windows server
Main Topics
Browse All TopicsHI,
I have a clientserver program that was writtern in c++ 6.0. It has a executable(.exe) that was registered with /register switch when run. The regedit shows that this program is registered. There is another vb.net program that access interface in this .exe program. When the .exe program is running under my account and the vb.net is also running under my account i can succesfully get to .exe and get the interface working. Problem is that if the .exe is run under account like administrator than my vb.net cannot see the .exe and i get error: COM object with CLSID {68B84496-EEE5-4EE4-9AB0-2
The code sample in vb.net is as follows:
Dim sd As New SDFUNCTIONSWITCHDev.Functi
Dim RTNS As Long
Dim RMSG As String
txtSend.Text.Replace("^", Chr(134)).ToUpper()
Dim MSNG As String
MSNG = txtSend.Text
RTNS = sd.Invoke(MSNG, RMSG)
txtReceive.Text = RMSG
sdfunctionswitch is the referenced in COM and program compiles. It only works when the .exe (sdfunctionswitch.exe) is running under my account. I want to run .exe so that any user can access the interface without getting above error.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
These settings are available via the COM api as well but you can set the permissions using dcomcnfg by lauching it from Run.
Then select 'Component Services' then 'Computers' then 'My Computer' then 'DCOM Config' and select the appropriate item.
Right-click on the item and select 'Properties' and select the 'Security' tab in the new window. You will see the option to customize the Launch and Activation Permissions along with Access Permissions.
You can find API information, and apparantly more on DCOMCNFG here: http://msdn.microsoft.com/
corey
Business Accounts
Answer for Membership
by: novitiatePosted on 2005-06-16 at 19:13:49ID: 14237096
try DCOMCNFG.exe to set Launch & Access permissions.
_novi_