List Info

Thread: wxGLCanvas and DB 3.04




wxGLCanvas and DB 3.04
user name
2006-07-12 00:28:42

--- In anthemion-devtoolsyahoogroups.com, "falcador_1";
<falcador_1...> wrote:
Update on this continuing issue here, I have upgraded to DB 3.06,
remove and environment variable $HOME so that the class "myGLCanvas";
created files myGLCanvas.cpp & myGLCanvas.h are now being created in
my project directory instead in my WinXP C:/documents and Settings
directory. Now the generated code is not compiling here:

myGLCanvas.cpp(39): error C2512:'myGLCanvas' : no appropriate default
constructor available

The offending code section in myGLCanvas.cpp is:

35 /*!
36 * myGLCanvas type definition
37 */
38
38 IMPLEMENT_DYNAMIC_CLASS( myGLCanvas, wxGLCanvas )

To get the code to compile, I comment out this line of code and its
counterpart, line 61 in myGLCanvas.h:

59 class myGLCanvas: public wxGLCanvas
60 {
61 DECLARE_DYNAMIC_CLASS( myGLCanvas )

Now it compiles, but I am not sure what is the effect of this in the
long term but I can now start coding in the opengl routines to see if
they will work here.
>;
> Okay, will be sending it shortly and support as well.
>;
> --- In anthemion-devtoolsyahoogroups.com, Julian Smart <julian>
> wrote:
&gt; >
> > Hi,
> >
> > I wonder if you could send me your project file by private email
>; > and I'll take a look.
>; >
> > Thanks,
&gt; >
> > Julian
&gt; >
> > At 21:35 05/07/2006, you wrote:
&gt; > >--- In anthemion-devtoolsyahoogroups.com, Julian Smart <julian>
> > >wrote:
> > >
> > >Tried it and still get the same error message when building and
> > >running. Upon further investigation, I found that the files are
> > >being generated. The name and location is as follows:
> > >
> > >name: username (for me, it is sal)
> > >location: c:\Documents and Settings
> > >
> > >So the error is in the file creation. No matter what I do, the path
> > >and name of the files doesnt change.
&gt; > >
> > > >
> > > > Hi,
> > > >
> > > > Now I seem to be getting DB to generate the files OK,
> > > > maybe I didn't check "Separate files";. Anyway make sure
> > > > this is checked, and then maybe switch to another element
&gt; > > > and then on the glcanvas again, and look at h or cpp.
> > > >
> > > > Regards,
> > > >
> > > > Julian
&gt; > > >
> > > > At 19:27 05/07/2006, you wrote:
&gt; > > > >--- In anthemion-devtoolsyahoogroups.com, "falcador_1";
> > > > ><falcador_1> wrote:
&gt; > > > >I found my mistake here, in the configuration, configuration
> settings,
> > > > >use_opengl was set to false. I am not sure how it got
switched but
> > > > >setting it back to true fixed the last problem. Now I need
to know
> > > > >why the ".h&quot; file is not being generated.
> > > > > >
> > > > > > In trouble again...
> > > > > >
> > > > > > I downloaded DB 3.04 and created the following:
> > > > > >
> > > > > > wxframe
&gt; > > > > > menubar
&gt; > > > > > wxmenu (file)
&gt; > > > > > menuItem (Close)
&gt; > > > > > wxEVT_COMMAND_MENU_SELECTED
&gt; > > > > > action: Destroy Window, Parameter: ID_FRAME
> > > > > > statusbar
> > > > > > wxGLCanvas
> > > > > >
> > > > > > This compiled and runs fine...
&gt; > > > > >
> > > > > > Modified wxGLCanvas to wxMyGLCanvas, click on separate
> files, added
>; > > > > > file names:
&gt; > > > > > wxMyGLCanvas.cpp
&gt; > > > > > wxMyGLCanvas.h
> > > > > >
> > > > > > DB 3.04 doesnt generate the information for wxMyGLCanvas.h
like
> > >it did
> > > > > > for DB 3.02. Get error saying no file found, wxMyGLCanvas.h
> > > > > >
> > > > > > Now for the weird part... I tried to go back to the prior
>; working
&gt; > > > > > version and I get the following error message when I click
>; on build
>; > > > > > and run button:
&gt; > > > > >
> > > > > > openglframe.obj : error LNK2019: unresolved external symbol
&gt; "public:
> > > > > > __thiscall wxGLCanvas::wxGLCanvas(class wxWindow *,int,class
> wxPoint
&gt; > > > > > const &,class wxSize const &,long,class wxString const &,int
> *,class
&gt; > > > > > wxPalette const &)&quot;
> > > > > >
> > > >
> > >
>
>(??0wxGLCanvasQAEPAVwxWindowHABVwxPointABVwxSizeJABVwxStringPA
>
> > > HABVwxPaletteZ)
> > > > > > referenced in function "public: void __thiscall
> > > > > > OpenGLFrame::CreateControls(void)"
> > >(?CreateControlsOpenGLFrameQAEXXZ)
&gt; > > > > > DebugMSW\testOpenGLCanvas.exe : fatal error LNK1120: 1
> unresolved
> > > > > > externals
> > > > > > *** NMAKE : fatal error U1077: 'link' : return code '0x460'
&gt; > > > > > *** Stop.
>; > > > > >
> > > > > > I started from scratch and I get the same message. Reboot the
> > >Windows
> > > > > > XP pc and still get the same message.
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >Yahoo! Groups Links
>; > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> >
>
>==============================================================================
> > > > Julian Smart julian
> > > > 28/5 Gillespie Crescent, Edinburgh, http://www.anthemion.co.uk
&gt; > > > Midlothian, U.K., EH10 4HU +44 (0)131 229 5306
> > > > Writer's Cafe: power tools for writers
http://www.writerscafe.co.uk
> > > > HelpBlocks: HTML help authoring http://www.helpblocks.com
>; > > > DialogBlocks: cross-platform dialogs
&gt; > >http://www.anthemion.co.uk/dialogblocks
> > > >
> >
>
>==============================================================================
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >Yahoo! Groups Links
>; > >
> > >
> > >
> > >
> >
> >
>
==============================================================================
> > Julian Smart julian
> > 28/5 Gillespie Crescent, Edinburgh, http://www.anthemion.co.uk
&gt; > Midlothian, U.K., EH10 4HU +44 (0)131 229 5306
> > Writer's Cafe: power tools for writers http://www.writerscafe.co.uk
> > HelpBlocks: HTML help authoring http://www.helpblocks.com
>; > DialogBlocks: cross-platform dialogs
> http://www.anthemion.co.uk/dialogblocks
> >
>
==============================================================================
> >
>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )