Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Regular expression error ? Pin
Richard Andrew x6421-Oct-23 8:12
professionalRichard Andrew x6421-Oct-23 8:12 
GeneralRe: Regular expression error ? Pin
Salvatore Terress21-Oct-23 8:58
Salvatore Terress21-Oct-23 8:58 
AnswerRe: Regular expression error ? Pin
Salvatore Terress22-Oct-23 6:42
Salvatore Terress22-Oct-23 6:42 
GeneralRe: Regular expression error ? Pin
David Crow23-Oct-23 2:12
David Crow23-Oct-23 2:12 
GeneralRe: Regular expression error ? Pin
Salvatore Terress23-Oct-23 5:10
Salvatore Terress23-Oct-23 5:10 
GeneralRe: Regular expression error ? Pin
k505423-Oct-23 5:50
mvek505423-Oct-23 5:50 
GeneralRe: Regular expression error ? Pin
Salvatore Terress24-Oct-23 5:01
Salvatore Terress24-Oct-23 5:01 
GeneralRe: Regular expression error ? Pin
k505424-Oct-23 6:00
mvek505424-Oct-23 6:00 
Salvatore Terress wrote:
Thanks, as long as the entry is characters , not numbers, it makes sense.

Why would they not be characters? You seem to be reading input from another command, so it should always be characters.

Salvatore Terress wrote:
Since the MAC address "hex numbers" is capitals I do not need [a-f ].

That depends. Can you guarantee that you'll always get upper case hex digits? Under linux, the arp commands uses lower case letters for the MAC address. Others might as well

Salvatore Terress wrote:
You have a good point - I'll try to delete [:] - in theory it should work.

It should. But as noted above, it would depend on where you're getting your input from. Under Windows, if you run ipconfig /all you get the Mac address separated by dashes e.g. "00-4B-35-30-35-34", so you may need to allow for that too.
Keep Calm and Carry On

GeneralRe: Regular expression error ? Pin
RedDk24-Oct-23 8:01
RedDk24-Oct-23 8:01 
AnswerRe: Regular expression error ? Pin
jschell23-Oct-23 5:16
jschell23-Oct-23 5:16 
QuestionHow to pass parameter (pointer) to function ? Pin
Salvatore Terress19-Oct-23 14:50
Salvatore Terress19-Oct-23 14:50 
AnswerRe: How to pass parameter (pointer) to function ? Pin
k505419-Oct-23 17:16
mvek505419-Oct-23 17:16 
AnswerRe: How to pass parameter (pointer) to function ? Pin
CPallini19-Oct-23 20:54
mveCPallini19-Oct-23 20:54 
GeneralRe: How to pass parameter (pointer) to function ? Pin
Salvatore Terress20-Oct-23 7:22
Salvatore Terress20-Oct-23 7:22 
GeneralRe: How to pass parameter (pointer) to function ? Pin
Salvatore Terress20-Oct-23 8:23
Salvatore Terress20-Oct-23 8:23 
AnswerRe: How to pass parameter (pointer) to function ? Pin
Richard MacCutchan19-Oct-23 21:48
mveRichard MacCutchan19-Oct-23 21:48 
QuestionSOLVED "value optimized out " C++ error Pin
Salvatore Terress18-Oct-23 5:39
Salvatore Terress18-Oct-23 5:39 
AnswerRe: "value optimized out " C++ error Pin
Richard MacCutchan18-Oct-23 5:47
mveRichard MacCutchan18-Oct-23 5:47 
AnswerRe: "value optimized out " C++ error Pin
k505418-Oct-23 7:47
mvek505418-Oct-23 7:47 
AnswerRe: "value optimized out " C++ error Pin
Richard Andrew x6418-Oct-23 14:38
professionalRichard Andrew x6418-Oct-23 14:38 
QuestionBuilding .dll files using Makefile Pin
JohnCodding12-Oct-23 23:59
JohnCodding12-Oct-23 23:59 
AnswerRe: Building .dll files using Makefile Pin
Mircea Neacsu13-Oct-23 0:31
Mircea Neacsu13-Oct-23 0:31 
GeneralRe: Building .dll files using Makefile Pin
JohnCodding13-Oct-23 0:59
JohnCodding13-Oct-23 0:59 
GeneralRe: Building .dll files using Makefile Pin
Mircea Neacsu13-Oct-23 1:21
Mircea Neacsu13-Oct-23 1:21 
GeneralRe: Building .dll files using Makefile Pin
JohnCodding13-Oct-23 6:13
JohnCodding13-Oct-23 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.