《VC++技术内幕》P430
Windows将使用下面的搜索序列定为dll:
1、包涵EXE文件的目录
2、进程当前的目录
3、Windows系统目录
4、Windows目录
5、在Path环境变量里列出的目录。我的理解是如果程序文件在C:\code\run.exe
则
1、包涵EXE文件的目录 C:\code\
2、进程当前的目录 ?????
3、Windows系统目录 C:\windows\system32 还是C:\windows\system
4、Windows目录 C:\windows
5、在Path环境变量里列出的目录。 ...........请问1、3、4我写的对吗,2怎么理解?C:\windows\system32和C:\windows\system中的dll文件有什么区别。我的系统是winxp
Windows将使用下面的搜索序列定为dll:
1、包涵EXE文件的目录
2、进程当前的目录
3、Windows系统目录
4、Windows目录
5、在Path环境变量里列出的目录。我的理解是如果程序文件在C:\code\run.exe
则
1、包涵EXE文件的目录 C:\code\
2、进程当前的目录 ?????
3、Windows系统目录 C:\windows\system32 还是C:\windows\system
4、Windows目录 C:\windows
5、在Path环境变量里列出的目录。 ...........请问1、3、4我写的对吗,2怎么理解?C:\windows\system32和C:\windows\system中的dll文件有什么区别。我的系统是winxp
解决方案 »
- CoTaskMemAlloc和通过IMalloc分配Com组建内存,有什么区别么?
- 关于对话框分割问题!
- 如何用matlab在三维空间中画一倾斜圆柱 最好有代码
- I want to know about DLLMain() .what is it function ? How can we use it?
- 我想通过编程方法取得WIN2000性能监视器计数器的值,应该怎么做?
- *_*_* 一个很急的问题(300分), 关于对话框的滚动条的属性设置问题 (一)*_*_*
- 寻求读取和设置 CBitmap 对象某一点的颜色的好方法
- 谁知道Flash如何与Vc进行交互啊?
- 显示AVI动画的简单问题 ?
- 高分请教: 关于DDX_Control(pDX, IDC_TDBGRID1, m_grid)问题.
- 拦截封包问题..
- 有关控件开发好书希望大家介绍一下啊!
2. 当前目录,可以用GetCurrentDirectory看看
3. 系统目录在环境变量中有指定,是system32。可以用%system%引用环境变量得到
4. 环境变量中也有指定,一般就是c:\windows或者c:\winnt
5. 到命令行下,敲击path并回车命令可以看到path定义的路径;键入path=c:……可以设定路径
是对不同系统说的,xp为system32,9x为system1、The directory from which the application loaded.
2、The current directory.
Windows XP: If HKLM\System\CurrentControlSet\Control\SessionManager\SafeDllSearchMode is 1, the current directory is the last directory searched. The default value is 0. 3、The Windows system directory. Use the GetSystemDirectory function to get the path of this directory.
Windows NT/2000/XP: The name of this directory is System32. Windows NT/2000/XP: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System.
4、The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
5、The directories that are listed in the PATH environment variable.