KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: The 4D Open APIs - Part II: Initializing the data used by 4D Open (sample code)
PRODUCT: 4D | VERSION: 6.7 | PLATFORM: Mac & Win
Published On: July 13, 2001

The following C code initializes the data structures to be used by a 4D Open connection:

void initialisation(void)

{

memcpy(&logRec.StationName[1],KStationName, strlen((char *)KStationName));

logRec.StationName[0]=strlen((char *)KStationName);

memcpy(&logRec.UserName[1],KUserName, strlen((char *)KUserName));

logRec.UserName[0]=strlen((char *)KUserName);

memcpy(&logRec.UserPass[1],KUserPass, strlen((char *)KUserPass));

logRec.UserPass[0]=strlen((char *)KUserPass);

memcpy(&logRec.TaskName[1],KUserTask, strlen((char *)KUserTask));

logRec.TaskName[0]=strlen((char *)KUserTask);

}


Click here for Part 1