Type: Posts; User: Igor Vartanov
Search took 0.50 seconds.
July 18th, 2016, 03:20 AM
My guess is that the bitmap is selected to one of DCs you created/retrieved. And this is your code that attempts double-selection.
So, all you need is organizing your code some way that would...
July 17th, 2016, 12:11 PM
Me neither. Where did you find MFC in the sample I provided? You meant ATL, right? Well, try Gdiplus instead. :)
I'll tell what you're doing wrong. You are too much focused on the concepts you...
July 17th, 2016, 11:52 AM
Did you ever hear about dynamic linking? How much you know about dlls? How much you know about import libraries and creating those? We need to know this to understand where to start explaining.
July 14th, 2016, 03:43 AM
Saving GDI bitmap to IStream using ATL::CImage class:
BOOL BitmapToStream(HBITMAP hbm, IStream **ppStream)
if (hbm == NULL)
IStream* ps =...
July 13th, 2016, 04:14 PM
HBITMAP is not a GDI bitmap object, it's just a handle. GDI bitmap object is not a *.bmp file. In case you need a BMP file stream to be created by a bitmap handle, you need to get GDI bitmap object...
July 13th, 2016, 03:08 AM
The entrypoint is placed into EXE's PE header by linker, so Windows always knows for sure where to start from.
Linker Option: /ENTRY (Entry-Point Symbol)
Typically, entrypoint is unambiguously...
July 13th, 2016, 02:48 AM
A reason for bundling a number of projects into a single solution might be the EXEs are to depend on the same bunch of static/dynamic libraries, so all those would be built in a single whiff, and...
Please do clearly tell between handle 0xffffffff and error code 0xffffffff. The former makes sense while the latter does not. CreateFile returns handle, and error code is returned by GetLastError....
It looks like you're trying to re-invent a database. Just pick one and start thinking relational. Or no-sql, whatever.
You were just told how to create. You need a compiler that can target MS DOS. The most known are Borland C++ 3.x, MS Visual C++ 1.x, Watcom C++ something, I don't remember, 8 or 9, or maybe 10. You...
So, this indicates that so far you're not prepared to accomplish the thing. You need to revise your design. You need to stop your chaotic attempts and come up with a plan of what and how should...
June 30th, 2016, 12:01 AM
Your ejection design looks absolutely wrong. You have a thread that runs on the dll code. Now you create another thread, that just calls FreeLibrary directly. The dll goes out, but the thread still...
June 24th, 2016, 02:06 AM
No problem, but try to formulate your question in whole. Is it that ISolver is to be an event source and contain connection point? If yes, again I don't see where IProblem setter is applicable....
June 23rd, 2016, 08:42 AM
I don't get your point. Absolutely. What is "event" in your terminology, and how putting ISolver instance to IProblem instance could "add an event in Solver class"? Please try to use a vocabulary...
June 23rd, 2016, 03:05 AM
Okay, considering the constructor part, you indirectly create ISolver object along with IProblem object creation. So far property getter seems logical, letting consumer access the pre-created ISolver...
June 23rd, 2016, 02:47 AM
The real question is not how, but what for. The only ATL class' intention is to be a parameter for CComObject<> template, i.e. ultimately serve as implementation of particular interface. Despite the...
June 20th, 2016, 02:31 AM
Your way of presenting information is confusing. I'm sure you never tried to read anything from the picture after you posted it.
Complete name : J:\My...
June 18th, 2016, 02:31 PM
For your information, call stack can be saved as plain text. This must be much more effective than posting low resolution pictures in a hope we can see anything there. Man, did you try to read your...
June 17th, 2016, 05:40 AM
I can see two ways: 1) remote debug session, or 2) tracing/logging every critical parameter and calculations result, as well as putting assertions wherever it is sensible.
As to the latter, in...
June 16th, 2016, 08:03 AM
It looks like an undocumented behavior or something. When WM_PAINT occurs due to control clipping or being off-screen, the brush is used for clipped region only (which may be explained by a sort of...
June 14th, 2016, 11:36 AM
Wrong guess. Unreasonable guess. :)
Visual Studio is just an IDE. You may be using the IDE for years, but this does not mean you are bound to the SDK originally supplied along with the product, as...
June 14th, 2016, 09:07 AM
No I do not. I was lucky enough to avoid fancy GUI programming. Always when I had to deal with GUI, I used simple dialogs, or ended up with standard approaches for visualizing complex interfaces,...
June 12th, 2016, 03:48 PM
Your problem is not DPI. You create the main window and its controls specifying fixed sizes and offsets. No surprise Windows does exactly what you instruct it to do. There is no such a service in...
June 12th, 2016, 03:33 PM
Document is for persistent data. Dialog is for user interaction. Interaction is initiated from the main GUI, so dialog belongs with GUI, but not with document. GUI accesses the data in the document,...
There really is. Button clicks come to window procedure in a form of WM_COMMAND. So, you can intercept the clicks in one place and collect the button names as button window texts showing at the...
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!