|
With_problem wrote: while using this code....unhandled exeption in a.exe(apiocx):0xc0000005 Access Violation
At which line ? Have you checked pointers for NULL before using ?
With_problem wrote: if(hresult != NULL)
HRESULT should use this way. Use SUCCEEDED(hresult) instead.
i.e
if(SUCCEEDED(hresult))
{
}
|
|
|
|
|
when it comes to setquotetodb function it gives error...i just dont know what to do,i have given my 100%....pls help me
|
|
|
|
|
t , how it is declared? It seems to be NULL in your case.
With_problem wrote: ,i have given my 100%.
You need to be very precise, while stating probem. Otherwisea, it will be unsolved forever.
|
|
|
|
|
can you pls point me wher i am making big mistake....pls
when i use this code it also give error
error C2787: '_DBAccess' : no GUID has been associated with this object
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_DBAccess),(LPVOID *) &t);
But i have seen in .tlh file clsid is attach with this ....
|
|
|
|
|
With_problem wrote: no GUID has been associated with this object
Google to the rescue
Google to the rescue [^]
Try the second link.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
i have change my code also to laod dll.....now what to do....you have hepled me before also...thank you
|
|
|
|
|
hello som you have helped me a lot to solve my problem....i just mail you here to say thank you very much for your support and help...for coding and corresction...
And yes one more thing this error is just no more when i have used the try,catch block.....and now my project is working fine....
Haappy New Year
Regards
Priyanka
|
|
|
|
|
You are always welcome.
Happy New Year to you,too.
|
|
|
|
|
With_problem wrote: t->setQuoteToDB(&bsTimeStamp,&MarketNo,&bsMarket,&bsAsk,&bsBid,&MarketState);
when it comes to setquotetodb function it gives error
Is this a COM DLL written in VB? If that is the case then the issue I believe would have more to do with the translation between the string types. I have gone the other way and had issues ie passing strings from a VB app to a C++ dll. If thats true try using LPSTR (from memory, but it just seems wrong) string instead of BSTR
I only ask this because a Google search reviled this link Calling a VB ActiveX DLL from a MFC Client[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
thanks i have used the same link to proceed with....but still facng the problem....after #import dll
when i use namespace it report the error....why...
|
|
|
|
|
With_problem wrote: it report the error
Which error? Access Violation?
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
error C2872: '_DBAccess' : ambiguous symbol
|
|
|
|
|
The error normally indicates that you did something that cause your program to access memory that does not belong to your program. Normally this is caused by an invalid pointer, or by arrays exceeding bounds. The problem may become obvious at a completely other location than the location where you caused teh problem.
My recommendation: use the debugger to check the contents of all variables for wrong or invalid values. Maybe you can comment out sections of your application to make bug hunting easer.
It is very unlikely that someone on the Internet will provide you the solution.
Good luck
|
|
|
|
|
Hi
I want to use a dll by static link.
Can any body give me some tips how do this.
Thanks in Advance
nk
|
|
|
|
|
aaaan wrote: static link
Do you mean implicit linking ?
aaaan wrote: Can any body give me some tips how do this.
Have you read this[^] ?
|
|
|
|
|
Yes i read,
but i donot know how to impliment this.
i need more clarification.
nk
|
|
|
|
|
2 type of linking explicit linking which links at run time and other is implicit linking which links at load time.i think u are refering the latter
never say die
|
|
|
|
|
sunit5 wrote: explicit linking which links at run time and other is implicit linking which links at load time.i think u are refering the latter
He is questioning about the former one.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
expilcit linking is at run time so it is the latter
never say die
|
|
|
|
|
In your post it was former. I understood it in the order you had typed
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
This[^] article is for you
|
|
|
|
|
|
Hi all ,
I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll”
I have to use this DLL in my application which is console base application.
this DLL export some function like "compreesFile" etc.
can anybody tell me how can call function from that DLL.
if anybody have for the please share with me.
thanks
bankey khandelwal
|
|
|
|
|
|
thanks for ur reply
but i have DLL which also developed in vc++
and also when trying to import this DLL as
# import "Interop.ECLActiveX.dll"
it giving a error like
fatal error C1083: Cannot open type library file: 'e:\workarea\data\code\consolebasetest\interop.eclactivex.dll': Error loading type library/DLL.
also this dll is at the same path
can you explain me what is the problem ?
|
|
|
|