| To: | "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Returning a string from a c dll to real basic |
| From: | "Keith Hutchison" <keith dot hutchison at balance-infosystems dot com> |
| Date: | Wed, 31 Aug 2005 18:25:50 +1000 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <00a801c5ae02$377fb0d0$0100000a at KEITHXP> <A7DDAFA5-8652-4FA8-8EF4-93D7F8372135 at mac dot com> |
> > Is this a correct way to send back a string from c ?
> > export char* _stdcall getCurrentRecordingDevice()
> > {
> > char deviceName[MIXER_SHORT_NAME_CHARS] = "null";
> > /*
> > processing to get name works.
> > */
> > return deviceName ;
>
> Don't you return a function local variable, which get's
> released just after return from the function?
Isn't deviceName a local variable?
Keith
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Some questions and help about CHAT!, Niccolo Zapponi |
|---|---|
| Next by Date: | C conversion to RealBasic, Keith Hutchison |
| Previous by Thread: | Re: Returning a string from a c dll to real basic, Stefan Pantke |
| Next by Thread: | Re: Returning a string from a c dll to real basic, Alberto Paderno |
| Indexes: | [Date] [Thread] [Top] [All Lists] |