Click here to Skip to main content
16,011,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Nonsense C++ errors... Pin
John M. Drescher9-Sep-06 16:58
John M. Drescher9-Sep-06 16:58 
GeneralRe: Nonsense C++ errors... Pin
Lord Kixdemp9-Sep-06 17:10
Lord Kixdemp9-Sep-06 17:10 
GeneralRe: Nonsense C++ errors... Pin
Christian Graus9-Sep-06 17:27
protectorChristian Graus9-Sep-06 17:27 
AnswerRe: Nonsense C++ errors... Pin
Michael Dunn9-Sep-06 17:18
sitebuilderMichael Dunn9-Sep-06 17:18 
GeneralRe: Nonsense C++ errors... Pin
Lord Kixdemp9-Sep-06 18:41
Lord Kixdemp9-Sep-06 18:41 
GeneralRe: Nonsense C++ errors... Pin
Michael Dunn9-Sep-06 18:54
sitebuilderMichael Dunn9-Sep-06 18:54 
GeneralRe: Nonsense C++ errors... Pin
Lord Kixdemp11-Sep-06 9:33
Lord Kixdemp11-Sep-06 9:33 
Questioncopy data from two buffer into one Pin
venadder9-Sep-06 12:49
venadder9-Sep-06 12:49 
Hi,
I am curious abt shortcuts to copying data from two buffers into one.
let's say I have an integer and a buffer of LPVOID type. Now i want to copy these two, int first and then all contents of LPVOId buffer( size known ) into the buffer supplied by the user(LPVOID type). memcpy or memmove will do only wholesale copy, no way to specify from what byte to start. is there any way other then byte by byte copy??
how do u do this kinda thing anyways?

any pointers will help, thnx

will something like this work
mydata is allocated and is of LPVOID type
myDataSize is UINT and have correct size( hopefully ) of myData
void copy( LPVOID buff, size )
{
memmove_s( buffer, size, (LPVOID)&someint, sizeof(int) );
buff += sizeof( int );
memmove_s( buffer, ( size - sizeof( int ) ), myData, myDataSize );
//return the input pointer to original value
buff -= sizeof( int );
}

//this could be totally laughable thing, but am jsut new to this kinda thing
//please excuse me if this code seems ridiculous

thnx for help.
AnswerRe: copy data from two buffer into one Pin
venadder9-Sep-06 13:06
venadder9-Sep-06 13:06 
AnswerRe: copy data from two buffer into one Pin
Justin Tay9-Sep-06 15:23
Justin Tay9-Sep-06 15:23 
AnswerRe: CTyptedPtrList error ! Pin
tanvon malik9-Sep-06 16:39
tanvon malik9-Sep-06 16:39 
QuestionMet problems with my first win32 program Pin
bloodwinner9-Sep-06 11:04
bloodwinner9-Sep-06 11:04 
AnswerRe: Met problems with my first win32 program Pin
Rick York9-Sep-06 11:51
mveRick York9-Sep-06 11:51 
GeneralRe: Met problems with my first win32 program Pin
bloodwinner9-Sep-06 12:33
bloodwinner9-Sep-06 12:33 
GeneralRe: Met problems with my first win32 program Pin
Rick York9-Sep-06 12:41
mveRick York9-Sep-06 12:41 
GeneralRe: Met problems with my first win32 program Pin
TylerD759-Sep-06 13:15
TylerD759-Sep-06 13:15 
GeneralRe: Met problems with my first win32 program Pin
Rick York9-Sep-06 14:36
mveRick York9-Sep-06 14:36 
GeneralRe: Met problems with my first win32 program Pin
TylerD759-Sep-06 16:31
TylerD759-Sep-06 16:31 
GeneralRe: Met problems with my first win32 program Pin
Justin Tay9-Sep-06 15:08
Justin Tay9-Sep-06 15:08 
GeneralRe: Met problems with my first win32 program Pin
Michael Dunn9-Sep-06 17:20
sitebuilderMichael Dunn9-Sep-06 17:20 
AnswerRe: Met problems with my first win32 program Pin
mostafa_pasha10-Sep-06 4:13
mostafa_pasha10-Sep-06 4:13 
QuestionDrag and Drop Operations Pin
ram on c#9-Sep-06 7:47
ram on c#9-Sep-06 7:47 
AnswerRe: Drag and Drop Operations Pin
mostafa_pasha9-Sep-06 12:31
mostafa_pasha9-Sep-06 12:31 
AnswerRe: Drag and Drop Operations Pin
TommyTooth9-Sep-06 18:52
TommyTooth9-Sep-06 18:52 
QuestionRe: Drag and Drop Operations Pin
Hamid_RT10-Sep-06 2:09
Hamid_RT10-Sep-06 2:09 

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.