Kinan Qassar wrote: > When you contact with company provide hardware and you ask them about how > can I control with this device they send you API with C++ to know how to > control with it
Is it really in C++? Does it use classes, or templates? If so, then there's probably nothing you can do but complain that the company has provided you with something that cannot be used by any compiler except the one the company used to compile its own code. Most API headers are provided in C. C is usually very easy to convert into other languages, including Delphi. > If I am only Delphi programmer what I should do to understand the code and > then write my code in Delphi. Well, start out by reading the code and the accompanying documentation. C is not a very hard language to read, especially since all you probably have are declarations of functions and data structures, not any executable code. Have you ever looked at the documentation for Windows API functions? It's all provided in C. By comparing the declarations in the documentation to the declarations in Windows.pas, you should be able to learn a lot about how various C constructs translate into Delphi. When you know how to read C, you know how to read almost any sample code you'll ever find. You can go get Darth, a free tool to convert C headers into Delphi code, at the address below. http://delphi-jedi.org/team_darth_home -- Rob ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

