Re: error in function call
Most likely your client is not compiling against the same interface
as your server. A stale IDL in the client project, or a stale type
library if you are using #import would do that.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@mvps.org
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Rohit Kumar" <RohitKumar@discussions.microsoft.com> wrote in message
news:69AC5DCB-70F3-4C11-98B9-597AF0E7024E@microsoft.com...
wanted to add something....
also in the call > hr = ptr->raw_CheckForUpdates(&abc);
hr get the result "0x80010105 The server threw an exception."
Thanks.
"Rohit Kumar" wrote:
Hi,
I changed my function definition in my interface at the server and when i
try to call the function, it is giving me the following error.
The value of ESP was not properly saved across a function call. This is
usually a result of calling a function declared with one calling
convention
with a function pointer declared with a different calling convention.
Following is my function in the interface
STDMETHODIMP CWebLinkHelper::CheckForUpdates(BSTR* downloadUrl)
{
// TODO: Add your implementation code here
*downloadUrl = SysAllocString(L"rohit");
return S_OK;
}
and i am calling the function as
BSTR abc;
hr = ptr->raw_CheckForUpdates(&abc);
My IDL defn of the func is as follows
[id(6), helpstring("method CheckForUpdates")] HRESULT
CheckForUpdates([out,retval] BSTR* downloadUrl);
Can anyone help me out in solving this?
Thanks in Advance!