Visual studio 2005 C++ project MIDL2039 warnings

  • Thread starter Thread starter pnadathur
  • Start date Start date
P

pnadathur

Guest
Hi,

I need help correcting the warnings below. I have pasted the code sections.

Thank you,

Priya

.\BladeAPI.idl(51) : warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'pData' of Procedure 'SetSensorGainRequestDx' ( Interface 'IBladeDiagnostics' ) ]
.\BladeAPI.idl(105) : warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'pKey' of Procedure 'InitializeBlade' ( Interface 'IBlade' ) ]
BladeAPI.idl file:
interface IBladeDiagnostics : IDispatch
{
[id(14), helpstring("method SetSensorGainRequestDx")] HRESULT SetSensorGainRequestDx([in] SensorGainLevelData *pData);
....
}
interface IBlade : IDispatch
{
[id(1), helpstring("method InitializeBlade")] HRESULT InitializeBlade([in] SAFEARRAY(BYTE) pKey,BladeAPIMode eMode);
....
}
BladeAPI.h file:
IBladeDiagnostics : public IDispatch
{
public:
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE SetSensorGainRequestDx(
/* [in] */ SensorGainLevelData __RPC_FAR *pData) = 0;
.....
}
IBlade : public IDispatch
{
public:
virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE InitializeBlade(
/* [in] */ SAFEARRAY __RPC_FAR * pKey,
BladeAPIMode eMode) = 0;

Continue reading...
 
Back
Top