Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Date / Time Class Pin
Mike Certini30-Mar-12 6:36
Mike Certini30-Mar-12 6:36 
GeneralRe: Date / Time Class Pin
Mike Certini30-Mar-12 18:31
Mike Certini30-Mar-12 18:31 
GeneralRe: Date / Time Class Pin
loveheronly30-Mar-12 18:44
loveheronly30-Mar-12 18:44 
AnswerHello Helper Pin
Solife28-Mar-12 6:24
Solife28-Mar-12 6:24 
GeneralRe: Hello Helper Pin
Chandrasekharan P28-Mar-12 6:56
Chandrasekharan P28-Mar-12 6:56 
GeneralRe: Hello Helper - Repost Pin
Richard MacCutchan28-Mar-12 9:05
mveRichard MacCutchan28-Mar-12 9:05 
Questionwho know the tiff predictor? Pin
chp84528-Mar-12 4:04
chp84528-Mar-12 4:04 
AnswerRe: who know the tiff predictor? Pin
Richard MacCutchan28-Mar-12 5:46
mveRichard MacCutchan28-Mar-12 5:46 
QuestionProblem of Property of Configuration Pin
doanhanam27-Mar-12 16:30
doanhanam27-Mar-12 16:30 
AnswerRe: Problem of Property of Configuration Pin
Richard MacCutchan27-Mar-12 22:20
mveRichard MacCutchan27-Mar-12 22:20 
GeneralRe: Problem of Property of Configuration Pin
doanhanam27-Mar-12 23:27
doanhanam27-Mar-12 23:27 
GeneralRe: Problem of Property of Configuration Pin
Richard MacCutchan28-Mar-12 0:30
mveRichard MacCutchan28-Mar-12 0:30 
GeneralRe: Problem of Property of Configuration Pin
doanhanam31-Mar-12 21:31
doanhanam31-Mar-12 21:31 
GeneralRe: Problem of Property of Configuration Pin
Richard MacCutchan31-Mar-12 21:45
mveRichard MacCutchan31-Mar-12 21:45 
AnswerRe: Problem of Property of Configuration Pin
Jochen Arndt28-Mar-12 1:03
professionalJochen Arndt28-Mar-12 1:03 
GeneralRe: Problem of Property of Configuration Pin
doanhanam31-Mar-12 21:27
doanhanam31-Mar-12 21:27 
QuestionI can't figure out how to extract my match from regex Pin
jkirkerx27-Mar-12 8:50
professionaljkirkerx27-Mar-12 8:50 
I have used regex in c++ win32 to confirm email addresses, and to validate, but this is the first time I have used it to extract certain data.

I can't figure out how to access the pointer mBuf in the match to first, and copy the value to another buffer for further processing. I can see the data using debug and watch. mBuf[0](140)

I want to copy the first match to a TCHAR Buffer, but I'm clueless as to how. I see many examples using cout<<mbuf[0], i="" tried="" a="" swprintf_s(="" buffer,="" l"%s",="" mbuf[0]="" )but="" don't="" get="" actual="" text,="" just="" strange="" values.="" no="" clue="" how="" to="" proceed.

<pre="">
std::wsmatch mBuf;
std::wregex wxDef( L"^P.*EP" );
std::regex_search( wstrPB, mBuf, wxDef );

if ( mBuf[0].matched == TRUE ) {
dwProjectBuffer = mBuf.length();
pzProjectBuffer = new TCHAR[ dwProjectBuffer + 1 ];
DWORD dwErrorCode = GetLastError();


}

AnswerI think I figured it out Pin
jkirkerx27-Mar-12 9:56
professionaljkirkerx27-Mar-12 9:56 
QuestionTooltip issue with dialog app Pin
David Crow27-Mar-12 7:21
David Crow27-Mar-12 7:21 
GeneralRe: Tooltip issue with dialog app Pin
Code-o-mat27-Mar-12 8:51
Code-o-mat27-Mar-12 8:51 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 9:21
David Crow27-Mar-12 9:21 
GeneralRe: Tooltip issue with dialog app Pin
Code-o-mat27-Mar-12 9:34
Code-o-mat27-Mar-12 9:34 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 9:47
David Crow27-Mar-12 9:47 
GeneralRe: Tooltip issue with dialog app Pin
Code-o-mat27-Mar-12 10:48
Code-o-mat27-Mar-12 10:48 
GeneralRe: Tooltip issue with dialog app Pin
David Crow27-Mar-12 10:58
David Crow27-Mar-12 10:58 

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.