- strcpy( (char*) pascalTitle , wxMacMakeMacStringFromPC( m_caption ) ) ;
- strcpy( (char*) pascalText , wxMacMakeMacStringFromPC( m_message) ) ;
+#if TARGET_CARBON
+ c2pstrcpy( (StringPtr) pascalTitle , wxMacMakeMacStringFromPC( m_caption ) ) ;
+#else
+ strcpy( (char *) pascalTitle , wxMacMakeMacStringFromPC( m_caption ) ) ;
+ c2pstr( (char *) pascalTitle ) ;
+#endif
+ strcpy(cText , wxMacMakeMacStringFromPC( m_message) ) ;