|
DavidCrow wrote: D:est.bmp (or maybe D:est.bmp)
or even D:est.bmp !
(BTW I got what you meant, anyway kidding is irresistible to me...)
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
|
|
|
|
|
You're a such a bad guy.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I know, buddy!
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
|
|
|
|
|
you could alternatively use / , most windows functions accept it, and the standard C library functions automatically convert it. \\ is ugly especially in long paths.
|
|
|
|
|
I still can't understand. I know about escape sequences U mean that the path we receive from window functions is OK ( we don't need to replace although they just have "\"), is that right ?
|
|
|
|
|
capint wrote: U mean that the path we receive from window functions is OK
Yes, because those are not being seen by the compiler. What happens at runtime is completely different.
"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
|
|
|
|
|
My problem is that. I receive the string from the function SystemParametersInfo and I use that string to load by Image.Load. It doesn't work
|
|
|
|
|
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
|
|
|
|