Click here to Skip to main content
15,895,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: using com Pin
Maximilien2-Dec-09 2:21
Maximilien2-Dec-09 2:21 
AnswerRe: using com Pin
David Crow2-Dec-09 2:56
David Crow2-Dec-09 2:56 
AnswerRe: using com Pin
KarstenK2-Dec-09 2:57
mveKarstenK2-Dec-09 2:57 
QuestionSetItemText in CListCtrl can't change the first column. Pin
Code-o-mat1-Dec-09 23:13
Code-o-mat1-Dec-09 23:13 
AnswerRe: SetItemText in CListCtrl can't change the first column. Pin
Adam Roderick J1-Dec-09 23:22
Adam Roderick J1-Dec-09 23:22 
GeneralRe: SetItemText in CListCtrl can't change the first column. Pin
Code-o-mat1-Dec-09 23:34
Code-o-mat1-Dec-09 23:34 
GeneralRe: SetItemText in CListCtrl can't change the first column. Pin
vasu_sri2-Dec-09 0:19
vasu_sri2-Dec-09 0:19 
QuestionConvert pointer to zlib stream to string? Pin
o m n i1-Dec-09 23:03
o m n i1-Dec-09 23:03 
I have a z_streamp, which is a pointer to a z_stream_s. z_stream_s is defined as follows:
typedef struct z_stream_s {
    Bytef    *next_in;  /* next input byte */
    uInt     avail_in;  /* number of bytes available at next_in */
    uLong    total_in;  /* total nb of input bytes read so far */

    Bytef    *next_out; /* next output byte should be put there */
    uInt     avail_out; /* remaining free space at next_out */
    uLong    total_out; /* total nb of bytes output so far */

    char     *msg;      /* last error message, NULL if no error */
    struct internal_state FAR *state; /* not visible by applications */

    alloc_func zalloc;  /* used to allocate the internal state */
    free_func  zfree;   /* used to free the internal state */
    voidpf     opaque;  /* private data object passed to zalloc and zfree */

    int     data_type;  /* best guess about the data type: binary or text */
    uLong   adler;      /* adler32 value of the uncompressed data */
    uLong   reserved;   /* reserved for future use */
} z_stream;


I am trying to convery the next_in Byte to a string but I get a c2059 error that doesn't make any sense (it complains about a parenthesis: error C2059: syntax error : ')')

Here is my code:
z_stream_s zs;
zs = *z_stream_in;
  
char dest(StackSizeOf(char));
strcpy(dest,zs.next_in*);


(the *z_stream_in it uses is passed to it by the caller)

I think I may be defining the char wrong but I don't think that's whats causing the error.

Can anyone help please?
QuestionRe: Convert pointer to zlib stream to string? Pin
Adam Roderick J1-Dec-09 23:10
Adam Roderick J1-Dec-09 23:10 
AnswerRe: Convert pointer to zlib stream to string? Pin
o m n i1-Dec-09 23:14
o m n i1-Dec-09 23:14 
GeneralRe: Convert pointer to zlib stream to string? Pin
Adam Roderick J2-Dec-09 0:52
Adam Roderick J2-Dec-09 0:52 
AnswerRe: Convert pointer to zlib stream to string? Pin
Richard MacCutchan2-Dec-09 1:46
mveRichard MacCutchan2-Dec-09 1:46 
QuestionThe Value is not updated when Passing a char array by reference Pin
manoharbalu1-Dec-09 22:53
manoharbalu1-Dec-09 22:53 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
Adam Roderick J1-Dec-09 23:13
Adam Roderick J1-Dec-09 23:13 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
KingsGambit1-Dec-09 23:16
KingsGambit1-Dec-09 23:16 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
Richard MacCutchan2-Dec-09 1:49
mveRichard MacCutchan2-Dec-09 1:49 
AnswerRe: The Value is not updated when Passing a char array by reference Pin
loyal ginger2-Dec-09 3:30
loyal ginger2-Dec-09 3:30 
QuestionCListCtrl Pin
Paulraj G1-Dec-09 21:55
Paulraj G1-Dec-09 21:55 
AnswerRe: CListCtrl Pin
wangningyu1-Dec-09 22:02
wangningyu1-Dec-09 22:02 
GeneralRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:07
Cedric Moonen1-Dec-09 22:07 
AnswerRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:07
Cedric Moonen1-Dec-09 22:07 
GeneralRe: CListCtrl Pin
Paulraj G1-Dec-09 22:16
Paulraj G1-Dec-09 22:16 
GeneralRe: CListCtrl Pin
Cedric Moonen1-Dec-09 22:31
Cedric Moonen1-Dec-09 22:31 
QuestionPDF File Zoomin [modified] Pin
Pryabu1-Dec-09 20:25
Pryabu1-Dec-09 20:25 
AnswerRe: PDF File Zoomin Pin
Richard MacCutchan1-Dec-09 21:33
mveRichard MacCutchan1-Dec-09 21:33 

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.