Linking external library to ATL
-
I have a win32 library with no interfaces , just only exported functions. e.g. One of those is ..
bool getInfo (char *string, int counter);
I created a ATL exe , inserted a simple object.No I want to link the above library to my ATL project. So in Project->settings->link, I gave the lib name and directory of the lib file. Now I want to use this function getInfo in my atl program. SO I added one method in my interface sayCallLibFunction
And in that method I want to call getInfo.. Are these steps ok? Row -
I have a win32 library with no interfaces , just only exported functions. e.g. One of those is ..
bool getInfo (char *string, int counter);
I created a ATL exe , inserted a simple object.No I want to link the above library to my ATL project. So in Project->settings->link, I gave the lib name and directory of the lib file. Now I want to use this function getInfo in my atl program. SO I added one method in my interface sayCallLibFunction
And in that method I want to call getInfo.. Are these steps ok? RowRow wrote:
Are these steps ok?
Yes, These are the correct steps to add the library into project. Knock out 't' from can't, You can if you think you can :cool: