Click here to Skip to main content
16,006,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFinding address Pin
cyrilbdt29-Aug-01 7:40
cyrilbdt29-Aug-01 7:40 
GeneralRe: Finding address Pin
Derek Waters29-Aug-01 13:31
Derek Waters29-Aug-01 13:31 
GeneralRe: Finding address Pin
29-Aug-01 13:43
suss29-Aug-01 13:43 
GeneralWindows Explorer File Properties- ATL Pin
Lilian Chan-Grant29-Aug-01 6:42
Lilian Chan-Grant29-Aug-01 6:42 
GeneralRe: Windows Explorer File Properties- ATL Pin
Tomasz Sowinski29-Aug-01 8:49
Tomasz Sowinski29-Aug-01 8:49 
GeneralRe: Windows Explorer File Properties- ATL Pin
30-Aug-01 8:47
suss30-Aug-01 8:47 
QuestionUsing .lib - How? Pin
29-Aug-01 6:06
suss29-Aug-01 6:06 
AnswerRe: Using .lib - How? Pin
Tomasz Sowinski29-Aug-01 8:30
Tomasz Sowinski29-Aug-01 8:30 
I want to just write "include "dummycontrol.h"" in cpp file of the other project, and linker will pick it up automatically.

#pragma comment(lib, "yourlib") will do the trick. You'll probably use two #pragmas in #if/#else/#endif, one for debug and one for release. Note that there's no path - you should place the .lib file in one of the dirs listed in Options/Directories/Library files.

I was able to link only when I explicitly put full path to the module

Hmmm... including just the 'yourlib.lib' in the Object/Library modules didn't work?





Tomasz Sowinski -- http://www.shooltz.com
GeneralRe: Using .lib - How? Pin
29-Aug-01 10:24
suss29-Aug-01 10:24 
GeneralRe: Using .lib - How? Pin
29-Aug-01 10:24
suss29-Aug-01 10:24 
GeneralRe: Using .lib - How? Pin
Tomasz Sowinski29-Aug-01 10:28
Tomasz Sowinski29-Aug-01 10:28 
GeneralRe: Using .lib - How? Pin
29-Aug-01 11:04
suss29-Aug-01 11:04 
AnswerRe: Using .lib - How? Pin
Giles29-Aug-01 8:59
Giles29-Aug-01 8:59 
GeneralTwo active windows at the same time Pin
Huong29-Aug-01 5:38
Huong29-Aug-01 5:38 
QuestionWhat means "container" on a LAN? Pin
Maer72729-Aug-01 5:37
Maer72729-Aug-01 5:37 
AnswerRe: What means Pin
Paolo Messina29-Aug-01 12:52
professionalPaolo Messina29-Aug-01 12:52 
GeneralRe: What means Pin
Maer72729-Aug-01 21:54
Maer72729-Aug-01 21:54 
GeneralRe: What means Pin
Paolo Messina29-Aug-01 23:19
professionalPaolo Messina29-Aug-01 23:19 
GeneralRe: What means Pin
Maer72730-Aug-01 2:47
Maer72730-Aug-01 2:47 
GeneralRe: What means Pin
Paolo Messina30-Aug-01 23:15
professionalPaolo Messina30-Aug-01 23:15 
GeneralRe: What means Pin
Maer72731-Aug-01 2:09
Maer72731-Aug-01 2:09 
GeneralRe: What means Pin
Paolo Messina31-Aug-01 6:18
professionalPaolo Messina31-Aug-01 6:18 
GeneralRe: What means Pin
Maer72731-Aug-01 17:25
Maer72731-Aug-01 17:25 
GeneralRe: What means Pin
Paolo Messina1-Sep-01 0:46
professionalPaolo Messina1-Sep-01 0:46 
Questionis this possible? Pin
29-Aug-01 5:11
suss29-Aug-01 5:11 

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.