IDE_ help

ScottMattes

Member³
I don't know what I am doing wrong, but I get multiple AVs with an improbable address when I try the following in my FormCreate method

if not IDE_GetWindowObject( ObjType, ObjOwner, ObjName, SubObj )
then begin
MessageDlg('There was an error calling IDE_GetWindowObject.', mtError, [mbOK], 0);
Exit;
end;

The pchar variables are defined as part of the form, thusly

public
ObjType : pchar;
ObjOwner : pchar;
ObjName : pchar;
SubObj : pchar;

Moving them to the Var section of the unit only changes the address of the AV.

I have a program window open, with a package loaded in it.

I haven't found an example of using this call in the demo directory.

Thank you.
 
Back
Top