Exetools  

Go Back   Exetools > General > General Discussion

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2010, 16:18
Wirestealth Wirestealth is offline
Friend
 
Join Date: Jan 2010
Posts: 6
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
Wirestealth Reputation: 0
Request: guidance on vb nag screen

Heya mates.

Just starting out (Lena151 tutorial 30/40) and thought I would try my handy work at a freeware target (VB6) that had a nag screen.

Tuts 9 & 10 talk about VB, but I can't seem to extend what I've read to this situation.

The issue I am running into is that the target actually loads the About form (frmAbout) which in turn loads the main form (frmMain) after you click OK on the About form. You then are in the app and can open the About form again through the standard Help|About menu.

I want to remove the initial nag screen as a quick learning exercise and still have the App able to show the About screen through the Help|About.

I have used NuMega SmartCheck 6.2 to determine that it was actually frmAbout that loaded frmMain after OK was clicked. I have used VB Decompiler to see the VA's of the Forms, and was hoping it would be as easy as pushing the address of frmMain rather than frmAbout early in the code (not concerning myself yet with any initialization/etc that frmAbout would have done that I would be skipping and was gonna worry about that later lol).

Truthfully I am a little lost in all the VB crap and was wondering if there were any good tutorials (Lena's are great thus far but I'm looking for something more in depth with VB just to beat this app) or if my approach is just plain wrong.

Any suggestions would be greatly appreciated.
Best Regards,
ws

Last edited by Wirestealth; 01-29-2010 at 16:24.
Reply With Quote
  #2  
Old 01-29-2010, 19:23
dion dion is offline
game tech
 
Join Date: Jan 2002
Posts: 173
Rept. Given: 17
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 9
Thanks Rcvd at 13 Times in 8 Posts
dion Reputation: 2
how about using a debugger, IDA or Olly?? i know its overkill, but if have no luck with one tool, you can use another one.
Reply With Quote
  #3  
Old 01-29-2010, 22:46
DARKER DARKER is offline
VIP
 
Join Date: Jul 2004
Location: Somewhere Over the Rainbow
Posts: 541
Rept. Given: 16
Rept. Rcvd 123 Times in 54 Posts
Thanks Given: 21
Thanks Rcvd at 1,038 Times in 262 Posts
DARKER Reputation: 100-199 DARKER Reputation: 100-199
Quote:
the target actually loads the About form (frmAbout) which in turn loads the main form (frmMain) after you click OK on the About form. You then are in the app and can open the About form again through the standard Help|About menu.
You can try at the end of frmAbout Form_Load event jump to cmdOK Click event code. Result is that at the beginning NAG just blink and program run normally. frmAbout stay loaded in memory (Form_Load is not firing) so if you call it from About menu it should works.
Reply With Quote
  #4  
Old 01-30-2010, 02:03
Wirestealth Wirestealth is offline
Friend
 
Join Date: Jan 2010
Posts: 6
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
Wirestealth Reputation: 0
Thanks for suggesions but I'm a little anal...

Heya mates, thanks a bunch.

@DARKER: Sorry, I should have mentioned that I have been using Olly as well with no love (still new to it though so I'm sure I just need to learn how best to use it for VB-based apps). I have used Olly for regular C++ apps with success (those in the Lena151 tutorials anyway :P).

@dion: I'm a little anal mate, and the only reason I am going through this using a freeware target is for the learning. Thus, my anal retentiveness doesn't even want the momentary 'blink' that I understand would happen.

I may look into setting the form visibility property to false and then calling the _Click event at the end of the load routine. I would inline this functionality after the load was called (as I don't believe the window has actually been shown yet). In your opinion, do you see any 'gotchas' with either inlining a call to MSVB6VM.dll to set a forms visibility to false or dig deeper into to the actual CreateWindow call parameters and remove the window style WS_VISIBLE (or make a call to ShowWindow to hide it)? Assuming this approach is viable I would then add the _Click event call to the end of the load routine.

Thanks for your replies
Reply With Quote
  #5  
Old 01-30-2010, 03:05
Wirestealth Wirestealth is offline
Friend
 
Join Date: Jan 2010
Posts: 6
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 0
Thanks Rcvd at 0 Times in 0 Posts
Wirestealth Reputation: 0
Small victories.

Sorry as my last post had @DION and @DARKER mixed up.

@DARKER: Well I totally overthought this. I thought I would try your suggestion and see how bad the flicker was from frmAbout...well, and I should have thought of this from regular VB programming) since I jump to the OK button click event before I return from the load of frmAbout the form has yet to be made visible on screen and so the message queue gets the frmAbout.Hide added to it and apparently is processed before it is even made visible so that is all that was needed!

Thanks for the suggestion as I was totally making it more difficult than need be. I should have learned from the Tuts that you try the easiest approach first and work from there :P.
Reply With Quote
  #6  
Old 02-01-2010, 22:25
The Old Pirate The Old Pirate is offline
Family
 
Join Date: Sep 2005
Posts: 120
Rept. Given: 51
Rept. Rcvd 73 Times in 22 Posts
Thanks Given: 9
Thanks Rcvd at 18 Times in 10 Posts
The Old Pirate Reputation: 73
I think it's possible to make it to load frmMain instead of frmAbout. Could you please send me a PM with app name? I'd want to take a look at it.
__________________

http://youtu.be/H0QfVDebLFg
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File Locator Pro - Need guidance DaRkLiFe General Discussion 7 01-20-2024 23:23
Guidance is needed for unpacking winlicence protected app Turkuaz General Discussion 5 11-29-2018 04:32
Guidance required foosaa General Discussion 2 11-21-2015 14:27


All times are GMT +8. The time now is 20:11.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )