Advertisement

11.08.2007 at 01:25PM PST, ID: 22948763
[x]
Attachment Details

Undeclared Identifier: 'GetTypeInfoCount', 'GetTypeInfo', 'GetIDsOfNames', 'Invoke' msxml

Asked by acartus in Delphi Programming Language, Delphi Programming, Pascal Programming Language

Tags: delphi, undeclared, identifier, getidsofnames, gettypeinfocount

I am a BEGINNER to Delphi and Pascal.  I am trying to implement a sax parser but am getting the following compiler errors:

Undeclared Identifier: 'GetTypeInfoCount'
Undeclared Identifier: 'GetTypeInfo'
Undeclared Identifier: 'GetIDsOfNames'
Undeclared Identifier: 'Invoke'

   I have had this problem for days and have been searching for a solution.  I've tried workarounds or different ways to implement a sax parser to no avail.  PLEASE HELP!!!

I'm just trying to implement the IVBSAXContentHandler class. I imported the type library C:\WINDOWS\system32\msxml4.dll.

Below is a basic .pas file to try and get things to compile, any help would be greatly appreciated!  Thanks!

unit Test;

interface

uses MSXML2_TLB;

type

//==============================================================================
// SAX Content Handler
//==============================================================================
  TSAXContentHandler = class(TInterfacedObject, IVBSAXContentHandler)
  public
    constructor Create();
    procedure Set_documentLocator(const Param1: IVBSAXLocator); safecall;
    procedure startDocument; safecall;
    procedure endDocument; safecall;
    procedure startPrefixMapping(var strPrefix: WideString; var strURI: WideString); safecall;
    procedure endPrefixMapping(var strPrefix: WideString); safecall;
    procedure startElement(var strNamespaceURI: WideString; var strLocalName: WideString;
                           var strQName: WideString; const oAttributes: IVBSAXAttributes); safecall;
    procedure endElement(var strNamespaceURI: WideString; var strLocalName: WideString;
                         var strQName: WideString); safecall;
    procedure characters(var strChars: WideString); safecall;
    procedure ignorableWhitespace(var strChars: WideString); safecall;
    procedure processingInstruction(var strTarget: WideString; var strData: WideString); safecall;
    procedure skippedEntity(var strName: WideString); safecall;

    property documentLocator: IVBSAXLocator write Set_documentLocator;

  end;

  implementation
 
//==============================================================================
// SAX Content Handler
//==============================================================================
constructor TSAXContentHandler.Create();
begin

end;

procedure TSAXContentHandler.Set_documentLocator(const Param1: IVBSAXLocator);
begin
end;

procedure TSAXContentHandler.startDocument();
begin
end;

procedure TSAXContentHandler.endDocument();
begin
end;

procedure TSAXContentHandler.startPrefixMapping(var strPrefix: WideString;var strURI: WideString);
begin
end;

procedure TSAXContentHandler.endPrefixMapping(var strPrefix: WideString);
begin
end;

procedure TSAXContentHandler.startElement(var strNamespaceURI: WideString;var strLocalName: WideString;
                       var strQName: WideString; const oAttributes: IVBSAXAttributes);
begin
end;

procedure TSAXContenthandler.endElement(var strNamespaceURI: WideString;var  strLocalName: WideString;
                     var strQName: WideString);
begin
end;

procedure TSAXContentHandler.characters(var strChars: WideString);
begin
end;

procedure TSAXContentHandler.ignorableWhitespace(var strChars: WideString);
begin
end;

procedure TSAXContentHandler.processingInstruction(var strTarget: WideString;var strData: WideString);
begin
end;

procedure TSAXContentHandler.skippedEntity(var strName: WideString);
begin
end;

end.Start Free Trial
 
 
[+][-]11.08.2007 at 01:59PM PST, ID: 20245723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.08.2007 at 02:23PM PST, ID: 20245899

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.08.2007 at 02:38PM PST, ID: 20246002

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.08.2007 at 09:53PM PST, ID: 20247738

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.09.2007 at 01:57AM PST, ID: 20248314

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Delphi Programming Language, Delphi Programming, Pascal Programming Language
Tags: delphi, undeclared, identifier, getidsofnames, gettypeinfocount
Sign Up Now!
Solution Provided By: ciuly
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628