Solved

SQL in VC++ DLL

Posted on 2000-03-20
3
280 Views
Last Modified: 2010-04-10
I am trying to run a SQL stored procedure in a VC++ DLL.  I can create the DLL, I can create an EXE which does the stored procedure well.  I cannot seem to use the dbinit() function from within my DLL.  It complains of an unresolved external reference "_dbinit".  Due to my inexperience, I believe I'm missing something fairly simple.  klsanders@thegrid.net
0
Comment
Question by:ksanders
  • 2
3 Comments
 

Accepted Solution

by:
wardkd earned 50 total points
ID: 2636696
Did you include the dblib library in your link step???
0
 

Author Comment

by:ksanders
ID: 2636900
Thank you wardkd.  I found a .lib file called ntwdblib.lib, included it and the DLL compiled!  I know this is just the beginning for me, but it was very important that I get an answer and a way to proceed FAST.  Thank you very much.  kls
0
 

Author Comment

by:ksanders
ID: 2636909
Thank you very much.  I'm sure you'll be seeing me around here often.  kls
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question