משיב מוביל
snmp extension dll ignoring under 64bit

שאלה
-
I have written a 32 bit SNMP extension agent dll in native C++ (since you have to write it this way).
This works on a Windows XP machine and a Windows 2003 server machine without any problems.
I have now installed it on a machine running Windows Server 2008 i.e. 64bit. (windows 7 for clients)
I have added my SNMP agent to the following registry location
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SNMP\Parameters\ExtensionAgents
My entry under this key references another registry location which has a Pathname entry which is set to "d:\test\PP.PixelPromo.Support.SnmpAgent.dll" as a REG_EXPAND_SZ type (as opposed to a REG_SZ type).
Every time that I start the SNMP service I get the following error in the event log:
The SNMP Service is ignoring extension agent dll "d:\test\PP.PixelPromo.Support.SnmpAgent.dll" because it is missing or misconfigured.
I have removed all the code from the SNMP agent dll except the 4 main entry points and even this gives me the error.
I cannot see anything wrong with the settings that I have made in the registry. This is obviously a 32 bit/64 bit issue but I cannot see what the issue is.
Can you help with this problem?
Thanks
תשובות
-
בעיקרון הבעיה היא שה-DLL הוא 32 ביט במערכת של 64 ביט.
מה שצריך לעשות זה לקמפל את הפרויקט ל-64 ביט. אפשר לעשות את זה ע"י הליכה ל-configuration manager, לבחור New configuration, ואז לבחור x64 ואז לבנות את הפרויקט בקונפיגורציה הזו.
עם קצת מזל זה יעבוד.
פבל
Pavel Yosifovich
- סומן כתשובה על-ידי Eran Sharvit יום רביעי 04 דצמבר 2013 11:52
כל התגובות
-
-
בעיקרון הבעיה היא שה-DLL הוא 32 ביט במערכת של 64 ביט.
מה שצריך לעשות זה לקמפל את הפרויקט ל-64 ביט. אפשר לעשות את זה ע"י הליכה ל-configuration manager, לבחור New configuration, ואז לבחור x64 ואז לבנות את הפרויקט בקונפיגורציה הזו.
עם קצת מזל זה יעבוד.
פבל
Pavel Yosifovich
- סומן כתשובה על-ידי Eran Sharvit יום רביעי 04 דצמבר 2013 11:52
-