Solved

SQL in VC++ DLL

Posted on 2000-03-20
3
271 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now