
how to call function in a DLL from ATL COM method
thanks Tian,
but what i want to do is i want to call that function in lib from delphi5.
i dont know how to do it.(do you know a way for it?)
i desided to write a com object with this method.
then i tryed it as you said.
i am getting problem with method perameters.
i will explain the method now
//int Isfoc2Iscii(unsigned char *sIsfoc, unsigned char *sIscii, int
nIsciiLen, char *Script_mn)
This Function will convert an ISFOC string to ISCII String.
sIsfoc is the source null terminated string containing the ISFOC
characters.[IN]
sIscii is the destination buffer which will contain the converted null
terminated ISCII string.[OUT]
nIsciiLen is the size of the sIscii buffer in bytes.[IN]
Script_mn is a 2/3 character script mnemonic string. E.g. "DV" - Devanagari,
"DVB" - Devanagari Bilingual[OUT]
can you tell me what should i enter in perameter field of add method in ALT
object.
thank you very much
Akkineni Rajesh
Quote:
> Hi,
> If you have the import library of ismapi32.dll, you can use Implicit
> linking. Otherwise, you should call LoadLibrary() and GetProcAddress() as
> the following code snippet:
> //begin
> typedef int (*Isfoc2Iscii)(unsigned char *, unsigned char *, int ,char *);
> .....
> HMODULE hDll = LoadLibrary("ismapi32.dll");
> Isfoc2Iscii lpFun= (Isfoc2Iscii) GetProcAddress(hDll, "Isfoc2Iscii");
> //call the function
> lpFun(......);
> .....
> FreeLibrary(hDll);
> //end
> For more information, please refer the article "Link an Executable to a
> DLL" at
http://www.*-*-*.com/
Quote:
> executable_to_a_dll.htm.
> Regards,
> HuangTM