www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/06/20:35:18

Sender: nate AT cartsys DOT com
Message-ID: <35CA41ED.9DD43985@cartsys.com>
Date: Thu, 06 Aug 1998 16:53:17 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Chia <chia AT top DOT net>
CC: djgpp AT delorie DOT com
Subject: Re: Vanishing & Symbol...
References: <6qa407$9si AT nnrp4 DOT farm DOT idt DOT net>

Chia wrote:
> 
> I have a class JG_MENUOPT.
> 
> The only constructor is:
> 
> JG_MENUOPT( char *n, void (*cb)(void) )
>   {
>     allegro_exit();
>     cout << n;
>     exit(0);
>   }
> 
> When I send the string, "&Show Barquie", it prints out, "Show Barquie"
> without the &.
> 
>     JG_MENUOPT *TheOpt = new JG_MENUOPT( "&Show Barquie", ShowBarquieProc );
> 
> No other strings seem to suffer from this phenomenon.  When I made a simple
> program to test it, it printed the & like it should.

That is strange.  Can you post a complete, compilable piece of code that
demonstrates it?
-- 

Nate Eldredge
nate AT cartsys DOT com


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019