|
hi ,
plz give suggestion to start learning COM
i now VC++ and C#
Thanks
|
|
|
|
|
forst u have a knowledge of IUnknown interface and Standard interface that is used in vc++.MSDN library is the best solution where u understand everything what is com ,y use com ,how to make com companent
|
|
|
|
|
Did you see Com On codeproject?
|
|
|
|
|
Hai ,
I am developing a build using Install shield 10.5 , after installing the msi , I could open the application but displaying the below error message
First One is Access Vilation Error of the Dll msvcr80.dll
Next Error is
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at SipperRobotControllerLib.ActionDeviceClass.set_XYPosIndex(Int32 pPosIndex)
at CaliperLifeSciences.DKP.SipperControl.SipperCtrlPanel.mPlateControl_OnWellClicked(Int32 nRow, Int32 nColumn) in Y:\Core\Devices\PlateHandler\SipperControl.NET\CaliperSipper.vb:line 134
at CaliperLifeSciences.UserInterfaceControl.PlateControl.PlateControl_Click(Object sender, EventArgs e) in y:\Core\support\UserInterfaceControl\PlateControl.cs:line 875
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
How can i Solve these Errors.Actuallly i did this using Installshield 11.5.
Please help to solve this problem............................
|
|
|
|
|
The COM method called returned a failure code and the interop layer mapped it into an exception. What COM object and method is being called?
Steve
|
|
|
|
|
Steve ,
I was developing a build using the com and dll's and .net components which is not developed by me , By using these components i could made a build using install shield 10.5. I could open the application , but while select some of the contols i am geting errors as i posted earlier
Can you give a solution for this, I am hanged on this error for a quite long time
Please Help
|
|
|
|
|
Why a particular COM components returns E_FAIL depends on the components and method in question. I can't tell you anything without knowing these details.
Steve
|
|
|
|
|
Steve,
This is when using Dotnet dll's
Thanks
|
|
|
|
|
The error says, "HRESULT E_FAIL has been returned from a call to a COM component." Somewhere a COM component is being called and one of its methods is failing with the E_FAIL failure code. The reason for this depends on the component and method in question regardless of the language used to implement it.
Steve
|
|
|
|
|
Steve,
Is this problem is arising due to non registering of any com or dll component or due to the error in coding ?
I am just deploying the files given to me to make a build
Thanks for your Quick response steve!!!
|
|
|
|
|
It's possible it's a registration problem but note that if a method can return E_FAIL the COM object exists and thus was created correctly which implies it was registered. It's possible some other object which the object uses wasn't registered however.
Steve
|
|
|
|
|
We have been bitten by severe memory leaks in our project.
While having a dry run of one of the components code. I came across the following. This looks like a sure shot memory leak to me. Because of the fact that we are not doing a VariantClear().
Please confirm.
<<
try
{
IXMLDOMSchemaCollection2Ptr m_pSchemaCache;
hr=m_pSchemaCache.CreateInstance(__uuidof(MSXML2::XMLSchemaCache60));
if (SUCCEEDED(hr))
{
hr=m_pSchemaCache->add(szNameSpace_in, szSchemaFilePath_in);
if (SUCCEEDED(hr))
{
VARIANT varValue;
varValue.vt = VT_DISPATCH;
varValue.pdispVal = m_pSchemaCache.GetInterfacePtr();
m_pSchemaCache.AddRef();
m_pDOMDoc->PutRefschemas(varValue);
}
else
{
this->m_errorCode=ERR_XML_DOC_SCHEMA_ADDITION_FAILED;
return FALSE;
}
}
else
{
this->m_errorCode=ERR_XML_DOC_SCHEMA_INSTANCE_CREATION_FAILED;
}
}
>>
Rajdeep
|
|
|
|
|
Off course, its a memory leak. you have to free a variant manually. The other way round is to use CComVariant. This frees a variant automatically and u get spared of calling VariantClear etc.
"Some people believe football is a matter of life and death.
I'm very disappointed with that attitude.
I can assure you it is much, much more important than that. -- Bill Shankly"
|
|
|
|
|
Have you ever tried Google Notebook? After installing the software, it will add a button to the bottom-right corner of IE. Dose anybody know how to implement that ? Any reply is appreciated.
Thanks
R.Y.J
|
|
|
|
|
Please don't cross post.
---
b { font-weight: normal; }
|
|
|
|
|
I am developing a build using Install shield 10.5 , after installing the msi , I could open the application but displaying the below error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
Can any one help me !!! Awaiting any valuable suggestions
Please Healp!!!!!! we are in very Much trouble!!!!!!!!!!
|
|
|
|
|
Are using some COM object in you application? One possibility is that, that component is missing, or thorowing some exception or not registered properly.
|
|
|
|
|
Prasad,
I am using install shield 10.5 , I am puting all the file and creating a msi, I am geting the folloing error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
at CaliperLifeSciences.DKP.SipperControl.SipperCtrlPanel.AsyncUserControlInitialize() in Y:\Core\Devices\PlateHandler\SipperControl.NET\CaliperSipper.vb:line 243
Should we register .exe files , or .net dll , while using regasm or regsvr32 I could not regiser them manually
Please give a answer to this please...
|
|
|
|
|
Jeeva Mary Varghese wrote: I am geting the folloing error message
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {18BD938D-208A-406B-9A7C-0FBE72010567} failed due to the following error: 80040154.
at CaliperLifeSciences.DKP.SipperControl.SipperCtrlPanel.AsyncUserControlInitialize() in
look for value {18BD938D-208A-406B-9A7C-0FBE72010567} in registry, see if its being registred on target m/c after installation. If not try to register it.
Jeeva Mary Varghese wrote: Should we register .exe files , or .net dll
No.
|
|
|
|
|
Prasad,
After adding new dll's , i could open the application but a popup window is comming say that this application will be closed sent to Microsoft, if we debug the error then it gives like
Unhandled exception at 0x781442d0 (msvcr80.dll) in LabChipHTSMain.exe: 0xC0000005: Access violation reading location 0x00000000.
PLease help
|
|
|
|
|
Jeeva Mary Varghese wrote: i could open the application but a popup window is comming say that this application will be closed sent to Microsoft,
This means that, you aplication is crashing.
Its necessarily because of reasons I mentioned earlier.
Try to create log, and see where its crashing.
And what about question I asked earlier.
Have you searched registry if ID mentioned ?
|
|
|
|
|
I have an object IWebBrowser2. I would like to receive notifications from the object into interface IHttpNegotiate (implemented in my code) – to have information about all HTTP requests that the IWebBrowser2 receives. Is this possible?
|
|
|
|
|
Hi to all.I'm new to XML.Can any one help me ,how to use MSXML in sending and retrieving bulk amounts of data in COM/DCOM.Please also mention some websites for MSXML to learn as a beginner.
Thans in advance.
|
|
|
|
|
Here is where you can find some XML info.[^]
Except that it is a COM component, MSXML has little to do with COM/DCOM, and nothing to do with the mechanics of sending/retrieving data, since XML is only a format, and MSXML is the MS implementation of various bits (DOM, SAX, et al) that deal with XML.
Steve S
Developer for hire
|
|
|
|
|
You can send data via XMLHTTP which is a part of MSXML3 and MSXML4. Web Services send data serialized into a special XML document (SOAP, WSE).
|
|
|
|