Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 15 Nov 2005 17:19:06 +0100,    group: microsoft.public.platformsdk.com_ole        back       


Strange problem of COM exe in CE   
Hi,

I created a COM ATL exe in winCE and then i register it using by running it 
from visual studio by passing parameter "/RegServer" and i can see my COM 
object in the registery of my Pocket PC.

However when I try to access this object from another application as 
follows, I am getting error "Class not registered":

HRESULT hr1 = CoInitializeEx(NULL, COINIT_MULTITHREADED);

if(SUCCEEDED(hr1))

{

CComPtr<ICETestObj2> ptr;

HRESULT hr = ptr.CoCreateInstance(__uuidof(CETestObj2));

LONG in = 1;

LONG out;

if(SUCCEEDED(hr))

            ptr->GetNum(in, &out);

}

CoUninitialize();


Can anyone please tell me what am I missing?

Thanks,

Arsalan
date: Tue, 15 Nov 2005 17:19:06 +0100   author:   Arsalan Ahmad

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us