|
Debs* wrote: I would like to create a program that would start another program running (multiple times but I'll start with just once).
See here.
"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
|
|
|
|
|
Cheers* Exactly what I needed.
|
|
|
|
|
how to determine programmly if the floating number gets this value?
its after beign printed out thru printf() that reveals the floating number equal to such strange value
|
|
|
|
|
float s have 3 unprintable values :
- NaN : Not a number (like tan(pi/2))
- negative infinite
- positive infitite
here, you have a NaN ...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
how to dermine if it is NaN or positive, negative infinity?
9ine
|
|
|
|
|
|
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.
|
|
|
|