Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Malli_S19-Sep-08 4:06
Malli_S19-Sep-08 4:06 
GeneralRe: error LNK2001: unresolved external symbol _CheckTokenMembership Pin
Mark Salsbery19-Sep-08 6:14
Mark Salsbery19-Sep-08 6:14 
Questionchange background color Pin
Dhiraj kumar Saini19-Sep-08 1:35
Dhiraj kumar Saini19-Sep-08 1:35 
AnswerRe: change background color Pin
Alan Balkany19-Sep-08 3:56
Alan Balkany19-Sep-08 3:56 
AnswerRe: change background color Pin
Hamid_RT19-Sep-08 18:56
Hamid_RT19-Sep-08 18:56 
QuestionUsing the tab control in VS 2003 Pin
__DanC__19-Sep-08 1:07
__DanC__19-Sep-08 1:07 
AnswerRe: Using the tab control in VS 2003 Pin
Mark Salsbery19-Sep-08 6:18
Mark Salsbery19-Sep-08 6:18 
QuestionByte alignment Pin
Stan the man19-Sep-08 0:07
Stan the man19-Sep-08 0:07 
Hi.

We are doing TCPIP communications between an old system (DOS) and a WinXP system. We put all the message contents into a struture. Because the DOS side we can not change, we encountered a few problems that seems to be related to byte alignment.

I think on the windows side, it needs to be 4 byte aligned. But on the DOS side it seems to be 2 byte aligned. As a result, it seems when you access a specific variable using pointers or use "sizeof" it gives the wrong result.

Is there anyway to force the alignment correctly so that nothing will be "padded"?

Thanks in adavnce.

Stan the man
AnswerRe: Byte alignment Pin
Cedric Moonen19-Sep-08 0:16
Cedric Moonen19-Sep-08 0:16 
GeneralRe: Byte alignment Pin
Stan the man19-Sep-08 0:44
Stan the man19-Sep-08 0:44 
GeneralRe: Byte alignment Pin
Cedric Moonen19-Sep-08 0:56
Cedric Moonen19-Sep-08 0:56 
GeneralRe: Byte alignment Pin
Stan the man19-Sep-08 1:46
Stan the man19-Sep-08 1:46 
AnswerRe: Byte alignment Pin
James R. Twine19-Sep-08 1:27
James R. Twine19-Sep-08 1:27 
QuestionStatic Label Visible Problem Pin
Dhiraj kumar Saini18-Sep-08 23:50
Dhiraj kumar Saini18-Sep-08 23:50 
AnswerRe: Static Label Visible Problem Pin
Chandrasekharan P18-Sep-08 23:55
Chandrasekharan P18-Sep-08 23:55 
AnswerRe: Static Label Visible Problem Pin
Cedric Moonen19-Sep-08 0:04
Cedric Moonen19-Sep-08 0:04 
AnswerRe: Static Label Visible Problem Pin
Sandeep Saini SRE19-Sep-08 0:22
Sandeep Saini SRE19-Sep-08 0:22 
AnswerRe: Static Label Visible Problem Pin
ThatsAlok19-Sep-08 1:02
ThatsAlok19-Sep-08 1:02 
QuestionI want to draw sth on the flash contorl Pin
61934514218-Sep-08 23:33
61934514218-Sep-08 23:33 
QuestionChart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 22:59
Ahmed Charfeddine18-Sep-08 22:59 
AnswerRe: Chart control for MFC unmanaged C++.. Pin
Cedric Moonen18-Sep-08 23:03
Cedric Moonen18-Sep-08 23:03 
GeneralRe: Chart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 23:05
Ahmed Charfeddine18-Sep-08 23:05 
AnswerRe: Chart control for MFC unmanaged C++.. Pin
Hamid_RT18-Sep-08 23:48
Hamid_RT18-Sep-08 23:48 
GeneralRe: Chart control for MFC unmanaged C++.. Pin
Ahmed Charfeddine18-Sep-08 23:54
Ahmed Charfeddine18-Sep-08 23:54 
QuestionCan I set timeout in IWebBrowser2 Navigate? Pin
kobelakers7618-Sep-08 22:08
kobelakers7618-Sep-08 22:08 

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.