Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can write sheet 2 in xlsx with excel automation? [modified] Pin
Le@rner7-Mar-11 21:42
Le@rner7-Mar-11 21:42 
Questionencode char? Pin
Nguyen Sy Bang6-Mar-11 17:55
Nguyen Sy Bang6-Mar-11 17:55 
QuestionVS 2008 Configuration For Libraries Pin
Mike Certini6-Mar-11 17:53
Mike Certini6-Mar-11 17:53 
AnswerRe: VS 2008 Configuration For Libraries Pin
Michael Dunn6-Mar-11 18:12
sitebuilderMichael Dunn6-Mar-11 18:12 
GeneralRe: VS 2008 Configuration For Libraries Pin
Mike Certini6-Mar-11 18:31
Mike Certini6-Mar-11 18:31 
GeneralRe: VS 2008 Configuration For Libraries Pin
tagopi6-Mar-11 19:53
tagopi6-Mar-11 19:53 
GeneralRe: VS 2008 Configuration For Libraries Pin
Mike Certini8-Mar-11 5:43
Mike Certini8-Mar-11 5:43 
QuestionSomething really crazy Pin
csrss6-Mar-11 15:03
csrss6-Mar-11 15:03 
So here is something really crazy. I have a class, which looks something like this:

protected:
HWND hWindow;
/*
here are 100 of other variables.
*/

HWND hChildren[100]; // i am collecting children windows handles here

private:
/*
here are 100 private functions.
*/

public:
/*
here goes constructor and destructor, and some public functions
*/


Everything works fine. But if i change hChildren[100] to hChildren[1000] - so now i can add up to 1000 children, class starts acting mental. Consider the following:

void function1(){}
void function2(){}


I am calling function1(),

myClass *cl = new myClass();
cl->function1();


instead of that, the function, which gets called - is function2(). This happens if i change size of hChildren from 100 to 1000. If size is 100, the one which executes - is function1() (which is OK). Have you ever experienced code behavior like this? Its like, some undesirable polymorphism occurred D'Oh! | :doh:
011011010110000101100011011010000110100101101110
0110010101110011

AnswerRe: Something really crazy Pin
Hans Dietrich6-Mar-11 15:51
mentorHans Dietrich6-Mar-11 15:51 
AnswerRe: Something really crazy Pin
Emilio Garavaglia6-Mar-11 21:23
Emilio Garavaglia6-Mar-11 21:23 
QuestionRe: Something really crazy Pin
CPallini6-Mar-11 21:44
mveCPallini6-Mar-11 21:44 
AnswerRe: Something really crazy Pin
Emilio Garavaglia7-Mar-11 4:10
Emilio Garavaglia7-Mar-11 4:10 
GeneralRe: Something really crazy Pin
csrss7-Mar-11 0:47
csrss7-Mar-11 0:47 
AnswerRe: Something really crazy Pin
Richard MacCutchan6-Mar-11 22:29
mveRichard MacCutchan6-Mar-11 22:29 
GeneralRe: Something really crazy Pin
csrss7-Mar-11 0:38
csrss7-Mar-11 0:38 
GeneralRe: Something really crazy Pin
Richard MacCutchan7-Mar-11 6:03
mveRichard MacCutchan7-Mar-11 6:03 
GeneralRe: Something really crazy Pin
csrss7-Mar-11 6:37
csrss7-Mar-11 6:37 
QuestionWM_DEVICECHANGE Problem [SOLVED] Pin
goldenrose96-Mar-11 6:19
goldenrose96-Mar-11 6:19 
AnswerRe: WM_DEVICECHANGE Problem Pin
Ozer Karaagac6-Mar-11 8:39
professionalOzer Karaagac6-Mar-11 8:39 
GeneralRe: WM_DEVICECHANGE Problem Pin
goldenrose96-Mar-11 16:53
goldenrose96-Mar-11 16:53 
GeneralRe: WM_DEVICECHANGE Problem Pin
Ozer Karaagac6-Mar-11 21:48
professionalOzer Karaagac6-Mar-11 21:48 
GeneralRe: WM_DEVICECHANGE Problem Pin
goldenrose96-Mar-11 21:54
goldenrose96-Mar-11 21:54 
GeneralRe: WM_DEVICECHANGE Problem Pin
Ozer Karaagac6-Mar-11 22:09
professionalOzer Karaagac6-Mar-11 22:09 
GeneralRe: WM_DEVICECHANGE Problem Pin
goldenrose96-Mar-11 22:23
goldenrose96-Mar-11 22:23 
GeneralRe: WM_DEVICECHANGE Problem Pin
Ozer Karaagac6-Mar-11 22:43
professionalOzer Karaagac6-Mar-11 22:43 

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.