S
Sergei
I ran into this problem. I needed to create an entry for access to a
library
of functions that are "extern C", and I just can't find the right syntax, if
it exists at all ( I am using MSVC 6.0-7.1).. Note, that basically I don't
need an "extern C" linkage,
I just need to define a type to cast a resolved function address..
Any ideas?
Basically , I need something like this..
template <typename T0, typename T1, typename T2, typename T3, typename T4,
typename T5>
class FuncCall
{
FuncCall(string& aname):name(aname){}
private:
extern "C" typedef T0 (*function_ptr) (T1 t1, T2 t2, T3 t3, T4 t4, T5
t5 );
string name;
public:
bool call()
{
function_ptr func = (function_ptr) GetProcAddress(name);
.......
}
};
Thanks,
Sergei
library
of functions that are "extern C", and I just can't find the right syntax, if
it exists at all ( I am using MSVC 6.0-7.1).. Note, that basically I don't
need an "extern C" linkage,
I just need to define a type to cast a resolved function address..
Any ideas?
Basically , I need something like this..
template <typename T0, typename T1, typename T2, typename T3, typename T4,
typename T5>
class FuncCall
{
FuncCall(string& aname):name(aname){}
private:
extern "C" typedef T0 (*function_ptr) (T1 t1, T2 t2, T3 t3, T4 t4, T5
t5 );
string name;
public:
bool call()
{
function_ptr func = (function_ptr) GetProcAddress(name);
.......
}
};
Thanks,
Sergei