Click here to Skip to main content
16,007,809 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralOLEDB (CCommand) Problem Pin
ramjan23-Sep-02 0:22
ramjan23-Sep-02 0:22 
GeneralRe: OLEDB (CCommand) Problem Pin
Steve S24-Sep-02 0:38
Steve S24-Sep-02 0:38 
GeneralUse Vc dll in delphi Pin
Mazdak22-Sep-02 3:57
Mazdak22-Sep-02 3:57 
GeneralRe: Use Vc dll in delphi Pin
Alexandru Savescu24-Sep-02 0:22
Alexandru Savescu24-Sep-02 0:22 
GeneralMaybe lame question ... Pin
Mandalay18-Sep-02 5:50
Mandalay18-Sep-02 5:50 
GeneralRe: Maybe lame question ... Pin
Michael Dunn18-Sep-02 7:08
sitebuilderMichael Dunn18-Sep-02 7:08 
GeneralRe: Maybe lame question ... Pin
Ed Gadziemski20-Sep-02 10:50
professionalEd Gadziemski20-Sep-02 10:50 
QuestionNew to DCOM & ATL? Pin
srinivasa chary18-Sep-02 3:09
srinivasa chary18-Sep-02 3:09 
Hi All,

The prblem is as follows.
The component is an exe created using the ATL.
The client application for the component is working as expected Locally.when the component is tried for accessing from remote system, the error is generated.

The following are the setting done using the Dcomconfg tool
---On the server machine:--
1.under the "security" tab
a. "use custom access permission" option is selected and the client is added apart from the SYSTEM, INTERACTIVE & Network

2.under the "identity" tab
a. The "Interactive user" option is selected

--On the client machine--
1.Under the "General" tab
a.The "Default" option is selected from the combo box
2.Under the "Location" tab
a.Run on the following computer is selected and the remote computer name is specified.

--------------------------------------
The cleint code is as follows

In the OnInitDialog() function
////////////////////////////////////////////////////
m_host = "Wesley"

COSERVERINFO server_info;

ZeroMemory( &server_info, sizeof(server_info));

server_info.dwReserved1 = 0;

server_info.dwReserved2 = 0;

server_info.pwszName = m_host.AllocSysString();

server_info.pAuthInfo = NULL;


MULTI_QI mqi = { &IID_IDRMath,NULL, 0};


hr = CoCreateInstanceEx(CLSID_DRMath, NULL,
CLSCTX_REMOTE_SERVER, &server_info, 1, &mqi);

::SysFreeString(server_info.pwszName);
if(SUCCEEDED(hr))
{}
else if( (FAILED(hr))|| (FAILED(mqi.hr)) )
{
AfxMessageBox(IDS_E_NOCREATE, MB_OK | MB_ICONERROR);
EndDialog(TRUE);
return TRUE;
}

////////////////////////////////////////////////////
Is there any changes or addition i need to do in the code or with the DcomConfg tool?



Thanks

Chary.


AnswerRe: New to DCOM & ATL? Pin
Paul M Watt18-Sep-02 5:16
mentorPaul M Watt18-Sep-02 5:16 
GeneralRe: New to DCOM & ATL? Pin
srinivasa chary18-Sep-02 19:45
srinivasa chary18-Sep-02 19:45 
GeneralATL Service, Window Messages and COM Pin
Michael P Butler17-Sep-02 22:20
Michael P Butler17-Sep-02 22:20 
GeneralRe: ATL Service, Window Messages and COM Pin
Ernest Laurentin24-Sep-02 19:15
Ernest Laurentin24-Sep-02 19:15 
GeneralATL_No_VTable Pin
suresh_sathya16-Sep-02 19:48
suresh_sathya16-Sep-02 19:48 
GeneralRe: ATL_No_VTable Pin
Joaquín M López Muñoz16-Sep-02 21:01
Joaquín M López Muñoz16-Sep-02 21:01 
GeneralRecommended Books for STL Pin
Joe Woodbury14-Sep-02 18:41
professionalJoe Woodbury14-Sep-02 18:41 
GeneralRe: Recommended Books for STL Pin
Paul M Watt14-Sep-02 20:55
mentorPaul M Watt14-Sep-02 20:55 
GeneralRe: Recommended Books for STL Pin
Pavel Klocek14-Sep-02 21:43
Pavel Klocek14-Sep-02 21:43 
GeneralRe: Recommended Books for STL Pin
Stuart Dootson14-Sep-02 22:27
professionalStuart Dootson14-Sep-02 22:27 
GeneralRe: Recommended Books for STL Pin
Christian Graus15-Sep-02 13:09
protectorChristian Graus15-Sep-02 13:09 
GeneralRe: Recommended Books for STL Pin
DaveBrooks26-Sep-02 11:02
DaveBrooks26-Sep-02 11:02 
GeneralRe: Recommended Books for STL Pin
Joe Woodbury26-Sep-02 12:18
professionalJoe Woodbury26-Sep-02 12:18 
GeneralOwner-drawn menus in WTL Pin
TemplMetaProg14-Sep-02 11:11
TemplMetaProg14-Sep-02 11:11 
GeneralRe: Owner-drawn menus in WTL Pin
Paul M Watt14-Sep-02 12:00
mentorPaul M Watt14-Sep-02 12:00 
GeneralRe: Owner-drawn menus in WTL Pin
TemplMetaProg15-Sep-02 11:24
TemplMetaProg15-Sep-02 11:24 
GeneralNew to ATL... (simple question) Pin
Alex Deem14-Sep-02 6:20
Alex Deem14-Sep-02 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.