Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save device context to file Pin
Christian Graus12-Jan-02 1:23
protectorChristian Graus12-Jan-02 1:23 
GeneralSQL Server Pin
Mazdak11-Jan-02 18:26
Mazdak11-Jan-02 18:26 
GeneralRe: SQL Server Pin
l a u r e n11-Jan-02 21:29
l a u r e n11-Jan-02 21:29 
GeneralMFC MULTITHREADING CLIENT Pin
11-Jan-02 18:16
suss11-Jan-02 18:16 
GeneralRe: MFC MULTITHREADING CLIENT Pin
Nish Nishant11-Jan-02 20:28
sitebuilderNish Nishant11-Jan-02 20:28 
GeneralARG_TYPE in CArray Pin
11-Jan-02 17:14
suss11-Jan-02 17:14 
GeneralRe: ARG_TYPE in CArray Pin
Michael Dunn11-Jan-02 17:19
sitebuilderMichael Dunn11-Jan-02 17:19 
Generalusing memcpy for non-char arrays Pin
moredip11-Jan-02 13:19
moredip11-Jan-02 13:19 
Ok, I'm want to copy the contents of one double array into another; ie

double *topArray;
double *Array;
...
...
topArray = new double[foo];
Array = new double[foo*4];
...
...
memcpy( Array[0], topArray, sizeof(double)*foo );


I thought that using memcpy() would work, but it doesn't. I guess because the arrays aren't chars

Is there any way to do this other than using for loops? as the arrays are both contiguous in memory it seems that memcpy() or similar would do the job quicker and neater.

TIA,

Pete
GeneralRe: using memcpy for non-char arrays Pin
Nish Nishant11-Jan-02 13:38
sitebuilderNish Nishant11-Jan-02 13:38 
GeneralRe: using memcpy for non-char arrays Pin
l a u r e n11-Jan-02 21:31
l a u r e n11-Jan-02 21:31 
GeneralToolTips in Modeless dialog Pin
Ruslan11-Jan-02 11:34
Ruslan11-Jan-02 11:34 
GeneralDeclaring own variables Pin
Peter Liddle11-Jan-02 10:53
Peter Liddle11-Jan-02 10:53 
GeneralRe: Declaring own variables Pin
Chris Losinger11-Jan-02 10:59
professionalChris Losinger11-Jan-02 10:59 
GeneralRe: Declaring own variables Pin
alex.barylski11-Jan-02 11:14
alex.barylski11-Jan-02 11:14 
GeneralHelppp Access Violation in throw stmt Pin
Bill Wilson11-Jan-02 10:40
Bill Wilson11-Jan-02 10:40 
GeneralMessageBoxIndirect Pin
Henry Jacobs11-Jan-02 10:05
Henry Jacobs11-Jan-02 10:05 
GeneralRe: MessageBoxIndirect Pin
alex.barylski11-Jan-02 11:23
alex.barylski11-Jan-02 11:23 
General#$&#$ SetWindowsHookEx problem... Pin
Xenos11-Jan-02 8:09
Xenos11-Jan-02 8:09 
GeneralRe: #$&#$ SetWindowsHookEx problem... Pin
Henry Jacobs11-Jan-02 10:20
Henry Jacobs11-Jan-02 10:20 
GeneralRe: #$&#$ SetWindowsHookEx problem... Pin
Xenos11-Jan-02 12:00
Xenos11-Jan-02 12:00 
GeneralFiltering a DAO recordset Pin
Simon Walton11-Jan-02 7:58
Simon Walton11-Jan-02 7:58 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 8:19
Carlos Antollini11-Jan-02 8:19 
GeneralRe: Filtering a DAO recordset Pin
Simon Walton11-Jan-02 8:45
Simon Walton11-Jan-02 8:45 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 9:38
Carlos Antollini11-Jan-02 9:38 
GeneralRe: Filtering a DAO recordset Pin
Carlos Antollini11-Jan-02 9:38
Carlos Antollini11-Jan-02 9:38 

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.