|
You can make your own IRotView app. very easy. Use COM API function GetRunningObjectTable, from where you will have a pointer to a IRunningObjectTable interface. After that you could enumerate the running objects using EnumRunning.
|
|
|
|
|
I have a C function that calls a C++ function that calls DoDragDrop() to drag a file using the CF_HDROP format data object. The global memory is moveable. Under any NT version of Windows this returns the expected value DROPEFFECT_COPY but under Win9x the function returns RPC_E_SERVERFAULT. I can only get the drag operation to work under Win9x if I use fixed global memory. Does anyone have any suggestions as to what is going on?
|
|
|
|
|
Hi,
I Created a COM object(Client) which is to be connected to a COM exe( server ). Below is the piece of code i am executing.......
This code is inside the method of a ATL full control........
//CLSID_Service is the coClass of my COM exe
if(pService == NULL)
{
hr = CoCreateInstance(CLSID_Service,NULL,CLSCTX_LOCAL_SERVER,IID_IService,(void**)&pService);
if(FAILED(hr)) return hr;
}
CComObject<cserviceclient> *pServiceClient;
CComObject<cserviceclient>::CreateInstance(&pServiceClient);
hRes = AtlAdvise(pService, pServiceClient->GetUnknown(), IID_IServiceCDKLinkEvents, &m_dwAdvise);
with this above code my AtlAdvise() failed.......
What would be the reason.........
CServiceClient is a COM object implementing the interfaceIID_IServiceCDKLinkEvents of the CLSID_Service
Any idea??
Thanks in Advance,
Aruna.
|
|
|
|
|
What was the returned HRESULT code?
Regards,
Ryan
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I am working with COM using MFC.I try to get a pointer to the IClassFactory Interface.But, I am getting the error that the memory could not be read.The pointer to IClassFcatory interface always points to address 0x00000000 in the memory !
The same problem I am facing whenever I work with COM.But if I run the program sometimes say 5 or more times I am getting no run time error & my program works with the same code !What is the problem ,how can I debug my program !
Y.Yamini Devi
|
|
|
|
|
I have an simple ATL object that contains an IPictureDisp * property. (Free-threaded marshalling, free-threaded object, with events, etc.)
these are my get/putref functions:
CComPtr<IPictureDisp> m_pPicture;
...
STDMETHODIMP CMyObj::get_Picture(IPictureDisp **pVal)
{
*(pVal) = m_pPicture;
return S_OK;
}
STDMETHODIMP CMyObj::putref_Picture(IPictureDisp *newVal)
{
m_pPicture = (IPictureDisp *)newVal;z
return S_OK;
}
in my MFC test app, i create a picture object with
OleLoadPicturePath, set the picture property and call the control's output function. my output function does a QueryInterface on m_pPicture to get an IPicture interface, does some work on it, then releases the IPicture interface.
this works fine in my MFC test app. the problem occurs in the VB IDE.
here's my VB test code:
Private Sub Command1_Click()
Dim W As MyObj
Set W = New MyObj
Set W.Picture = Picture1.Picture
End Sub
and here's how i kill VB:
1. put a breakpoint immediately after my "Set W.Picture = Picture1.Picture" line
2. run the app
3. when the breakpoint hits, hover over the "W" text, this shows some big negative number (i assume this is VBs way of printing an address)
4. hover over the "Picture1" text. the VB IDE crashes immediately.
any ideas???
-c
|
|
|
|
|
Hi Everyone!
I'd like to learn the development of n-Tier applications, but only with the RIGHT tools and technologies: Visual C++, COM+, OLEDB (SQL Server 7, 2000).
Microsoft provide a lot of Windows DNA samples, but all of them have the COM components written in VB and using ADO for database connection. I'd like to see a really good complete but not too complicated example on this topic. I have a few books on OLEDB and COM+, but I didn't find any complex sample, only pieces.
It anyone can help..that can be c00l
Thanks in advance!
Attila Hajdrik
|
|
|
|
|
Hi,
Is it possible to alter the amount of time an instance of com exe server
takes to be unloaded / removed from memory when a client that created it
crashes or is terminated via the task list i.e. no counitialise occurs in
the client app.
Thanks
Robert Fernando
|
|
|
|
|
I'm running win2k pro, busy toying with com+ and all that.
My problem is that all of a sudden, in the status view for all the com+ applications on my system, none show up as running, when in fact they are.
Just wondering if anyone else has experienced this, and if they found a solution.
|
|
|
|
|
I have a free-threaded ATL object. Hooray.
I used the ATL wizards to set up a IDispatch* property, using putref. Then I manually changed the IDispatch to IPictureDisp.
I'm testing this with a simple MFC dialog test app. When I go to set the picture property by calling the com_ptr's interface wrapper function:
void IMyObject::PutRefPicture ( IPictureDisp * pVal )
HRESULT _hr = putref_Picture(pVal);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
i get an exception on the putref_Picture call. it is a "Catostrophic failure", according to the Error Lookup.
and, i can't even step into that putref_Picture call, it blows up on that call.
any ideas??
-c
|
|
|
|
|
Has anyone out there developed anything with the WMSDK and gotten it to link in a MFC app. I get the link error
defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
I did what the error message says.. and it still didnt compile.. How do i get MFC to link with the WMSDK(windows media sdk)? Thanks for any help...
-VIk
|
|
|
|
|
I'm going mad with the access violation error at OLE32.dll. I'm working on a project of namespace extension. Sometime when I close the explorer window, There will be an error report that says access violation at OLE32.dll at 0x7FF668FD. Can anyone give me some help on that problem?
Thank you in advance.
|
|
|
|
|
Try looking on Microsoft's site for .DBG files. They usually are updated with every service pack.
|
|
|
|
|
Eric,
Check out:
http://codeproject.com/dll/libdump.asp
GEorge
|
|
|
|