cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

creating a user DLL function like WRITEPRN

LucMeekes
23-Emerald III

creating a user DLL function like WRITEPRN

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

0 REPLIES 0
Announcements

Top Tags