小编XBa*_*000的帖子

什么编译器支持多种编程语言?

我知道这听起来很疯狂,但我只是想问一下编译器是否支持多种编程语言?像Delphi也可以支持C/C++/C#等?如果有,请告诉我.或者怎么样?

c delphi visual-studio visual-c++

1
推荐指数
2
解决办法
1032
查看次数

如何创建一个像Tpanel一样的TCustomControl?

如何创建一个像Tpanel一样的TCustomControl?例如MyCustomComponent,我可以删除类似标签,图像等组件.

delphi tpanel tcustomcontrol custom-component

1
推荐指数
1
解决办法
1470
查看次数

如何在不同的缓存上使用TWebbrowser?

我想像任何其他Web浏览器或Internet Explorer一样构建Internet浏览器,除了每个窗口应该使用唯一的缓存名称.有任何想法吗?或任何第三方组件?

browser delphi ole twebbrowser

1
推荐指数
1
解决办法
709
查看次数

如何通过点或从TRichedit索引获取字符

我有函数返回一个字符的索引GetCharFromPos(Pt:TPoint):整数;

现在我想得到那个位置的特征.比如GetCharByIndex(Index:Integer):Char;

delphi message position richedit char

1
推荐指数
1
解决办法
1165
查看次数

如果Scrollbar.visible:= False,如何通过.Perform()或SendMessage滚动Scrollbox?

我观察到当你隐藏水平滚动条时,它在使用时不会滚动

sbxStudyBtnHolder.Perform(WM_HSCROLL, SB_LINEDOWN, 0);

我们怎样才能使它成为可能?

delphi sendmessage tscrollbox

1
推荐指数
1
解决办法
5645
查看次数

如何获取winexec或shellexecute中执行的句柄?

我用来创建一个自定义函数,如winexec(...):Hwnd将重新执行已执行应用程序的句柄.

我确实使用了findwindow()但是如果它改变了窗口标题就有问题.

delphi shell hwnd shellexecute handle

0
推荐指数
1
解决办法
7545
查看次数

如何从资源中提取DLL

我的应用程序使用Bass.dll并将其添加到资源中.我想在应用程序启动之前将其解压缩.如何取消它?

delphi dll extraction

0
推荐指数
2
解决办法
868
查看次数

我需要有关如何实现可以在对象Inspector中显示的类的帮助

我有

...
  TDispPitch = class
  private
    iLineSize: Integer;
    iLineColor: TColor;
    bDisplayAccent: Boolean;
    bVisible: Boolean;
  published
    property LineSize : Integer read iLineSize write iLineSize;
    ...etc
  end;
...
Run Code Online (Sandbox Code Playgroud)

我想要在Object Insepector中显示此功能来编辑设置.

我尝试添加

property DispPitch: TDispPitch read FDispPitch write FDispPitch. like 
Run Code Online (Sandbox Code Playgroud)

可以显示DispPitch,但我看不到它的属性.比如LineSize,LineColor等

delphi properties class object custom-component

0
推荐指数
1
解决办法
1378
查看次数

我怎样才能将C#header转换为delphi

我怎么能用Delphi代码写这个呢?

[DllImport("FT_ND_API.dll")]
public static extern uint epas_CreateContext(out IntPtr hContextHandle, 
    uint ulFlags, uint ulApiVersion);

[DllImport("FT_ND_API.dll")]
public static extern uint epas_OpenDevice(IntPtr hContextHandle, 
    uint ulQueryType, IntPtr pQueryData);

[DllImport("FT_ND_API.dll")]
public static extern uint epas_GetProperty(IntPtr hContextHandle, uint ulFlags, 
    IntPtr pRefData, byte[] pPropData, uint ulPropSize);

[DllImport("FT_ND_API.dll")]
public static extern uint epas_CreateDir(IntPtr hContextHandle, uint ulFlags, 
    String pucName, String pucGuid, ref WDirInfo pDirInfo, uint ulSizeOfDirInfo);
Run Code Online (Sandbox Code Playgroud)

c# delphi pinvoke

-1
推荐指数
1
解决办法
406
查看次数