Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CAtlRegEx Unhandled Exception

CAtlRegEx Unhandled Exception

Scheduled Pinned Locked Moved C / C++ / MFC
regexc++helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dehseth
    wrote on last edited by
    #1

    Hey there, I have a string which includes Turkish chars. And a regex pattern.. my mfc app is compiled with MBSC (I am pretty sure) I got an error at the last letter says unhandled exception.. my string is (i am not sure if you can see it properly) "paylaş" so last letter makes rgx throws an error.. I kinda deep search about the error I would like to write it if needed.. So what am I missing why it fails on turkish chars? I do not define any type of CharTraits I mean I create my variable in this way: CAtlRgx<> myregx; did not specify char type between "<" and ">" thank you all..

    J 1 Reply Last reply
    0
    • D dehseth

      Hey there, I have a string which includes Turkish chars. And a regex pattern.. my mfc app is compiled with MBSC (I am pretty sure) I got an error at the last letter says unhandled exception.. my string is (i am not sure if you can see it properly) "paylaş" so last letter makes rgx throws an error.. I kinda deep search about the error I would like to write it if needed.. So what am I missing why it fails on turkish chars? I do not define any type of CharTraits I mean I create my variable in this way: CAtlRgx<> myregx; did not specify char type between "<" and ">" thank you all..

      J Offline
      J Offline
      JaydeepB
      wrote on last edited by
      #2

      CAtlRECharTraitsA contains the traits for ANSI characters, For multibyte characters, see CAtlRECharTraitsMB. By the way Microsoft removed ATL server support from VS 2008 including CATLRegExp class. Try using basic_regex<> from VC++ 2008 Feature Pack MFC Enhancements.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups