Using Memcpy to Assign JDEDATE Variables
When assigning JDEDATE variables, use the memcpy function. The memcpy function copies the information into the location of the pointer. If you use a flat assignment, you might lose the scope of the local variable in the assignment, which could result in a lost data assignment.
/**************************************************** * Variable Definitions ****************************************************/ JDEDATE jdToDate; /**************************************************** * Main Processing ****************************************************/ memcpy((void*) &jdToDate, (const void *) &lpDS->jdFromDate, sizeof(JDEDATE) );