Click here to Skip to main content
15,906,106 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questiondebug assertions : wierd or not?? Pin
Senkwe Chanda6-Aug-03 8:44
Senkwe Chanda6-Aug-03 8:44 
Answerjust me being stupid Pin
Senkwe Chanda6-Aug-03 13:46
Senkwe Chanda6-Aug-03 13:46 
GeneralC++ ATL Server project Pin
devvvy5-Aug-03 23:43
devvvy5-Aug-03 23:43 
GeneralRe: C++ ATL Server project Pin
Steve S6-Aug-03 5:43
Steve S6-Aug-03 5:43 
GeneralRe: C++ ATL Server project Pin
Nemanja Trifunovic6-Aug-03 6:13
Nemanja Trifunovic6-Aug-03 6:13 
GeneralRe: C++ ATL Server project Pin
devvvy6-Aug-03 14:56
devvvy6-Aug-03 14:56 
GeneralRe: C++ ATL Server project Pin
nativespirits30-Dec-03 10:04
nativespirits30-Dec-03 10:04 
GeneralSTL, "upgrade" from sprintf to ostream in a logclass Pin
justin2235-Aug-03 21:01
justin2235-Aug-03 21:01 
Hello

I've written a logfile class that writes the logentries in xml format.

A typical usage:
mylog.WriteLog(LOG_PRIO_HIGH, "Agroup", "This is a text with %d some %s
vars", 34, "diffrent");

output
<entry date="2003-01-01" time="20:01:32:1234" prio="1"
group="Agroup">This is a text with 39 some diffrent vars

I want to accomplish the same thing by using streams/stringbuf.
But I've not found any good examples that show me how I should do.
What i've found is a couple of examples that derives a class from stringbuf and from ostream.

I would be nice of I can get something like this:

log << log_prio(1) << log_group("test") << "hello" << nIntVar << strBuf << log_end;
log << "this is a string";
log << " something more" << log_end;
log << log_prio(2) << "last line" << log_end;

would look like:
<entry date="2003-01-01" time="20:01:32:1234" prio="1" group="test">hello1yeye
<entry date="2003-01-01" time="20:01:32:2200" prio="1" group="test">this is a string something more
<entry date="2003-01-01" time="20:01:32:6600" prio="2" group="test">last line

How do I accomplish this?

Thanks,
Jonas
GeneralRe: STL, &quot;upgrade&quot; from sprintf to ostream in a logclass Pin
Anonymous5-Aug-03 21:25
Anonymous5-Aug-03 21:25 
GeneralRe: STL, &quot;upgrade&quot; from sprintf to ostream in a logclass Pin
justin2235-Aug-03 21:32
justin2235-Aug-03 21:32 
GeneralATL and ADO Problem Pin
Popeye Doyle Murray5-Aug-03 2:39
Popeye Doyle Murray5-Aug-03 2:39 
GeneralRe: ATL and ADO Problem Pin
Steve S5-Aug-03 23:17
Steve S5-Aug-03 23:17 
GeneralRe: ATL and ADO Problem Pin
Popeye Doyle Murray6-Aug-03 2:27
Popeye Doyle Murray6-Aug-03 2:27 
GeneralRe: ATL and ADO Problem Pin
Steve S6-Aug-03 5:39
Steve S6-Aug-03 5:39 
GeneralWindows Installer MSI file problem Pin
darseh5-Aug-03 0:03
darseh5-Aug-03 0:03 
GeneralIPropertySheet Pin
Subbu Viji4-Aug-03 5:18
Subbu Viji4-Aug-03 5:18 
GeneralATL ActiveX composite control Pin
Subbu Viji4-Aug-03 5:15
Subbu Viji4-Aug-03 5:15 
GeneralI need a good ATL book; Common Controls and Active X Pin
Stormwind3-Aug-03 21:44
Stormwind3-Aug-03 21:44 
GeneralRe: I need a good ATL book; Common Controls and Active X Pin
valikac4-Aug-03 9:30
valikac4-Aug-03 9:30 
GeneralRe: I need a good ATL book; Common Controls and Active X Pin
Stormwind4-Aug-03 15:43
Stormwind4-Aug-03 15:43 
GeneralConverting ATL example from vs7 to vc++6 Pin
paully3-Aug-03 5:26
paully3-Aug-03 5:26 
GeneralATL Registration in win98 Pin
zxb888888881-Aug-03 23:53
zxb888888881-Aug-03 23:53 
GeneralRe: ATL Registration in win98 Pin
Andrew Walker2-Aug-03 12:12
Andrew Walker2-Aug-03 12:12 
GeneralRe: ATL Registration in win98 Pin
zxb888888882-Aug-03 14:28
zxb888888882-Aug-03 14:28 
GeneralATL - invoke an event in a diffrent thread Pin
Arik Poznanski1-Aug-03 6:08
Arik Poznanski1-Aug-03 6:08 

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.