R
Roger Crawfis
I am getting a very strange compiler error for the following code:
catch (OpenGLPanelException *openGLError)
{
//std::string * errorMessage = new
std::string(openGLError->errorString);
System::Windows::Forms::MessageBox::Show( "junk" ); //, "OpenGL Error",
MessageBoxButtons::OK,
//MessageBoxIcon::Exclamation );
exit(1);
}
The error message is:
Compiling...
Form1.cpp
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(75) : error C2039:
'MessageBoxA' : is not a member of 'System::Windows::Forms'
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(75) : error C2660:
'System::Windows::Forms::Control::Show' : function does not take 1 arguments
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(246) : warning C4244:
'argument' : conversion from 'double' to 'GLfloat', possible loss of data
Build log was saved at "file://d:\MSDev\Shared
Projects\OpenGLPanel\Test1\Debug\BuildLog.htm"
Test1 - 2 error(s), 1 warning(s)
It appears to want to replace the text as if a #define is taking precedence
somewhere. The include information is:
#include <windows.h>
#include <GL\gl.h>
#include <iostream>
namespace Test1
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:rawing;
using namespace OhioState;
If I do not fully scope it, the tooltip seems to indicate MessageBox is the
MFC instance.
Any help or suggestions?
Roger
catch (OpenGLPanelException *openGLError)
{
//std::string * errorMessage = new
std::string(openGLError->errorString);
System::Windows::Forms::MessageBox::Show( "junk" ); //, "OpenGL Error",
MessageBoxButtons::OK,
//MessageBoxIcon::Exclamation );
exit(1);
}
The error message is:
Compiling...
Form1.cpp
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(75) : error C2039:
'MessageBoxA' : is not a member of 'System::Windows::Forms'
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(75) : error C2660:
'System::Windows::Forms::Control::Show' : function does not take 1 arguments
d:\MSDev\Shared Projects\OpenGLPanel\Test1\Form1.h(246) : warning C4244:
'argument' : conversion from 'double' to 'GLfloat', possible loss of data
Build log was saved at "file://d:\MSDev\Shared
Projects\OpenGLPanel\Test1\Debug\BuildLog.htm"
Test1 - 2 error(s), 1 warning(s)
It appears to want to replace the text as if a #define is taking precedence
somewhere. The include information is:
#include <windows.h>
#include <GL\gl.h>
#include <iostream>
namespace Test1
{
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:rawing;
using namespace OhioState;
If I do not fully scope it, the tooltip seems to indicate MessageBox is the
MFC instance.
Any help or suggestions?
Roger