由买买提看人间百态

topics

全部话题 - 话题: dll
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
b*******y
发帖数: 1240
1
来自主题: Programming版 - 不同程序之间dll的调用?
我原来有一个程序,自己有个dll
我想把程序的一部分拷贝到我自己的程序当中,那dll文件该怎么办
b***i
发帖数: 3043
2
你这个是c++ name mangling导致的问题, 你看看 dll里面到底是什么名字
然后,这个问题具体叫inheritance across dll border, linux很容易解决这个问题。
微软的,就不清楚了。
你试试一般extern "C"放函数前防止mangle。做好了告诉我们一声。
另外,linker option /Force:UnRESOLVED也要试试
h**********c
发帖数: 4120
3
I assume boost is something like Java.
So you
class NewRun implements Runnable {
NewRun( ... pass parameter){}
run () {
do sync and call your DLL.
}
};
That is the most exciting part auf OO programming.
h**********c
发帖数: 4120
4
Sorry, no example,
But, what is the difference of start your own threads, call the DLLs, sync
the threads yourself.
Take some time Z-turn, Z-turn.
b*d
发帖数: 75
5
if interprocess, it may be ok.
if interthread, mission impossible. WinGW and VS are totally incompatible,
you won't be able to link your code with the two dll's.
b***i
发帖数: 3043
6
那就是说你同步部分写错了。很大的可能是你的那个semaphore根本就是生成了两个不
同的变量。
你要详细说一下,你是怎么同步的。你是把semaphore的指针传递给dll吗?
x**n
发帖数: 1055
7
是,基本上就是这样一个结构,至于同步时信号传递先后关系暂时不用考虑,如果是同
一个编译器编译的两个DLL,用boost.thread毫无问题,但是不同编译器产生的,就不行
了,呵呵
e********y
发帖数: 66
8
来自主题: Programming版 - windows下mfc,dll, etc.
如果这样做的话,能仔细讲讲怎么能对其中的所有类都进行测试了吗?
我也试着用另外一个project直接调用a.dll,但是这个a.dll本身没有export所有的类
,这样链接就有错误了。

class
x****u
发帖数: 44466
9
来自主题: Programming版 - windows下mfc,dll, etc.
你这个dll是activex,注册后应该用activex的方法调用。一般来说向导生成的都有tlb
,import这个含有tlb的dll,vc可以帮你生成智能指针类。
m***x
发帖数: 492
10
来自主题: Programming版 - how to export a class in a namespace in DLL?
Using VS2010, a class can be exported from DLL. the client can access it
without problem. when put it into a namespace, the client program has link
error: unsolved external objs...
Any idea? thanks
the dll header file is:
#pragma once
#ifndef ECONOMICS_API_DCL
#ifdef ECONOMICS_EXPORTS
#define ECONOMICS_API_DCL __declspec(dllexport)
#else
#define ECONOMICS_API_DCL __declspec(dllimport)
#endif
#endif
namespace Economics
{
class ECONOMICS_API_DCL InterestRate
{
publi... 阅读全帖
m***x
发帖数: 492
11
来自主题: Programming版 - how to export a class in a namespace in DLL?
without adding dll project as reference, the client compiled andrun well
without namespace.
if i deliver the dll, the client has no way to add project reference. that
is concern.
dont know what trick vs2010 made when
adding project reference.

reference.
x****u
发帖数: 44466
12
因为DLL B里面创建的对象,DLL A也许无法正确释放。
t****t
发帖数: 6806
13
如果你使用私有的C库, 本来就不应该要求别人来释放, 这属于智商的问题. 而且这个
问题跟DLL替换也没有关系, 就算只用一个版本的DLL, 还是有同样的问题, 跟改没改.h
无关.
t****t
发帖数: 6806
14
两个不同来源的程序(DLL或者随便什么)通信, 本来就需要协议. 说.h不变就不需重新
编译当然是有一定common ground的. 你举的例子(cross dll boundary allocation)就
算是第一版也不会work, 跟我说的是两回事.
这就好象我说人要吃饭才能活下去, 你非要说人还得喝水才能, 那不是抬杠么.
x****u
发帖数: 44466
15
因为DLL B里面创建的对象,DLL A也许无法正确释放。
t****t
发帖数: 6806
16
如果你使用私有的C库, 本来就不应该要求别人来释放, 这属于智商的问题. 而且这个
问题跟DLL替换也没有关系, 就算只用一个版本的DLL, 还是有同样的问题, 跟改没改.h
无关.
t****t
发帖数: 6806
17
两个不同来源的程序(DLL或者随便什么)通信, 本来就需要协议. 说.h不变就不需重新
编译当然是有一定common ground的. 你举的例子(cross dll boundary allocation)就
算是第一版也不会work, 跟我说的是两回事.
这就好象我说人要吃饭才能活下去, 你非要说人还得喝水才能, 那不是抬杠么.
c****e
发帖数: 1453
18
It's tricky,depends on the how c runtime is linked. If I remember correctly,
each dll with statically linked has its own heap. Otherwise they share when
the runtime version is the same. Exe and dll have different heap. It's
common issue to allocate in one heap while delete in another module which
causes memory corruption.
Search engine is your best friend on details.
x****u
发帖数: 44466
19
使用同一个DLL一样很微妙,因为DLL的入口是有CRT的函数的,可能会分配不同的数据
结构。

correctly,
when
x*******e
发帖数: 1
20
【 以下文字转载自 Software 讨论区,原文如下 】
发信人: xiaohorse (小马), 信区: Software
标 题: Help: "csrsrv.dll" 快让我发疯了!
发信站: The unknown SPACE (Wed Aug 6 18:34:50 2003) WWW-POST
在给windows2000打service package 2 的时候,
安装中总出现 "Setup can not copy the file csrsrv.dll"
搞不清楚怎么回事,太气人了!
中间还因此死机,并且修补了windows2000
请大家帮助!
w***y
发帖数: 97
21
来自主题: Security版 - 紧急求救:如何清除LMMIB20.DLL?
紧急求救:如何清除LMMIB20.DLL?
大侠!
电脑里的 LMMIB20.DLL 用DELE KEY 不能删除。 怎麽办?在REGISTRY 里怎麽找到?
急!!!
r*****k
发帖数: 9
22
来自主题: Security版 - 紧急求救:如何清除LMMIB20.DLL?
1. Click Start and then Run
2. Type "regedit", then click OK
3. In the "Registry Editor" window, pick Find from Edit pulldown menu
4. In the pop up "Find" dialog box, type "LMMIB20.DLL" , click "Find Next" to
find the relevant entry, and delete it.
5. Close "Registry Editor"
6. Click Start and then Search" and then For Files or Folders ...
7. Type "LMMIB20.DLL" again and set Look in to be "Local Harddrives "
8. Delete any relevant entries.
k******r
发帖数: 2300
23
来自主题: Security版 - How to delete efcab.dll?
I couldn't delete this infected dll because it is used by another process. Any
one please tell me which process is using efcab.dll? How to delete it? Many
thanks.
o******h
发帖数: 17
24
在网上查到可以手动清除
然后第一步ren CnsMin.dll CnsDel.dll我都没法完成呢。。
所以启动以后还是没法删除注册表里的东西。。
大虾给看看,另外如何防止阿。。。
r**m
发帖数: 1825
25
来自主题: Software版 - 怎么删除该死的病毒dll
对付winantivirus这个spyware,现在剩下两个在c:\windows\system32 下的dll file
死活删不掉,
试了 Hijack this 和 Killbox 的 Delete after reboot, 也都在安全模式下操作,但
这两个dll 好像load更早,
现在我已经黔驴技穷了,请大侠支高招,
也试过用Knoppix CD启动到Linux,再去acess C: drive, 但是删不了,不知道是不是权
限的问题
W*W
发帖数: 293
26
来自主题: Software版 - 中了ovlx.dll病毒怎么办? (转载)
【 以下文字转载自 Hardware 讨论区 】
发信人: WtW (wtw), 信区: Hardware
标 题: 中了ovlx.dll病毒怎么办?
发信站: BBS 未名空间站 (Wed Jul 9 18:31:55 2008)
装了norton,但还是出现ovlx.dll的报告,norton的程序也crash了。看来没法用
norton除了,有什么其他办法吗?
m***l
发帖数: 1846
27
来自主题: Software版 - 求教牛人:winxp.dll problem
Windows里有这个dll吗?明显是病毒吧
用命令行:
tasklist /FI "MODULES eq winxp.dll"
看看哪个进程在用?
s*****s
发帖数: 101
28
来自主题: Software版 - 求教牛人:winxp.dll problem
多谢回复。
试了一下这个命令,MS-DOS窗口只是飞速闪了一下,啥也没看清。
开机时倒是有个错误提示
“run.dll
Error loading c:\windows\winxp.dll
The specific module could not be found”
这是什么意思呀?
不好意思,我是个菜鸟。
j***y
发帖数: 2074
29
来自主题: Software版 - 无法删除ultroiso的一个dll文件
刚才回错了,回到你的个人信箱里面去了。
是这样的,用process explorer发现,这个dll是被explorer使用的。杀掉explorer这
个进程之后,桌面空白。
没奈何,只好重启。
搞不懂为什么ultraiso的dll怎么会被explorer使用的,真奇怪。而且ultraiso本身已
经被卸载了牙。
f********h
发帖数: 149
30
来自主题: Unix版 - dll 文件生成求助
dll is windowz invention. in unix it is called shared lib.
VC should be able to output dll for windows.
s*******d
发帖数: 109
31
来自主题: Windows版 - Re: ws2help.dll删不掉怎么办?
系统重要的DLL文件是被保护的.删掉系统自己会恢复的.
先把DLLCACHE文件夹里的需要覆盖的DLL文件改名, WINDOWS就没法自动恢复了.
C*N
发帖数: 1792
32
来自主题: Windows版 - 要写 Visual C 下的 DLL 东西
要写 Visual C 下的 DLL 东西

一些东西想写成 DLL
不是MFC的那种,只是算法
从来没有写过这个,
哪位介绍一本书,最好能有E-Book的那种
多谢!
f*r
发帖数: 1
33
可能是中了winfixer病毒,
ddcay.dll in windows/system32 directory,
it is loaded very early in the startup process, used by winlogon process.
I have to kill the winlogon process before delete the ddcay.dll.
But if I kill winlogon process, the computer can't be start up.
Does anybody have a solution?
Thanks!
a********5
发帖数: 2
34
来自主题: Windows版 - 为什么pplive找不到 msvcp60.dll?
I was not able to install pplive on a brand new windows 2000 pro machine. It
's saying can't find msvcp60.dll
what is msvcp60.dll anyway? Can I just download one from other server or
website and place it under system32?
Thanks!
r****y
发帖数: 26819
35
来自主题: Windows版 - 开机时lgksg.dll拒绝访问
用别的软件光盘,比如ERD Commander 2005, 启动系统,进去删除或者move 这个dll。
另外要检查一下windows service。有的时候会用一些Windows service来保护dll。
在windows下杀毒,传统的就这几招。
r******h
发帖数: 809
36
来自主题: Windows版 - 开机时lgksg.dll拒绝访问
多谢楼上两位。
那个dll文件删除了,现在开机的时候又有一个新错误
“lgksg.dll,specific module can not be found”
这个应该怎么处理啊?多谢~
s******y
发帖数: 28562
37
来自主题: Windows版 - 求助怎么编写一个dll file?
我的电脑启动时总是说几个dll file找不到,估计是当时卸装一些软件的时候
没弄干净。我现在打算干脆自己写几个同样名字的dll 文件放进去,就让它什么
也不做就好了。问题是怎么写? 用什么编写软件?我只想写个简单的空函数,
谁能帮我一下? 谢谢!!!
p**v
发帖数: 853
38
【 以下文字转载自 Hardware 讨论区 】
发信人: parv (EHL), 信区: Hardware
标 题: hal.dll problem, install xp from usb drive
发信站: BBS 未名空间站 (Thu Feb 5 14:46:24 2009)
Can boot from usb, copied installation files (took one hour or so).
Then, I got this error:
Windows could not start because the following file is missing or corrupt:
\system31\hal.dll
Please re-install a copy of the above file.
I remember I saw someone mentioning this "hal" problem but could not
remember the solution.
Could anyone give m
e*r
发帖数: 1121
39
病毒dll文件被删除了之后,每次开机都会蹦出个窗口,说找不到那个文件。我在注册
表里发现多个注册表值都需要这个文件,可是这些注册标志都无法更改了,该了之后再
看还是没变化。请问有谁知道如何unregister 已经删除的dll文件么?谢谢。
e*r
发帖数: 1121
40
那个dll文件已经被删除了,没办法用你说的这个命令。
regsvr32 /u 只适合对还存在的dll文件进行unregister.
不过还是谢谢。
a**e
发帖数: 5794
41
来自主题: Windows版 - 无法删除ultroiso的一个dll文件
我多次遇到升级某软件时,旧版本dll正在使用不可以覆盖。只好把
它改名才能装上新dll。重启后旧的就可以删除了。
b******e
发帖数: 671
42
来自主题: Computation版 - How to build a C DLL from .m file?
How to build a C DLL from m file, and call the DLL
from a C project? I am using Matlab 7, Matlab
compiler 4.0 and Visual Studio 6.0. The example
program in Matlab 7.0 does not work.
Thanks.
J******d
发帖数: 506
43
来自主题: Quant版 - 用Visual Studio 2008 debug DLL.
请教大家一个问题。
我最近用visual studio 2008 debug一个自己写的很小很小的dll. 在Excel里面用这个
dll什么问题都没有。就是用visual studio debug启动Excel的时候总要弹出
Debug Informaiton for "EXCEL.EXE" cannot be found. Symbols not loaded...
基本情形和这个人问的一致:
http://www.wilmott.com/messageview.cfm?catid=10&threadid=69512
但是我不知道怎么解决这个问题。也看不明白wilmott上面说的是什么意思。
请赐教,感谢!
r**u
发帖数: 1567
44
我感觉windows的dll就相当于linux下的.so文件吧,linux下有我提到的这个内存分配
问题么?

HeapFree。
x******g
发帖数: 461
45
启动 C:\PROGRA~1\thinkpad\UTILIT~1\PWMTR32V.DLL时出现问题
启动程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序
日志,或使用命令行sxstrace.exe工具
开机总出现这个
怎么弄
谢谢
f***6
发帖数: 32
46
试一试放到这个下面:
...\firefox\App\firefox\plugins
或者直接拖动dll文件到firefox窗口
b****p
发帖数: 3293
47
来自主题: Database版 - SQL Server 7.0 problem with mdt2g.dll
I copied mdt2g.dll to windows/system, it didn' work.
Now I believe richwin is the cause of the problem. I can
install and run SQL server correctly in a computer without
richwin installed. But the error occurred when I ran the
program in a computer with richwin installed and uninstalled
later. I mean, uninstallation didn't cause the system go
back to the original condition. The problem is I don't know
which files Richwin modified even after uninstallation.
Any hints?
h****e
发帖数: 204
48
来自主题: Database版 - sqllib80.dll
ft, search in google mah, say "download sqllib80.dll"
j*****n
发帖数: 1781
j*****n
发帖数: 1781
50
来自主题: Database版 - 如何在 SQL script 里面调用dll?
CLR does not support non-Com dll.

call
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)