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

C / C++ / MFC

 
GeneralWindows NT Service vs. ATL Service EXE Pin
Nikhil29-Jan-01 23:49
Nikhil29-Jan-01 23:49 
GeneralCompiler Error Pin
Amit Dey29-Jan-01 23:35
Amit Dey29-Jan-01 23:35 
GeneralString across DLL's Pin
Amit Dey29-Jan-01 23:29
Amit Dey29-Jan-01 23:29 
GeneralRe: String across DLL's Pin
Chris Losinger30-Jan-01 4:00
professionalChris Losinger30-Jan-01 4:00 
GeneralLoad video from an IStream Pin
29-Jan-01 22:07
suss29-Jan-01 22:07 
GeneralProblem with a tree view !!! Pin
Walid MEDDEB29-Jan-01 21:59
Walid MEDDEB29-Jan-01 21:59 
GeneralActiveX Param Tag Values Pin
29-Jan-01 11:17
suss29-Jan-01 11:17 
GeneralA compiler error Pin
winyu29-Jan-01 7:37
winyu29-Jan-01 7:37 
// ----------- I declare a class constructor & destructor like this...
#include "afxdlgs.h"
class CEditSongListDialog : public CFileDialog
{
public:
CEditSongListDialog (BOOL bOpenFileDialog,
LPCTSTR lpszDefExt = NULL,
LPCTSTR lpszFileName = NULL,
DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
LPCTSTR lpszFilter = NULL,
CWnd* pParentWnd = NULL);
~CEditSongListDialog ();
...
}

// ---------- And define them like this...
CEditSongListDialog ::CEditSongListDialog (BOOL bOpenFileDialog,
LPCTSTR lpszDefExt,
LPCTSTR lpszFileName,
DWORD dwFlags,
LPCTSTR lpszFilter,
CWnd* pParentWnd)
:CFileDialog (bOpenFileDialog, lpszDefExt, lpszFileName, dwFlags, lpszFilter, pParentWnd)
{
m_ofn.Flags |= OFN_EXPLORER | OFN_ENABLETEMPLATE | OFN_ENABLEHOOK | OFN_ALLOWMULTISELECT;
m_ofn.lpTemplateName = MAKEINTRESOURCE(IDD_EDITSONGLIST);
m_ofn.lpstrTitle = "Edit Song List";
m_ofn.lpstrFilter = "*.MP3";
}
CEditSongListDialog ::~CEditSongListDialog()
{
UnhookWindowsHookEx (ESL_HookHandle);
nOnceOnly = 0;
}

// -------------- Then I get error message like this...
Compiling...
EditSongListDialog.cpp
Linking...
RR_SWallDlg.obj : error LNK2005: "public: virtual __thiscall CEditSongListDialog::~CEditSongListDialog(void)" (??1CEditSongListDialog@@UAE@XZ) already defined in EditSongListDialog.obj
Debug/RR_SWall.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

// ------------- The question is "what wrong with my program ???"

GeneralRe: A compiler error Pin
Michael Dunn29-Jan-01 9:02
sitebuilderMichael Dunn29-Jan-01 9:02 
GeneralUrgent: Pop up menus and SFTTree Pin
Ole Chr. Birkeland29-Jan-01 4:16
Ole Chr. Birkeland29-Jan-01 4:16 
GeneralRequest: Samplecode QuickTime Pin
AlexMarbus29-Jan-01 3:45
AlexMarbus29-Jan-01 3:45 
GeneralLisView Pin
29-Jan-01 3:20
suss29-Jan-01 3:20 
QuestionHow to change the caption of the "open" button? Pin
leonwoo29-Jan-01 2:56
leonwoo29-Jan-01 2:56 
AnswerRe: How to change the caption of the Pin
Christian Graus29-Jan-01 11:28
protectorChristian Graus29-Jan-01 11:28 
GeneralRe: How to change the caption of the Pin
29-Jan-01 11:54
suss29-Jan-01 11:54 
QuestionDo VB ActiveX DLLs have to be so hard to use? Pin
Brendan Tregear28-Jan-01 18:50
Brendan Tregear28-Jan-01 18:50 
AnswerRe: Do VB ActiveX DLLs have to be so hard to use? Pin
29-Jan-01 1:14
suss29-Jan-01 1:14 
Questionblit a bmp as dlg background? Pin
28-Jan-01 11:57
suss28-Jan-01 11:57 
AnswerRe: blit a bmp as dlg background? Pin
Christian Graus28-Jan-01 12:20
protectorChristian Graus28-Jan-01 12:20 
QuestionShellExecute??? Pin
28-Jan-01 10:45
suss28-Jan-01 10:45 
AnswerRe: ShellExecute??? Pin
Christian Graus28-Jan-01 10:54
protectorChristian Graus28-Jan-01 10:54 
AnswerRe: ShellExecute??? Pin
29-Jan-01 3:38
suss29-Jan-01 3:38 
Generalip address Pin
loki rasputin28-Jan-01 6:45
loki rasputin28-Jan-01 6:45 
GeneralRe: ip address Pin
28-Jan-01 15:21
suss28-Jan-01 15:21 
GeneralRe: ip address Pin
loki rasputin28-Jan-01 17:26
loki rasputin28-Jan-01 17:26 

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.