易截截图软件、单文件、免安装、纯绿色、仅160KB

急!把delphi代码转换成VC++代码,请高手帮帮忙

procedure TSG_Form.SpeedButton1Click(Sender: TObject);
begin
  CurrentSGWave := (Sender as TSpeedButton).Tag;
  SetupWavePara_Btn.Enabled := True;

  ReDraw_timer.Enabled := False;
  if (CurrentSGWave = 0) or (CurrentSGWave = 6) or (CurrentSGWave = 7) then
  begin
    SetupWavePara_Btn.Enabled := False;
    ReDraw_timer.Enabled := True;
  end;
  if SGSendWave then
  begin
    DownLoad;
    DrawWave(Wave_Pic);
  end
  else
    DrawWave(Wave_Pic);
end;

procedure TSG_Form.TrigerType_CBChange(Sender: TObject);
begin
  case TrigerType_CB.ItemIndex of
    0: SGSetConByte := SGSetConByte and $fb;    // 1111 1011  内触发
    1: SGSetConByte := SGSetConByte or $06;      // 0000 0110  外触发上升沿
    2: begin
        SGSetConByte := SGSetConByte or $04;
        SGSetConByte := SGSetConByte and $fd;  // 1111 1101  外触发下降沿
      end;
  end;
  SetCON(SGSetConByte, 0);
end;

procedure TSG_Form.Frequency_EditExit(Sender: TObject);
begin
  try
    SGFrequency := StrToFloat(F


相关问答:

C 程序问题 (二) - C/C++ / C语言

问一下:
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

Delphi中数据库查询的疑惑

昨晚在Delphi数据库查询中遇到了一个疑惑。代码如下:
procedure TFormSearchAchievement.ComboBoxXYChange(Sender: TObject);
var
  XY : string;
begin
  XY := comboboxxy.Items[comboboxx ......

delphi中select 的 where后面的id=变量怎么写啊

我的程序中有一段更新某一条记录的语句:
var
id:=integer;
begin
id:=strtoint(edit1.text);//edit1.text的值已经取得;
...
...
...
adoQuery1.sql.add('update 计划清单表 set 计划日 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号