Click here to Skip to main content
15,900,816 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionquestion in using TCHAR* Pin
Stick^11-Mar-07 17:20
Stick^11-Mar-07 17:20 
AnswerRe: question in using TCHAR* Pin
Mark Salsbery11-Mar-07 17:54
Mark Salsbery11-Mar-07 17:54 
GeneralRe: question in using TCHAR* Pin
Stick^11-Mar-07 19:16
Stick^11-Mar-07 19:16 
Questioncalculating conversion question... Pin
RubyM11-Mar-07 11:28
RubyM11-Mar-07 11:28 
AnswerRe: calculating conversion question... Pin
Christian Graus11-Mar-07 10:52
protectorChristian Graus11-Mar-07 10:52 
GeneralRe: calculating conversion question... Pin
RubyM11-Mar-07 12:17
RubyM11-Mar-07 12:17 
AnswerRe: calculating conversion question... Pin
lafleon12-Mar-07 12:19
lafleon12-Mar-07 12:19 
QuestionStatic linking to user-generated library in MSVC Pin
Still learning how to code11-Mar-07 4:46
Still learning how to code11-Mar-07 4:46 
For many years, I have been "naughty" in reusing my classes by copying the relevent files in to my current project in MSVC - I knew that I should be generating a library, but I was lazy !!! I have now generated a library and tried to alter my project settings to use MyLibrary. (I have experimented with a known working project) I have referenced the library by stating the path in MSVC/Project/Settings/Link and adding it to "Object/Library modules".
When I compile/link the project without making any source code changes (apart from adding a constructor for a class contained in MyLibrary), I get loads of errors (just under 200 !!), one of which I quote below:-

nafxcwd.lib(wincore.obj) : error LNK2005: "public: virtual void __thiscall CWnd::OnFinalRelease(void)" (?OnFinalRelease@CWnd@@UAEXXZ) already defined in mfc42d.lib(MFC42D.DLL)

If I remove the constructor for the class contained in MyLibrary, it links without error.

Can someone pin-point what I am doing wrong in the setup of my project within the MSVC (vers 6.0) build and usage of MyLibrary ?


Doug

AnswerRe: Static linking to user-generated library in MSVC Pin
Christian Graus11-Mar-07 5:14
protectorChristian Graus11-Mar-07 5:14 
GeneralRe: Static linking to user-generated library in MSVC Pin
Still learning how to code11-Mar-07 6:14
Still learning how to code11-Mar-07 6:14 
QuestionReferences and (re)building. Pin
Bartosz Bien10-Mar-07 13:11
Bartosz Bien10-Mar-07 13:11 
QuestionI need help for creating array [modified] Pin
thesad10-Mar-07 8:40
thesad10-Mar-07 8:40 
AnswerRe: I need help for creating array Pin
Christian Graus10-Mar-07 8:59
protectorChristian Graus10-Mar-07 8:59 
GeneralRe: I need help for creating array Pin
thesad10-Mar-07 9:17
thesad10-Mar-07 9:17 
AnswerRe: I need help for creating array Pin
Jeff J Anderson10-Mar-07 9:16
Jeff J Anderson10-Mar-07 9:16 
QuestionContextMenuStrip Pin
abbd10-Mar-07 8:31
abbd10-Mar-07 8:31 
QuestionRe: ContextMenuStrip [modified] Pin
abbd10-Mar-07 9:34
abbd10-Mar-07 9:34 
QuestionRe: ContextMenuStrip Pin
abbd10-Mar-07 10:09
abbd10-Mar-07 10:09 
QuestionMFC Regural DLL with C++ Managed Pin
Patrik Dufresne10-Mar-07 5:50
Patrik Dufresne10-Mar-07 5:50 
Questionerror of declaration Pin
abbd10-Mar-07 5:00
abbd10-Mar-07 5:00 
AnswerRe: error of declaration Pin
Christian Graus10-Mar-07 5:39
protectorChristian Graus10-Mar-07 5:39 
QuestionTreeNode Pin
abbd10-Mar-07 4:04
abbd10-Mar-07 4:04 
AnswerRe: TreeNode Pin
George L. Jackson10-Mar-07 4:33
George L. Jackson10-Mar-07 4:33 
QuestionGetHostName Pin
abbd10-Mar-07 3:27
abbd10-Mar-07 3:27 
AnswerRe: GetHostName Pin
George L. Jackson10-Mar-07 3:39
George L. Jackson10-Mar-07 3:39 

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.