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? Please let me know, any other precaution or regarding data types??? Kindly let me know. 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? Please let me know, any other precaution or regarding data types??? Kindly let me know. RowYou may need to declare the getInfo signatrure to satisfy the compiler.
bool getInfo (char *string, int counter);
Implimentation will be taken from the .lib file. cheers...milton KB -
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? Please let me know, any other precaution or regarding data types??? Kindly let me know. RowYou need to include a header file that should be provided with the library.