Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

special characters in get box

$
0
0
This is the MsgInfo() source code: HB_FUNC( MSGINFO ) { NSString * msg, * title; CocoaInit(); ValToChar( hb_param( 1, HB_IT_ANY ) ); msg = hb_NSSTRING_par( -1 ); if( [ msg length ] == 0 ) msg = @"" ; if( hb_pcount() > 1 ) { ValToChar( hb_param( 2, HB_IT_ANY ) ); title = hb_NSSTRING_par( -1 ); if( [ title length ] == 0 ) title = @"Attention" ; } else title = @"Attention"; NSAlert * alert = [ [ NSAlert alloc ] init ]; alert.alertStyle = NSInformationalAlertStyle ; alert.informativeText = msg ; alert.messageText = title ; [ alert addButtonWithTitle:@"OK"]; [ alert runModal ]; [ alert release ]; hb_ret(); } If we change the enconding used in hb_NSSTRING_par(), then the MsgInfo() may look fine

Viewing all articles
Browse latest Browse all 26212

Trending Articles