none
Register DLL created with VFP on Windows 7 64 bit RRS feed

  • Question

  • Hi

    Sorry If post this question in here also as well as in msnews, but this is an urgent manner.

    The environment is VFP 9 + Windows 7 64bit

    I have created a dll in vfp9, this dll was working fine under XP SP2 32bit,
    and Vista SP1 32bit.

    Now the problem is the registration of the dll under Windows 7 64bit is not working.

     I tried to register the dll using cmd then RegSvr32.exe and it popup a
    message saying dll is successfully registered, when I try to use this dll
    from vfp it gives error "Class definition mydll.myclass is not found"

    I read somewhere that I should run the correct cmd and the correct
    RegSvr32.exe from C:\Windows\SysWOW64, I tried that and did not work.

    I search in the registry and found no trace indicate that my dll is registered.

    I also tried regdllview from http://www.nirsoft.net/utils/registered_dll_view.html , no trace for it also.

    Any tips?

    -Sam

    Wednesday, June 17, 2009 2:08 PM

Answers

  • Sounds like an issue with virtual registry settings. Make sure you elevate to an Administrator when you register the DLL>
    Craig Berntson MCSD, Visual FoxPro MVP www.craigberntson.com
    • Marked as answer by Sam Martini Wednesday, June 17, 2009 3:44 PM
    Wednesday, June 17, 2009 3:30 PM

All replies

  • Sounds like an issue with virtual registry settings. Make sure you elevate to an Administrator when you register the DLL>
    Craig Berntson MCSD, Visual FoxPro MVP www.craigberntson.com
    • Marked as answer by Sam Martini Wednesday, June 17, 2009 3:44 PM
    Wednesday, June 17, 2009 3:30 PM
  • I had tried every thing except right click on the cmd.exe and runas administrator when issuing regsvr32.

    Superb, that indeed register the dll, and I managed to use it.

    When the user name I logged to Windows 7 as Administrator ( I check and re-check that my current user name is added to the administrator group), and I double click on cmd.exe, is not the take the administrator credential ?

    I warn you Craig, if you don't answer my above question in convincing and persuasive and logical way, I will remove Win764bit from my system. :)

    Thanks a lot.

    • Edited by Sam Martini Wednesday, June 17, 2009 3:57 PM
    Wednesday, June 17, 2009 3:54 PM