|
capint wrote: It doesn't work
Then something else is wrong. Does the file actually exist? What does Load() return?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
All my code is here :
TCHAR * Temp;
Temp = new TCHAR[100];
CString str;
SystemParametersInfo(SPI_GETDESKWALLPAPER,100,Temp,0);
CImage Image;
str = Temp;
Image.Load(str);
Image.ReleaseDC();
Image.Save(_T("D:\\Temp\\Desktop.bmp"));
I debuged & I saw clearly the path, of course, it exits
When I replace str by another string created manually, it works
|
|
|
|
|
Which statement is failing?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
No statement is failing. It just doesn't do anything. Actually, when I replace "\" by "/", it works. But I still wonder
|
|
|
|
|
capint wrote: No statement is failing.
How are you verifying this?
capint wrote: Actually, when I replace "\" by "/", it works. But I still wonder
Single slashes (like those used on Unix machines) can be used in place of double backslashes.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You realize, of course, that the path can be up to 260 characters long?
|
|
|
|
|
Hi for all
Does anyone knows a free API for video screen capture?
|
|
|
|
|
Do you want to capture of avi files?
|
|
|
|
|
My real intention is to select an area of the desktop(or other window) and record until I want to stop. After this I'll save in any format.
Something like Camstudio but much more simple.
|
|
|
|
|
|
Thanks for your answer ramid. I'll look. What I want is to create an implementation more generic, that works on Windows and Linux.
Again, thanks
|
|
|
|
|
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
|
|
|
|