Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HowTo access CDoc class from CMainFrm Pin
Ravi Bhavnani22-Jan-04 3:45
professionalRavi Bhavnani22-Jan-04 3:45 
GeneralProblems with ShellExecute Pin
Bash22-Jan-04 3:20
Bash22-Jan-04 3:20 
GeneralRe: Problems with ShellExecute Pin
David Crow22-Jan-04 3:48
David Crow22-Jan-04 3:48 
GeneralRe: Problems with ShellExecute Pin
Bash22-Jan-04 7:34
Bash22-Jan-04 7:34 
GeneralDisplaying images in RAW format Pin
mcsherry22-Jan-04 3:19
mcsherry22-Jan-04 3:19 
GeneralRe: Displaying images in RAW format Pin
John R. Shaw22-Jan-04 6:39
John R. Shaw22-Jan-04 6:39 
GeneralRe: Displaying images in RAW format Pin
mcsherry25-Jan-04 23:05
mcsherry25-Jan-04 23:05 
GeneralLinker Error #2005 Pin
lubatomy22-Jan-04 3:05
lubatomy22-Jan-04 3:05 
I keep getting a linker Error 2005 about functions already being defined for every class I try and make in VS.net. I program my classes by putting the class definition in one file and them the actual code for the functions in a seperate file. for example:
***myclass.h file***
class myclass
{
public:
void myfunc();
.....

***myclass.cpp***
#include "myclass.h"

void myclass::myfunc()
{
.......

This will always give me a linker error that there are two definitions for the function myfunc in the object file. I can make the error become a warning if I use the linker command /FORCE:MULTIPLE but that does not seem like the best way to overcome the problem even though the program will work fine when I do that. Does anyone have some helpfull suggestions to solving this problem. (I do not want to put the meat of the function in the class definition as sometimes the functions are rather big.)
GeneralRe: Linker Error #2005 Pin
emadns22-Jan-04 3:12
emadns22-Jan-04 3:12 
GeneralRe: Linker Error #2005 Pin
lubatomy22-Jan-04 3:39
lubatomy22-Jan-04 3:39 
GeneralRe: Linker Error #2005 Pin
David Crow22-Jan-04 3:54
David Crow22-Jan-04 3:54 
GeneralGetting ip from mac address Pin
itmpras22-Jan-04 3:01
itmpras22-Jan-04 3:01 
GeneralRe: Getting ip from mac address Pin
David Crow22-Jan-04 3:04
David Crow22-Jan-04 3:04 
GeneralIt is not working Pin
itmpras22-Jan-04 4:15
itmpras22-Jan-04 4:15 
GeneralRe: It is not working Pin
David Crow22-Jan-04 5:53
David Crow22-Jan-04 5:53 
GeneralRe: Getting ip from mac address Pin
valikac22-Jan-04 4:35
valikac22-Jan-04 4:35 
GeneralRe: Getting ip from mac address Pin
itmpras22-Jan-04 5:13
itmpras22-Jan-04 5:13 
Generalalphablend with win98 does not work! Pin
schaereran@gmx.net22-Jan-04 2:10
schaereran@gmx.net22-Jan-04 2:10 
GeneralRe: alphablend with win98 does not work! Pin
Prakash Nadar22-Jan-04 3:40
Prakash Nadar22-Jan-04 3:40 
GeneralMFC - incrementing values Pin
Ashman22-Jan-04 1:08
Ashman22-Jan-04 1:08 
GeneralRe: MFC - incrementing values Pin
David Crow22-Jan-04 2:52
David Crow22-Jan-04 2:52 
GeneralRe: MFC - incrementing values Pin
John R. Shaw22-Jan-04 7:00
John R. Shaw22-Jan-04 7:00 
GeneralRe: MFC - incrementing values Pin
David Crow22-Jan-04 7:03
David Crow22-Jan-04 7:03 
GeneralRe: MFC - incrementing values Pin
basementman22-Jan-04 11:58
basementman22-Jan-04 11:58 
GeneralInline Assembly Pin
hph22-Jan-04 0:58
hph22-Jan-04 0:58 

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.