How to represent c++ header file in delphi

Required some help to include header file of c++ in delphi

Page 1 of 1

1 Replies - 2882 Views - Last Post: 16 December 2008 - 09:07 AM Rate Topic: -----

#1 Umaid123  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 13
  • Joined: 15-December 08

How to represent c++ header file in delphi

Posted 16 December 2008 - 08:14 AM

 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



Is This A Good Question/Topic? 1
  • +

Replies To: How to represent c++ header file in delphi

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6063
  • View blog
  • Posts: 23,515
  • Joined: 23-August 08

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:
const
    TAB = 2;


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1