datagrid from vc6 to vc8 can not work

i copy the .h and .cpp file about datagrid control which used in vc6 to vc8(because i do not master the datagrid control which in vc8),it can build and excuse successful on the machine which have vc6.but can not work on the machine which do not have vc6.

the solution use shared MFC DLL,because i use extended MFC dll in the solution.

and i already register the control in the machine which do not have vc6. before i resgiter it show me some error.after i register it do not ,but still can not show the datagrid.

please help me ! thanks!




Answer this question

datagrid from vc6 to vc8 can not work

  • Martin Selway

    may be i should "impor" the vc6controls.reg file to the box which do not have vc6. but i can not find vc6controls.reg file in the disk of vs2005

  • khs1

    Yes, that is what you need to do. I think there was a VC6Controls.reg file (different filename, however - I can't remember what it was) that is either on the Visual Studio 6 or the Visual Studio 2005 CD, or maybe it gets installed by Visual Studio 6 but only if you install Visual Basic 6. I found it once but I can't remember how I found it. Try installing Visual Basic 6 and see if a REG file can be found in the installation directories on your hard drive.

    The registry key that saved me was in HKEY_CLASSES_ROOT\Licenses\72E67120-5959-11cf-91F6-C2863C385E30, where the 72E67120-5959-11cf-91F6-C2863C385E30 corresponds to the license key my software tried (incorrectly) to use (I fixed it later - see the forum messages I referenced before). Does your software try to use a license key Maybe we could try to find a match for it.

  • Glenn Vassallo

    may somebody give me answers

  • radheshyam

    I'm not sure if I had the same problem as you. I was using MSFLXGRD.OCX, a data grid control from Microsoft, in my C++ program. In Visual Studio 6 and Studio 2003 builds, it worked fine. But in Studio 2005 something broke and it didn't work anymore.

    There turned out to me a minor change down in the MFC code or AfxXXXX functions that Microsoft provides, which required a minor change to my code and then it ran fine again. Another patch involved creating the correct registry key to provide the license for the OCX control.

    For a more detailed description of what I went through see http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=228001&SiteID=1



    See also http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=226477&SiteID=1



    and http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=244044&SiteID=1




     


  • datagrid from vc6 to vc8 can not work