Click here to Skip to main content
15,903,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 16:04
the Jimmy24-Jan-06 16:04 
GeneralRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 19:43
Axonn Echysttas24-Jan-06 19:43 
GeneralRe: how to make a window always stay on the top Pin
the Jimmy24-Jan-06 20:53
the Jimmy24-Jan-06 20:53 
GeneralRe: how to make a window always stay on the top Pin
Axonn Echysttas24-Jan-06 21:51
Axonn Echysttas24-Jan-06 21:51 
Questionfloat to binary Pin
P1P3R24-Jan-06 12:24
P1P3R24-Jan-06 12:24 
AnswerRe: float to binary Pin
Joshua Quick24-Jan-06 12:37
Joshua Quick24-Jan-06 12:37 
GeneralRe: float to binary Pin
P1P3R24-Jan-06 15:22
P1P3R24-Jan-06 15:22 
GeneralRe: float to binary Pin
Joshua Quick24-Jan-06 15:29
Joshua Quick24-Jan-06 15:29 
P1P3R wrote:
What I was actually looking for is something along the lines of char bytes[4] = float.


A union will do this. It's actually quite simple. Each member in the union occupies the same memory space. So anything you put into the float will show up in the char array. Anything you put into the char array will effect the float.
union FloatConverter
{
   float fValue;
   char  Bytes[4];
};
void Test()
{
   FloatConverter converter;
   converter.fValue = 1.23;
   // The converter.Bytes array now contains the float's bytes.
   char floatByte0 = converter.Bytes[0];
   char floatByte1 = converter.Bytes[1];
   char floatByte2 = converter.Bytes[2];
   char floatByte3 = converter.Bytes[3];
}

GeneralRe: float to binary Pin
P1P3R24-Jan-06 15:38
P1P3R24-Jan-06 15:38 
QuestionSubclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 12:17
Axonn Echysttas24-Jan-06 12:17 
AnswerRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
sps-itsec4624-Jan-06 12:43
sps-itsec4624-Jan-06 12:43 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 12:45
Axonn Echysttas24-Jan-06 12:45 
AnswerRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 14:17
Axonn Echysttas24-Jan-06 14:17 
AnswerRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Ryan Binns24-Jan-06 17:54
Ryan Binns24-Jan-06 17:54 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 19:40
Axonn Echysttas24-Jan-06 19:40 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Ryan Binns24-Jan-06 20:43
Ryan Binns24-Jan-06 20:43 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas24-Jan-06 21:58
Axonn Echysttas24-Jan-06 21:58 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Ryan Binns24-Jan-06 22:18
Ryan Binns24-Jan-06 22:18 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas25-Jan-06 0:16
Axonn Echysttas25-Jan-06 0:16 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Ryan Binns25-Jan-06 0:18
Ryan Binns25-Jan-06 0:18 
GeneralRe: Subclassing problem: WM_LBUTTONDOWN is missing Pin
Axonn Echysttas25-Jan-06 0:22
Axonn Echysttas25-Jan-06 0:22 
QuestionManifest == dud ? Pin
Swinefeaster24-Jan-06 11:47
Swinefeaster24-Jan-06 11:47 
AnswerRe: Manifest == dud ? Pin
Christian Graus24-Jan-06 14:14
protectorChristian Graus24-Jan-06 14:14 
GeneralRe: Manifest == dud ? Pin
S Douglas24-Jan-06 20:37
professionalS Douglas24-Jan-06 20:37 
GeneralRe: Manifest == dud ? Pin
Swinefeaster25-Jan-06 15:26
Swinefeaster25-Jan-06 15:26 

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.