Click here to Skip to main content
15,888,351 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: hello, i have a question about char and int Pin
Richard MacCutchan29-Nov-10 3:40
mveRichard MacCutchan29-Nov-10 3:40 
Question[SOLVED] COM Dll Not Getting Registered In Windows Server 2008 [modified] Pin
MANISH RASTOGI26-Nov-10 18:20
MANISH RASTOGI26-Nov-10 18:20 
Questionrenaming files Pin
khomeyni20-Nov-10 7:46
khomeyni20-Nov-10 7:46 
AnswerRe: renaming files Pin
Cool_Dev20-Nov-10 21:12
Cool_Dev20-Nov-10 21:12 
GeneralRe: renaming files Pin
khomeyni20-Nov-10 23:48
khomeyni20-Nov-10 23:48 
GeneralRe: renaming files Pin
Richard MacCutchan21-Nov-10 1:15
mveRichard MacCutchan21-Nov-10 1:15 
GeneralRe: renaming files Pin
pasztorpisti2-Dec-10 6:11
pasztorpisti2-Dec-10 6:11 
AnswerRe: renaming files Pin
mbue9-Dec-10 15:28
mbue9-Dec-10 15:28 
void txt2cpp(const TCHAR* path)
{
TCHAR full[_MAX_PATH+_MAX_FNAME];
TCHAR move[_MAX_PATH+_MAX_FNAME];
unsigned int flen;
unsigned int mlen;
HANDLE hf;
WIN32_FIND_DATA fd;
_tcscpy(full,path); flen = _tcslen(full); _tcscpy(full+flen,_T("\\*.txt"));
hf = FindFirstFile(full);
if(INVALID_HANDLE_VALUE!=hf)
{
do
{
if(!(FILE_ATTRIBUTE_DIRECTORY & fd.dwFileAttributes))
{
_tcscpy(full+flen+1,fd.cFileName);
_tcscpy(move,full); mlen = _tcslen(move);
for(;(0<mlen)&&('.'!=move[mlen-1]);mlen--);
_tcscpy(move+mlen,_T("cpp"));
MoveFile(full,move);
}
} while(FindNextFile(hf,&fd));
FindClose(hf);
}
}

comment: not safe for buffer overflow.
GeneralRe: renaming files Pin
khomeyni10-Dec-10 4:26
khomeyni10-Dec-10 4:26 
QuestionHow to use WTL in dll? Pin
tank017-Nov-10 0:40
tank017-Nov-10 0:40 
AnswerRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 4:45
Alain Rist17-Nov-10 4:45 
GeneralRe: How to use WTL in dll? Pin
tank017-Nov-10 5:12
tank017-Nov-10 5:12 
GeneralRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 6:05
Alain Rist17-Nov-10 6:05 
GeneralRe: How to use WTL in dll? Pin
tank017-Nov-10 13:34
tank017-Nov-10 13:34 
GeneralRe: How to use WTL in dll? Pin
Alain Rist17-Nov-10 20:29
Alain Rist17-Nov-10 20:29 
QuestionOnQuit event of DWebBrowserEvents2 interface not called on IE8 on some Vista machin Pin
am 200916-Nov-10 17:04
am 200916-Nov-10 17:04 
AnswerRe: OnQuit event of DWebBrowserEvents2 interface not called on IE8 on some Vista machin Pin
KingsGambit18-Nov-10 19:37
KingsGambit18-Nov-10 19:37 
QuestionUsing WMI to Query for Currently Attached USB Device Pin
Jim Fell16-Nov-10 8:40
Jim Fell16-Nov-10 8:40 
QuestionCalling a com interface function ,but find a problem Pin
confideman200013-Nov-10 2:24
confideman200013-Nov-10 2:24 
AnswerRe: Calling a com interface function ,but find a problem Pin
Richard MacCutchan13-Nov-10 5:51
mveRichard MacCutchan13-Nov-10 5:51 
AnswerRe: Calling a com interface function ,but find a problem Pin
Stephen Hewitt13-Nov-10 18:14
Stephen Hewitt13-Nov-10 18:14 
Questionhello i have a problem with linux Pin
lxlenovostar11-Nov-10 15:19
lxlenovostar11-Nov-10 15:19 
AnswerRe: hello i have a problem with linux Pin
Dr.Walt Fair, PE11-Nov-10 17:10
professionalDr.Walt Fair, PE11-Nov-10 17:10 
Questionwindows c++ fstream log file rollover Pin
Alan Kurlansky10-Nov-10 4:18
Alan Kurlansky10-Nov-10 4:18 
AnswerRe: windows c++ fstream log file rollover Pin
Richard MacCutchan10-Nov-10 6:12
mveRichard MacCutchan10-Nov-10 6:12 

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.