Re: ok characters

From: songie D (songie_at_D.com)
Date: 05/11/04


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?
> >
>



Relevant Pages

  • Re: Concatenated string problem
    ... Go to tools, options, results tab and change the value of Maximum ... characters per column up to 8000. ... Please reply to the newsgroups only unless you are interested in consulting services. ... > My problem is that this concatenated string shows only> 256 characters, ...
    (microsoft.public.sqlserver.programming)
  • Re: ok characters
    ... What language are you writing in? ... newsgroups devoted exclusively to .NET programming. ... > however I want to define the string of characters that AREN'T ok ...
    (microsoft.public.vb.general.discussion)
  • Re: newbie: cant compile program
    ... print the string to the screen. ... the left is a pointer. ... This loop will read up to 149 characters 150 times. ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: How to dump a table into an msdos text file
    ... please trim the newsgroups to only ... I think the other characters you describe are accented characters. ... list of all such characters in a given string, ... Dim intAsc As Integer ...
    (microsoft.public.access.formscoding)
  • Re: How to dump a table into an msdos text file
    ... please trim the newsgroups to only ... I think the other characters you describe are accented characters. ... list of all such characters in a given string, ... Dim intAsc As Integer ...
    (microsoft.public.access.forms)