Board index » cppbuilder » How to translate the delphi code to c++ builder?

How to translate the delphi code to c++ builder?

Every expert:
The delphi code can run normly in delphi5
WordApplication1.Connect;
WordApplication1.Visible := True;
Doc.ConnectTo(WordApplication1.Documents.Add(EmptyParam, EmptyParam));

but when I translate to C++ code ,it cannot be complited
WordApplication1->Connect();
WordApplication1->Visible = true;
Doc->ConnectTo(WordApplication1->Documents->Add(EmptyParam,EmptyParam));

how to write the correct code in CB5?

 

Re:How to translate the delphi code to c++ builder?


this is correct!

where are your errors?

Other Threads