PtPrintSelect question: custom_args

http://www.qnx.com/developer/docs/momentics621_docs/photon/lib_ref/pt/ptprintselect.html
refers to custom_args:
“or Pt_PRINTSEL_ERROR, which indicates that an error was made in
custom_args.”
Where & what is this custom_args?

I’m trying to call PtPrintSelect as follows from a button ARM callback,
and it’s not working (result == -1):

int result;
PtPrintSelectionInfo_t info;
PpPrintContext_t *pc;

pc = PpCreatePC( );
result = PtPrintSelect(
NULL,
“Print MRT result”,
&info );

PtPrintSelectionInfo_t is not documented anywhere but here in
PtPrintSelect (according to google)

ping

acellarius@yahoo.com wrote:

http://www.qnx.com/developer/docs/momentics621_docs/photon/lib_ref/pt/ptprintselect.html
refers to custom_args:
“or Pt_PRINTSEL_ERROR, which indicates that an error was made in
custom_args.”
Where & what is this custom_args?

I’m trying to call PtPrintSelect as follows from a button ARM callback,
and it’s not working (result == -1):

int result;
PtPrintSelectionInfo_t info;
PpPrintContext_t *pc;

pc = PpCreatePC( );
result = PtPrintSelect(
NULL,
“Print MRT result”,
&info );

PtPrintSelectionInfo_t is not documented anywhere but here in
PtPrintSelect (according to google)

Hi ,

Sorry for the delay in answering your posting…you have passed in info to
the function but haven’t set the print context within that structure so it
is giving you the error because it is seeing the print context as NULL

For example try this

PtPrintSelectionInfo_t info;

memset(&info, 0x0, sizeof(PtPrintSelectionInfo_t ));
info.pc = PpCreatePC( );
result = PtPrintSelect( NULL, “Print MRT result”, &info );

Let me know if this gets rid of the error message your seeing.

Regards
Brenda




<acellarius@yahoo.com> wrote in message news:3EF7DD35.DA1DF348@yahoo.com

ping

acellarius@yahoo.com > wrote:


http://www.qnx.com/developer/docs/momentics621_docs/photon/lib_ref/pt/ptprin

tselect.html

refers to custom_args:
“or Pt_PRINTSEL_ERROR, which indicates that an error was made in
custom_args.”
Where & what is this custom_args?

I’m trying to call PtPrintSelect as follows from a button ARM callback,
and it’s not working (result == -1):

int result;
PtPrintSelectionInfo_t info;
PpPrintContext_t *pc;

pc = PpCreatePC( );
result = PtPrintSelect(
NULL,
“Print MRT result”,
&info );

PtPrintSelectionInfo_t is not documented anywhere but here in
PtPrintSelect (according to google)