y*h 发帖数: 107 | 1 under visual studio, I have a project which references two dlls.
Those two dlls share the same name. Let's say A.dll. So I rename one A.
dll to B.dll. The build still failed.
I found the dll signature inside B.dll is still A.dll. Does
anyone have idea how to bypass this name conflicting issue?
thanks | y*h 发帖数: 107 | 2 no one knows answer? or you couldn't understand my question?
A.
【在 y*h 的大作中提到】 : under visual studio, I have a project which references two dlls. : Those two dlls share the same name. Let's say A.dll. So I rename one A. : dll to B.dll. The build still failed. : I found the dll signature inside B.dll is still A.dll. Does : anyone have idea how to bypass this name conflicting issue? : thanks
| c**m 发帖数: 30 | 3 do you have source for the DLLs?
Instead of bind your exe to the DLLs, dynamically load the DLLs and lookup
symbols yourself. | y*h 发帖数: 107 | 4 我只有一个DLL的SOURCE, 另一个DLL没有.
怎么个dynamically load dll ?
【在 c**m 的大作中提到】 : do you have source for the DLLs? : Instead of bind your exe to the DLLs, dynamically load the DLLs and lookup : symbols yourself.
| y*h 发帖数: 107 | 5 另外, 两个DLL是这个样子的.
A.dll ---version: 1.1.5
A.dll ---version: 1.1.4
他们name相同, signature不一样.
build的时候只是有warning, 没有error.
我对UNIX比较熟, WINDOWS不了解. 我想知道,
如果把两个A.dll放到一个solution里面到底可不可以? 这个warning可不可以ignore?
| a******8 发帖数: 46 | 6 Try:
1) put them in different dir
2) change source code and build a new dll | c**m 发帖数: 30 | 7 I think I am crazy, but are you saying the two DLLs are the same code, but
just different versions?
You bind your exe to DLLs by linking it with the DLL's wrapper libs, so when
your application loads, the OS automatically loads the DLLs and maps them
into your application's memory space, but you don't have to link your exe
with the wrapper libs. You can load the DLLs into your memory space
yourself, and then use lookup to find the functions in the DLL.
Honestly I have no idea what you are doing
【在 y*h 的大作中提到】 : 另外, 两个DLL是这个样子的. : A.dll ---version: 1.1.5 : A.dll ---version: 1.1.4 : 他们name相同, signature不一样. : build的时候只是有warning, 没有error. : 我对UNIX比较熟, WINDOWS不了解. 我想知道, : 如果把两个A.dll放到一个solution里面到底可不可以? 这个warning可不可以ignore? :
|
|