Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Igor Vartanov

Page 1 of 80 1 2 3 4

Search: Search took 0.50 seconds.

  1. Re: HBITMAP: can i get the selected HDC?

    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...
  2. Replies
    9
    Views
    268

    Re: can i convert HBITMAP to istream?

    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...
  3. Re: How to link undocumented windows apis?

    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.
  4. Replies
    9
    Views
    268

    Re: can i convert HBITMAP to istream?

    Saving GDI bitmap to IStream using ATL::CImage class:


    BOOL BitmapToStream(HBITMAP hbm, IStream **ppStream)
    {
    if (hbm == NULL)
    return FALSE;

    CImage img;
    IStream* ps =...
  5. Replies
    9
    Views
    268

    Re: can i convert HBITMAP to istream?

    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...
  6. Replies
    11
    Views
    262

    Re: multiple projects

    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...
  7. Replies
    11
    Views
    262

    Re: multiple projects

    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...
  8. Re: CreateFile returns a 0xffffffff error

    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....
  9. Re: How to decrease the memory footprint of 3 different representations of data?

    It looks like you're trying to re-invent a database. Just pick one and start thinking relational. Or no-sql, whatever.
  10. Replies
    6
    Views
    433

    Re: How to create .com file

    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...
  11. Replies
    14
    Views
    461

    Re: DLL unloading crashes exe

    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...
  12. Replies
    14
    Views
    461

    Re: DLL unloading crashes exe

    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...
  13. Re: An ATL class as member of another ATL Class

    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....
  14. Re: An ATL class as member of another ATL Class

    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...
  15. Re: An ATL class as member of another ATL Class

    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...
  16. Re: An ATL class as member of another ATL Class

    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...
  17. Replies
    54
    Views
    1,818

    Re: how can i detect an error?

    Your way of presenting information is confusing. I'm sure you never tried to read anything from the picture after you posted it.


    General
    Complete name : J:\My...
  18. Replies
    54
    Views
    1,818

    Re: how can i detect an error?

    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...
  19. Replies
    54
    Views
    1,818

    Re: how can i detect an error?

    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...
  20. Re: Issues drawing background bitmap in edit box common control

    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...
  21. Replies
    3
    Views
    311

    Re: Linking .lib files in visual studio

    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...
  22. Replies
    11
    Views
    521

    Re: Scaling the Window down.

    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,...
  23. Replies
    11
    Views
    521

    Re: Scaling the Window down.

    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...
  24. Re: Retrieve dailog object in document class

    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,...
  25. Re: Showing the buttons pressed in a GUI Application

    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...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


HTML5 Development Center