Re: ok characters
From: songie D (songie_at_D.com)
Date: 05/11/04
- Next message: songie D: "Re: Making certain programs' tray icons "always show" programatically"
- Previous message: Jason W.: "Re: How to set up Pre-Logon executable?"
- In reply to: Rick Rothstein: "Re: ok characters"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: ok characters"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 May 2004 20:40:19 +0100
no, sorry. i posted to the wrong group.
i since found that _tcscspn DOES have an inverse,
namely _tcsspnp. so it would seem it's ok.
"Rick Rothstein" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in message
news:%23azztT1NEHA.3124@TK2MSFTNGP12.phx.gbl...
> What language are you writing in? That sure doesn't look like Visual
> Basic (at least not the Classic version which is what this newsgroup
> deals with). If you are using VB.NET, then the following is my standard
> reply (if you aren't using it, you'll need to find a group that caters
> to whatever language that is)...
>
> Almost everybody in this newsgroup is using VB6 or lower. While you may
> get a stray answer to VB.NET questions here, you should ask them in
> newsgroups devoted exclusively to .NET programming. Look for newsgroups
> with either the word "dotnet" or "vsnet" in their name.
>
> For the microsoft news server, try these newsgroups...
>
> microsoft.public.dotnet.general
> microsoft.public.dotnet.languages.vb
> microsoft.public.vsnet.general
>
> There are some others, but these should get you started.
>
> Rick - MVP
>
>
>
>
> "songie D" <anonymous@discussions.microsoft.com> wrote in message
> news:00D27786-0499-4CEC-8D2A-B14BEB8C5382@microsoft.com...
> > Hello
> > I want to define a string of characters that are OK for my
> application, for example:
> > const _TCHAR* ok_chars = _T("abcdef...xyz#$");
> >
> > however I want to define the string of characters that AREN'T ok
> aswell, for instance
> > const _TCHAR* not_ok_chars = _T("%^&*()\\");
> >
> > but most of them are just represented as squares, and although the
> computer does recognise the difference between them, a human reading the
> code might not, and I'm against this being the case.
> >
> > I need to use the _tcscspn function with the ok_chars (and
> not_ok_chars) as the second argument. i.e. find the first character in a
> string that's an ok character, or say the first one that isn't an ok
> character.
> >
> > A kludge would be to load the not ok characters string dynamically at
> the beginning, but I don't know if this is the best solution. Can
> anybody think of a better one? Such as, does the _tcscspn function have
> an inverse?
> >
>
- Next message: songie D: "Re: Making certain programs' tray icons "always show" programatically"
- Previous message: Jason W.: "Re: How to set up Pre-Logon executable?"
- In reply to: Rick Rothstein: "Re: ok characters"
- Next in thread: Jeff Johnson [MVP: VB]: "Re: ok characters"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|