Click here to Skip to main content
15,905,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to write a code to increment by 4 Pin
needhelp5728-Oct-02 7:29
needhelp5728-Oct-02 7:29 
AnswerRe: How to write a code to increment by 4 Pin
Mel Feik25-Oct-02 11:09
Mel Feik25-Oct-02 11:09 
GeneralAuto-completion after . or -> doesn't work Pin
User 665825-Oct-02 10:34
User 665825-Oct-02 10:34 
GeneralRe: Auto-completion after . or -> doesn't work Pin
Chris Losinger25-Oct-02 10:56
professionalChris Losinger25-Oct-02 10:56 
GeneralRe: Auto-completion after . or -> doesn't work Pin
User 665825-Oct-02 11:24
User 665825-Oct-02 11:24 
GeneralInserting your own warnings into code Pin
nde_plume25-Oct-02 9:35
nde_plume25-Oct-02 9:35 
GeneralRe: Inserting your own warnings into code Pin
Michael Dunn25-Oct-02 14:57
sitebuilderMichael Dunn25-Oct-02 14:57 
GeneralRe: Inserting your own warnings into code Pin
nde_plume5-Nov-02 8:24
nde_plume5-Nov-02 8:24 
None of the suggestions offered worked, so I asked the
same question on comp.lang.c++.moderated, and they
pointed out that you need to double expand the __LINE__
macro for some subtle reasons. Anyways, for future
readers interested in how to do it, here is what I
now use:

#define STRINGIZE(x) #x
#define EVAL_STRINGIZE(x) STRINGIZE(x)
#define WARN(warning) message(__FILE__ "("EVAL_STRINGIZE(__LINE__)"): warning C1000: " warning)

Put these macros in a general project header included
everywhere (I guess you could even put them in stdafx.h
if you are so inclined, personally, all my projects have
a file called Project.h that is the first included in every
header.)

Then whenever you want to issue a warning during compile
time just use this:

#pragma WARN("Using bubble sort here, a better algorithm is required")

which will appear on your compiler output (and task list if
using VC .Net), which you can F4 through. When you fix the
error, just remove the pragma.

GeneralRe: Inserting your own warnings into code Pin
Anonymous25-Oct-02 19:23
Anonymous25-Oct-02 19:23 
GeneralCreating a maximixed dialog Pin
monrobot1325-Oct-02 9:24
monrobot1325-Oct-02 9:24 
GeneralRe: Creating a maximixed dialog Pin
Ravi Bhavnani25-Oct-02 9:53
professionalRavi Bhavnani25-Oct-02 9:53 
GeneralRe: Creating a maximixed dialog Pin
monrobot1325-Oct-02 12:52
monrobot1325-Oct-02 12:52 
GeneralRe: Creating a maximixed dialog Pin
includeh1025-Oct-02 21:47
includeh1025-Oct-02 21:47 
GeneralRe: Creating a maximixed dialog Pin
Didaa25-Oct-02 21:32
Didaa25-Oct-02 21:32 
GeneralRe: Creating a maximixed dialog Pin
Gary R. Wheeler26-Oct-02 3:34
Gary R. Wheeler26-Oct-02 3:34 
GeneralResize Dialog Box via Code :: MFC Pin
valikac25-Oct-02 9:21
valikac25-Oct-02 9:21 
GeneralRe: Resize Dialog Box via Code :: MFC Pin
monrobot1325-Oct-02 9:29
monrobot1325-Oct-02 9:29 
GeneralRe: Resize Dialog Box via Code :: MFC Pin
valikac25-Oct-02 9:32
valikac25-Oct-02 9:32 
Generalspeed: loading bitmap Pin
Anonymous25-Oct-02 8:21
Anonymous25-Oct-02 8:21 
GeneralRe: speed: loading bitmap Pin
devvvy25-Oct-02 8:23
devvvy25-Oct-02 8:23 
GeneralRe: speed: loading bitmap Pin
Paul M Watt25-Oct-02 8:44
mentorPaul M Watt25-Oct-02 8:44 
GeneralRe: speed: loading bitmap Pin
Anonymous25-Oct-02 12:55
Anonymous25-Oct-02 12:55 
GeneralRe: speed: loading bitmap Pin
Paul M Watt25-Oct-02 21:19
mentorPaul M Watt25-Oct-02 21:19 
GeneralTemplate confusion Pin
Todd Smith25-Oct-02 8:09
Todd Smith25-Oct-02 8:09 
GeneralRe: Template confusion Pin
Navin25-Oct-02 10:30
Navin25-Oct-02 10:30 

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.