March 19th, 2013, 06:25 PM
lib using OLE DB TEMPLATE
Hi, thank you for reading this thread. My question contains two projects that are under the same solution.
I have created a dll where I use inside the project, OLE Db Template. In the project, I use this code.
Project_2: Is a project testing the Project_1.
- I want to call one of the exported functions.
- In Linker/Addional Dependencies, I have added the .lib
- In Linker/Additional Libray Directories, I have added the directory where is the lib.
- In C/C++/General/Additional Include Directories, I have added the directory on project 1. I did that because I want to #include a header in Project_1. But, when I do that, I get:
Error 1 error C3646: 'COLUMN_ENTRY' : unknown override specifier
Error 2 error C2059: syntax error : 'constant'
Error 3 error C3646: 'COLUMN_ENTRY' : unknown override specifier
I have done it several time with other projects, but the first time with OLE DB Template. atl90.dll is registered.
March 19th, 2013, 07:43 PM
Re: lib using OLE DB TEMPLATE
You're missing some headers. You can add these by starting by adding a C++ class, and choosing the OLE DB Consumer class.
[Edit] I noticed that after adding the OLE DB Consumer class, the following have been added to the stdafx.h header:
Last edited by Arjay; March 19th, 2013 at 07:47 PM.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.