Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot convert from char(4) to CString
Message
From
26/03/2014 17:19:55
 
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01597411
Message ID:
01597417
Views:
25
>>
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform