i m making virtual keyboard for that reaseon i just want to ask that how to represent e.g #define tab 0x02 // header file of c++ i want to represent it in delphi programming which is object pascal
How to represent c++ header file in delphiRequired some help to include header file of c++ in delphi
Page 1 of 1
1 Replies - 2340 Views - Last Post: 16 December 2008 - 09:07 AM
#1
How to represent c++ header file in delphi
Posted 16 December 2008 - 08:14 AM
Replies To: How to represent c++ header file in delphi
#2
Re: How to represent c++ header file in delphi
Posted 16 December 2008 - 09:07 AM
Well, 0x02 is the hexadecimal equivalent of the decimal number 2, and #define uses the C/C++ preprocessor to substitute 0x02 for all instances of "tab" in the code to be compiled.
So based on this page, I would suggest defining tab to be a constant like this I guess:
So based on this page, I would suggest defining tab to be a constant like this I guess:
const
TAB = 2;
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|