Click here to Skip to main content
15,920,030 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSTL and Efficiency Pin
Anonymous17-Sep-03 5:13
Anonymous17-Sep-03 5:13 
GeneralRe: STL and Efficiency Pin
HalfWayMan17-Sep-03 5:40
HalfWayMan17-Sep-03 5:40 
GeneralRe: STL and Efficiency Pin
Mike Dimmick17-Sep-03 5:44
Mike Dimmick17-Sep-03 5:44 
GeneralRe: STL and Efficiency Pin
Andrew Walker17-Sep-03 5:45
Andrew Walker17-Sep-03 5:45 
GeneralRe: STL and Efficiency Pin
Daniel Turini17-Sep-03 9:46
Daniel Turini17-Sep-03 9:46 
GeneralRe: STL and Efficiency Pin
Tim Smith17-Sep-03 10:03
Tim Smith17-Sep-03 10:03 
GeneralUsing CToolTipCtrl Pin
Marty1020304017-Sep-03 5:02
Marty1020304017-Sep-03 5:02 
GeneralRe: Using CToolTipCtrl Pin
Alvaro Mendez17-Sep-03 6:09
Alvaro Mendez17-Sep-03 6:09 
The reason is most likely because your tooltip object is being constructed on the stack, right inside your function, and then it goes away as soon as the function exits. Two suggestions:

1. Make the tooltip object a member of the class, instead of a local variable.

OR

2. If your function is only called ONCE in the entire program, make your tooltip object static so that it doesn't go away (until the program exits):

static CToolTipCtrl tooltip;

I don't know if the rest of the code is fine, but you can start with this.

Regards,
Alvaro




Hey! It compiles! Ship it.
GeneralRe: Using CToolTipCtrl Pin
Jagadeesh VN17-Sep-03 7:34
Jagadeesh VN17-Sep-03 7:34 
GeneralC++ Octree structure Pin
Alex Chitea17-Sep-03 4:20
Alex Chitea17-Sep-03 4:20 
GeneralRe: C++ Octree structure Pin
David Crow17-Sep-03 4:51
David Crow17-Sep-03 4:51 
GeneralRe: C++ Octree structure Pin
Hosam Aly Mahmoud17-Sep-03 8:53
Hosam Aly Mahmoud17-Sep-03 8:53 
GeneralOpening a Dialog from the menu Pin
Tom Wright17-Sep-03 4:08
Tom Wright17-Sep-03 4:08 
GeneralRe: Opening a Dialog from the menu Pin
HalfWayMan17-Sep-03 4:18
HalfWayMan17-Sep-03 4:18 
GeneralRe: Opening a Dialog from the menu Pin
Tom Wright17-Sep-03 4:56
Tom Wright17-Sep-03 4:56 
GeneralRe: Opening a Dialog from the menu Pin
HalfWayMan17-Sep-03 5:05
HalfWayMan17-Sep-03 5:05 
GeneralRe: Opening a Dialog from the menu Pin
Tom Wright17-Sep-03 5:09
Tom Wright17-Sep-03 5:09 
GeneralRe: Opening a Dialog from the menu Pin
HalfWayMan17-Sep-03 5:12
HalfWayMan17-Sep-03 5:12 
GeneralRe: Opening a Dialog from the menu Pin
Tom Wright17-Sep-03 5:36
Tom Wright17-Sep-03 5:36 
GeneralRe: Opening a Dialog from the menu Pin
David Crow17-Sep-03 5:37
David Crow17-Sep-03 5:37 
GeneralCComboBox Pin
mstanciu200017-Sep-03 2:52
mstanciu200017-Sep-03 2:52 
GeneralRe: CComboBox Pin
David Crow17-Sep-03 3:19
David Crow17-Sep-03 3:19 
GeneralRe: CComboBox Pin
mstanciu200017-Sep-03 20:20
mstanciu200017-Sep-03 20:20 
GeneralRe: CComboBox Pin
Steve S18-Sep-03 1:55
Steve S18-Sep-03 1:55 
GeneralRe: CComboBox Pin
Yonatan10-Nov-03 1:54
Yonatan10-Nov-03 1:54 

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.