Dear all
I am using InstAide.dll for installing my application
into user�s downloaded directory
I am using VC++ 6 for this work. 
I used the following code for installing. But I am
getting an error at runtime that
�File: i386\chkesp.c �
�The value of ESP was not properly saved across the
function call. This is usually a result of calling
function declared with one calling convention with
function pointer declared with different calling
convention �
I have been checked with CDK document.. There function
declaration is like this

int PltInstallFile(TCHAR *pUser,TCHAR *pFileSpec)


HMODULE hMod = LoadLibrary("D:\\Instaide.dll");
        TCHAR *ch,*ch1;
        ch=TEXT("user1");
        ch1=TEXT("D:\\test.prc");
        typedef int (*PfnSample1)(TCHAR *str, TCHAR *str1);
        PfnSample1 pfnEF = (PfnSample1) GetProcAddress(hMod,
"PltInstallFile");
        int i=(pfnEF)(ch, ch1);
        FreeLibrary(hMod);

Where have done mistake..?
Can any one help..
Thanks In advance
raj


________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to