Changes in v3

delphi package - automated exception handling
Post Reply
RossTuck
Posts: 6
Joined: Thu Oct 20, 2005 4:13 pm
Location: Porstmouth, UK

Changes in v3

Post by RossTuck »

Hi People,

I am using CBuilder5 ( yes I know ) and I have upgraded to
v3 of Mad.

Problem is I cannot workout how to access certain
mad properties anymore.

Before.

SuspendThreads = reg->ReadBool( "PauseThreads" );

This would read a field I saved to the registry into the
suspend threads property which was declared as extern
previous to v3, now it is undefined.

I can see that the property is part of a structure but cannot
for the life of me work out how to access it. :o

Any Idea's ?

Ross.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I've not tried it myself in BCB yet, but something like this should work:

MESettings().SuspendThreads = reg->ReadBool("PauseThreads");

Or maybe this:

MESettings()->SuspendThreads = reg->ReadBool("PauseThreads");
RossTuck
Posts: 6
Joined: Thu Oct 20, 2005 4:13 pm
Location: Porstmouth, UK

Post by RossTuck »

Hi,

I was sure I had trried all the possible combo's
of dot and pointers yesterday, but the

MESettings()->SuspendThreads =

now appears to compile.

I will let you know if it works ok.

Thank you.

Ross.
:crazy: :crazy:
Post Reply