Click here to Skip to main content
16,011,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Customized Common Dialog Pin
bolivar12314-Dec-04 7:23
bolivar12314-Dec-04 7:23 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 5:11
mayoung16-Dec-04 5:11 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 6:11
mayoung16-Dec-04 6:11 
GeneralRe: Customized Common Dialog Pin
bolivar12316-Dec-04 9:25
bolivar12316-Dec-04 9:25 
GeneralRe: Customized Common Dialog Pin
mayoung16-Dec-04 10:54
mayoung16-Dec-04 10:54 
GeneralProblems with app icon and TaskManager Pin
Jim Crafton10-Dec-04 5:47
Jim Crafton10-Dec-04 5:47 
GeneralWarnings C4663, C4018, C4100 Pin
Robert Valentino10-Dec-04 5:03
Robert Valentino10-Dec-04 5:03 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Antti Keskinen10-Dec-04 5:42
Antti Keskinen10-Dec-04 5:42 
C4663 is caused by an old template class declaration. It is not an actual error, and should not cause errorneous behaviour, but when time goes on and new compilers appear, this declaration form will soon become a syntactical error. The creator of the class should alter the original source code to fix this. You can do nothing (besides directly modifying the source code) to fix it. If the source code license allows it, feel free to do it and post a corrected version to the author.

C4018 is caused by signed/unsigned comparison mismatch. This originally inherits from the way signed and unsigned numbers are handled. In assembly/machine-code, the concept of signed/unsigned does not exist. All numbers are unsigned there. The difference is made by interpreting the value. Consider an 8-bit value (such as a 'char'). If it is a signed char, direct values 0-127 refer to signed values 1...127 and values 128-255 refer to -128...0. It cannot have a value outside of range -128...127. A comparison operation in assembly is a mathematical substraction. If the substraction causes a 'borrow' to happen (don't know the actual math term in english for it), a flag is set. Looking at this flag, the conclusion of greater or not is made, and true/false is returned. It is possible that sometimes, when the numbers are suitable, an errorneous interpretation is made. I cannot outright remember what these conditions are. Lets just say that avoid comparing unsigned and signed numbers whenever possible Smile | :)

C4100 is caused by having an unreferenced parameter in function declaration. This is like having a needed parameter passed to a function and the parameter is never used inside the function, making it irrelevant for the function. It is most obviously a typing error in the source code. Fixing it requires checking the function in question and seeing if a parameter truly is unreferenced, and if it is, removing it from the function definition. Again, a source code change is necessary.

In conclusion, there's nothing you can do to fix these errors without altering the PictureEx source code. But none of them are critical, either, excluding the first one. C4663 might cause an error later on when a new compiler is released that no longer supports the old-style syntax.

Hope this helps.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: Warnings C4663, C4018, C4100 Pin
Member 89747210-Dec-04 7:45
Member 89747210-Dec-04 7:45 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Robert Valentino10-Dec-04 8:23
Robert Valentino10-Dec-04 8:23 
GeneralRe: Warnings C4663, C4018, C4100 Pin
Antti Keskinen10-Dec-04 9:41
Antti Keskinen10-Dec-04 9:41 
GeneralRe: Warnings C4663, C4018, C4100 Pin
bolivar12316-Dec-04 10:39
bolivar12316-Dec-04 10:39 
Generaldrawing to a bitmap in memory Pin
Member 151798010-Dec-04 4:14
Member 151798010-Dec-04 4:14 
GeneralRe: drawing to a bitmap in memory Pin
Andy Hunter10-Dec-04 10:42
Andy Hunter10-Dec-04 10:42 
Questiondoes OnCtlColor work for buttons? Pin
zoid ! 10-Dec-04 4:10
zoid ! 10-Dec-04 4:10 
AnswerRe: does OnCtlColor work for buttons? Pin
G. Steudtel10-Dec-04 6:40
G. Steudtel10-Dec-04 6:40 
GeneralRe: does OnCtlColor work for buttons? Pin
prcarp10-Dec-04 7:12
prcarp10-Dec-04 7:12 
GeneralWindows Forms not available Pin
User 58261910-Dec-04 3:44
User 58261910-Dec-04 3:44 
GeneralRe: Windows Forms not available Pin
BlackDice10-Dec-04 9:50
BlackDice10-Dec-04 9:50 
GeneralScaleViewportExt and SetViewOrg related query Pin
JHAKAS10-Dec-04 3:40
JHAKAS10-Dec-04 3:40 
GeneralRe: ScaleViewportExt and SetViewOrg related query Pin
JHAKAS10-Dec-04 20:08
JHAKAS10-Dec-04 20:08 
GeneralSDI, MDI or dialog based Pin
help_cplus10-Dec-04 3:31
help_cplus10-Dec-04 3:31 
GeneralRe: SDI, MDI or dialog based Pin
Maximilien10-Dec-04 3:46
Maximilien10-Dec-04 3:46 
GeneralRe: SDI, MDI or dialog based Pin
help_cplus11-Dec-04 12:25
help_cplus11-Dec-04 12:25 
Generalreturning CMap object Pin
Tariq87810-Dec-04 1:55
Tariq87810-Dec-04 1:55 

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.