Problem in using ADO in VC dlls
-
Hi I am using VC++ Dlls. I want to use ADO to get information from the Database. When i am trying to import the ado dll in my dll application it is giving errors like enum is redefined. if i am declaring the same statement in Exe it is not showing any errors why? I am giving the import statement in this way. #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF") I have checked for the availability of that dll in the specified path.it is present. Can anybody help me Its Urgent Thanks in Advance
-
Hi I am using VC++ Dlls. I want to use ADO to get information from the Database. When i am trying to import the ado dll in my dll application it is giving errors like enum is redefined. if i am declaring the same statement in Exe it is not showing any errors why? I am giving the import statement in this way. #import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF") I have checked for the availability of that dll in the specified path.it is present. Can anybody help me Its Urgent Thanks in Advance
That is the correct statement if you have windows on c:. Where did you put this statement? The best place is near the bottom of stdafx.h. John