English 中文(简体)
是否有可包含资源的辅助档案类型清单?
原标题:Is there a list of supported file types which can contain resources?
最佳回答

I m 寻找能够包含资源的档案类型清单,并且可以由Load Library和Load Module的职能装载。

您不应使用<代码>LoadModule,该编码可与16条轨道申请相容。 <代码>LoadLibrary用于装货图书馆: 诉讼和诉讼法符合该法案。 由于你想得到贵方档案的开放方言,我假定你对适用的档案延期感兴趣。 不幸的是,这并非易事,因为EXE和DL不一定需要获得EXE和DL的延伸。 例如,<代码>SCR的推广是屏幕储蓄者的普及范围,但实际文件是计划执行。 <代码>BPL是Delphis汇编材料包的延伸,但这些档案实际上是 s, 远至LoadLibrary

我认为,你应当简单地过滤EXE和DL,但让用户打开他们想要的东西。 如果“LoadLibrary的编码失效,你只知道该编码是否真正符合

问题回答

I m using dll files with resources. function loadresource works fine with loadlibrary function. For example,

..
var
   LibHandle: THandle;
   Bmp: TBitmap;
begin
   LibHandle := LoadLibrary(PChar( MYDLL.DLL ));
   if LibHandle <> 0 then
   try
     Bitmap := Tbitmap.Create;
     Bitmap.LoadFromResourceName(LibHandle,  ICON16 );  // ICON16 - Resource name, which contains bitmap with size 16x16
   ..
   except on E: exception do
     ..
   end;
..




相关问题
determining the character set to use

my delphi 2009 app has a basic translation system that uses GNUGetText. i had used some win API calls to prepare the fonts. i thought it was working correctly until recently when someone from Malta ...

Help with strange Delphi 5 IDE problems

Ok, I m going nuts here. For the last (almost) four years, I ve been putting up with some extremely bad behavior from my Delphi 5 IDE. Problems include: Seemingly random errors in coride50.bpl ...

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How convert string to integer in Oxygene

In Delphi, there is a function StrToInt() that converts a string to an integer value; there is also IntToStr(), which does the reverse. These functions doesn t appear to be part of Oxygene, and I can ...

Quick padding of a string in Delphi

I was trying to speed up a certain routine in an application, and my profiler, AQTime, identified one method in particular as a bottleneck. The method has been with us for years, and is part of a "...