摘要: 有的时候在程序运行时候,会找不到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 阅读(7405) 评论(0) 推荐(1) 编辑
摘要: 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 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 给出一个随机数组,求里面连续数最大的 1 int main()//求出随机数组连续三个数中最大的 2 { //随机数 3 int get_rand(); 4 int max(int *p,int count); 5 int j=0; 6 int i=0; 7 int c=0; 8 srand(time(0)); 9 10 int a[10];11 int b[100];12 for( i=0;i<10;i++)13 a[i]=get_rand();14 for(i=0;i<9;i++)15 ... 阅读全文
posted @ 2012-02-04 11:13 RINA 阅读(389) 评论(0) 推荐(0) 编辑