delphi代码转BCB,delphi的Handle是个Long (整长型)的数据,bcb是个指针怎么转换成delphi的Handle呢
//****运行接口软件,并把主窗体的句柄传给接口软件***************//
ShellExecute(Application.Handle, Nil, 'run.exe'),Pchar(IntToStr(Form1.Handle)), Nil, SW_SHOWNORMAL);
//声明:
public
ToHandle :Thandle;
//自定义消息处理程序:第一次获得的是'run.exe'窗口的句柄
procedure TForm1.OnMessage(var Msg: TMessage);
Begin
IF ToHandle =0 Then
Begin
ToHandle :=Msg.LParam;
End
End
//delphi的Handle是个Long (整长型)的数据,bcb是个指针怎么转换成delphi的Handle呢?