Author Topic: Source code import C++ problem  (Read 207 times)

thomas_b

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Source code import C++ problem
« on: October 11, 2018, 12:47:17 am »
Hello everyone!

I import my source via the import function of the EA.
Two weeks ago i still used the EA version 10.
Last week i installed the EA version 12.
Since i installed the version 12 i got problems when i import my source code.
The version 12 does not import "all source parts".

I have a structure with enumeration variables.

struct t_TestStructure
{
   TypeLS eType;
   ColorLS eColor;
   ThicknessLS eThickness;
};

Enumeration types:

typedef enum TypeLS
{
   eTypeIndependent     = 0,
   eType1           = 100,
   eType2           = 200,
   eType3           = 300,
   eType4           = 400,
   eType5           = 500,
   eType6           = 600
};

typedef enum ThicknessLS
{
   eThicknessIndependet   = 0,
   eThicknessThin         = 1,
   eThicknessMedium      = 2,
   eThicknessThick         = 3
};

typedef enum ColorLS
{
   eColorIndependet      = 0,
   erColorLight         = 10,
   erColorMedium         = 20,
   erColorDark         = 30
};

typedef enum ThicknessLS
{
   eThicknessIndependet    = 0,
   eThicknessThin          = 1,
   eThicknessMedium       = 2,
   erThicknessThick       = 3
};
In version 10 the structure and the enumerations are shown in the class diagram.
But when i import the same file with the version 12 only the structure is shown in the class diagram without the enumerations.

Does anybody have an explanation for this scenario.
Do i have to change some import settings or other settings?

Best regards
  Thomas

thomas_b

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Source code import C++ problem
« Reply #1 on: October 11, 2018, 04:09:29 pm »
Good morning!

Update:
I installed today the EA version 14 and this version does the source code import correct.
But i use an external AddIn which is only tested with the EA version 12.
So i prefer a solution with the EA version 12.

Best regards
 Thomas

Simon M

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 6452
  • Karma: +55/-6
    • View Profile
Re: Source code import C++ problem
« Reply #2 on: October 12, 2018, 09:00:44 am »
Not sure about a solution for version 12.
Simon

support@sparxsystems.com

Sunshine

  • EA User
  • **
  • Posts: 682
  • Karma: +46/-3
  • Emoji's make you look younger
    • View Profile
Re: Source code import C++ problem
« Reply #3 on: October 12, 2018, 10:45:29 am »
Not ideal but don't expect Sparx systems to fix issues in V12 when a later version is available.

Here is a potential work around. Have multiple installs of Sparx EA on your desktop. You can do this by following these steps
1) Install V12 and its components then rename the directory "C:\Program Files (x86)\Sparx Systems\EA" to "C:\Program Files (x86)\Sparx Systems\EA12".
2) Create a shortcut to EA.exe in the folder and pin it on the taskbar/startmenu/desktop
3) Install V14.1 which will install in "C:\Program Files (x86)\Sparx Systems\EA" by default
You can now access both V12 and V14.1 to do specific tasks like reverse engineering.

thomas_b

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Source code import C++ problem
« Reply #4 on: October 12, 2018, 03:57:32 pm »
Hello Simon and Sunshine,

thanks for your replies.

I noticed also that it is possible to have multiple installations of the EA.
This solution is not nice but ok for me.

I think the external AddIn will be released soon for the EA 14.

Best regards
 Thomas

Sunshine

  • EA User
  • **
  • Posts: 682
  • Karma: +46/-3
  • Emoji's make you look younger
    • View Profile
Re: Source code import C++ problem
« Reply #5 on: October 13, 2018, 08:18:32 am »
I know curiosity killed the cat but what add-in are using?

qwerty

  • EA Guru
  • *****
  • Posts: 9675
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Source code import C++ problem
« Reply #6 on: October 13, 2018, 06:15:35 pm »
Schrödinger's cat is already 50% dead. So your curiosity can't really kill it xD

q.

Sunshine

  • EA User
  • **
  • Posts: 682
  • Karma: +46/-3
  • Emoji's make you look younger
    • View Profile
Re: Source code import C++ problem
« Reply #7 on: October 14, 2018, 06:31:18 am »
Schrödinger's cat is already 50% dead. So your curiosity can't really kill it xD

q.
Ha Ha nice one Qwerty but its not in a state of 50% dead and 50% alive its 100% both dead and alive until an observer looks then its either dead or alive. Its got a 50/50 chance of being dead with the curiosity of the observer in the end so death is not guaranteed.  :)

qwerty

  • EA Guru
  • *****
  • Posts: 9675
  • Karma: +176/-150
  • I'm no guru at all
    • View Profile
Re: Source code import C++ problem
« Reply #8 on: October 14, 2018, 07:19:06 pm »
Well, no being can be "50% dead", so I was actually saying the same as you. Just shorter.

q.