I want to do study about Pdf library. Can someone provide me the tutorial on Pdf library. Actually I need to study all the functions, read them what they do because I need to convert the bmp and text to pdf.
I am not sure, as i read you code, you seems first searching file and then updating the listctrl for every files, why don't you put all searched file in some datastructure and update teh list ctrl in single go instead of updating it for evry file and why there different handle for same image, you can use same handle for every image.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
It seems you are doing two things in the while() loop. Why not separate the "add images to list" and "add items to control" into two while() loop? If that is not feasible, then you might want to consider a secondary thread for this so that the UI remains responsive.
Another thing to try would be to call SetRedraw(FALSE) before the "add items to the list" code.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
this is part of my code.
and i am making some drawing line.
first, i put my left_mousebutton then point is displayed,
but the line don't draw~
it is good if i delete "WM_LBUTTONUP".
can you tell me why this happen?
static TCHAR str ;
static int x = 100;
static int y = 100;
static bool b_start = false;
x = LOWORD(lParam);
y = HIWORD(lParam);
b_start = true;
if(b_start == true)
hdc = GetDC(hWnd);
MoveToEx(hdc, x, y, NULL);
x = LOWORD(lParam);
y = HIWORD(lParam);
LineTo(hdc, x, y);
}//b_start == true
b_start = false;
Hello. I've been tasked with getting data off of a web page. Thanks to CodeProject I've made great strides, but I now seem to have hit an impasse. When I get to my URL I get the body of the document with the following code:
strInnerText has all of the data I need, but I can't break it down into specific rows and, what's worse (I've got a workaround for that issue) some of the data has no delimiter between entries, so I don't know where one entry begins and the other ends. Has anybody encountered anything similar? Thanks.
Yes I did and it's what's gotten me as far as I am now. Thanks again! Now I'm trying to wrestle with a great mass of HTML data. Part of the problem is that I'm a HTML neophyte, but I think I'm getting pretty close to what I want. What I'm doing is sort of cumbersome C++ parsing and I was wondering if there was some easy way to just pluck the rows I want instead of iterating through the whole document. If there is I haven't found it yet, despite lots of searching.
the first exception when running under Visual Studio is extremely slow.
All others are just slow, because they need to create an exception object (which includes
a stack traceback), then scan the stack for a matching catch.
After all, exceptions are intended to take care of the exceptional case;
for normal cases yes they are a blind alley.
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
pretty simple question, I got the following error message when linking. any one can help on it?
mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Reset.obj
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Reset.obj; second definition ignored
Creating library Debug/Reset.lib and object Debug/Reset.exp
Debug/Reset.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
this is a MFC DLL. If I want to change the link order, the error message only gives me "mfcs42d.lib" and "Reset.obj", doesn't give me the 2nd lib file from "Reset.obj". what shoudl I do? thanks a lot!
modified on Wednesday, December 05, 2007 6:21:19 PM
Last Visit: 31-Dec-99 19:00 Last Update: 28-Nov-23 23:43