realbasic-plugins
[Top] [All Lists]

Re: Simple (hopefully) String problem

To: dan dot cooper at xpsprint dot co dot uk, REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Simple (hopefully) String problem
From: Will Leshner <leshner at ljug dot com>
Date: Thu, 28 Oct 2004 07:47:02 -0700
Cc:
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <4180FF81 dot 6020602 at xpsprint dot co dot uk>

On Oct 28, 2004, at 7:17 AM, Dan Cooper wrote:

bool ExportReport(REALstring report, REALstring outputfilename)
{
  MessageBox(0, (LPCTSTR)report, "Opening", MB_OK);
}


A REALstring isn't just a pointer to a C string. You need to get the C string part of the REALstring like this:

report->CString()

--
REALbasic database options: http://sqlabs.net
REALbasic news and tips: http://rbgazette.com
KidzMail & KidzLog: http://haranbanjo.com

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

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

<Prev in Thread] Current Thread [Next in Thread>