Click here to Skip to main content
15,881,380 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionSending raw data to a chinese POS58 thermal printer Pin
sdancer757-Jun-16 8:42
sdancer757-Jun-16 8:42 
AnswerRe: Sending raw data to a chinese POS58 thermal printer Pin
Richard MacCutchan7-Jun-16 8:59
mveRichard MacCutchan7-Jun-16 8:59 
QuestionDatabase Migration in C++ and Oracle Pin
Donguy197611-May-16 11:30
Donguy197611-May-16 11:30 
AnswerRe: Database Migration in C++ and Oracle Pin
Richard MacCutchan11-May-16 20:29
mveRichard MacCutchan11-May-16 20:29 
QuestionLinking my first DLL Pin
bkelly1328-Feb-16 14:53
bkelly1328-Feb-16 14:53 
AnswerRe: Linking my first DLL Pin
Richard MacCutchan28-Feb-16 21:35
mveRichard MacCutchan28-Feb-16 21:35 
GeneralRe: Linking my first DLL Pin
bkelly1329-Feb-16 15:50
bkelly1329-Feb-16 15:50 
GeneralRe: Linking my first DLL Pin
Richard MacCutchan29-Feb-16 21:52
mveRichard MacCutchan29-Feb-16 21:52 
You are still (not surprisingly) missing an important part of this. When you create a DLL the build (more specifically the linker) creates two files.

The first file is the DLL itself which contains the actual code that you want to call when your program is run. This file is only ever needed at run time, it has no part in the linking process when creating your executable.

The second, equally important, is the .LIB file, which contains the names and offsets of the exported functions. This second file is the one that you must add to your project in order for the linker to satisfy all the __delspec(dllimport) declarations. So when you add to the Additional library directories the path to your library, you also need to add the name of the .LIB file to the Additional Dependencies part of the Input section in the Linker properties.

Of course, you could save yourself much of this pain by creating a static library rather than a dll, but that is probably an exercise for another day.
GeneralRe: Linking my first DLL Pin
bkelly131-Mar-16 12:46
bkelly131-Mar-16 12:46 
GeneralRe: Linking my first DLL Pin
Richard Andrew x641-Mar-16 15:01
professionalRichard Andrew x641-Mar-16 15:01 
GeneralRe: Linking my first DLL Pin
Richard MacCutchan1-Mar-16 21:58
mveRichard MacCutchan1-Mar-16 21:58 
QuestionDLL article question Resolved Pin
bkelly1327-Feb-16 11:10
bkelly1327-Feb-16 11:10 
AnswerRe: DLL article question Pin
Richard Andrew x6427-Feb-16 13:32
professionalRichard Andrew x6427-Feb-16 13:32 
GeneralRe: DLL article question Pin
bkelly1328-Feb-16 3:18
bkelly1328-Feb-16 3:18 
QuestionDLL Questions Pin
bkelly1324-Feb-16 13:34
bkelly1324-Feb-16 13:34 
AnswerRe: DLL Questions Pin
Richard Andrew x6424-Feb-16 14:17
professionalRichard Andrew x6424-Feb-16 14:17 
GeneralRe: DLL Questions Pin
Kenneth Haugland24-Feb-16 15:40
mvaKenneth Haugland24-Feb-16 15:40 
GeneralRe: DLL Questions Pin
Richard MacCutchan24-Feb-16 21:34
mveRichard MacCutchan24-Feb-16 21:34 
AnswerRe: DLL Questions Pin
Richard MacCutchan24-Feb-16 21:33
mveRichard MacCutchan24-Feb-16 21:33 
GeneralRe: DLL Questions Pin
bkelly1325-Feb-16 13:07
bkelly1325-Feb-16 13:07 
GeneralRe: DLL Questions Pin
Richard MacCutchan25-Feb-16 22:18
mveRichard MacCutchan25-Feb-16 22:18 
GeneralRe: DLL Questions Pin
Jochen Arndt25-Feb-16 22:37
professionalJochen Arndt25-Feb-16 22:37 
GeneralRe: DLL Questions Pin
Richard MacCutchan26-Feb-16 0:01
mveRichard MacCutchan26-Feb-16 0:01 
QuestionQuestion about Direct3D View Area Pin
Member 112032772-Feb-16 5:24
Member 112032772-Feb-16 5:24 
QuestionFormatMessage for unicode Pin
bkelly1330-Jan-16 15:03
bkelly1330-Jan-16 15:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.