|
Check out CxImage. Someone posted a thumbnail function in the article discussion thread (which worked well). I haven't tried the lastest version, but it looks like he now has included thumbnail support.
Regards
Mike
|
|
|
|
|
I had some applications with a window with one main control in them (like an edit control). So on WM_SIZE i did a GetWindowRect() to get the size of the main window and then i used SetWindowPos() to set the edit window to those coordinates and adjust the size. But now i ran those apps on XP and they don't fit nicely anymore, i think its because of the titlebar or something, the visual themes or something. Anyone know how i can size a control so it will always fit nicely to the window?
Kuniva
--------------------------------------------
|
|
|
|
|
|
I am looking for some sample program that will accept key strokes and then send them to another running program like Notepad. Does anyone have any sample that I can use as a starting point ? Ideally, I would like to identify the target program using mouse click or automatically by Window title. Also, being able to select and replace the entire text in the target window will be great. Also can I send mouse moves to the target window ? Too many questions,
JX
|
|
|
|
|
Are you writing one of those spyware utilities?
J.
----------------------------
|
|
|
|
|
I am not. I am trying do a language translation software where what you type in english will translated into a different font (a different language).
|
|
|
|
|
good luck
Don't try it, just do it!
|
|
|
|
|
Hey,
Everybody know how to create a text which circling (running around) the button just like the RGNCreator in the codeguru/tools.
Please help me!!!!!!
|
|
|
|
|
isn't it a bitmap ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
I have created tree control in vc(win32) but unable to load tree structure of the directories in the system.im actually trying to make a Windows explorer like application.if any one knows how to DISPLAY DIRECTORIES IN TREE STRUCTURE..please help me...
|
|
|
|
|
|
|
Thanx ravi for the link...but i'm working in plain Api..no MFC..anyways thanx..if u find any more links please do reply..
|
|
|
|
|
I'm using the "delete" operator to delete linked lists I have in my application. Two of the limked lists delete fine, but the third does not. I get a message in debug "Damage after Normal block(#630) at ..." and the memory address.
It shouldn't be affected by the other lists since it doesn't work even if I change the order
Any ideas or possible solutions would be greatly appreciated
Keck
|
|
|
|
|
|
how did you allocated them ? how do you delete them ?
Maximilien Lincourt
"Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )
|
|
|
|
|
allocated with "new" , removed with delete
suddenly had a thought there - I'm at home now, so I can't see it but |I think part of the new class is a structure - would be the problem?
Thanks for the response guys
Keck
|
|
|
|
|
You aren't allocating enough memory to hold you data. There really isn't much more than can be said. One of the most common causes is not providing room to store the NULL in a character string.
int nLength = strlen (pszInput);
char *psz = new char [nLength];
strcpy (psz, pszInput);
*BOOM*
it should have been:
char *psz = new char [nLength + 1];
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
are you sure - the problem is ony when I'm deleting data, and I found a way around it in my program where I add more data and the profram works fine
Keck
|
|
|
|
|
I am trying to access parallel port using CreateFile but it is not working how to do this
|
|
|
|
|
|
Hello!
I've got handler to device context (HDC)
and array of bytes in order R,G,B,R,G,B,...
i use SetPixel for drawing above picture, but it is so slowly for large images and looks awful
Does anybody know any faster or fastest idea of displaying such RGB array?
Thanks in advance!
|
|
|
|
|
Don't use SetPixel as it is not designed to be used for displaying an entire image. You need to create a bitmap header in memory and then point the bits parameter to your array. This generally has additional problems as you must make sure that the number of pixels in a line is a multiple of 4, and are arranged in the BGR vs RGB order.
Look up CXIMage for some more information and there are likely some other tutorials in that same section.
J.
----------------------------
|
|
|
|
|
Thanks for informations, i've found CXIMage and was very usefull tutorials.
Take care!
Thank You both.
|
|
|
|
|
You might want to have a look at CreateDIBSection.
If the image is put in main mem you are only limited by available memory bandwidth when modifying it but blitting it (to video memory) is a bit slower. If you put it in video memory blitting is almost instant (well, depending on how fast/slow your video card is) but modifying the bitmap becomes a bit slower.
|
|
|
|