|
See here.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
CProjectLDlg::CSkinDlg(CWnd* pParent /*=NULL*/)
: CDialog(CProjectLDlg::IDD, pParent)
{
m_hBmp=(HBITMAP)LoadImage(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDB_MAIN),IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);
m_hWndRgn=DIBToRgn(m_hBmp,0x00ff00,FALSE);
}
----------------------------------------------------------------------------
I coded in .NET 2003
but compiler has return this message.
Constructor initialiar list can use in constructor definition.
Plz resolve this problem
|
|
|
|
|
Keitaro21 wrote:
Constructor initialiar list can use in constructor definition.
I'm certain that's not the actual message - what's the eror number ? Is IDB_NAME a bitmap resource ? Which line is causing the error ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Keitaro21 wrote:
CProjectLDlg::CSkinDlg(CWnd* pParent /*=NULL*/)
What's this ?? The error comes from there probably. For the definition of your class constructor, you have two different names for the class scope (CProjectLDlg) and for the constructor itself (CSkinDlg). I suppose it is not intended, so correct that and use the same name for both.
|
|
|
|
|
<br />
CProjectLDlg::CSkinDlg(CWnd* pParent )<br />
: CDialog(CProjectLDlg::IDD, pParent)<br />
{<br />
m_hBmp=(HBITMAP)LoadImage(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDB_MAIN),IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION);<br />
m_hWndRgn=DIBToRgn(m_hBmp,0x00ff00,FALSE);<br />
}<br />
this function is not a constructor. It's just a member function. The initializer list (see the bold code) is only legal in constructors.
Change CProjectLDlg::CSkinDlg to CProjectLDlg::CProjectLDlg . That should do the trick.
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Thanks for reply my question ^^
|
|
|
|
|
You're welcome
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
hello..
I want to copy contents of one file to another.. the second file name will be specified by the user at run time.. how do i do it?
regards
pallavi
|
|
|
|
|
check this out here^
<bold>- Nilesh
<italics>
"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Look up the following api in MSDN:
BOOL CopyFile(
LPCTSTR lpExistingFileName,
LPCTSTR lpNewFileName,
BOOL bFailIfExists
);
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
is [CopyFile] help
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
You were late 5 minutes!
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello Bob..
Did you post your article which was supposed to be on heap manager..
regards
pallavi
|
|
|
|
|
mpallavi wrote:
Did you post your article which was supposed to be on heap manager..
I am Also Waiting for SAME, BOB Respond
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hello,
It's not the easiest thing to write. Besides that, I have little time on my hands, which I have to spend wisely. I'm not going to flunk some classes in school because I want to write that component... I'll try my best to finish it soon, but I canno't promise an exact date any time soon...
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
It's not the easiest thing to write.
I know, thats why i am waiting for it.
Bob Stanneveld wrote:
I'll try my best to finish it soon
Best of luck for that
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Best of luck for that
Thanks
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Not yet, I'm almost finished with the design. I'll post the article on the design after it is final (after some coding and no more major changes should be made).
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hey.. Wish you all the best!..
regards
pallavi
|
|
|
|
|
Thanks
Behind every greak black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
You were late 5 minutes!
Yeah, Typing with NOSE is very Difficult , Now i have to ask Mr. Cedric to relieve me from DUTY
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ThatsAlok wrote:
Typing with NOSE is very Difficult
Hi Alok..
You neck doesn't pain?.. I mean.. it must be really tiresome...
regards
pal
|
|
|
|
|
mpallavi wrote:
You neck doesn't pain?.. I mean.. it must be really tiresome...
What to do then
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
ha ha ha..
Byt the way.. whats your typing speed?
..pal
|
|
|
|