Click here to Skip to main content
15,893,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: how to get the return code of ShellExecute() Pin
lekshmipriya25-Apr-06 17:31
lekshmipriya25-Apr-06 17:31 
AnswerRe: how to get the return code of ShellExecute() Pin
Naveen25-Apr-06 17:44
Naveen25-Apr-06 17:44 
AnswerRe: how to get the return code of ShellExecute() Pin
Aqueel25-Apr-06 17:50
Aqueel25-Apr-06 17:50 
AnswerRe: how to get the return code of ShellExecute() Pin
David Crow26-Apr-06 3:31
David Crow26-Apr-06 3:31 
QuestionRe: how to get the return code of ShellExecute() Pin
lekshmipriya26-Apr-06 5:48
lekshmipriya26-Apr-06 5:48 
QuestionRe: how to get the return code of ShellExecute() Pin
David Crow26-Apr-06 5:58
David Crow26-Apr-06 5:58 
Questionhow to change data to color Pin
snowheavy25-Apr-06 16:45
snowheavy25-Apr-06 16:45 
AnswerRe: how to change data to color Pin
Nishad S25-Apr-06 23:21
Nishad S25-Apr-06 23:21 
It can be simply done as follows, but i don't know whether it will meet your need... Smile | :)
COLORREF rgb1 = RGB( 255, 0, 0 ); // color 1
COLORREF rgb2 = RGB( 0, 0, 255 ); // color 2
float fVal = 0.5; // value between 0 and 1

int nR1 = GetRValue( rgb1 );
int nG1 = GetGValue( rgb1 );
int nB1 = GetBValue( rgb1 );

int nR2 = GetRValue( rgb2 );
int nG2 = GetGValue( rgb2 );
int nB2 = GetBValue( rgb2 );

int nR = nR1 + ( nR2 - nR1 ) * fVal;
int nG = nG1 + ( nG2 - nG1 ) * fVal;
int nB = nB1 + ( nB2 - nB1 ) * fVal;

COLORREF rgb = RGB( nR, nG, nB ); // New color


- NS -
QuestionWhen I change large arrays from 'float' to 'double' I got problem Pin
mrby12325-Apr-06 16:07
mrby12325-Apr-06 16:07 
AnswerRe: When I change large arrays from 'float' to 'double' I got problem Pin
Nibu babu thomas25-Apr-06 16:44
Nibu babu thomas25-Apr-06 16:44 
GeneralRe: When I change large arrays from 'float' to 'double' I got problem Pin
mrby12325-Apr-06 18:14
mrby12325-Apr-06 18:14 
QuestionRe: When I change large arrays from 'float' to 'double' I got problem Pin
David Crow26-Apr-06 3:35
David Crow26-Apr-06 3:35 
QuestionSetWindowText Question Pin
JBAK_CP25-Apr-06 16:02
JBAK_CP25-Apr-06 16:02 
QuestionRe: SetWindowText Question Pin
Nibu babu thomas25-Apr-06 16:42
Nibu babu thomas25-Apr-06 16:42 
QuestionHow to make a .OLB file? Pin
hdj831125-Apr-06 15:30
hdj831125-Apr-06 15:30 
Questionifstream question Pin
etm12425-Apr-06 13:44
etm12425-Apr-06 13:44 
AnswerRe: ifstream question Pin
Stephen Hewitt25-Apr-06 13:52
Stephen Hewitt25-Apr-06 13:52 
GeneralRe: ifstream question Pin
etm12425-Apr-06 13:56
etm12425-Apr-06 13:56 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:05
Stephen Hewitt25-Apr-06 14:05 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:09
etm12425-Apr-06 14:09 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:13
etm12425-Apr-06 14:13 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:20
Stephen Hewitt25-Apr-06 14:20 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:22
etm12425-Apr-06 14:22 
GeneralRe: ifstream question Pin
Stephen Hewitt25-Apr-06 14:26
Stephen Hewitt25-Apr-06 14:26 
GeneralRe: ifstream question Pin
etm12425-Apr-06 14:28
etm12425-Apr-06 14:28 

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.