M
merco
hi, i have a EVc DLL with a simple method:
PROVADLL_API int fnProvaDll(void)
{
return 42;
}
i'm trying to call it from with vb with this declare...
Declare Function fnProvaDLL Lib "ProvaDLL.dll" Alias
"?fnProvaDll@@YAHXZ" () As Int32
I use that alias because with "dumpbin" i see:
Section contains the following exports for ProvaDll.dll
00000000 characteristics
4385B9E1 time date stamp Thu Nov 24 14:02:25 2005
0.00 version
1 ordinal base
5 number of functions
5 number of names
ordinal hint RVA name
1 0 00001054 ?COMClose@@YAXXZ
2 1 00001010 ?COMOpen@@YAPAJPAG@Z
3 2 00001080 ?Echo@@YAPAGPAG@Z
4 3 00001008 ?fnProvaDll@@YAHXZ
5 4 00003084 ?nProvaDll@@3HA
but i always get a "NotSupportedException" even if i use the ordinal
"#4".
The same DLL works OK with a sample test program written in EVc.
Some suggestions ?
PROVADLL_API int fnProvaDll(void)
{
return 42;
}
i'm trying to call it from with vb with this declare...
Declare Function fnProvaDLL Lib "ProvaDLL.dll" Alias
"?fnProvaDll@@YAHXZ" () As Int32
I use that alias because with "dumpbin" i see:
Section contains the following exports for ProvaDll.dll
00000000 characteristics
4385B9E1 time date stamp Thu Nov 24 14:02:25 2005
0.00 version
1 ordinal base
5 number of functions
5 number of names
ordinal hint RVA name
1 0 00001054 ?COMClose@@YAXXZ
2 1 00001010 ?COMOpen@@YAPAJPAG@Z
3 2 00001080 ?Echo@@YAPAGPAG@Z
4 3 00001008 ?fnProvaDll@@YAHXZ
5 4 00003084 ?nProvaDll@@3HA
but i always get a "NotSupportedException" even if i use the ordinal
"#4".
The same DLL works OK with a sample test program written in EVc.
Some suggestions ?