[DllImport("winmm.dll")]
public static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume);
public static extern bool PlaySound(byte[]wspath, int fuSound);
waveOutGetVolume可以通过,为什么PlaySound通不过
系统提示:
“wsound.wsound.PlaySound(byte[], int)”被标记为 external 并且没有属性。请考虑添加 DllImport 属性以指定外部实现
error CS5001: 程序“G:\text\project\c#\api_1\api_1\obj\Debug\api_1.exe”未定义入口点应该加什么属性?
EntryPoint CharSet CharSet.Unicode CharSet.Auto CallingConvention ?还是其他的?
public static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume);
public static extern bool PlaySound(byte[]wspath, int fuSound);
waveOutGetVolume可以通过,为什么PlaySound通不过
系统提示:
“wsound.wsound.PlaySound(byte[], int)”被标记为 external 并且没有属性。请考虑添加 DllImport 属性以指定外部实现
error CS5001: 程序“G:\text\project\c#\api_1\api_1\obj\Debug\api_1.exe”未定义入口点应该加什么属性?
EntryPoint CharSet CharSet.Unicode CharSet.Auto CallingConvention ?还是其他的?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货