Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Winforms 如何在64位Windows 7上的Visual Studio 2008设计器中加载SciLexer.dll?_Winforms_Design Time_Scintilla_Scilexer.dll - Fatal编程技术网

Winforms 如何在64位Windows 7上的Visual Studio 2008设计器中加载SciLexer.dll?

Winforms 如何在64位Windows 7上的Visual Studio 2008设计器中加载SciLexer.dll?,winforms,design-time,scintilla,scilexer.dll,Winforms,Design Time,Scintilla,Scilexer.dll,我们使用Scanitlla.NET(1.7)组件开发了一个WinForm应用程序,该组件使用SciLexer.dll(非托管)。在运行时,我们分发32位和64位SciLexer.dll,并在应用程序启动时加载正确的SciLexer.dll(一切正常) 在我们的新开发环境(Windows 7 64位)上,我们的所有解决方案都可以正常构建和运行,但WinForm visual designer不会加载使用闪烁体.NET的表单/控件,因为它无法加载正确的SciLexer.dll: Window cla

我们使用Scanitlla.NET(1.7)组件开发了一个WinForm应用程序,该组件使用SciLexer.dll(非托管)。在运行时,我们分发32位和64位SciLexer.dll,并在应用程序启动时加载正确的SciLexer.dll(一切正常)

在我们的新开发环境(Windows 7 64位)上,我们的所有解决方案都可以正常构建和运行,但WinForm visual designer不会加载使用闪烁体.NET的表单/控件,因为它无法加载正确的SciLexer.dll:

Window class name is not valid. 

at System.Windows.Forms.NativeWindow.WindowClass.RegisterClass()
at System.Windows.Forms.NativeWindow.WindowClass.Create(String className, Int32 classStyle)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at Scintilla.ScintillaControl.SendMessageDirect(UInt32 msg, IntPtr wParam, IntPtr lParam)
at Scintilla.ScintillaControl.SendMessageDirect(UInt32 msg)
at Scintilla.ScintillaControl.get_CodePage()
at Scintilla.ScintillaControl..ctor(String sciLexerDllName)
at Scintilla.ScintillaControl..ctor() 
VisualStudio2008在哪里查找非托管库?我尝试将64位SciLexer.dll放在SysWOW64中,放在引用闪烁体net.dll的文件夹中,在PATH系统变量中添加文件夹,在项目中添加文件夹引用,但我一直遇到此错误


感谢您的帮助

好吧,我明白了:我是64位系统上的一个十足的noob,我还以为SysWOW64文件夹是为64位库准备的:)


将32位SciLexer.dll放在SysWOW64中效果非常好。

好吧,我想起来了:我是64位系统上的不速之客,我还以为SysWOW64文件夹是为64位库准备的:)


将32位SciLexer.dll放入SysWOW64中非常有效。

刚刚收到相同的错误。您可以将这些DLL的位置添加到PATH环境变量中(不要忘记重新启动VS以使更改生效),而不是弄乱操作系统文件夹。

刚刚收到相同的错误。您可以将这些DLL的位置添加到PATH环境变量中(不要忘记重新启动VS以使更改生效),而不是弄乱OS文件夹