Building a Windows DLL for ODBC Applications [Part 2]

    By: Paul Vero on Feb 02, 2014

    In part two of this article, we'll learn how to build our odbcutil library and cover some important terminology and functionality in Visual Studio. We'll also take a look at the dumpbin utility via the Visual Studio command line.

    We’re ready to build our ODBC utility library introduced last month in part one. The build process is relatively easy in the IDE of Visual Studio. So far, we’ve learned the code structure I used in formulating my odbc utility library as well as the functional specification I used to define the functions provided by the library. Now we’re ready to create, or build, the library. Next month we’ll learn how we can apply its use to a test application, which will call upon the various functions. Before we create a test we’ll add a new function to the library, going over the criteria I use to make this sort of a decision. I usually figure this out when I write a test. If the code I use in the test main is something I think will come in handy in the future, I add it to my library, document and build it, then test it a bit to make sure the new code is feasible.

    Included with this article is another copy of the odbcutil project, odbcutil_demo.zip. It’s the source code built from scratch based on the contents of this article. Of course, I’d rather you follow along the article and create your own project.

    Some MSDEV Terminology and Configuration
    You start building a library, which becomes a DLL in windows, by creating it in msdev. Start in msdev, in which I’ll use Visual Studio 2005 for the demonstration. From the menu select File | New |
    Project. Select Win32 project and enter your names. I always check “Create directory for solution”. This will create a subfolder under ...

     

    Login to read the article. Not a member? Create a free account!

    Released: February 2, 2014, 12:45 pm | Updated: March 5, 2014, 11:04 am
    Keywords: ASE Developer Article | Technical Journal | ODBC | Paul Vero | Visual Studio


     

     

    TwitterLLinkedinLFacebook

    Copyright © 2014 ISUG-TECH. All Rights Reserved
    All material, files, logos and trademarks within this site are copyright their respective organizations

    Terms of Service - Privacy Policy - Contact the Help Desk