一个在xp下运行良好的程序,到vista下就注册不了,估计因没有权限问题。
大家有没有碰到过,谁有解决方法?

解决方案 »

  1.   

    Vista introduces stricter security checking.For example, only the elevated administrator can write to registry [HKey_Local_Machine] hive or write to "c:\Program files\..." folder.Don't write to such locations, or, check you are elevated before doing anything that requires administrator rights.
      

  2.   

    请参考Vista开发指南来修改你的程序,这样才能在Vista上面跑(这样肯定也能在XP上面跑)。http://msdn.microsoft.com/en-us/library/bb757005.aspx了解完全这里面的内容就知道哪些东西要改了。