由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - c++设计一问:如何动态地调用不同的算法的dll ?
相关主题
一个C++ DLL 在VBA中调用的问题how to resolve this problem?
问个C#调用unmanaged C++ DLL的问题C# 里用JAVA API
C#程序调用Windows C++ DLL的问题动态连接库问题: 继承一个DLL导出的类
dll求救how to export a class in a namespace in DLL?
OpenMP能编译产生DLL吗?Windows下多个DLL之间memory allocation问题
问一下,DLL里面怎么调用外部类啊?为什么我的visual C++ 找不到 "Stdafx.h" ?
求助个dll调用的问题问个DLL调用问题
VBA能不能调用其他语言写的库/函数?调用win32 DLL的问题
相关话题的讨论汇总
话题: dll话题: different话题: dlls话题: c++
进入Programming版参与讨论
1 (共1页)
s*****w
发帖数: 1527
1
want to implement this in c++,
user can choose different compression DLLs,
they can even come up with their own DLL,
now my code need to be genetic enough that it can handle all
these different compressions, based on the DLL user puts in the command line.
the similar compression APIs may have different number/order of arguments
for different DLLs.
How can i handle this ?
1000 thanks !
a****l
发帖数: 8211
2
I don't think it is a good idea. think again if you really need to do in
this way. Surely you can do a program in this way, but most probably you
could come up with an easier way that does the same thing.
By the way, calling DLL has nothing to do with C++. Don't link every
question to C++. It also has nothing to do with C.

line.

【在 s*****w 的大作中提到】
: want to implement this in c++,
: user can choose different compression DLLs,
: they can even come up with their own DLL,
: now my code need to be genetic enough that it can handle all
: these different compressions, based on the DLL user puts in the command line.
: the similar compression APIs may have different number/order of arguments
: for different DLLs.
: How can i handle this ?
: 1000 thanks !

k***r
发帖数: 4260
3
Your code can't be all generic. Just try to wrap
the differences in a file and expose a common interface
from that file.

command line.

【在 s*****w 的大作中提到】
: want to implement this in c++,
: user can choose different compression DLLs,
: they can even come up with their own DLL,
: now my code need to be genetic enough that it can handle all
: these different compressions, based on the DLL user puts in the command line.
: the similar compression APIs may have different number/order of arguments
: for different DLLs.
: How can i handle this ?
: 1000 thanks !

p***m
发帖数: 387
4
#include

line.

【在 s*****w 的大作中提到】
: want to implement this in c++,
: user can choose different compression DLLs,
: they can even come up with their own DLL,
: now my code need to be genetic enough that it can handle all
: these different compressions, based on the DLL user puts in the command line.
: the similar compression APIs may have different number/order of arguments
: for different DLLs.
: How can i handle this ?
: 1000 thanks !

t****n
发帖数: 324
5
right.

【在 p***m 的大作中提到】
: #include
:
: line.

b***i
发帖数: 3043
6
为啥不能统一参数形式呢?
比如,都是用某个类的指针。

line.

【在 s*****w 的大作中提到】
: want to implement this in c++,
: user can choose different compression DLLs,
: they can even come up with their own DLL,
: now my code need to be genetic enough that it can handle all
: these different compressions, based on the DLL user puts in the command line.
: the similar compression APIs may have different number/order of arguments
: for different DLLs.
: How can i handle this ?
: 1000 thanks !

1 (共1页)
进入Programming版参与讨论
相关主题
调用win32 DLL的问题OpenMP能编译产生DLL吗?
visual C++链接不同的第三方library的问题问一下,DLL里面怎么调用外部类啊?
How to run existing C files using Visual C++求助个dll调用的问题
如何提取一个executable的所有dependency?VBA能不能调用其他语言写的库/函数?
一个C++ DLL 在VBA中调用的问题how to resolve this problem?
问个C#调用unmanaged C++ DLL的问题C# 里用JAVA API
C#程序调用Windows C++ DLL的问题动态连接库问题: 继承一个DLL导出的类
dll求救how to export a class in a namespace in DLL?
相关话题的讨论汇总
话题: dll话题: different话题: dlls话题: c++