Solved

For ARK Only!

Posted on 2000-04-22
6
232 Views
Last Modified: 2010-05-02
0
Comment
Question by:mcrider
  • 4
  • 2
6 Comments
 
LVL 27

Accepted Solution

by:
Ark earned 50 total points
ID: 2742425
Hello, mcrider
I've posted my comment at that thread not because I so need points. Answering questions is some kind of sport for me <smile>. BTW, what is KISS? (I thing, last two letters is "Simple Solution", but what is first?). I agree, that when programming, you need simple solution, but sometimes you need something special (for example, using standard MsgBox/InputBox you don't need make resource file for any locale - they use system locale). And another reason I posted message - recently (during last two weeks) I've answered three same question about customizing Msg/InputBox with this alternate way of subclassing with timer. And all three times previous messages were "impossible" with advice of using ownmade forms. And all three times questionary choose this d**n KISS solution! At the third time I can not more keep silence (I'm sorry now). If you want to make your own form, why not ask about this directly?
Programming isn't my job, it' my hobby, so IMHO more interesting is to do "light" subclassing then to draw own form. Of courese, if you need to do project quickly...
BTW, my favorite VB author is(was?) Bruce McKinney. His "Hardcore VB" turn me to API programming. And it's his phrase that there is nothing impossible in VB. But even he stop his efforts with API when triing to call modeless dialogs (Find/Replace) and draw his own forms. This is the only place I don't like in his book. I've tried to do this with API for two month and still without succeses. I'm going to post this question to EE. And if you'll answer this question, I would be glad to give you as much points as I can.
Cheers
0
 
LVL 14

Author Comment

by:mcrider
ID: 2743812
Ark,

Believe it or not, (Ripley!) K.I.S.S. stands for "Keep It Simple Stupid".

I firmly believe in using API's, But I also believe that native coding also has it's place.  There are usually at least 2 different ways to do anything in VB (if not, more ;-)

The problem I find with subclassing is the way VB handles the active hook in immediate mode... I get so irritated when I'm debugging something and walk through an event where I decide I want to stop the program, then *BOOM*, VB itself crashes! If I forgot to save before I started the debug, or made changes while stepping through the program (which i do quite a bit), they're gone.

Oh well, Like I said earlier... This was just meant to give you some points for the solution you gave earlier, so... Here you go!


Cheers!®©
0
 
LVL 27

Expert Comment

by:Ark
ID: 2745309
Hi
Yes, I agreed, subclassing isn't the best thing VB can to do, but it,s very powerfull. The solution against crashes is using 3-rd party dlls (I don't like to use them). BTW, did you see/try native MS dll for debuging while process is subclassed?
Cheers
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 14

Author Comment

by:mcrider
ID: 2746365
No, haven't seen the MS dll... What's it called, and where?


Cheers!®©
0
 
LVL 27

Expert Comment

by:Ark
ID: 2746841
The DBGWPROC.DLL (Debug Object for AddressOf Subclassing) enables you to debug normally while a subclass is active without adding any unnecessary overhead to your finished product or distributing an extra component. This file is available from the Visual Basic Owner's Area at the following location;

http://www.microsoft.com/vstudio/owner/

0
 
LVL 27

Expert Comment

by:Ark
ID: 2746846
Ooops..
There is redirect there.
http://msdn.microsoft.com/vbasic/downloads/download.asp?ID=024
Cheers
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now