关于keil错误c129:missing';'before'sub' 请大神解答
#include<stdio.h>#include<reg52.h>
Private Sub To Excel()
{
Din My Excel As New Excel Application;
Din My Book As New Excel Workbook;
Din My Sheet As New Excel Worksheet;
Din I As Long,I As Long;
SCON=0X52;
TMOD=0X20;
TH1=0Xf3;
TR1=1;
Set My Excel=Create Object ("Excel Application")
Set My Book=My Excel Workbooks Add Book1;
Set My Sheet=My Book Work Sheets("Sheet1")
With Active Form Mshflexgrid;
Set Mshflexgrid ,CellPicture=LoadPicture("Icons\Computer\Trash02.ico");
For I=O To,Rows-1;
For J=O To,Cols-1;
My Sheet Cells(I+1,J+1)=Tex Matrix(I,J);
Next J;
Next I;
End With;
My Excel Visible=True;
Set My Sheet=Nothing;
Set My Book=Nothing;
Set My Excel=Nothing;
End Sub;
}
程序是自己异想天开写的,求大神指导,想写一个电子天平和华宁软件之间的数据转化软件,因为还未联机调试过,现将天平数据自动采集在电子表格里,写过类似程序的大神可回帖,可加我QQ932061904,讨论一下。