Search:

Type: Posts; User: TAZIN

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. That is extremely weird indeed. Unfortunately, I...

    That is extremely weird indeed. Unfortunately, I do not have an explanation for this behavior if it is indeed the root cause.
  2. Wierd...Perhaps trying a somewhat different...

    Wierd...Perhaps trying a somewhat different approach will yield better results. Try changing the LoadIcon calls for the parent and child windows to this.


    wc.hIcon = LoadIcon(hInstance, IDPIC);...
  3. What happens if you use two icons in in your...

    What happens if you use two icons in in your program; one for the parent window and a different one for the child window? Do you end up with the same results?
  4. Here's an example of what I mean by defining your...

    Here's an example of what I mean by defining your icon in the appropriate files:


    wc.hIcon = LoadIcon(hInstance, (LPSTR) MAKEINTRESOURCE(ID_ICON));


    Resource File (.rc)
    ID_ICON ICON...
  5. Are you sure you have your icon defined in your...

    Are you sure you have your icon defined in your resource file and header file, and all files are included when your program is compiled?
  6. Replies
    8
    Views
    809

    strlen function basically computes the of a...

    strlen function basically computes the of a string, and in your case you'd use this function on the word that the user is looking for....(i.e. int iLen = strlen(target); ). The strncmp function is...
  7. Good question....With my limited knowledge of...

    Good question....With my limited knowledge of programming I'd have to say no. I don't think you can call an external reference (such as an image file) when it comes to this type of programming. I...
  8. I'm sorry, but I don't understand your question.

    I'm sorry, but I don't understand your question.
  9. Here's an example of the old fashion way I did...

    Here's an example of the old fashion way I did the dialog box. Also, I call the dialog box by way of a pull down menu item. In my command function I added the following:
    Note: this is where all...
  10. So, you want to have text and an image on a...

    So, you want to have text and an image on a button...Kinda like this?

    http://i1293.photobucket.com/albums/b592/TAZIN6CA7/DlgBox2.jpg

    If so, then you might want to try it the old fashion via a...
  11. Are you trying to do something similar to this? ...

    Are you trying to do something similar to this?

    http://i1293.photobucket.com/albums/b592/TAZIN6CA7/DlgBox.jpg
  12. Thread: Pointer question

    by TAZIN
    Replies
    5
    Views
    1,269

    Well, I did compile the C code and the resulting...

    Well, I did compile the C code and the resulting ASM did match what I posted earlier....So, now I know what 'mov eax, [eax]' (dereferencing of a pointer) represents in C.
  13. Thread: Pointer question

    by TAZIN
    Replies
    5
    Views
    1,269

    Sorry about the vague post. I was looking up...

    Sorry about the vague post. I was looking up some info on pointer to pointer and came across this snipit of ASM code referring to dereferencing pointers. I've seen these three lines of ASM a few...
  14. Thread: Pointer question

    by TAZIN
    Replies
    5
    Views
    1,269

    Pointer question

    Crazy question but, are these two examples equivalent?

    Example 1:
    MOV EAX, lpvar ; Copy address into EAX
    MOV EAX, [EAX] ; Dereference it....Moves the contents of memory pointed to by eax into...
  15. I think the problem with your DrawText() function...

    I think the problem with your DrawText() function has to do with the parameter &text_rect not getting the proper coordinates stored in the RECT structure. If you manually fill the RECT structure...
  16. I am by no means any good at programming but I'll...

    I am by no means any good at programming but I'll give it a shot...First off the return for your WinMain function should be message.wParam and not 0. Secondly, setting the text color to white via...
  17. Replies
    6
    Views
    1,409

    Here's one way I got it to work. // #ifndef...

    Here's one way I got it to work.

    // #ifndef UNICODE
    // #define UNICODE
    // #endif
    #include <windows.h>

    WNDCLASS wc = {};
    HWND hwnd;
    const char szNAME[] = "Sample Window Class";
  18. Replies
    7
    Views
    2,214

    There are a few basic tutorials on line that...

    There are a few basic tutorials on line that illustrate the basics for winapi printing. Also check out the Multipad example program supplied with earlier Win32 SDK discs. I think Petzold also has...
  19. Replies
    7
    Views
    2,214

    Do you mean sending the edit control text to a...

    Do you mean sending the edit control text to a printer for printing? If so, then wouldn't that fall under winapi GDI category? I know that writing a printer function in C can be a bit challenging...
  20. Replies
    11
    Views
    2,753

    Thanks MK27 for all your help and time. The...

    Thanks MK27 for all your help and time. The final objective to all this is to try and gain enough knowledge of this particular type of compression so I can repair a corrupt file which is compressed...
  21. Replies
    11
    Views
    2,753

    Still having a tuff time grasping this stuff. I...

    Still having a tuff time grasping this stuff. I see some of the connecting dots but the big picture is still a blur. I know I'm not the brightest bulb on the planet, but geez I never thought I was...
  22. Replies
    11
    Views
    2,753

    Thanks MK27 for all the insight. Like I...

    Thanks MK27 for all the insight. Like I mentioned early on most of this stuff is way over my head. I'm just trying to piece together the bits of info that both Ben and Mark stated on this subject. ...
  23. Replies
    11
    Views
    2,753

    Yeah, I screwed up on that. ASCII 'I' is...

    Yeah, I screwed up on that. ASCII 'I' is decimal: 73, hex: 49. So when I put 73 in Windows calculator I get 1001001, and the extra 0 must be the padding to make it eight-bit little endian.
  24. Replies
    11
    Views
    2,753

    Ok, that I see. So, hex 24 would be 100100 which...

    Ok, that I see. So, hex 24 would be 100100 which is 0x49 but instead of padding it with zeros to make it eight-bit there tacking on 10 to make 10010010. So where does the 10 come from?
  25. Replies
    11
    Views
    2,753

    PKWare compression/decompression

    I'm hoping someone here can shed some further insight on the PKWare compression/decompression stuff. Back in 2001 Ben Rudiak-Gould posted an outline of how the PKWare decompression works on the...
Results 1 to 25 of 93
Page 1 of 4 1 2 3 4