|
I'm trying to write a program which captures the scrollable portion of a window (Wordpad, Paint, IE, etc) and save it as one big bitmap. Actually making a window scroll down line by line isn't a problem but the difficulty I've been having is getting the scrollinfo from the window of concern. Applications seem to simply ignore the message SBM_GETSCROLLINFO and the API GetScrollInfo(...) plain doesn't work. So, unless I can get the scrollinfo, I never know how many times to scroll the window down and I also don't know how much of the window was scrolled down ( my plan is to scroll the window, make the image capture, append to "finished" image, and repeat to finished. If anybody can figure this one out I can pad your wallet with some cash.
|
|
|
|
|
While I was debugging a new version of SAWZip I create some files with invalid filenames. The filename was pointing to an invalid memory block. The name of the file looks like this &çàçàééjkl. I tried to delete them with Explorer and with the command-box but they both say I'm trying to delete an invalid file. I also tried to delete the entire directory. But that doens't work either.
How can I get rid of them?
|
|
|
|
|
did you try:
DeleteFile(pFilename);
?
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
The problem is that it's not possible to know what the name of the file is. Maybe I've to try findfirst, findnext, ... There are some files with only spaces in the name and I can't delete them either.
|
|
|
|
|
Odd that the OS let you create such a file in the first place. I'd try running ScanDisk, Norton Disk Doctor, or whatever disk repair tool you have. Those should find the invalid filename and correct it.
--Mike--
http://home.inreach.com/mdunn/
#include "buffy_sig"
|
|
|
|
|
Yes it's weird that the OS allows creating files with invalid names. I used the CreateDirectory and CreateFile api. It's even possible to create a file with a name that only contains spaces. I'll try to run scandisk this evening and I hope I get rid of these stupid files.
|
|
|
|
|
I want to create an IAVIStream object - somehow this works to make a local variable but I cannot make a member variable of this type. I'm guessing that this is because I'm dealing with an interface, not a class.
Does this mean that I must make a wrapper class or something, or a class that implements the interface somehow? (interfaces in java = good; in visual c++ = evil).;P
I don't know why they didn't write AVIStream as a class. I'm trying not to get into any of this ATL ActiveX interface nonsense, but I have no idea if that is possible. I guess there's a question in here somewhere...is reading and writing an AVI file impossibly difficult, or am I just impossibly lost?
|
|
|
|
|
> is reading and writing an AVI file impossibly difficult,
> or am I just impossibly lost?
You are lost
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
OpenThread Unsupported?
|
|
|
|
|
> OpenThread Unsupported?
Yes, that's what MSDN says. Why do you need this function? Maybe it's possible to achieve it in some other way.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
There is an example in the platform SDK called processViewer (I think).
This tells you which threads are running. I had a brief look at this
a few months back. Gets the info by querying the performance counters
and/or the registry if I remember correctly.
Stephen Kellett
--
C++/Java/Win NT/Unix variants
Memory leaks/corruptions/performance/system problems. UK based.
Problems with RSI/WRULD? Contact me for advice.
|
|
|
|
|
Hi all,
I am a rooky in C++, I want to make a counter for my program. The counter must
look like this -> 0:00:00. It begin to count seconds then minutes and then a hour.
After 1 hour is reached the counter is set to 1 hour again.
I hope somebody can help. Everything is welcome (samples, sites)
Thanx in advance,
David
|
|
|
|
|
I'm very new with V C++ and I need to know were I can get compilers, I had one before but I recycled it because i had no idea what it was for (that was 5 months ago) and now I need one back. If anyone could help me out that would be great.
|
|
|
|
|
Hi:
I am using the C++ CreateProcess() method to start up an executable. I pass the CREATE_NO_WINDOW flag into the dwCreationFlags paramter to disable having a console window appear. It works fine in Windows 2000. But (as the documentation specifies) this does not work when my program runs under Windows 95. Does anyone know how to disable a console window from being displayed in Windows 95. As an alternative, does anyone know how I would disable a user's ability to close the console window that comes up once the java program starts running.
Thanks,
Kenny Demers
|
|
|
|
|
You have to make use of the STARTUPINFO parameter. Make sure these flags are set:
STARTUPINFO si;
...
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
... and then use that structure in your CreateProcess call.
|
|
|
|
|
I have a CWebBrowser2 activeX in a dialog box to browse URL. I have removed the scrollbars (horizontal and vertical) using DOCHOSTUIFLAG_SCROLL_NO in a OleControlSite object.
Now i want to set a specific position (x, Y) inside the window in order to aim a specific information of the URL
Hope this helps
Olivier
|
|
|
|
|
hi,
You really need to get in to DOM !
To your problem I think you need to use IHTMLWindow2::scrollTo
good luck,
Dror
|
|
|
|
|
|
I'm using CWebBrowser2 and I have removed the scroll bar with DOCHOSTUIFLAG_SCROLL_NO.
Does someone know how to scroll inside a page ?
I have tried ScrollWindow but it does not work
Thanks
|
|
|
|
|
Dear Can you tell me how you have removed the Scroll from the Control. I am using the CHtmlView class windows and I want to remove the Vertical Scroll Bar of this window.
Here is my email
shahzad_hanif@yahoo.com
|
|
|
|
|
I'm working on an activex control that will sit in a webpage. I'm looking to add icons to me TreeView and am having trouble getting an ImageList set up.
So far I've done this:
CoCreateInstance(CLSID_ImageList,
NULL,CLSCTX_INPROC_SERVER,IID_IImageList,(void** &m_ImageList);
CoCreateInstance(CLSID_ListImages,
NULL,CLSCTX_INPROC_SERVER,IID_IImages,(void**)&m_Images);
Since I see that an ImageList needs the Image collection put into it, but then the Image Collection needs Images put into it and I have no idea how to set that up.
Anyone have any tips or links?
-Jack Mott
jackm@scalablesoftware.com
|
|
|
|
|
In Microsoft's example for creating a list of processes, they use a datatype call ed "PROCENUMPROC"...
I was wondering whether this is an actual datatype or something they created for that example and didn't specify.
Here is the example:
http://support.microsoft.com/support/kb/articles/Q175/0/30.ASP
|
|
|
|
|
Is there an easy way, somewhere amongst the MFC, for generating a control which displays
text written to an ostream as a potentially scrolled view. (Continually updated each time the stream flushes).
I have a couple of solutions written for Borland OWL but I'm not happy about the way they're porting.
|
|
|
|
|
What is the good access or the good method for read information about the semaphore of an other application with ZwQuerySemaphore ????
Thank you for your help
Mailto:nbd@aql.fr
Nicolas
|
|
|
|
|
What is the good access or the good method for read information about the semaphore of an other application with ZwQuerySemaphore ????
Thank you for your help
Mailto:nbd@aql.fr
Nicolas
|
|
|
|