Click to See Complete Forum and Search --> : using Lib


Benjamin Macca
April 6th, 1999, 03:48 AM
Hi ALL,
I get a lib and a function syntax list of a programmer.
I want to use its function at my MFC programme. How could i do?
i already add those .lib files at "Project->Setting".
And the syntax of function is like this, e.g. "extern FILE *OpenFile (const char *_filename, const char *_options)"
If i want to use it at one of my command function at XXXView.cpp, what should i do?
thanks.~~~

LALeonard
April 7th, 1999, 05:57 PM
1). At the top of the file you wish to call this function from, #include the lib's header file.

2). In MSVC, in the Build Settings for the project, on the Link tab, add the name of the lib file (including the .lib part) to the "Object/Library Modules" edit control. Be sure to do this for both Debug and Release mode.

HTH.

LA Leonard - Definitive Solutions, Inc.