Re: ATL Service EXE VS .NET 2003 - Won't register method
1) I am running the ATL service under administrator id
2) I am running the ATL service under windows XP pro
3) How do you setup the security on the client side?
The client codes are following
#define new DEBUG_NEW
// The one and only application object
using namespace std;
int _tmain(int argc, TCHAR* argv, TCHAR* envp)
int nRetCode = 0;
// initialize MFC and print and error on failure
if (!AfxWinInit(::GetModuleHandle(NULL), NULL, ::GetCommandLine(), 0))
// TODO: change error code to suit your needs
_tprintf(_T("Fatal Error: MFC initialization failed\n"));
nRetCode = 1;
HRESULT hr = CoInitialize( NULL );
HRESULT hRes = m_DvrCtrl.CreateInstance("DVRService.DVRController");
if ( FAILED(hRes) )
ZeroMemory( szMessage, MAX_PATH );
DOUBLE dbReturnCode = 0;
strcpy( szMessage, "this is me" );
int iLen = strlen(szMessage);
m_DvrCtrl->OnStart(szMessage, (DOUBLE) iLen, &dbReturnCode );
// TODO: code your application's behavior here.
"Brian Muth" wrote:
"Danh Vo" <DanhVo@discussions.microsoft.com> wrote in message
CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE,
RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, NULL);
which open for everyone. I am new to ATL service EXE. Does it allow to
create method to call from Client? My goal is to send some XML data
function call. Any suggestion book which go in detail of how to create
service only and has a lot of examples to learn?
No, none of the books I have deal in detail with ATL services very much.
It's hard to help you if you don't answer my questions.