[DllImport("winmm.dll")]又是什么意思?
[DllImport("winmm.dll")]
public static extern long PlaySound(string lpszName, int hModule, int dwFlags);
我把它放在我的程序里出错。说找不到类型或命名窨DllImport
[DllImport("winmm.dll")]
public static extern long PlaySound(string lpszName, int hModule, int dwFlags);
我把它放在我的程序里出错。说找不到类型或命名窨DllImport
解决方案 »
- C# 如何修改Access数据库的头文件
- 从DataGirdView 里面获取值选中的值后 怎么保持到DataTable里面 然后在把这个新的DataTable传递到另一个窗体
- 【鸡毛信】C#读XML问题
- 自定義過程為什麼引用不到過程外定義的變量呢?附代碼
- 如何在panel上画一个矩形
- C# 得到oracle的实例名和数据库名
- c#高手请进!帮我解决一下问题
- 如何定义属于某个接口(interface)的异常?
- 数据库连接问题,同样的连接参数在VB中可以连,但在c#中无法连接???
- (C#)EXCE插入图片问题?(很急啊)
- 设有一个装sql server的机器,它有固定的IP(挂在互联网上哈),我如何在任一端对数据库里数据进行存取(远程存取数据)?(合法的用户)
- mdi窗口,怎样判断一个子窗口的当前状态是否是活动的?
model for thread that the application is first run on. It allows the
threading model to be set before any initialization code is called (which
might happen before your code is reached by the runtime).It's needed for some of the windows controls, as they are wrappers to
COM components which require the COM environment to be set up properly.
[DllImport("winmm.dll")]
public static extern long PlaySound(string lpszName, int hModule, int dwFlags);
我把它放在我的程序里出错。说找不到类型或命名窨DllImport这是因为你没有加这句:
using System.Runtime.InteropServices;