LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

undeclared identifier active x WMP

Hello,

 

I am using Windows Media Player active x in my program, i recently upgrade from CVI 2012 to CVI 2013, when i try to compile the files, i get errors like

"error: use of undeclared identifier "WMPLibObj_IWMPControls" "

and

"error: implicit declaration of function "WMPLib_IWMPControlsplay" is invalid in C99. Make sure that you include the function prototype."

 

a popup box with the following message appear

"The following include statements are needed in "IHM_panel_video.c",

#include "wmp.h"

Do you want to add them after the include statement for wmp.h?"

 

the fact is the include of wmp.h is already done in "IHM_panel_video.c". if i click yes, it just repeat the include statement and the errors are still there.

I also try to rebuild the activex with the same issue.

 

 

 

0 Kudos
Message 1 of 3
(4,717 Views)

Hello ThomasCauchy,

 

Would you be able to post your application or the part of your application which makes use of the Windows Media Player ActiveX server here so we can try to reproduce it? This issue sounds very similar to the one described in KB 6HOA7ECN: Why Does LabWindows™/CVI™ 2013 Warn Me to Include nivision.h When It Is Already Include...

 

Thanks,

Daniel

Daniel Dorroh
National Instruments
0 Kudos
Message 2 of 3
(4,699 Views)

Thanks for the answer but the activeX for WMP don't use functions only defined for Windows OS.

 

I am affraid, i cannot post my application since it containt some confidential datas.

 

Anyway, I manage to solve the issue by creating a new activeX controller using "wmp.h" referenced in labWindows CVI 2013, (the old one was still referenced in my application, i think the issue was here.)

 

thanks for your time.

 

regards

Thomas Cauchy

0 Kudos
Message 3 of 3
(4,684 Views)