|
You're welcome you can back to ask if you like.
|
|
|
|
|
Alex Cutovoi wrote: Something like Camstudio but much more simple.
Camstudio[^] is open source! You can just download the source and see how it has been done.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I know this, but this implementation is for windows. What I want to do is to create an implementation that works in linux too....
A generic thing, ok?
|
|
|
|
|
I haven't seen an open source screen capture program, that works on both platforms. XVIDCAP[^] is open source and is for Linux. Hope that helps.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Sounds interesting for me. Thanks Rajesh...
|
|
|
|
|
You're most welcome Alex.
FYI, osalt.com[^] has a wide variety of open source programs and you can search for an open source program by providing a commercial program's name.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Very thanks again. In the last days, I was searching a site that seems to sourceforge and now I found.
Very helpful.
BTW, is there other sites like these
|
|
|
|
|
Wikipedia Entry[^]
OSI[^]
OSW[^] (This is just fantastic).
And there is OSALT and sourceforge. That's all I can think of right now.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
THHHHHAAAAAAANNNNNKKKKKSSSSSS.....
Very helpful
|
|
|
|
|
You're welcome man. I'm glad I could be of some help to you.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
hi, i wondered how i can do this with ostringstream
i want to print time in this format: mm:ss
for minutes=5, seconds=2 it should be 05:02 for example
any ideas? thanks in advance
|
|
|
|
|
std::stringstream sl;
sl<<3<<":"<<12;
std::cout<<sl.str();
|
|
|
|
|
I refuse to take that 1 vote, without reply or reason .
I consider it cowardly.
|
|
|
|
|
I think you got 1 because your code will not properly format numbers (BTW I didn't vote you).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Agree. I overlooked OP's question.
|
|
|
|
|
I didn't vote you down but this doesn't answer the question. This would be equivalent to printf("%d:%d");
So there's no lenght and filling specification.
|
|
|
|
|
I know, you would not vote me, without reply.
Yes, I missed some part of original question.
|
|
|
|
|
ostringstream ostr;
ostr.fill('0');
ostr.width(2);
ostr << 5 << ":";
ostr.width(2);
ostr << 2 << endl;
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks, it worked perfectly.
btw, it seems an awkward construction, with printf the formatting is more natural. guess the new c++ classes can't be better at everything...
|
|
|
|
|
all the lines explained by CPallini can be "inlined" into once (if i remember well)...
|
|
|
|
|
Yes, it can be done, including <iomanip> and slightly changing the syntax:
#include <iomainip>
str.fill('0');
str << setw(2) << 2 << ":" << setw(2) << 5 << endl;
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
sashoalm wrote: it seems an awkward construction
I agree, that's why I tend to use printf family functions. On the other hand manipulator syntax is great for dealing with complex objects.
[added]
BTW, thanks to toxcct suggestion, have a look at
http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2559997[^]
[/added]
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
also, you (and the OP) must be aware that printf()-like functions are not thread safe, were C++ xxstream classes are.
|
|
|
|
|
Hello,
I have a class in MFC and I want to use this class in Windows forms. For that I create a .dll file using the MFC class and load that .dll file in to CLR project and draw that object in Windows form. But now I want to add an event to that new control. How can I do this?
eg:
I have a ctreeview in MFC and I create a .dll file using that MFC class and open a CLR project in VC++2008 and add a form to that project and load that .dll file. Then I can access that MFC class in my new Windows form ( in CLR project ). and it is working. But my current problem is that, I want to read selected node value from that tree node to my Windows forms's text entry. How can I do this? I think, for that we need to add an event ( After select ) to that control. But that control is loaded from .dll file.
How can I solve this problem?
Please help me.
|
|
|
|
|
Don't cross post
led mike
|
|
|
|