Posted October 10, 200717 yr Hey guys, I've searched through the forum so I don't believe this has been asked yet. I did find an example by UFO-Pu55y in the PNG keygen template he released.Though I was wondering if someone could provide a "watered down" example of an nfo viewer in masm?I sort of understand whats going on, but something a bit simpler would be much appreciated.Maybe I'm just being dumb but I was wondering if this is basicly what needs to be done;Load nfo from the resource, dump it into a text box and set the text box to be the Terminal font.Thanks, and sorry if this is a dumb question.
October 10, 200717 yr Load nfo from the resource, dump it into a text box and set the text box to be the Terminal font.Thats it!
October 10, 200717 yr Author Load nfo from the resource, dump it into a text box and set the text box to be the Terminal font.Thats it![laugh] I guess thats one of those things I just had to say out loud to figure it out. Thanks mate
October 10, 200717 yr Author I've been looking at UFO's code and was trying to do about the same thing to just play around with it however, it doesn't seem to want to change the text of the window - it keeps it as the default.Any advice? This is the piece of code I'm using, mainly from UFO's invoke GetDlgItem,hWnd,ID_NFOEDIT mov hNfoEdit,eax invoke FindResource, hInstance, ID_NFO_TEXT, RT_RCDATA invoke LoadResource, hInstance, eax invoke SetDlgItemText,hWnd,ID_NFOEDIT,eax invoke SendMessage,hNfoEdit,WM_SETFONT,hNfoFont,1
October 11, 200717 yr you will have to create the font you need before installing itthere are many ways to do that so you choose your own after creating the font you'll have it's handle "send it to hNfoFont"use CreateFontA or any other API to get your own specified font but it won't work on all PC's the same and i dunno if UFO figured any new way to fix that problem but it should work on your system fine but in some rare situations it won't...........
October 11, 200717 yr invoke SendMessage,hNfoEdit,WM_SETFONT,hNfoFont,1Yes, that's the question.. what's in your hNfoFont ??
October 11, 200717 yr Author invoke SendMessage,hNfoEdit,WM_SETFONT,hNfoFont,1Yes, that's the question.. what's in your hNfoFont ??Ahhh I forgot to set it using CreateFontIndirect, doh!Thanks guys - sorry about the dumbness
Create an account or sign in to comment