|
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 ?
|
|
|
|
|
|
Banks K wrote: I have one Dll which is activex control named as “AxInterop.ECLActiveX.dll”
ActiveX have the '.ocx' extension, not '.dll'. So, there is something wrong here.
|
|
|
|
|
Cedric Moonen wrote: ActiveX have the '.ocx' extension, not '.dll'.
ocx and dll are both same, ocx is just a dll with the extention renamed.
OK, so what's the speed of dark?
|
|
|
|
|
Monty2 wrote: ocx and dll are both same, ocx is just a dll with the extention renamed.
Not entirely true. ActiveX is based on a dll but it is more than just a regular dll (it provides much more than a simple dll). Thus there something strange here. Why does it speak about an ActiveX that has a .dll extension ? I just wanted to clarify the situation.
|
|
|
|
|
Not all files with a DLL extension are regular DLLs. An ActiveX control can be in a file with a DLL extension. It is common for an ActiveX control to be in a file with the OCX extension, but I think that is primarily due to the way VB uses them. Windows will use whatever file that is registered.
|
|
|
|
|
The definition of "ActiveX Control" is nebulous but typically they include a UI. If the control has a UI then you probably need to create a window for it.
|
|
|
|
|
when using this got error no guid is attach,how to solve this
error C2787: '_DBAccess' : no GUID has been associated with this object
hresult=CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(_DBAccess),(LPVOID *) &t);
|
|
|
|
|
Is it because the you haven't registered the object (your dll, OCX, whatever) with regsvr32.exe?
|
|
|
|
|
im trying to write 40 01 00 20 (hex) to the registry as a binary number it is writing but it come out as 32 00 00 00 can someone show me the right way
DWORD value = 40,01,00,20;
DWORD dwvalue = sizeof(DWORD);
RegSetValueEx(
hKey,
"Attributes",
0,
REG_BINARY,
(LPBYTE) &value,
dwvalue
);
"Attributes"=hex:50,01,00,20
ok i found that if i do it as
value = 0x20000150; it will put it in the registry as 50 01 00 20 why does it turn it around?
|
|
|
|