porting 32 bit dll in 64 bit
-
Hi, I have a .reg file which copies some menu items as keys in the registry. My dll collects all of them and show up on right click if i selected any thing on the explorer. How to make my 32 bit com dll works in 64bit machine? I recompiled in 64 bit machine using visual studio 2008. It did not show up the right results. it is not showing up any menus on the right click. Thanks in advance. Regards,
-
Hi, I have a .reg file which copies some menu items as keys in the registry. My dll collects all of them and show up on right click if i selected any thing on the explorer. How to make my 32 bit com dll works in 64bit machine? I recompiled in 64 bit machine using visual studio 2008. It did not show up the right results. it is not showing up any menus on the right click. Thanks in advance. Regards,
Can't you debug the code and see what's happening? Following topics can put some light on your issue. Wow64[^] Converting 32-bit Applications Into 64-bit Applications: Things to Consider [^] Porting your program[^] but it poorly documented I think...
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
-
Can't you debug the code and see what's happening? Following topics can put some light on your issue. Wow64[^] Converting 32-bit Applications Into 64-bit Applications: Things to Consider [^] Porting your program[^] but it poorly documented I think...
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
thanks. I am facing a different problem. when i am registering dll in vista 64 bit as administrator user i am getting the following error call to DllRegisterServer failed with error code 0x80020009 when searching in the google it says that permission problem. What is that exactly? how to resolve? Thanks in advance Regards,
-
thanks. I am facing a different problem. when i am registering dll in vista 64 bit as administrator user i am getting the following error call to DllRegisterServer failed with error code 0x80020009 when searching in the google it says that permission problem. What is that exactly? how to resolve? Thanks in advance Regards,
Can you run the program as administrator?
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
-
Can you run the program as administrator?
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
Hi, I run the program as administrator. Then I tried compiling solution in the vista 64it. It gave “error PRJ0019: A tool returned an error code from "Performing registration"”. When I comment the following code
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE); //this is what I commented
return TRUE}
it compiled successfully. This is com dll which is working fine in 32 bit. what should i do now? Regards, Subramanyeswari
-
Hi, I run the program as administrator. Then I tried compiling solution in the vista 64it. It gave “error PRJ0019: A tool returned an error code from "Performing registration"”. When I comment the following code
STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
// registers object, typelib and all interfaces in typelib
return _Module.RegisterServer(TRUE); //this is what I commented
return TRUE}
it compiled successfully. This is com dll which is working fine in 32 bit. what should i do now? Regards, Subramanyeswari
This could be some dependency issue. Check the dependecy of the DLLs/components associated with this COM DLL and ensure that it's built using 64 bit environment. Check with Dependency Walker[^]tool ( 64 bit version is available). Also try manually using regsvr
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
-
This could be some dependency issue. Check the dependecy of the DLLs/components associated with this COM DLL and ensure that it's built using 64 bit environment. Check with Dependency Walker[^]tool ( 64 bit version is available). Also try manually using regsvr
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
Hi, Thanks for your suggestion. I ran dependency walker in 2003 64 bit for my dll. it displayed two errors in the following dlls DEVMGR.DLL DWMAPI.DLL. it says "error opening file". Don't we have these dll's along with 64 bit 2003 os? Regards
-
Hi, Thanks for your suggestion. I ran dependency walker in 2003 64 bit for my dll. it displayed two errors in the following dlls DEVMGR.DLL DWMAPI.DLL. it says "error opening file". Don't we have these dll's along with 64 bit 2003 os? Regards
I don't know about DWMAPI.DLL but the other one should be there in the system folder. Do one thing, in the 32 bit system, try to track down, from where these files are getting resolved using depends. Then you can try the same thing in 64-bit environment also
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
-
I don't know about DWMAPI.DLL but the other one should be there in the system folder. Do one thing, in the 32 bit system, try to track down, from where these files are getting resolved using depends. Then you can try the same thing in 64-bit environment also
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
thanks.. i will do that now.
-
I don't know about DWMAPI.DLL but the other one should be there in the system folder. Do one thing, in the 32 bit system, try to track down, from where these files are getting resolved using depends. Then you can try the same thing in 64-bit environment also
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
Hi Sarath, I created the application by following the below link http://www.codeproject.com/KB/shell/shellextguide1.aspx?fid=519&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2469014#modifyingmenu[^] but the same is not working in my 64 bit windows 2003 server. How to migrate this application? Regards
-
Hi Sarath, I created the application by following the below link http://www.codeproject.com/KB/shell/shellextguide1.aspx?fid=519&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2469014#modifyingmenu[^] but the same is not working in my 64 bit windows 2003 server. How to migrate this application? Regards
I can't figure out what's really happening there. The IContextMenu inteface should work well with your application. Have properly set set _WIN32_WINNT and WINVER macros? According to your target OS? Using the Windows Headers[^]
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
-
I can't figure out what's really happening there. The IContextMenu inteface should work well with your application. Have properly set set _WIN32_WINNT and WINVER macros? According to your target OS? Using the Windows Headers[^]
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
is this the following code that i have to make in stdafx.h
#ifndef _WIN32_WINNT NTDDI_VERSION
#define _WIN32_WINNT NTDDI_VISTASP1
#endif#ifndef _WIN32_IE
#define _WIN32_IE 0x0700
#endifafter making the above change i am getting the following error error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h it is failing here #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1)) #error _WIN32_WINNT settings conflicts with _WIN32_IE setting #endif I am working on vistasp1 what could be the problem Regards
modified on Friday, February 13, 2009 10:22 AM
-
is this the following code that i have to make in stdafx.h
#ifndef _WIN32_WINNT NTDDI_VERSION
#define _WIN32_WINNT NTDDI_VISTASP1
#endif#ifndef _WIN32_IE
#define _WIN32_IE 0x0700
#endifafter making the above change i am getting the following error error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting c:\program files\microsoft sdks\windows\v6.0a\include\sdkddkver.h it is failing here #if ((_WIN32_WINNT < _WIN32_WINNT_WIN2K) && (_WIN32_IE > _WIN32_IE_IE60SP1)) #error _WIN32_WINNT settings conflicts with _WIN32_IE setting #endif I am working on vistasp1 what could be the problem Regards
modified on Friday, February 13, 2009 10:22 AM
I am also facing same issue...I have ported my activex plugin to 64bit by compiling with x64. it has created .ocx file as well as .dll file. Created cab and inf file to install my activex plugin. When i install it crashes. I ran dependency walker on .ocx file it says two dlls not found... devmgr.dll dwmapi.dll please let me know how to resolve....
-
Can't you debug the code and see what's happening? Following topics can put some light on your issue. Wow64[^] Converting 32-bit Applications Into 64-bit Applications: Things to Consider [^] Porting your program[^] but it poorly documented I think...
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
Hi, TO run a web application with 32bit dll in an 64 bit server, just in the IIS, "enable 32-bit application" to true for the application pool. This seting will work almost all servers expect SBS server.