>>
int RenderTicket(double dPassNo, CString& csLayout, new CString("PNG"));
>>
>>
>>Does this syntax work?
>
>This worked
>
>int RenderTicket(double dPassNo, CString& csLayout, CString csImageType = CString("PNG"));
>
>I'll fix these errors and I have a few more more complex I'm going to post in a bit.
If you declare those constants somewhere you can reference them statically without creating them dynamically.