Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi,
I'm trying to create a UserDll function to write data to a file.
According the file MCADINCL.H
it should be possible to have the function behave like WRITEPRN:
"
// File name variables. These are passed as const char *pointers
// if the string doesn't look like it has a path in it then
// the current working directory will be prepended to the string
// before it is passed to the user function.
//
//
// your function will be passed a const char * pointer
#define INFILE 13
// an OUTFILE is like an INFILE except it allows you
// to put your function on the left side of a := like
// the WRITEPRN() builtin
#define OUTFILE 14
"
Has anyone ever successfully used this feature? Then I'd like to see the (important parts of) the source code of that function.
{Note: I'm having no trouble in read/writing a file from within a UserDLL function, it's just this specific feature (indicated bold) that eludes me.}
Thanks,
Luc