Click here to Skip to main content
15,924,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: u use the Getpixel for picture dc Pin
basementman6-Jan-06 4:08
basementman6-Jan-06 4:08 
QuestionInitializing Structure in a class Pin
vikas amin21-Dec-05 0:50
vikas amin21-Dec-05 0:50 
AnswerRe: Initializing Structure in a class Pin
Rage21-Dec-05 1:11
professionalRage21-Dec-05 1:11 
AnswerRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 1:13
Owner drawn21-Dec-05 1:13 
GeneralRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:03
toxcct21-Dec-05 2:03 
GeneralRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 19:44
Owner drawn21-Dec-05 19:44 
AnswerRe: Initializing Structure in a class Pin
Eytukan21-Dec-05 2:01
Eytukan21-Dec-05 2:01 
AnswerRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:13
toxcct21-Dec-05 2:13 
Mr vikas,

it's the second time i see this question from you. if you continue asking it exactly the same way, you will get exactly same answers...

to go further in help, i'd like to see how you exactly try to initialize your struct (give a piece a code were you do it, and DON'T FORGET : round your code samples with <pre></pre> tag to help us see you code better !!)

moreover, as it has already been suggested, there are 2 ways to do this :
1st :
m_BITMAPFILEHEADER = { 0, 0, 0, 0, 0 };

2nd :
m_BITMAPFILEHEADER.bfType      = 0;
m_BITMAPFILEHEADER.bfSize      = 0;
m_BITMAPFILEHEADER.bfReserved1 = 0;
m_BITMAPFILEHEADER.bfReserved2 = 0;
m_BITMAPFILEHEADER.bfOffBits   = 0;

if you try to initialize this in your class constructor, did you try also to use the first method in the initilizer list of the constructor ?
<font color=blue>class</font> MyClass {
  <font color=blue>private</font>:
    <font color=blue>struct</font> tagBITMAPFILEHEADER {
        <font color=green>//...</font>
        tagBITMAPFILEHEADER(<font color=blue>const</font> tagBITMAPFILEHEADER&);  <font color=green>//Default constructor</font>
    } m_tagBITMAPFILEHEADER;
 
  <font color=blue>public</font>:
    MyClass()
        : m_tagBITMAPFILEHEADER({ 0, 0, 0, 0, 0 }) {
        <font color=green>//...</font>
    }
};



TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0]
AnswerRe: Initializing Structure in a class Pin
krmed21-Dec-05 4:37
krmed21-Dec-05 4:37 
QuestionOffer user a list of choices from a command prompt Pin
KevinSheedy21-Dec-05 0:16
KevinSheedy21-Dec-05 0:16 
AnswerRe: Offer user a list of choices from a command prompt Pin
khan++21-Dec-05 3:48
khan++21-Dec-05 3:48 
GeneralRe: Offer user a list of choices from a command prompt Pin
KevinSheedy21-Dec-05 4:10
KevinSheedy21-Dec-05 4:10 
GeneralRe: Offer user a list of choices from a command prompt Pin
khan++21-Dec-05 4:27
khan++21-Dec-05 4:27 
GeneralRe: Offer user a list of choices from a command prompt Pin
RChin21-Dec-05 6:20
RChin21-Dec-05 6:20 
QuestionFindResource -Problem Pin
kotiramkoteswararao20-Dec-05 23:53
kotiramkoteswararao20-Dec-05 23:53 
AnswerRe: FindResource -Problem Pin
includeh1021-Dec-05 2:23
includeh1021-Dec-05 2:23 
QuestionHow can I add a status bar to a dialog..... Pin
Owner drawn20-Dec-05 23:53
Owner drawn20-Dec-05 23:53 
AnswerRe: How can I add a status bar to a dialog..... Pin
Owner drawn21-Dec-05 0:08
Owner drawn21-Dec-05 0:08 
AnswerRe: How can I add a status bar to a dialog..... Pin
Ward21-Dec-05 0:13
Ward21-Dec-05 0:13 
AnswerRe: How can I add a status bar to a dialog..... Pin
Rage21-Dec-05 1:12
professionalRage21-Dec-05 1:12 
AnswerThanks a lot guys Pin
Owner drawn21-Dec-05 1:56
Owner drawn21-Dec-05 1:56 
QuestionSubclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP20-Dec-05 23:51
WernerP20-Dec-05 23:51 
AnswerRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
Rage21-Dec-05 1:14
professionalRage21-Dec-05 1:14 
GeneralRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP21-Dec-05 4:47
WernerP21-Dec-05 4:47 
QuestionMFC functions fail when called from exported function in DLL Pin
Mayank Ji20-Dec-05 23:32
Mayank Ji20-Dec-05 23:32 

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.