Search:

Type: Posts; User: pc2-brazil

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    1,581

    Since I posted only the function EzCreateFont,...

    Since I posted only the function EzCreateFont, and not a complete application that others can directly run, it is more difficult for others to help.

    So, just for convenience, here is the...
  2. Replies
    3
    Views
    1,581

    Yes, I attempted to create a font with...

    Yes, I attempted to create a font with iDeciPtHeight = 120 and iDeciPtWidth = 120 (there is a very brief description of this attempt at the end of the original post). But my doubt is why lfWidth...
  3. Replies
    3
    Views
    1,581

    Font creation doubt

    I have a doubt about an example in "Programming Windows 95" (Charles Petzold), Chapter 4.

    The example is the following. It contains a function EzCreateFont whose purpose is to create a font and...
  4. Replies
    1
    Views
    2,187

    Windows Internals book

    I'm not sure whether I'm posting it in the right forum. My question is about the Windows Internals book. I'm trying to determine which edition I should buy.

    Each new edition is updated to cover a...
  5. Thank you for the suggestions. I had thought...

    Thank you for the suggestions.
    I had thought about the fact that a division between ints already rounds it down, but since I translated that code from pseudocode I forgot about this detail.
    I will...
  6. Analysis of the Binary Insertion Sort algorithm

    Good morning,

    I implemented the Binary Insertion Sort algorithm in C++, and now I want to analyse its time complexity. This is the Insertion Sort algorithm, but the linear search technique (which...
  7. Replies
    6
    Views
    6,729

    Actually, I've written this part in a simplified...

    Actually, I've written this part in a simplified way, but it should have the following line after taking getting the desktop ListView handler:


    int count = ListView_GetItemCount(hWnd);

    It...
  8. Replies
    6
    Views
    6,729

    Thank you, I put #define _WIN32_WINNT...

    Thank you, I put

    #define _WIN32_WINNT _WIN32_WINNT_WINXP
    at the top and it works now.
    You are right, I should have checked the return value of OpenProcess.
    I don't know why I was in such a...
  9. Replies
    6
    Views
    6,729

    Strange problem with VirtualAllocEx

    Salutations,

    I'm experiencing a strange problem with Visual C++ 2010 and Visual C++ 6.0. I have the following piece of code:


    hWnd = FindWindow("Progman", NULL);
    if (NULL != hWnd) hWnd =...
  10. Replies
    2
    Views
    2,177

    How to deepen knowledge about computing

    Good morning,

    I want to deepen my knowledge about computing, but I don't know where to start.
    I program in C (not professionally), and my knowledge of C is self-taught.
    But I want to deepen my...
  11. Thank you again for your help.

    Thank you again for your help.
  12. OK, I think I got the edit working. Thank you,...

    OK, I think I got the edit working. Thank you, you have been very helpful.
    I will try to implement those char tests later.
    Here is how the code looks like now (still basic, without the char tests)....
  13. Thank you. Just one more thing. Here's the...

    Thank you.

    Just one more thing. Here's the WM_KILLFOCUS of the EditBox (I get the text and store it in szEditText right before the editbox gets destroyed... it works, but see if it looks right to...
  14. Good afternoon, I did what you (novacain) told...

    Good afternoon,

    I did what you (novacain) told (I didn't know how to do most of it, but I looked at MSDN and figured out), but I got stuck in one step. It is not an error, just something I...
  15. I read the post, but I don't know if I have...

    I read the post, but I don't know if I have enough knowledge to write the code on my own based on the instructions you wrote.
    but I will try to write it, and send the doubts as they arise.
    Thank...
  16. [C] Editing SubItems in ListView with Win32 API

    Good afternoon,

    With the Label Editing property of the Win32 ListView (or List Control), I'm able to edit only the items of a ListView, but not the SubItems.
    My question is: how can I edit...
  17. Thank you for the help. Macros seem a good idea;...

    Thank you for the help.
    Macros seem a good idea; I've never used them. I will try and ask here if something goes wrong.
    The only problem is that it would still "pollute" the calculation code a...
  18. How to avoid writing more code in a function?

    Good afternoon,

    Consider the following function:



    double calculate(){
    double ret;
    for (int a = 0; a<=10; a++){
    ret = 2*a;
  19. salutations, thank you for the response. we...

    salutations,

    thank you for the response. we used the second technique you described. it is very interesting, but it doesn't actually work, because the program has a dialog open that shows changing...
  20. [C] GDI: how to erase material drawn at an entire screen DC

    salutations,

    we are capturing the device context of the entire screen by means of GetDC():


    HDC hdc;
    hdc = GetDC(NULL);

    and releasing it in the end, of course:
  21. Replies
    3
    Views
    3,293

    thank you for the response. we just tried it, but...

    thank you for the response. we just tried it, but it made no difference in the output.
    but we forgot to mention one detail: when both the imagelist with IDR_ICO_MAIN and the standard icons from...
  22. Replies
    12
    Views
    8,291

    because we are twin brothers.

    because we are twin brothers.
  23. Replies
    12
    Views
    8,291

    this forum is very helpful. we learn C/C++ and...

    this forum is very helpful.
    we learn C/C++ and Win32 by ourselves - we usually make questions only when we can't find the answer anywhere else. although there are some exceptions, because we are in...
  24. Replies
    3
    Views
    2,703

    interesting. can you give us a link on how to...

    interesting. can you give us a link on how to start using the OCX host class with pure WinAPI? thank you in advance.
  25. Replies
    3
    Views
    3,293

    salutations, we are beginners. we are trying...

    salutations,

    we are beginners. we are trying to create a toolbar with icons both from the Common Controls standard icons (STD_FILENEW, etc.) and from an imagelist that contains self-made icons. we...
Results 1 to 25 of 49
Page 1 of 2 1 2