LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

missing prototype

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.

0 Kudos
Message 1 of 6
(4,008 Views)

Hi,


help is (much) easier if you provide the relevant code snippet...

0 Kudos
Message 2 of 6
(4,005 Views)

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);

 

 

0 Kudos
Message 3 of 6
(4,003 Views)

ok: if a function has no argument, you need to use void as its argument:

 

function ( void )

 

 

0 Kudos
Message 4 of 6
(4,000 Views)

it works fine thank u very much:-)

0 Kudos
Message 5 of 6
(3,998 Views)

you're welcome!

 

In general, if your problem has been solved, you should indicate this by the green 'solved' checkmark...

0 Kudos
Message 6 of 6
(3,992 Views)