Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.basic.powerbasic > #9

Re: Macro from C/C++ to PB

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.news-service.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date Tue, 06 Sep 2011 01:51:39 -0500
Date Tue, 06 Sep 2011 08:51:38 +0200
From Olav <invalid.is.my@email.nn>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
MIME-Version 1.0
Newsgroups comp.lang.basic.powerbasic
Subject Re: Macro from C/C++ to PB
References <4e63dbc9$1@proxy.mimer.no> <MPG.28cf6c6b9a92a08698970f@newszilla.xs4all.nl>
In-Reply-To <MPG.28cf6c6b9a92a08698970f@newszilla.xs4all.nl>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Original-NNTP-Posting-Host 49.213-153-24.bkkb.no
Message-ID <4e65c2f6@proxy.mimer.no> (permalink)
X-Original-Trace 6 Sep 2011 08:51:34 +0200, 49.213-153-24.bkkb.no
Lines 32
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-N1kwEtrvLu0VnwiDHUIzowTXrxMIa/o/9cFL+/N0R41NmYS4o62TzmRcum5LJo14E6desoO6yLBfOM9!IJMHz/SaHgdyBmOAtP8YieoiWQMlMV/u1XFmJhzWg7F5H0UU
X-Complaints-To abuse@giganews.com
X-DMCA-Notifications http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2289
Xref x330-a1.tempe.blueboxinc.net comp.lang.basic.powerbasic:9

Show key headers only | View raw


Den 06.09.2011 00:32, skrev Peter Manders:
> In article<4e63dbc9$1@proxy.mimer.no>, invalid.is.my@email.nn says...
>>
>> How can C/C++ statements like
>>
>>     #ifndef IDC_STATIC
>>       #define IDC_STATIC (-1)
>>     #ENDIF
>>
>>     #define IDD_DIALOG1 100
>>
>> be converted PB using a macro?
>>
>> Thanks in advance!
>
> It's explained in the help file under %Def()
>

Yes, thank you. I know how to rewrite these statements to PB equivalent 
statements, but that was not what I was asking for.

I was looking for a solution where these C/C++ directives could be 
placed within a PB macro, so that the compiler would be able to cope 
with them. If so both the resource compiler and the PB compiler could 
use the same header file. Since a macroname can't start with a #, it 
looks to me that it isn't possible to do what I had in mind, so I asked 
in case there was a solution to it though. And I can't find such a 
soulution to it in the help file.

Thanks for your time!
--

Back to comp.lang.basic.powerbasic | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Macro from C/C++ to PB Olav <invalid.is.my@email.nn> - 2011-09-04 22:13 +0200
  Re: Macro from C/C++ to PB Peter Manders <usenet@mandersDELETE.DELETEorg> - 2011-09-06 00:32 +0200
    Re: Macro from C/C++ to PB Olav <invalid.is.my@email.nn> - 2011-09-06 08:51 +0200
      Re: Macro from C/C++ to PB Peter Manders <usenet@mandersDELETE.DELETEorg> - 2011-09-06 19:33 +0200
      Re: Macro from C/C++ to PB GS <gs@somewhere.net> - 2012-02-14 16:25 -0500

csiph-web