|
From: hugo.franca on 21 Jun 2005 05:28 Hi, I'm having trouble passing a string to a CIN. Here's the example code: /* CIN source file */ #include "extcode.h" MgErr CINRun(uInt32 *Debug, uInt32 *bcast, uInt32 *ch_addr, uInt32 *nwords, LStrHandle fname, uInt16 *PMEMERROR); MgErr CINRun(uInt32 *Debug, uInt32 *bcast, uInt32 *ch_addr, uInt32 *nwords, LStrHandle fname, uInt16 *PMEMERROR) { char file_name[50]; uInt32 size; char *new_file_name; new_file_name = &file_name[0]; size = PToCStr(fname, new_file_name); printf("\nSize = %d\n", size); printf("File Name = %s\n", new_file_name); return noErr; } This doesn't work! Do you have an ideia on how to pass this LStrHandle to a normal pointer to string in C? In fact I want to pass a Path so to pass an array of chars would also work, if I new how to do it.. Thank you very much for your help, Hugo
|
Pages: 1 Prev: I'm trying to configure LabView for RS485 ... Next: Raw Encoder Pulses |