Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Porting issue

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Porting issue
Link Posted: 05-Jul-2006 10:46
Hi -

I am porting my code from Visual Studio 2003 to Visual Studio 2005 and am running into some compiler errors with the FlyGrid library. I made the simplest project I could that simply creates a FlyGrid as a data member of the Form1. The problem occurs when using both the old CLR syntax and the new syntax. Here is the compiler error:

1>c:\\aem\\code\\apps\\test apps\\flygrid tester\\flygrid tester\\Form1.h(66) : error C2365: 'NineRays::Windows::Forms::Grids::SplitViews::0' : redefinition; previous definition was 'data member'
1>        c:\\aem\\code\\apps\\test apps\\flygrid tester\\flygrid tester\\Form1.h(66) : see declaration of 'NineRays::Windows::Forms::Grids::SplitViews::0'
1>        This diagnostic occurred while importing type 'NineRays::Windows::Forms::Grids::SplitViews ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.
1>        This diagnostic occurred while importing type 'NineRays::Windows::Forms::FlyGrid ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.


Please help as this is holding up development. Thanks -

Samy
Link Posted: 05-Jul-2006 19:32
As I've understood you've used some SplitViews internals?
Please remove usage of Splitviews internals (obfuscated), as these methods/fields/properties can be changed from version to version.
Link Posted: 06-Jul-2006 06:50
No, I am not using any splitView internals. All I did to recieve this error was to make a FlyGrid data member of the main form of a Windows Forms application and then instantiate it with a FlyGrid object in the constructor.

Also, I recieve a whole slew of errors, over 100, that all look like the one posted, or like this:

c:\\aem\\code\\libraries\\displays\\SpectrumTable.h(66) : error C2365: 'NineRays::Windows::Forms::FlyGrid::' : redefinition; previous definition was 'data member'
        c:\\aem\\code\\libraries\\displays\\SpectrumTable.h(66) : see declaration of 'NineRays::Windows::Forms::FlyGrid::'
        This diagnostic occurred while importing type 'NineRays::Windows::Forms::FlyGrid ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.


Thanks -

Samy
Link Posted: 06-Jul-2006 07:27
One more thing that just occured to me is that I'm using Visual C++ in Visual Studio 2005, and my guess is that most people (including you guys??) are using C# or VB?? So it may be a problem specific to the C++ compiler.

Thanks

Samy
Link Posted: 06-Jul-2006 09:11
This problem is specific to managed c++ compiler,
please update FlyGrid.Net, this problem has been solved.
Link Posted: 06-Jul-2006 11:03
Thanks for the quick response. I am now using the newest version of FlyGrid.Net and have encountered an Internal Compiler Error. It occurs when I try to derive a class from the VirtualNode class. Here's the code:

  private __gc class CControlRow :  public ICustomDrawNode,
                    public VirtualNode
  {
  };

Please help ASAP as I am stuck right now -

Samy
Link Posted: 06-Jul-2006 11:08
I don't know if this is necessary, but I wanted to post the error message up in case it would help -

c:\\aem\\code\\libraries\\displays\\SpectrumTable.h(61) : fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'msc1.cpp', line 1392)
To work around this problem, try simplifying or changing the program near the locations listed above.
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information
        This diagnostic occurred while importing type 'NineRays::Windows::Forms::Data::NodeState ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.
        This diagnostic occurred while importing type 'NineRays::Windows::Forms::Data::NodeBase ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.
        This diagnostic occurred while importing type 'NineRays::Windows::Forms::Data::VirtualNode ' from assembly 'NineRays.FlyGrid, Version=1.4.0.15, Culture=neutral, PublicKeyToken=a4c41e6c73e32dc8'.


Thanks
Link Posted: 06-Jul-2006 12:40
Please redownload FlyGrid.Net, we've tested latest update on more wide tests - this problem solved.