realbasic-plugins
[Top] [All Lists]

Re: MSVC++ Error (newbie)

To: <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: MSVC++ Error (newbie)
From: William Yu <william at realsoftware dot com>
Date: Wed, 08 Dec 2004 14:28:32 -0600
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
On 12/8/04 2:16 PM, "jkohns" <jkohns at callerid dot com> wrote:

> So I started looking at the plugin sdk today on MSVC++, and was able to open
> and compile the testPlugin example, but when I add on function
> 
> in testPlugin.cpp:
> --------------------------
> 
> Boolean TestMe()
> REALmethodDefinition TestMe = {

This is like having two variables of the same name, you need to rename one
of them.  Perhaps you wanted something more like this:

Boolean TestMe()
{
    return false;
}

REALmethodDefinition TestMeDefn = {
    (REALproc) TestMe,
    REALnoImplementation,
    "TestMe() as Boolean"
};


-- 
REAL World 2005 - The REALbasic User Conference
March 23-25, 2005, Austin, Texas
<http://www.realsoftware.com/realworld>


_______________________________________________
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>