Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is it possible to have an array of types ? Pin
Code-o-mat9-Dec-08 1:19
Code-o-mat9-Dec-08 1:19 
GeneralRe: Is it possible to have an array of types ? Pin
Defenestration9-Dec-08 1:27
Defenestration9-Dec-08 1:27 
QuestionRe: Is it possible to have an array of types ? Pin
David Crow9-Dec-08 3:14
David Crow9-Dec-08 3:14 
AnswerRe: Is it possible to have an array of types ? Pin
Michael Dunn9-Dec-08 13:52
sitebuilderMichael Dunn9-Dec-08 13:52 
QuestionHow to unblock pipe write operation? Pin
sashoalm8-Dec-08 21:39
sashoalm8-Dec-08 21:39 
QuestionNeed some Bits/Bytes and Types information Pin
gabbana8-Dec-08 21:24
gabbana8-Dec-08 21:24 
AnswerRe: Need some Bits/Bytes and Types information Pin
CPallini8-Dec-08 22:16
mveCPallini8-Dec-08 22:16 
AnswerRe: Need some Bits/Bytes and Types information Pin
Code-o-mat8-Dec-08 22:22
Code-o-mat8-Dec-08 22:22 
*((LPWORD)buf) = length; - this will copy sizeof(WORD) bytes into the first sizeof(WORD) bytes of your buffer
*(buf) = length - this will convert your integer (length) to a TCHAR and put that into the first TCHAR pointed at by buf.

So let's assume WORD is 2 bytes and TCHAR is also 2 bytes (unicode), in this case the 2 versions should produce the same result, but if you compile wihout unicode, TCHAR being 1 byte then in the second case, only 1 bytes will be changed in your buffer while the 2nd byte is left unchanged, you would probably get a warning from your compiler too ('conversion from int to char, possible loss of data' or similar).

On a sidenote, could you show me where you read this:
gabbana wrote:
So now it says the FIRST WORD needs to have the length of the string in the edit field, which I retrieved before.


please?

> The problem with computers is that they do what you tell them to do and not what you want them to do. <

AnswerRe: Need some Bits/Bytes and Types information Pin
gabbana8-Dec-08 22:32
gabbana8-Dec-08 22:32 
GeneralRe: Need some Bits/Bytes and Types information Pin
gabbana8-Dec-08 22:35
gabbana8-Dec-08 22:35 
GeneralRe: Need some Bits/Bytes and Types information Pin
Code-o-mat8-Dec-08 23:00
Code-o-mat8-Dec-08 23:00 
GeneralRe: Need some Bits/Bytes and Types information Pin
gabbana9-Dec-08 0:51
gabbana9-Dec-08 0:51 
Questiondifference between CreateThread & AfxBeginThread Pin
Nikesh Jagtap8-Dec-08 21:17
Nikesh Jagtap8-Dec-08 21:17 
AnswerRe: difference between CreateThread & AfxBeginThread Pin
Roger Stoltz8-Dec-08 21:27
Roger Stoltz8-Dec-08 21:27 
AnswerRe: difference between CreateThread & AfxBeginThread [modified] Pin
Defenestration8-Dec-08 22:32
Defenestration8-Dec-08 22:32 
AnswerRe: difference between CreateThread & AfxBeginThread Pin
Roger Stoltz8-Dec-08 22:42
Roger Stoltz8-Dec-08 22:42 
GeneralRe: difference between CreateThread & AfxBeginThread Pin
Defenestration8-Dec-08 22:51
Defenestration8-Dec-08 22:51 
QuestionHow to write string values in .csv file Pin
MsmVc8-Dec-08 20:40
MsmVc8-Dec-08 20:40 
AnswerRe: How to write string values in .csv file Pin
Cedric Moonen8-Dec-08 20:51
Cedric Moonen8-Dec-08 20:51 
AnswerRe: How to write string values in .csv file Pin
SandipG 8-Dec-08 20:52
SandipG 8-Dec-08 20:52 
GeneralRe: How to write string values in .csv file Pin
MsmVc8-Dec-08 21:10
MsmVc8-Dec-08 21:10 
QuestionRe: How to write string values in .csv file Pin
Rajesh R Subramanian8-Dec-08 21:01
professionalRajesh R Subramanian8-Dec-08 21:01 
QuestionWindows Installer for a C++/MFC application Pin
Puneet Kulkarni8-Dec-08 19:46
Puneet Kulkarni8-Dec-08 19:46 
QuestionWhy do some combinations of port settings fail ? Pin
kapardhi8-Dec-08 19:34
kapardhi8-Dec-08 19:34 
AnswerRe: Why do some combinations of port settings fail ? Pin
Roger Stoltz8-Dec-08 21:43
Roger Stoltz8-Dec-08 21:43 

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.