|
|
It stands for INDefinite, which is a quiet NaN.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
I'm using the grid control from
http://www.codeproject.com/miscctrl/gridctrl.asp[^]
I placed a custom control, and made it of class MFCGridCtrl as the article says to.
And I #include "gridctrl.h". However I dont see this custom control (which I name IDC_GRID) in the class wizard, in the member variables tab. What do I need to do to make this grid show up in the cwizard?
thanks,
sb
|
|
|
|
|
Remove (or bettter, change its name ) the .clw file in your project folder. Then reopen class wizard and it will ask you to rebuild the file from source, say yes.
This should work.
|
|
|
|
|
Thanks!Appreciate your help!
I see it now.
|
|
|
|
|
|
I'm using VC++ Express edition to compile an old MFC project.
(I have still install VC++ 5.0)
After including the proper include directory I was able to properly
built and run it but in DEBUG only. When I turn to the release I got the following
message:
C:\Programmi\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin1.inl(1014) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Does anyone can help me ?
Ciao
Andrea
|
|
|
|
|
show us that line of code (afxwin1.inl line 1014)
it seems that it declares a variable without type specification...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Here it is
AFXWIN_INLINE CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
but HMENU should be declare and the strange it's that in
debug mode it works perfectly
Thank
|
|
|
|
|
AndreaF wrote: AFXWIN_INLINE CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
shouldn't it be this instead ?
AFXWIN_INLINE <code>BOOL</code> CMenu::operator==(const CMenu& menu) const
{ return ((HMENU) menu) == m_hMenu; }
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
I did not wrote that file it comes from the visual C++ 5.0 MFC include.
So to edit it it's a bad idea I think.
Thank
|
|
|
|
|
AndreaF wrote: I did not wrote that file it comes from the visual C++ 5.0 MFC include.
i know you didn't write it, and it is obvious that it doesn't come with the newer version of visual C++, simply because it doesn't compile.
Visual C++ was far from beeing compliant to the current standard of C++, so i advise you to either compile with the MFC source files provided with your new compiler, or do the update yourself and recompile MFC.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Do you have any idea why in debug it goes without problem?
|
|
|
|
|
Probably because the project properties are different in debug and release mode (e.g. other include directories). Check out if both settings are the same.
|
|
|
|
|
Done since 2 hours ago
Of course apart setting the _DEBUG macro which will make everything
in debug and not in release
thank
Andrea
|
|
|
|
|
Have you installed a recent Platform SDK (IE one dating from this century, preferably not older than 2 years)?
The platform SDK ist available at Microsofts download page.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
Yes I did, but of course what I'm trying to do it's using the new platform
with the old MFC.
But in debug mode it was really straight.
Thank
|
|
|
|
|
AndreaF wrote: Yes I did, but of course what I'm trying to do it's using the new platform
with the old MFC.
Out of any special reasons?
The new MFC and the compiler is superiour in every respect. Use it!
From my experience, there is just a little Find&Replace to be done. (And switching off some warnings )
As of why it is working in debug: Have you tried setting the 'C++'-part of the project-properties like it is in 'DEBUG' mode? Maybe some setting here lets the compiler stop instead of simply complain.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
I'll try and let you know
|
|
|
|
|
You just told me here[^] that everything was the same.
|
|
|
|
|
|
Hello All!
Its my first message on the forum though I am a member of CodeProject for quite a while...
I am currently trying to learn OpenGL on Win32 Platforms to simplfy the task, I downloaded GLUT32 Toolkit and did the following
1) Pasted the GLUT.h in Include/gl directory (gl.h, and glu.h already there...)
2) Pasted the GLUT32.lib in Lib Directory
3) Pasted GLUT32.dll in System32 Directory
Now
#include <gl/glut.h>
give error
c:\Documents and Settings\Mohsin Hijazee\My Documents\Visual Studio Projects\OpenGL Test\stdafx.h(21): fatal error C1083: Cannot open include file: 'gl/glut.h': No such file or directory
I am unable to understand why is it so...
Please guide me what is that I am doing wrong?
Best regards,
Mohsin
Polite Programmer
More Object Oriented then C#
|
|
|
|
|
Go to project>settings and in the object library module box add the following
to link to OpenGL Libraries
Opengl32.lib glaux.lib glu32.lib
Now compile
Does this solve your problem
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
It's not a link error but a compile error. So, the first thing to check is the include directories, not the library directories.
But anyway, this problem will probably occur later if didn't add the library directory to his project .
|
|
|
|
|
Make sure that in your project settings you have added the path to the include folder of openGL in the "Additional Include Directories" option.
This option can be found in the C/C++ tab -> General.
|
|
|
|