03-29-2010 06:22 AM
hi,
i am trying to call the function defined in dll written in VC++. i am getting missing prototype error even though if i include respective header files. when i was calling a function with one or many arguments in it it is working fine. i am getting missing protype error when i was trying to call a function without any argument. this might be silly but i could not identify where the problem is ? please help me.
03-29-2010 06:40 AM
Hi,
help is (much) easier if you provide the relevant code snippet...
03-29-2010 06:49 AM
i am facing missing prototype error when i am trying to call the below 2 function
long _stdcall MSDEcmIO_CloseCommunication();
long _stdcall MSDEcmIO_OpenCommunication();
but it is working fine with the below funs
long _stdcall MSDEcmIO_ReadECMChannelData(unsigned short usMID,long lChannelType,char * pstrLocation,long lDataSize,long lDisplayType,long lStorageType, double dSlope,double dOffset,char* pData, long * plSizepData, long lTimeout);
03-29-2010 07:03 AM
ok: if a function has no argument, you need to use void as its argument:
function ( void )
03-29-2010 07:13 AM
it works fine thank u very much:-)
03-29-2010 07:32 AM
you're welcome!
In general, if your problem has been solved, you should indicate this by the green 'solved' checkmark...