That is extremely weird indeed. Unfortunately, I do not have an explanation for this behavior if it is indeed the root cause.
Type: Posts; User: TAZIN
That is extremely weird indeed. Unfortunately, I do not have an explanation for this behavior if it is indeed the root cause.
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);...
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?
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...
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?
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...
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...
I'm sorry, but I don't understand your question.
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...
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...
Are you trying to do something similar to this?
http://i1293.photobucket.com/albums/b592/TAZIN6CA7/DlgBox.jpg
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.
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...
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...
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...
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...
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";
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...
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...
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...
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...
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. ...
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.
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?
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...