Jump to content

  • Log In with Google      Sign In   
  • Create Account


windows function optimized out of code?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 fstim82   Members   -  Reputation: 132

Like
0Likes
Like

Posted 03 March 2011 - 02:09 PM

Calling CreateWindowEx in my project, and placing a breakpoint on the line, a tooltip pops up saying "The breakpoint will not be hit. No executable code is associated with this line. Possible causes include: preprocessor directives or compiler/linker optimizations."

This code is a part of a co-worker's movie widget code, and he's not had this issue. Nor have others, but I've also been doing a large scale code update (involving .dlls, which I'm new to). Anyway, does anyone have any clues how this could happen? I've not used any preprocessor directives to take the code out myself... I need this function so the widget has an hWnd to draw to...

Sponsor:

#2 mhagain   Crossbones+   -  Reputation: 7817

Like
0Likes
Like

Posted 03 March 2011 - 02:15 PM

I've seen that before. My best guess is that CreateWindowEx is actually a #define, to CreateWindowExW for Unicode builds or CreateWindowExA for MBCS builds. You could just call the original function directly and see what happens.

It appears that the gentleman thought C++ was extremely difficult and he was overjoyed that the machine was absorbing it; he understood that good C++ is difficult but the best C++ is well-nigh unintelligible.


#3 fstim82   Members   -  Reputation: 132

Like
0Likes
Like

Posted 03 March 2011 - 02:19 PM

I've seen that before. My best guess is that CreateWindowEx is actually a #define, to CreateWindowExW for Unicode builds or CreateWindowExA for MBCS builds. You could just call the original function directly and see what happens.


Good thought, but unfortunately that didn't work. Still out.

#4 Rattrap   Members   -  Reputation: 1604

Like
0Likes
Like

Posted 03 March 2011 - 02:36 PM

Good thought, but unfortunately that didn't work. Still out.


Post some code, it will make it easier for others to figure out.

#5 Endurion   Crossbones+   -  Reputation: 3461

Like
0Likes
Like

Posted 04 March 2011 - 12:17 AM

Make sure that you don't have optimisations active and are basically using a debug build. These things happen when the code does not match the compiled result.
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS