Click here to Skip to main content
15,891,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSet the WS_EX_LAYERED for child window Pin
sanskypotov9-Mar-03 21:50
sanskypotov9-Mar-03 21:50 
GeneralRe: Set the WS_EX_LAYERED for child window Pin
Brian Shifrin10-Mar-03 2:20
Brian Shifrin10-Mar-03 2:20 
GeneralRe: Set the WS_EX_LAYERED for child window Pin
sanskypotov10-Mar-03 23:51
sanskypotov10-Mar-03 23:51 
Generalpacket info Pin
summo9-Mar-03 20:42
summo9-Mar-03 20:42 
GeneralRe: packet info Pin
Johnny ²9-Mar-03 21:48
Johnny ²9-Mar-03 21:48 
GeneralRe: packet info Pin
summo9-Mar-03 22:27
summo9-Mar-03 22:27 
GeneralRe: packet info Pin
Johnny ²9-Mar-03 22:36
Johnny ²9-Mar-03 22:36 
QuestionVisual C++ .NET bug? Pin
Davide Pizzolato9-Mar-03 20:21
Davide Pizzolato9-Mar-03 20:21 
this code works if compiled with VS6, but gives wrong results with VC++.NET
int Y,U,V,R,G,B;
Y = lYUVColor.rgbRed;
U = lYUVColor.rgbGreen - 128;
V = lYUVColor.rgbBlue - 128;

R = (int)(Y + 1.403 * V);
G = (int)(Y - 0.344 * U - 0.714 * V);
B = (int)(Y + 1.770 * U);

replaceing the declaration of Y, everything is ok.
int U,V,R,G,B;
float Y = lYUVColor.rgbRed;
U = lYUVColor.rgbGreen - 128;
V = lYUVColor.rgbBlue - 128;

R = (int)(Y + 1.403 * V);
G = (int)(Y - 0.344 * U - 0.714 * V);
B = (int)(Y + 1.770 * U);

where is the bug? in the compiler or in the code?
AnswerRe: Visual C++ .NET bug? Pin
Hesham Amin9-Mar-03 21:14
Hesham Amin9-Mar-03 21:14 
GeneralRe: Visual C++ .NET bug? Pin
Davide Pizzolato10-Mar-03 1:52
Davide Pizzolato10-Mar-03 1:52 
QuestionVSS API Interface ? Pin
vikramj9-Mar-03 20:21
vikramj9-Mar-03 20:21 
AnswerRe: VSS API Interface ? Pin
Baris Kurtlutepe10-Mar-03 0:43
Baris Kurtlutepe10-Mar-03 0:43 
GeneralString Table used in DLL Pin
stevenson9-Mar-03 20:01
stevenson9-Mar-03 20:01 
GeneralRe: String Table used in DLL Pin
Hans Ruck9-Mar-03 21:39
Hans Ruck9-Mar-03 21:39 
GeneralWindows Media Format SDK Problem Pin
RaajaOfSelf9-Mar-03 19:01
RaajaOfSelf9-Mar-03 19:01 
GeneralGradientProgressCtrl Pin
sunsam9-Mar-03 17:22
sunsam9-Mar-03 17:22 
GeneralVisual SafeSource Pin
Anonymous9-Mar-03 12:49
Anonymous9-Mar-03 12:49 
GeneralRe: Visual SafeSource Pin
Anders Molin9-Mar-03 13:20
professionalAnders Molin9-Mar-03 13:20 
QuestionHow to add shell32.lib to project... Pin
JoeSox9-Mar-03 12:17
JoeSox9-Mar-03 12:17 
AnswerRe: How to add shell32.lib to project... Pin
Anders Molin9-Mar-03 12:24
professionalAnders Molin9-Mar-03 12:24 
QuestionHandle error??? Pin
cemlouis9-Mar-03 10:49
cemlouis9-Mar-03 10:49 
GeneralMDI Views... Pin
Anonymous9-Mar-03 9:36
Anonymous9-Mar-03 9:36 
GeneralRe: MDI Views... Pin
Brian Shifrin10-Mar-03 2:33
Brian Shifrin10-Mar-03 2:33 
GeneralLines Pin
cerb-dk9-Mar-03 9:31
cerb-dk9-Mar-03 9:31 
GeneralRe: Lines Pin
Dave Bryant9-Mar-03 15:53
Dave Bryant9-Mar-03 15:53 

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.