VC开发中使用到MsFlexGrd.ocx控件,但是在没有装VC环境的计算机里却不能使用,而MsFlxGrd.ocx已经注册了,还是显示不出,一旦安装VC环境就可以用,为什么??
解决后立马送分!!!!

解决方案 »

  1.   

    可能是缺少其他文件吧,最好的解决办法是用制作安装程序的软件打个安装包,一般来说它能检测到程序使用的dll和ocx等并注册
      

  2.   

    似乎 MSFlexGrid 有问题,要记得定时备份你的源程序中的 .rc 文件,有时你可能会突然感到编译时间比平时长些,再编一次比上次更慢,看一下 .rc 文件,它有大小可能不正常,具体多大不正常要看你的程序了,当你感觉有问题时,就把那备份的 .rc 文件覆盖当前有问题的 .rc 文件。另外,可能你所用的 OS 和另外的那个电脑里的 OS 版本不一样,也许你需要在那个版本的 OS 下编译一次。
      

  3.   

    将程序release安装软件。用静态库。
      

  4.   


    Before you can use an MSFlexGrid in your application, you must add the MSFlxGrd.ocx file to your project. To automatically include the file in your project, put it in the Autoload file. When distributing your application, you should install the MSFlxGrd.ocx file in the user’s Microsoft Windows System directory. For more information about adding an ActiveX control to a project, see "Standard ActiveX Controls" in the Visual Basic Programmer’s Guide.