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

Search:

Type: Posts; User: Arnold Layne

Page 1 of 2 1 2

Search: Search took 0.13 seconds.

  1. Replies
    1
    Views
    528

    how to set an *.ico to my app?

    Hi, everyone!
    I'm dealing with an win32api app. Now I am creating an icon for it. Well, actually I have an *.ico file and I create successfully a small and a big icon for the app:



    hicon =...
  2. yes, yes I made it at last - thanks a lot, both...

    yes, yes I made it at last - thanks a lot, both of you people. you 've been of great help :)
  3. Here's what I did and the thing breaks at...

    Here's what I did and the thing breaks at SelectObject(...) :



    //...
    BITMAP bitmap;

    bitmap.bmType = 0;
    bitmap.bmWidth = w;
    bitmap.bmHeight = h;
  4. can't BitBlt() a mem DC content created with SetPixel() ?!?

    What I do is this:



    //...
    HDC hdc, hmemdc;

    WM_PAINT:

    hmemdc = CreateCompatibleDC(GetDC(hwnd));
  5. creating a child to a child in MDI how to?

    Well, the title says it all: i deal w/ an MDI app and Win32 API. For each child of the app I need to be able to create a single window, which to be a child to the child so to say. The child uses...
  6. Thanks both of you, guys. You've been of help. I...

    Thanks both of you, guys. You've been of help. I just wasn't very sure for my 2nd step if it should be



    *(ppi + i) = (int* )calloc(num_columns, sizeof(int));


    or
  7. calloc-ating memory for 2d array how to?

    Is this a/the right way to allocate memory for a 2D array of integer elements with 'num_rows' rows and 'num_columns' columns using double pointer and calloc()?




    int **ppi;
    int num_rows;...
  8. Replies
    4
    Views
    1,010

    :p Pfu, then it comes down to 1:0 for the...

    :p

    Pfu, then it comes down to 1:0 for the compiler...again :(
    (are u 100% certain by the way?...).

    sincerely,

    vpv
  9. Replies
    4
    Views
    1,010

    Can SetPixel(...) draw on memory DC?

    Well, the title sys it all:

    Can SetPixel(...) draw on memory DC?

    Thanx a bunch, all of you people who stop here. C U. Bye.

    Regards,

    vpv
  10. Yes, you are quite right about that, but what I'm...

    Yes, you are quite right about that, but what I'm trying to do is:

    MDI app:

    1)open new child window
    2)ClassA inst;
    3)do stuff w/ inst (exmpl: get data, set data etc)...
  11. saving class instance in heap with HeapAlloc() howto?

    I am dealing with Win32 MDI app (no mfc) and I have this class:

    class CFoo
    {
    CFoo_1 nested_class_member_1;
    CFoo_2 nested_class_member_2;
    int var1;
    char var2;
    unsigned char **ppvar3;
  12. Is it worth the effort, rewriting my app for...

    Is it worth the effort, rewriting my app for OpenGL, having in mind that I'll do image processing operations ONLY, and am not doing any 3D graphics? Am I gaining something at the and , how do you...
  13. Ok, thank you. I guess I'll settle to...

    Ok, thank you. I guess I'll settle to SetDIBitsToDisplay() then.
  14. is there a fast way to display 8 bpp bitmap using SetPixel()?!

    I've been trying to display a bitmap using SetPixel() API func. Here's what I do:

    HDC LayOnDC(int width, int height, HDC hdc)
    {
    int i;
    int j;
    unsigned char index;

    for(j = 0; j < height;...
  15. Heey, never dreamed it would be THAT easy ;)...

    Heey, never dreamed it would be THAT easy ;)
    Thanx a lot!
  16. great problem: ?constructing an object within the handling of a WM message in WndProc

    Well, what I try to do is:

    CMyClass
    {
    //....
    public:
    CMyClass(unsigned char *filename);
    //...
    }
  17. Okok. I found my mistake: I was messing things...

    Okok. I found my mistake: I was messing things with the headers AND I didnt include lib.h in the StdAfx.h, as you explicitly told me :rolleyes:
    Now i've got the lib within my project. When i try...
  18. Well, I had done these steps already. However I...

    Well, I had done these steps already. However I checked and rechecked everything and it still gives the same error:

    'cannot open the first file that's inluded in the header of the lib. file...
  19. I just did what you said. Then i set mylib.lib in...

    I just did what you said. Then i set mylib.lib in the include libs and in my project i added #include <mylib.h> (is that correct?)

    I ge this error:d:\mylib\mylib.h(1) : fatal error C1083: Cannot...
  20. problem with creating and using a static lib

    Hello, everyone!

    Now I have this problem: I have some cpp files, each one having its own header. I have compiled them under vc++ 6.0 in Win32 app project. I wanted to make a static library from...
  21. Replies
    5
    Views
    655

    And what about fltk GUI OS-portable library? Any...

    And what about fltk GUI OS-portable library? Any opinions?
  22. Replies
    4
    Views
    3,305

    Re: RLE Images and DICOM files

    I have little knowledge in the organization of DICOM file format myself. However I suggest you download a very useful image viewer (IrfanView) at:

    http://www.tucows.com/preview/194967.html

    It's...
  23. Replies
    1
    Views
    1,702

    help with Win32 MDI app.

    Hi, guys!
    I'm developing an MDI application, using Win32 APIs and i have problem displaying a menu for my child windows. Any idea how this can be done?

    Thanks in advance.

    Regards,

    ...
  24. Hahaha :)), it's ok. Though I must reckon that...

    Hahaha :)), it's ok. Though I must reckon that "Arnold Layne is not the same...it takes two to know" ;)
  25. Thanks a lot, Graham, I figured it out at last!...

    Thanks a lot, Graham, I figured it out at last! And as you mentioned about "two-stage initialisation" being unwanted generally, I think I'll try to make the ctors of all my classes taking filename...
Results 1 to 25 of 48
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured