Hi,
I am trying to call a DLL from within Axapta.I have over-ridden the WinAPI class for the same and added a new method with the following code:
static int putDataInQueue(CustTable varCustTable)
{

    DLL  _winApiDLL     = new DLL('AxaptaDataDLL');
    DLLFunction _insertInQueue      = new DLLFunction(_winApiDLL, 'AxaptaData');
    _insertInQueue.returns(ExtTypes::DWord);
    _insertInQueue.arg(ExtTypes::String);
    if (_insertInQueue.call(varCustTable.Name,varCustTable.AccountNum,varCustTable.Address) == 0)
        return WinAPI::getLastError();
    return 0;
}
However,Axapta gives an error "Unable to Open DLL", and is not able to locate and identify the DLL.
Any help will be highly appreciated.
Regards,
Ayesha


---------------------------------
  Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now

[Non-text portions of this message have been removed]





Yahoo! Groups Links

Reply via email to