CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: using Lib

  1. #1
    Join Date
    Apr 1999
    Posts
    5

    using Lib

    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.~~~


  2. #2

    Re: using Lib

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured