Book a Demo

Author Topic: Importing structs from .net  (Read 3136 times)

morriss

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Importing structs from .net
« on: February 28, 2007, 03:08:29 am »
Hi
I have used the import binary module option to import various .net dlls to my project.
This works fine for classes and interfaces, but does not seem to import any structs (eg System.DateTime).
Does anyone have any idea how to import .net structs into my project?

Thanks
« Last Edit: February 28, 2007, 03:29:46 am by morriss »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing structs from .net
« Reply #1 on: February 28, 2007, 03:39:02 am »
Which build of EA are you using?

A few builds ago I think I noticed something about improving the handling of .Net Structs. Perhaps they don't have everything working yet, or something slipped back to a prior state.

If you don't get an answer in a day or so, you should report this as a bug to Sparx. Use the Support link at the top of the forum page, then follow the link in the left side menu. Or, from the EA main menu choose Help | On-line Resources | Bug Report Page.
No, you can't have it!

morriss

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing structs from .net
« Reply #2 on: February 28, 2007, 03:51:46 am »
I am using build 8.04, so the most recent one I think.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8098
  • Karma: +118/-20
    • View Profile
Re: Importing structs from .net
« Reply #3 on: February 28, 2007, 01:18:22 pm »
Handling of structs and events to the reflection importer for .Net is scheduled for our next major release.  Until then you could try using the disassembly importer for .Net instead.

morriss

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Importing structs from .net
« Reply #4 on: March 01, 2007, 01:51:06 am »
Thanks, I have used the disassembly importer and now have structs available.
One question though...is there any drawback from using the disassembly importer rather than the default of 'Let EA decide'?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Importing structs from .net
« Reply #5 on: March 01, 2007, 03:40:15 am »
No, other than issues like the one in question here. Search the forum for a (little) bit of discussion of cases where it might make a difference. For what you are doing they are just two different, but valid, approaches.
No, you can't have it!