#ifdef UNICODE
#define SetPortW SetPort
#else
#define SetPortA SetPort
#endif
내용을 CPort.hpp 의 에 추가해준다.
아래내용처럼.
// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Cport.pas' rev: 21.00
#ifndef CportHPP
#define CportHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Inifiles.hpp> // Pascal unit
#include <Registry.hpp> // Pascal unit
//-- user supplied -------------------------------
#ifdef UNICODE
#define SetPortW SetPort
#else
#define SetPortA SetPort
#endif
namespace Cport
{
No comments:
Post a Comment