Click here to Skip to main content
14,980,146 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Tab Control Related problem Pin
nbugalia19-Sep-07 0:20
Membernbugalia19-Sep-07 0:20 
GeneralRe: Tab Control Related problem Pin
Y_Kaushik19-Sep-07 0:47
MemberY_Kaushik19-Sep-07 0:47 
GeneralRe: Tab Control Related problem Pin
nbugalia19-Sep-07 1:01
Membernbugalia19-Sep-07 1:01 
GeneralRe: Tab Control Related problem Pin
Y_Kaushik19-Sep-07 1:07
MemberY_Kaushik19-Sep-07 1:07 
QuestionRe: Tab Control Related problem Pin
David Crow19-Sep-07 2:50
MemberDavid Crow19-Sep-07 2:50 
AnswerRe: Tab Control Related problem Pin
Nelek19-Sep-07 2:41
protectorNelek19-Sep-07 2:41 
AnswerRe: Tab Control Related problem Pin
David Crow19-Sep-07 2:57
MemberDavid Crow19-Sep-07 2:57 
Questiondon't understand MSDN explanations. Can someone explain this? Pin
Nelek18-Sep-07 23:23
protectorNelek18-Sep-07 23:23 
Hi all,

As I mentioned in another message, I have to connect my program with a PLC of Siemens. I have found a quite good DLL to do that. Now I'm reading the documentation and the examples that come with the DLL, but there are somethings that I don't understand very well and the help/tutorial is supposing a high level in plain C (that I don't reach Frown | :(

My programm is made in VC++ 6.0, I would like to have some explanations about the following things and to know if in VC++ 6.0 are needed these commands/prerrogatives.

In the header file
1)
#if defined( _MSC_VER ) && _MSC_VER > 600
#pragma pack( push, 1 )
#else
#pragma pack( 1 )
#endif

2)
#if defined( _MSC_VER ) && _MSC_VER > 600
#pragma pack( pop )
#else
#pragma pack()
#endif

These 2 blocks mean that depending on the version the parameters of those functions are different. I have taken a look in the help but I have not understood it well.

MSDN says:
push (optional)
Puts a specified packing alignment value, n, on the internal compiler stack, and sets the current packing alignment value to n. If n is not specified, the current packing alignment value is pushed.
pop (optional)
Removes the record from the top of the internal compiler stack. If n is not specified with pop, then the packing value associated with the resulting record on the top of the stack is the new packing alignment value. If n is specified, for example, #pragma pack(pop, 16), n becomes the new packing alignment value. If you pop with identifier, for example, #pragma pack(pop, r1), then all records on the stack are popped until the record with identifier is found, and that record is popped and the packing value associated with the resulting record on the top of is the stack the new packing alignment value. If you pop with an identifier that is not found in any record on the stack, then the pop is ignored.

But... wtf does it mean? D'Oh! | :doh:


In the *.cpp
1) #define WIN32_LEAN_AND_MEAN // we don’t need all specifications Confused | :confused:
2) __cdecl


A decent explanation will be very wellcome.

Thanks

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

AnswerRe: don't understand MSDN explanations. Can someone explain this? Pin
toxcct18-Sep-07 23:35
Membertoxcct18-Sep-07 23:35 
GeneralDidn't explain myself good Pin
Nelek19-Sep-07 0:35
protectorNelek19-Sep-07 0:35 
GeneralRe: Didn't explain myself good Pin
toxcct19-Sep-07 1:49
Membertoxcct19-Sep-07 1:49 
GeneralRe: Didn't explain myself good Pin
Nelek19-Sep-07 2:08
protectorNelek19-Sep-07 2:08 
QuestionRe: don't understand MSDN explanations. Can someone explain this? Pin
David Crow19-Sep-07 3:04
MemberDavid Crow19-Sep-07 3:04 
AnswerRe: don't understand MSDN explanations. Can someone explain this? Pin
Nelek19-Sep-07 20:28
protectorNelek19-Sep-07 20:28 
GeneralRe: don't understand MSDN explanations. Can someone explain this? Pin
David Crow20-Sep-07 2:42
MemberDavid Crow20-Sep-07 2:42 
GeneralRe: don't understand MSDN explanations. Can someone explain this? Pin
Nelek20-Sep-07 4:12
protectorNelek20-Sep-07 4:12 
GeneralRe: don't understand MSDN explanations. Can someone explain this? Pin
David Crow20-Sep-07 4:30
MemberDavid Crow20-Sep-07 4:30 
JokeRe: don't understand MSDN explanations. Can someone explain this? Pin
Nelek21-Sep-07 1:47
protectorNelek21-Sep-07 1:47 
QuestionFonts Pin
Waldermort18-Sep-07 22:57
MemberWaldermort18-Sep-07 22:57 
AnswerRe: Fonts Pin
KarstenK18-Sep-07 23:05
mveKarstenK18-Sep-07 23:05 
AnswerRe: Fonts Pin
nbugalia18-Sep-07 23:14
Membernbugalia18-Sep-07 23:14 
AnswerRe: Fonts Pin
Waldermort19-Sep-07 0:46
MemberWaldermort19-Sep-07 0:46 
QuestionEM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah18-Sep-07 22:37
MemberGauranG Shah18-Sep-07 22:37 
AnswerRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
nbugalia18-Sep-07 23:23
Membernbugalia18-Sep-07 23:23 
GeneralRe: EM_GETSELTEXT Message Doesn't retrive the Text Pin
GauranG Shah18-Sep-07 23:30
MemberGauranG Shah18-Sep-07 23:30 

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.