|
Prev: dll won't work with VB6
Next: class declaration problem
From: rockdale on 11 Jun 2008 11:50 Hi, all: I need to have a masked Textbox for email address input or a function to validate the email address that user entered. Did not find anything on the web though. I am using VC 6.0 thanks rockdale
From: Alex Blekhman on 11 Jun 2008 15:28 "rockdale" wrote: > I need to have a masked Textbox for email address input or a > function to validate the email address that user entered. This is not as trivial as it may seem. E-mail address may be pretty complex. You will need regular expression to validate it. Read here for more info: "How to Find or Validate an Email Address" http://www.regular-expressions.info/email.html In my opinion, the best thing to do is to skip the validation altogether. Just try to send an e-mail when required. If it goes through, then the address is valid. HTH Alex
From: rockdale on 11 Jun 2008 16:26 Forgive my ignorance, does Visual C++ 6.0 support regExp ? thanks On Jun 11, 3:28 pm, "Alex Blekhman" <tkfx.REM...(a)yahoo.com> wrote: > "rockdale" wrote: > > I need to have a masked Textbox for email address input or a > > function to validate the email address that user entered. > > This is not as trivial as it may seem. E-mail address may be > pretty complex. You will need regular expression to validate it. > Read here for more info: > > "How to Find or Validate an Email Address"http://www.regular-expressions.info/email.html > > In my opinion, the best thing to do is to skip the validation > altogether. Just try to send an e-mail when required. If it goes > through, then the address is valid. > > HTH > Alex
From: Nathan Mates on 11 Jun 2008 16:50 In article <0ac6e283-6cd5-46f3-be04-98807c3331d6(a)t54g2000hsg.googlegroups.com>, rockdale <rockdale.green(a)gmail.com> wrote: >Forgive my ignorance, does Visual C++ 6.0 support regExp ? First, please don't top-post. English is read left to right, top to bottom. Please trim extraneous comments, and place your response below. Secondly, C/C++ deliberately do not make a lot of functions, useful or not, part of the base language spec. Things like windowing, multimedia, and the like are part of that-- so regular expressions are definitely not part of the base language. However, addon libraries can (and do) provide these features. If you drop by http://www.pcre.org/ , you can download a free library that does regular expressions, and quite well. Nathan Mates -- <*> Nathan Mates - personal webpage http://www.visi.com/~nathan/ # Programmer at Pandemic Studios -- http://www.pandemicstudios.com/ # NOT speaking for Pandemic Studios. "Care not what the neighbors # think. What are the facts, and to how many decimal places?" -R.A. Heinlein
|
Pages: 1 Prev: dll won't work with VB6 Next: class declaration problem |