Book a Demo

Author Topic: Connecting to the Interface using C++  (Read 2859 times)

Beren

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Connecting to the Interface using C++
« on: July 24, 2006, 06:01:11 am »
Hi,
I'm Trying to connect a C++ application with EA but in the UserGuide there are examples only for VB, C# and Delphi. This is the code I'm using

EA::IRepositoryPtr r;
if (SUCCEEDED(r.CreateInstance("EA.Repository")))
{
      r->OpenFile("c:\\eatest.eap");
}

The COM objects are correctly registered (as the VB examples works fine) but I can't get the C++ code working.

Any ideas?

Thanks