Xojo Conferences
XDCMay2019MiamiUSA

How to specify REALbasic constants in terms of another variable v alue (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Please update the release SDK
Next thread: mach-o


macosx and unix paths   -   GOLD
  How to specify REALbasic constants in terms of another variable v alue   -   Ashukla in.safenet-inc.com
   Re: How to specify REALbasic constants in terms of another variable v alue   -   Joseph J. Strout

How to specify REALbasic constants in terms of another variable v alue
Date: 28.06.04 12:26 (Mon, 28 Jun 2004 16:56:43 +0530)
From: Ashukla in.safenet-inc.com
Hi

I need to define a REALconstant in terms of value of another constant or
another variable..Is it allowed or can i do some thing like following

* Can i make a string though sprintf by using all the available
parameters
* supply the string by a variable name rather than actual string with
in quotes

Please tell me whether it would work ? i need to export dynamic string from
a C application to REALbasic by constructing a plugin.

Thanks and Regards

Alok Shukla
Software Engineer
Safenet Incorporation
India Development Center
Ground Floor, STP-NSIC
NSIC Bhawan, Okhla Industrial Estate
New Delhi 110020
Tel: +91 11 26321398 Mobile - +91 - 9899612127

The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If
you have received this communication in error, please notify us immediately
by replying to this message and deleting it from your computer without
copying or disclosing it.


_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: How to specify REALbasic constants in terms of another variable v alue
Date: 28.06.04 14:48 (Mon, 28 Jun 2004 08:48:14 -0500)
From: Joseph J. Strout
At 4:56 PM +0530 6/28/04, <email address removed> wrote:

>I need to define a REALconstant in terms of value of another constant or
>another variable..Is it allowed or can i do some thing like following
>
>* Can i make a string though sprintf by using all the available
>parameters
>* supply the string by a variable name rather than actual string with
>in quotes

Yes, you can do any of those. The plugin API just wants a C string;
there is no way it can know or care where that string came from or
how it was built. But there is one caveat: I think it may be
required that this string not disappear. So, if you construct it,
keep it hanging around in a static or global variable once you've
registered it with RB.

Best,
- Joe