i have registered a COM DLL (compiled in .net 3.5) as ,
1)regasm ABC.dll
2)regasm ABC.dll / regfile:ABC.reg
3)regasm ABC.dll /tlb:ABC.tlb
i want to call a function from the DLL to my Dexterity application .(same code in AX is given bellow)
A dll is getting called in AX as,
------------------------------------------------------------------START----
x=7;
dll winapidll=new dll("ABC.dll");
dllfunction function=new dllfunction(WinApiDLL,'_Distributeamount@40');
Function.args(extTypes::DWord,extTypes::String,extTypes::String,extTypes::String,extTypes::String,extTypes::Double,
extTypes::String,extTypes::String,extTypes::String );
Function.returns(extTypes::DWord);
x=Function.call(this.hwnd(),prm1,prm2,prm3,prm4,prm5,prm6,prm7,prm8);
this.bold(1);
return x;
---------------------END------------------
how can i use the same function in dexterity.Help me to solve this.
regards,
*This post is locked for comments
hi Gomez,
thanks a lot,
i am able to execute it,but in my case there is a .cpp file in the dll, which is having mathod as,
(method is not under any class)
-----
#include files.....
CwinApp app;
////Exported functions
extern "C" _(dllexport)
BOOL CALLBACK Distributeamount(Param..,.,.,.,.,.)
{
//body of the function
}
-----
same function is used in AX also as i shown.but i am facing problem in calling the function DEX.
after registering DLL do i need to check it in the windows\assembly folder also?
regards,
nilotpal
Nilo,
You asked this same question a few weeks aback. This time take a look at my article Building a COM Interop Assembly to use with Microsoft Dexterity for more information.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156