Solved

For ARK Only!

Posted on 2000-04-22
6
240 Views
Last Modified: 2010-05-02
0
Comment
Question by:mcrider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 28

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 28

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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 14

Author Comment

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


Cheers!®©
0
 
LVL 28

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 28

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month5 days, 12 hours left to enroll

626 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