开发者

C# adding a resource error and calling function

Hey all i am new at C# and i am trying to add a resource to a .dll file.

It gives me the error of:

C# adding a resource error and calling function

Error 1 Source file 'C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\bluRemoteProg\Resources\HIDLibrary.dll' could not be opened ('Unspecified error ') bluRemoteProg

What am i forgetting to do?

David

UPDATE

Got it working but how do i call a function from the form menu? I've tried:

PS3_BluMote.PS3RemoteDevice.Connect();

and

PS3_BluMote.PS3RemoteDevice.Connect();

C# adding a resource error and calling function

but that does not see开发者_如何学运维m to work...


You can add a new project to your solution: e.g. YourApp.Engine as a C# Class Libraray project, then add your resources to that project (Double-click properties of YourApp.Engine project, and click Resources tab).

you can now use your DLL named YourApp.Engine everywhere in your app:

using YourApp.Engine;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜