Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HorstKargl

Pages: [1]
1
Hi,

EA comes with two different Code Templates for C. One for object oriented and one for "normal". You cannot see the differences in the Code Generation Template selection, but the Templates are different.

To use object oriented support for C, set "object oriented support  to true". This can be set in Tools | options | source code engineering.

... you can also adapt the C template for object oriented support to your need.

Best Regards,
Horst

2
Hi all,

I was searching about the topic how java classes can be registered as COM objects to use them from inside EA as plug-in.

I have found the following description:
http://www.codeguru.com/java/tij/tij0195.shtml

The Microsoft JVM provides a methode to  register a simple Java class as COM object with javareg
... but the Microsoft JVM is no longer supportet :-(

Has anybody an idea where I can get a Microsoft JVM?
... or has anybody another idea how to register a Java class as COM object?



3
thx a lot  ;)

The problem was the Version of the eaapi.jar and SSJavaCOM.dll

The problems are solved with the new files from build 832.

4
... naybe there is somthing wrong with my configuration!?
I use Eclipe 3.3.0 (EclipseEurope). The eaapi.jar is included as external Jar in my eclipse project. The SSJavaCOM.dll is in my system32 directory.


5
yes, for sure!
I have debugged the code and and the variable "opened" was true.
Furthermore, I have tried some other methodes from the Repository object r. For instance:

         System.out.println("Instance GUID: "+r.GetInstanceGUID());
         boolean isSecurity = r.GetIsSecurityEnabled();

Both methodes work well, so far I can see.



6
hi,

I use the eaapi.jar to access the EA repository with Java. I did the configuration as described in the help file:
http://www.sparxsystems.com.au/EAUserGuide/index.html?setup.htm

However, when I try to acces an existing model I always get null for the requested elements. For instance the following code do not deliver a collections for authors and for the models:
         ....
         org.sparx.Repository r = new org.sparx.Repository();
         boolean opened = r.OpenFile("E:\\eaTest.eap");
         Collection<Author> authors = r.GetAuthors();
         Collection<org.sparx.Package> models = r.GetModels();
         ....

Has anyone  a suggestion what I have done wrong?

PS: the eaTest.EAP contains a root package with subpackages and two authors!

thx, horst

Pages: [1]