在VB.NET中使用Win32资源DLL? [英] Using a Win32 resource DLL in VB.NET?
问题描述
您好,
这可能听起来像一个愚蠢的问题,但我如何在VB.NET中使用Win32
资源DLL?我推测有这个用途的API'但是我不确定哪些,我的API指南与资源
部分没有任何关联,我'过去从来没有真正这样做过。
提前付款加载!
尼克。
" Nak" < a@a.com> schrieb:我如何在VB.NET中使用Win32资源DLL?我推测
为此目的有API'但不确定哪些
你将不得不使用p / invoke ...
资源
< URL: http://msdn.microsoft.com/library/en...wsuserinterfac
e / resources.asp>
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
"经NAK QUOT; < a@a.com> schrieb:我如何在VB.NET中使用Win32资源DLL?我推测
为此目的有API'但不确定哪些
你将不得不使用p / invoke ...
资源
< URL: http://msdn.microsoft.com/library/en...wsuserinterfac
e / resources.asp>
-
Herfried K. Wagner [MVP]
< URL:http://dotnet.mvps.org/>
嗨Nak,
...使用pinvoke调用API LoadLibrary来加载资源DLL,
然后调用FindResource或LoadResource来加载variours资源,
或调用以下API来加载特定的资源:
FormatMessage
LoadAccelerators
LoadBitmap
LoadCursor
LoadIcon
LoadMenu
LoadString
,当你的程序终止时,不要不要忘记调用API FreeLibrary
来释放该资源DLL ..
感谢您的理解!
祝你好运,
Gary Chang
Microsoft在线合作伙伴支持
安全! - www.microsoft.com/security
此帖子原样是按原样提供的。没有保证,也没有赋予任何权利。
--------------------
Hi there,
This might sound like a dumb question but how would I use a Win32
resource DLL in VB.NET? I presumed there were API''s for this purpose but am
unsure which ones, my API guide has nothing of relevance in the "Resources"
section and I''ve never actually done this in the past.
Thanks loads in advance!
Nick.
"Nak" <a@a.com> schrieb:how would I use a Win32 resource DLL in VB.NET? I presumed
there were API''s for this purpose but am unsure which ones
You will have to use p/invoke...
Resources
<URL:http://msdn.microsoft.com/library/en...wsuserinterfac
e/resources.asp>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
"Nak" <a@a.com> schrieb:how would I use a Win32 resource DLL in VB.NET? I presumed
there were API''s for this purpose but am unsure which ones
You will have to use p/invoke...
Resources
<URL:http://msdn.microsoft.com/library/en...wsuserinterfac
e/resources.asp>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Hi Nak,
...using the pinvoke to call the API LoadLibrary to load your resource DLL,
then call the FindResource or LoadResource to load the variours resources,
or call the follwing APIs tto load specific resouce:
FormatMessage
LoadAccelerators
LoadBitmap
LoadCursor
LoadIcon
LoadMenu
LoadString
and when your program terminates, don''t forget to call the API FreeLibrary
to free that resource DLL..
Thanks for your understanding!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
这篇关于在VB.NET中使用Win32资源DLL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!