PDA

View Full Version : Using SetGirderStrReg



Ron
October 13th, 2002, 03:55 PM
Did you make sure that you assigned the address of TSetGirderStrReg ?

Ron
October 13th, 2002, 03:55 PM
Did you export the h_support_functions function ?

Ron
October 13th, 2002, 03:55 PM
I didn't see that you already added a new post,.. let me see what is going on now. :sad:

Ron
October 13th, 2002, 03:55 PM
Set Text Reg DOES work.

Ron
October 13th, 2002, 03:55 PM
You might want to use [treg5] instead of [reg5]

[reg5] is the numerical register.
[treg5] is the string register.

Mark F
October 13th, 2002, 03:55 PM
I haven't tried to set the string registers so I can't help much. For an action plugin, make sure you are asking for the correct revision of the interface during the init_dllex (return 4) or, for a hardware plugin, that you export a h_support_functions routine.

I don't understand your second question. What do you mean by "wildcards"? The string register substitution strings are of the form [tregX] where 1<=X<=25.

simonjo
October 13th, 2002, 03:55 PM
I'm building a new Simple MAPI plugin, which periodically scans your email 'Inbox' and generates an event after qualifying mails based on a 'Subject' prefix and a 'From' address list. This is working fine.

But when I want to put the 'From' address into a string register using TSetGirderStrReg, Girder crashes.

First I was using TSetGirderStrReg from the action support functions list, now from the HW support functions list, but no difference.

I see a different error if I:

- use the 'From' address straight from the MAPI returned pointer (pmapi->lpOriginator->lpszAddress).

- or first copy the 'From' address from pmapi->lpOriginator->lpszAddress into a local string and then use this

I guess this is a memory allocation/owner problem????

Help required...

Jo

simonjo
October 13th, 2002, 03:55 PM
I looked in the DVDSpy sample for an h_support_functions implementation and just got to the point of verifying this, and it seems that h_support_functions is not called at all!!!

I assume this to occur when enabling devices???

Or can I use the functions set by setsupportex ???

simonjo
October 13th, 2002, 03:55 PM
I was running Girder 3.0.22, replacing it with 3.0.23 shows that h_support_functions is called now.

Now the TSetGirderReg is working but TSetGirderStrReg is NOT ?!?!?!

Do I need version 3.0.24 or what?

simonjo
October 13th, 2002, 03:55 PM
Yes, did the export, thats why the TSetGirderReg IS working.

But nonetheless, I noticed that when you create an action from the 'Girder' tab, and use the 'Set Text Reg' function (i.e. register 1, 'test'), this does NOT work either in 3.0.23 !!!

simonjo
October 13th, 2002, 03:55 PM
Can you please explain how you verified 'Set Text Reg' to work????

I tried with following 2 events:

1) capture the key 'S' to set, and link this to 'Girder' 'Set Text Reg', register 5, text='this is a test'

2) capture the key 'G' to display register, and link this to 'Plugins' 'OSD Popup' and specifying 'Reg5=[reg5]' which should display the actual contents of register 5.

But it didn't work, also pressing F10 to show the register contents = NOGO, only numeric values can be set correctly...

simonjo
October 13th, 2002, 03:55 PM
Thanks for the solution, now it's ok!

Anyway, I'm going to get the action part of this new plugin working and then deliver it.

It will be SMAPI.DLL and pluginid=125, can you already reserve the ID pls.

TYPO
October 13th, 2002, 03:55 PM
I can't use SetGirderStrReg within Skeleton plugin :sad:
I tried to insert it in the TFunctions but Girder opens with a "Plugin error".

Ah...another question...are the wildcards [tregX] used for string registers?

thnx

TYPO
October 13th, 2002, 03:55 PM
Thanks, i'll try it as soon as possible.