Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Error in strcpy Pin
Bob Stanneveld20-Dec-05 3:38
Bob Stanneveld20-Dec-05 3:38 
AnswerRe: Error in strcpy Pin
Blake Miller20-Dec-05 4:22
Blake Miller20-Dec-05 4:22 
GeneralRe: Error in strcpy Pin
toxcct20-Dec-05 4:35
toxcct20-Dec-05 4:35 
GeneralRe: Error in strcpy Pin
Blake Miller20-Dec-05 4:39
Blake Miller20-Dec-05 4:39 
AnswerRe: Error in strcpy Pin
John M. Drescher20-Dec-05 6:50
John M. Drescher20-Dec-05 6:50 
QuestionRe: Error in strcpy Pin
David Crow20-Dec-05 10:29
David Crow20-Dec-05 10:29 
AnswerRe: Error in strcpy Pin
ThatsAlok20-Dec-05 18:19
ThatsAlok20-Dec-05 18:19 
QuestionInitializing Structure in a class Pin
vikas amin20-Dec-05 2:45
vikas amin20-Dec-05 2:45 
I have a class in which there is a structe
i want to initialize the structre through the constructer .

class xyz{


struct tagBITMAPFILEHEADER
{
WORD bfType; // must be 'BM'
DWORD bfSize; // size of the whole .bmp file
WORD bfReserved1; // must be 0
WORD bfReserved2; // must be 0
DWORD bfOffBits;
}m_BITMAPFILEHEADER ;


xyz()
{
BITMAPFILEHEADER ={0,0,0,0,0};
}

}

I am getting an error
error C2059: syntax error : '{'
error C2143: syntax error : missing ';' before '{'

am i wrong someware




}

Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
AnswerRe: Initializing Structure in a class Pin
Russell'20-Dec-05 2:55
Russell'20-Dec-05 2:55 
GeneralRe: Initializing Structure in a class Pin
toxcct20-Dec-05 3:02
toxcct20-Dec-05 3:02 
GeneralRe: Initializing Structure in a class Pin
vikas amin20-Dec-05 3:09
vikas amin20-Dec-05 3:09 
GeneralRe: Initializing Structure in a class Pin
toxcct20-Dec-05 3:13
toxcct20-Dec-05 3:13 
GeneralRe: Initializing Structure in a class Pin
Russell'20-Dec-05 3:20
Russell'20-Dec-05 3:20 
GeneralRe: Initializing Structure in a class Pin
Blake Miller20-Dec-05 4:26
Blake Miller20-Dec-05 4:26 
GeneralRe: Initializing Structure in a class Pin
Russell'20-Dec-05 4:37
Russell'20-Dec-05 4:37 
QuestionImplementing Doc/View/Frame in an ActiveX control Pin
zulat20-Dec-05 2:21
zulat20-Dec-05 2:21 
Questionchanging background color of messagebox windows,menu Pin
_kane_20-Dec-05 1:17
_kane_20-Dec-05 1:17 
Questionbitmapped title/caption bar in MFC Pin
_kane_20-Dec-05 1:08
_kane_20-Dec-05 1:08 
AnswerRe: bitmapped title/caption bar in MFC Pin
_kane_20-Dec-05 1:28
_kane_20-Dec-05 1:28 
QuestionHow to write data from a.txt into excel file? Pin
zhonglin.liang20-Dec-05 1:08
zhonglin.liang20-Dec-05 1:08 
AnswerRe: How to write data from a.txt into excel file? Pin
khan++20-Dec-05 1:31
khan++20-Dec-05 1:31 
GeneralRe: How to write data from a.txt into excel file? Pin
zhonglin.liang20-Dec-05 3:51
zhonglin.liang20-Dec-05 3:51 
QuestionMSXML encodings Pin
Marc Soleda20-Dec-05 0:54
Marc Soleda20-Dec-05 0:54 
Questionstopping upload/download process in CHtmlView class Pin
Shailesh Ha20-Dec-05 0:12
Shailesh Ha20-Dec-05 0:12 
QuestionDisable network iface? Pin
lynchspawn20-Dec-05 0:11
lynchspawn20-Dec-05 0: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.