delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/05/13:30:22

From: "Chia" <chia AT top DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Vanishing & Symbol...
Date: Wed, 5 Aug 1998 12:17:37 -0500
Organization: 404 Software
Lines: 29
Message-ID: <6qa407$9si@nnrp4.farm.idt.net>
NNTP-Posting-Host: flex-40.top.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

I've never run into this sort of problem before and I don't really know what
to do.  There's just nothing there that could cause it to do this.    Does
anyone have any ideas about what could cause something like this that I
could go look for in my code?

Thanks!

// chia AT top DOT net -- http://www.top.net/chia/


- Raw text -


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