Extension Manager Problem

Hi!

I’m trying to implement an Extension Manager dll and am having a major issue with the EM_NSFNOTEOPENEXTENDED call back function. Basically i cant get a handle to the Note that is being opened - when ever i make a check against it being a NULLHANDLE it fails.

Here’s a bit of a snippet of my code …

+++++++++++++++++++++++++++++++

case EM_NSFNOTEOPENEXTENDED:

  {

…

ap = pExRecord->Ap;

hDB = VARARG_GET (ap, HANDLE); 

note_id = VARARG_GET (ap, NOTEID);

Flags = VARARG_GET (ap, WORD);

hNote = VARARG_GET (ap, HANDLE); /* the note */



if (hNote == NULLHANDLE) {

goto Exit0

}

+++++++++++++++++++++++++++++++++++++++++++++

It will ALWAYS fail at the hNote == NULLHANDLE line (well actually that line will always return TRUE, which in the case of my code consider a fail)

I’m tearing my hair out because that basically means i can never get any info from the NOTE - which obviosly i want to do.

Any help would be awesome

Thanks

S

Subject: Extension Manager Problem

i’m not really sure about that, but:

did you register EM_BEFORE? hNote should be NULLHANDLE here i think.

next: did you check Struct Alignment? it has to be set to 1. have a look in c-api userguide and follow all commendations.

depending on how you include notes header files this sometimes comes automatically into module-focus, but there’s a good chance it doesn’t.

(see “#pragma pack(1)” in global.h)

Markus Seitz

markus.seitz@icodex.com

Subject: RE: Extension Manager Problem

Thanks Markus,

I’ve tried both EM_BEFORE and EM_AFTER both give me the same issue.

Will look into the Struct Allignment.

Thanks again

S