Показать сообщение отдельно
Старый 18.10.2005, 08:53   #6  
velk is offline
velk
Участник
 
194 / 10 (1) +
Регистрация: 17.05.2004
!
static void Job10(Args _args)
{
DLL q1 = new DLL(Xinfo::directory(DirectoryType::INCLUDE)+'template\\kvl\\project1.dll');
DLLFunction f = new DLLFunction(q1, 'MyProc');
str s;
CustTable CustTable;
COM axaptaAppl;
COM axaptaCustTable;
;
axaptaAppl = new COM("AxaptaCOMConnector.Axapta");

axaptaAppl.logon("qwerty");

axaptaCustTable = axaptaAppl.CreateRecord("CustTable");
axaptaCustTable.ExecuteStmt("select CustTable");

f.returns(ExtTypes::Byte);
f.arg(ExtTypes::String,ExtTypes::String,ExtTypes::String,(axaptaCustTable));

try
{
s = f.call('qwerty','','',axaptaCustTable);
Здесь вываливается ошибка в несовместимости типов.....
}
catch(Exception::Error)
{
}

}

в DLL есть функция
PHP код:
function MyProc(usernamepass:pchar;report:pchar;_AxaptaQuery:IAxaptaRecord):booleanstdcall;pascal

В чем может быть проблема подскажите пожалуйста