随笔分类 - windows编程
摘要:有的时候在程序运行时候,会找不到XXDLL的YY函数入口点第一种可能:函数在写入口点的时候,名字不对,大小写写错或者什么的。第二种:DLL查找顺序不对实际上文件句柄查找顺序:让我们顺路看看程序加载一个DLL的查找顺序吧。我用程序去引用一个根本不存在的dll,然后用filemon去看文件句柄的查找顺序:D:\PersonWork\ForTest\ConsoleApplication1\bin\Debug\ironsoftEncryp.dllD:\PersonWork\ForTest\ConsoleApplication1\bin\Debug\ironsoftEncryp.dllD:\Person
阅读全文
posted @ 2012-02-04 14:25
RINA
摘要:using System;using System.Windows.Forms;//添加下引用using System.Collections.Generic;using System.Linq;using System.Threading;using System.Runtime.InteropServices;/*windows API的调用*/namespace monse_click{ class Program { [DllImportAttribute("user32.dll",EntryPoint="SetCursorPos")]//set
阅读全文
posted @ 2012-02-04 13:36
RINA
浙公网安备 33010602011771号