Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: why is 0x00,0x00,0x00,0x01 = 16777216 ? Should it not be = to 1? Pin
jeron14-May-09 9:15
jeron14-May-09 9:15 
QuestionAnnoying error for me Pin
CodingLover4-May-09 6:08
CodingLover4-May-09 6:08 
AnswerRe: Annoying error for me Pin
I am BATMAN4-May-09 6:12
I am BATMAN4-May-09 6:12 
QuestionRe: Annoying error for me Pin
David Crow4-May-09 7:59
David Crow4-May-09 7:59 
QuestionConvert a in_addr to an IPAddr Pin
I am BATMAN4-May-09 5:30
I am BATMAN4-May-09 5:30 
QuestionRe: Convert a in_addr to an IPAddr Pin
led mike4-May-09 7:24
led mike4-May-09 7:24 
AnswerRe: Convert a in_addr to an IPAddr Pin
I am BATMAN4-May-09 11:05
I am BATMAN4-May-09 11:05 
GeneralRe: Convert a in_addr to an IPAddr Pin
led mike4-May-09 11:22
led mike4-May-09 11:22 
I am BATMAN wrote:
Forgive me, this is basically the beginning of my windows C++ programming, up until now it's all been command line linux code. Is there a special way to cast with the win API or something?


Then you need to study beginners material of the language since you need to understand types, structures and unions as well as many, many other things. Trying to explain them to you in a forum is not appropriate.
typedef struct in_addr {
        union {
                struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b;
                struct { USHORT s_w1,s_w2; } S_un_w;
                ULONG S_addr;
        } S_un;


The S_addr member of the union is the same type as IPAddr.

//
// IP type definitions.
//
typedef ULONG IPAddr;       // An IP address.

AnswerRe: Convert a in_addr to an IPAddr Pin
I am BATMAN4-May-09 11:20
I am BATMAN4-May-09 11:20 
Questionwmi Win32_Service Pin
Jack Rong4-May-09 5:21
Jack Rong4-May-09 5:21 
AnswerCross posting pile of garbage Pin
led mike4-May-09 9:22
led mike4-May-09 9:22 
QuestionNeed to change the Default Font of Control in my win32 code Pin
zakkas24834-May-09 3:53
zakkas24834-May-09 3:53 
AnswerRe: Need to change the Default Font of Control in my win32 code Pin
Code-o-mat4-May-09 4:04
Code-o-mat4-May-09 4:04 
AnswerRe: Need to change the Default Font of Control in my win32 code Pin
David Crow4-May-09 4:07
David Crow4-May-09 4:07 
GeneralRe: Need to change the Default Font of Control in my win32 code Pin
zakkas24834-May-09 4:19
zakkas24834-May-09 4:19 
GeneralRe: Need to change the Default Font of Control in my win32 code Pin
I am BATMAN4-May-09 5:31
I am BATMAN4-May-09 5:31 
QuestionSubclassing CFileDialog Pin
DougVC4-May-09 3:34
DougVC4-May-09 3:34 
AnswerRe: Subclassing CFileDialog Pin
David Crow4-May-09 3:42
David Crow4-May-09 3:42 
Questionc program in linux Pin
nuttynibbles4-May-09 3:20
nuttynibbles4-May-09 3:20 
AnswerRe: c program in linux Pin
Rajesh R Subramanian4-May-09 3:24
professionalRajesh R Subramanian4-May-09 3:24 
AnswerRe: c program in linux Pin
Cedric Moonen4-May-09 3:49
Cedric Moonen4-May-09 3:49 
GeneralRe: c program in linux Pin
nuttynibbles4-May-09 6:57
nuttynibbles4-May-09 6:57 
GeneralRe: c program in linux Pin
Cedric Moonen4-May-09 7:40
Cedric Moonen4-May-09 7:40 
QuestionHorizontal scrollbar in ListBox. Pin
Le@rner4-May-09 2:08
Le@rner4-May-09 2:08 
AnswerRe: Horizontal scrollbar in ListBox. Pin
Chandrasekharan P4-May-09 2:14
Chandrasekharan P4-May-09 2:14 

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.