Author | Topic: XPPRT1 in WAA package | |
---|---|---|
Marcin Stryjek | XPPRT1 in WAA package on Tue, 24 May 2005 14:26:44 +0200 Hi I encountered problem with using functions from XPPRT1 in WAA package dll. I don't understand nature of my trouble. Some functions (DllInfo(), DllLoad()) can be used, but some (_copyfile()) can't. I can load XPPRT1.DLL using DllLoad(), but I can't see this library on list created by DllInfo(,6). Do you know any solution or at least an explanation? TIA Marcin Stryjek. | |
Phil Ide | Re: XPPRT1 in WAA package on Tue, 24 May 2005 13:36:25 +0100 Marcin, > I encountered problem with using functions from XPPRT1 in WAA package dll. I > don't understand > nature of my trouble. Some functions (DllInfo(), DllLoad()) can be used, but > some (_copyfile()) can't. I can load XPPRT1.DLL using DllLoad(), but I can't > see this library on list created by DllInfo(,6). > Do you know any solution or at least an explanation? You don't need to load this, it is already loaded by the runtime system. Simply call the functions as you need them! Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** G: "If we do happen to step on a mine, Sir, what do we do?" EB: "Normal procedure, Lieutenant, is to jump 200 feet in the air and scatter oneself over a wide area." -- Somewhere in No Man's Land, BA4 | |
Marcin Stryjek | Re: XPPRT1 in WAA package on Tue, 24 May 2005 15:01:58 +0200 Hi > You don't need to load this, it is already loaded by the runtime system. > Simply call the functions as you need them! > > Regards, > -- > Phil Ide > Ok, XPPRT1 is loaded, and I can use most of functions included in this dll but can't call _copyFile(). IsFunction("_CopyFile") returns false, calling _copyFile from debuger returns "function is not declared" Thanks again for Your valuable help. Marcin | |
Phil Ide | Re: XPPRT1 in WAA package on Tue, 24 May 2005 14:51:17 +0100 Marcin, > Ok, XPPRT1 is loaded, and I can use most of functions included in this dll > but can't call _copyFile(). > IsFunction("_CopyFile") returns false, calling _copyFile from debuger > returns "function is not declared" > Thanks again for Your valuable help. I just tried this in one of my WAA apps: altd() COPY FILE 'j:\waa1srv.cfg' TO 'j:\waa2srv.cfg' works ok! _copyFile('j:\waa1srv.cfg','j:\waa3srv.cfg') works ok! i := IsFunction("_copyFile") -> FALSE So, you cannot use IsFunction() to see if it is available, but since it always will be, it is pointless testing anyway. Both the command and the function call work perfectly. Regards, Phil Ide *************************************** * Xbase++ FAQ, Libraries and Sources: * * goto: http://www.idep.org.uk/xbase * *************************************** Honesty pays, but it doesn't seem to pay enough to suit some people. -- F.M. Hubbard | |
Vladimir Iahnenco | Re: XPPRT1 in WAA package on Tue, 24 May 2005 10:55:14 -0400 Marcin, You alternatively may use this dllcall. DllCall("kernel32.dll",DLL_STDCALL, "CopyFileA",cSource, cTarget,0) Regards, Vladimir "Phil Ide" <phil@idep.org.uk> wrote in message news:1asvii1hdkrc3$.dlg@idep.org.uk... > Marcin, > > > Ok, XPPRT1 is loaded, and I can use most of functions included in this dll > > but can't call _copyFile(). > > IsFunction("_CopyFile") returns false, calling _copyFile from debuger > > returns "function is not declared" > > Thanks again for Your valuable help. > > I just tried this in one of my WAA apps: > > > altd() > COPY FILE 'j:\waa1srv.cfg' TO 'j:\waa2srv.cfg' // works ok! > _copyFile('j:\waa1srv.cfg','j:\waa3srv.cfg') // works ok! > i := IsFunction("_copyFile") // -> FALSE > > So, you cannot use IsFunction() to see if it is available, but since it > always will be, it is pointless testing anyway. Both the command and the > function call work perfectly. > > Regards, > -- > Phil Ide > > *************************************** > * Xbase++ FAQ, Libraries and Sources: * > * goto: http://www.idep.org.uk/xbase * > *************************************** > > Honesty pays, but it doesn't seem to pay enough to suit some people. > -- F.M. Hubbard |