Search:
Type: Posts; User: ldor108
Search:
Search took 0.02 seconds.
-
September 20th, 2021, 03:19 AM
I've done it now, they all return TRUE.
It looks like all these function do exactly what is expected - the correct printer gets selected and it does print a page (an empty one though). So it looks...
-
September 20th, 2021, 02:25 AM
I guess so, all printers have much higher resolution so I would expect this line to be very short and within the printed area.
I also tried copying the whole window into a virtual bitmap and then...
-
September 17th, 2021, 03:22 AM
Hi
I am trying to learn how to print the content of a window. By now I've ended up with the following code (it should just draw a line as a test print). When executing it, the printer starts working...
-
September 16th, 2021, 05:44 AM
Hi
I am trying to print the window's content using PrintWindow() function. The code I use is below. In this code I could not call PrintWindow directly but had to load it dynamically from the dll...
-
September 16th, 2021, 05:33 AM
Thank you guys, this discussion has been really helpful. I don't do programing so much so learning a new platform is not something I would prefer now. And, as (ProcAdd) (hwnd,pd.hDC,PW_CLIENTONLY);...
-
September 16th, 2021, 03:37 AM
It returns TRUE.
Well, probably 2kaud is right and the only solution is to switch to Visual Studio, although for the sake of using just one function it would probably be too much trouble.
-
September 16th, 2021, 02:39 AM
By the way, I've checked with the debugger, the line (ProcAdd) (hwnd,pd.hDC,PW_CLIENTONLY); is executed (my first thought was that maybe the program never reaches there but it does). So the problem...
-
September 16th, 2021, 02:36 AM
Sorry, I forgot to show the definition. And you are right, I did not understand it correctly. Now I've changed the definition as follows:
typedef int (__cdecl *MYPROC)(HWND,HDC,UINT);
Now there...
-
September 16th, 2021, 01:32 AM
I've found another example and here is the code that I made using it. The only thing that is unclear to me in this example is how to pass arguments to the function whose address is extracted from the...
-
September 15th, 2021, 08:27 AM
Thank you. This sounds great but it is something I don't know.
I found some information here: https://docs.microsoft.com/en-us/cpp/build/getprocaddress?view=msvc-160 . I tried to implement it but...
-
September 15th, 2021, 06:15 AM
Hi,
I am trying to use PrintWindow function in very old Borland C of 1997 (that is the only development environment I have and know). I've downloaded User32.dll file that contains that function but...
|
Click Here to Expand Forum to Full Width
|