Thank you, the line fixed the problem.
int (*linkRenaissanceIn)(int, const char **) = GSMarkupApplicationMain;
Now I have another question. When I run the program, the window popped up. It
also invoked another program called gdnc.exe.
However, when I close my program, this gdnc.exe remains running in the system.
Can I know if I can close this program when I exit my example program?
Thank you,
Steven
[EMAIL PROTECTED] wrote: Send Gnustep-dev mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.gnu.org/mailman/listinfo/gnustep-dev
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]
You can reach the person managing the list at
[EMAIL PROTECTED]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gnustep-dev digest..."
Today's Topics:
1. Re: Renaissance Tutorial (Nicola Pero)
----------------------------------------------------------------------
Message: 1
Date: Mon, 5 May 2008 23:11:11 +0100
From: Nicola Pero
Subject: Re: Renaissance Tutorial
To: Steven Mak
Cc: [email protected]
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
On 2 May 2008, at 10:06, Steven Mak wrote:
> Hi,
>
> Succeeded in installing Renaissance on Windows, then I tried on the
> tutorial on the website:
>
> http://www.gnustep.it/nicola/Tutorials/Renaissance/node4.html
>
> I tried creating the main.m, Window.gsmarkup, and the GNUmakefile.
> I can make the program. But then when I execute the "openapp ./
> Example.cpp". I got the following messages and the example program
> doesn't appear.
>
> $ openapp ./Example.app
> 2008-05-02 16:54:04.004 Example[2792] Problem posting notification:
> NAME:NSInvalidArgumentException
> REASON:NSBundle(class) does not recognize loadGSMarkupNamed:owner:
> INFO:(nil)
>
> Do anyone know what is going wrong here? I am still trying to see
> if it is a good tool for Windows app development for our product.
> Yet it appears to be more difficult than I thought.
The following section of the Renaissance manual might apply --
"2.5.2 A small tweak to get it to work on Microsoft Windows
If you are only using the NSBundle Additions API, you can have a
problem on Microsoft Windows where you need to reference something
inside a library to get it linked in. The recommended workaround is
to add the following line (or a similar one) to your program
(typically in your main.m file):
int (*linkRenaissanceIn)(int, const char **) = GSMarkupApplicationMain;
This defines a (dummy) function pointer called linkRenaissanceInt,
and generates a reference to GSMarkupApplicationMain which fixes the
problem."
Let me know if that fixes it. ;-)
Thanks
------------------------------
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev
End of Gnustep-dev Digest, Vol 66, Issue 3
******************************************
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now._______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev