|
[ccode]
GetKeyState(VK_CONTROL) < 0 ? it's down : it's up
[/ccode]
|
|
|
|
|
Hi, all!
Does anyone of you know where I can get the C++ source codes for an algorithm named "Subspace iteration", which is mainly for the calculation of eigenvalues and eigenvectors.
Thank you very much for your help!
Jeffrey
|
|
|
|
|
- How to read C++ in English? "C plus plus" or "C double plus"?
- Still a question, how to read "Windows 2000"? "Windows two thousand"?
- Can you help?
- Regards,
Maer
|
|
|
|
|
Who on earth says C double plus ? How else would you say Windows 2000 ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
C double plus is doubleplusungood
--Mike--
http://home.inreach.com/mdunn/
If there's something strange / in your VC code / Who you gonna call? / Ghostbusters!
your with and
|
|
|
|
|
- Thanks pal!
- I want to know how you read it? "C plus plus"?
- Can you help?
- Regards,
Maer
|
|
|
|
|
- Thanks pal!
- A fellow told me today when VOA says "C++", it is often pronounce as "C double plus". So I am puzzled.
- I do not know how to read is popular.
- Can you help?
- Regards,
Maer
|
|
|
|
|
I'm not sure you've asked me another question ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
- I just want to know how to read is correct. I think yours is correct. So I ask for your pronunciation. : )
- Regards,
Maer
|
|
|
|
|
C++ = "C plus plus"
Windows 2000 = "Windows two thousand"
Hope this helps.
|
|
|
|
|
C plus plus. Most programmers I know say "win 2K" or just "2K" when referencing Win 2000.
--Mike--
http://home.inreach.com/mdunn/
If there's something strange / in your VC code / Who you gonna call? / Ghostbusters!
your with and
|
|
|
|
|
Maer727 If you concentrate on naff stuff like this in a section about C++ programming techniques then I;m afraid there's not much hope for you in programming.
Concentrate on the real work and leave the nonsense behind.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
- Thanks for your suggestions, Rassman pal!
- I am not a native speaker of English speaking country, so there is often trouble when dealing with some special words about C++ with native speaker of English.
- Have a nice weekend,
Maer
|
|
|
|
|
- In MSDN(Ti:SystemParametersInfo), it is said "fWinIni ... This parameter can be zero if you don't want to update the user profile or broadcast the WM_SETTINGCHANGE message ... ".
- I do not know what means "user profile" here.
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
I've understood that all the minimized windows can be grouped into a single bar, called taskbar just like the windows taskbar, but i don't know how can i make that the minimized windows don't have the restore button, and all the rest. So my question is how, can i build a taskbar into an app?, using the doking windows?, or how?
|
|
|
|
|
- In MSDN (Ti: NONCLIENTMETRICS), first paragraph, it is said "The NONCLIENTMETRICS structure contains the scalable metrics associated with the nonclient area of a nonminimized window. "
- I do not know what means "scalable metrics" here.
- Can you show me an example?
- Regards,
Maer
|
|
|
|
|
Here is my problem! I have three classes set up sort of like this:
class MainClass
{
CSocketClass * pSock; // instance of my socket class.
}
class CSocketClass
{
CSocketAddr * pObj;
};
class CSocketAddr
{
operator LPSOCKADDR()
{
return ( LPSOCKADDR )( LPSOCKADDR_IN )this;
}
}
When I call my MainObject->pSock->bind() [which uses my LPSOCKADDR override] and try to do some binding, the pointer this does not refer to the class I called it from, it points back to my main object! That is bunk! When I say "this" I want the class I am calling in. Is it just me?
Peace.
----
Xian
|
|
|
|
|
What does you bind function look like?
Todd Smith
|
|
|
|
|
void XSocket::bindAddress()
{
if( ::bind( m_hSocket, ( LPSOCKADDR )m_pAddress, sizeof( SOCKADDR ) ) == SOCKET_ERROR )
throw "bindAddress";
}
Well, not anymore...
I got around this by not overloading operators and calling member funcs explicitly. It still p1ss3s me off though! I think the "this" pointer within a class should reference the class it is within.
Peace.
----
Xian
|
|
|
|
|
I've Created a Internet Explorer Bar using vc 6.0.My project can run smoothly in Windows 2000,But in Windows Me,When I close IE,It will popup a error message which said "Iexplore have unknown error,will closed".
In my project,I use a MFC regular dll writed by myself,this dll has been tested ok.
Who can tell me what's the possible mistakes in my project?
|
|
|
|
|
The first one would be using Windows2000 api methods not available in Windows ME.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hi all!
I made a dialog base application and wanted to use a class I wrote before. I copied the header file and the implementation file to the project folder and use "add files to project" option to add these 2 files. These 2 files are actually working files. However, when I tried to recompile the project, it kept giving me this error.
------Configuration: MyProject - Win32 Release----------
Compiling...
controllerList.cpp
D:\MyProject\MyPoint.cpp(188) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.
Does any one know what is wrong here?
Thank You
Vu
The class is very simple. If you need to have a look, here it is:
//---------------------
myPoint.h
//---------------------
#ifndef MYPOINT_H
#define MYPOINT_H
class MyPoint
{
private:
int x,y;
public:
MyPoint();
~MyPoint();
void setPoint(int,int);
int getX();
int getY();
};
#endif
//---------------------
myPoint.cpp
//---------------------
#include "MyPoint.h"
MyPoint::MyPoint()
{
x= 0;
y=0;
}
MyPoint::~MyPoint()
{
x=-1;
y=-1;
}
int MyPoint::getX()
{
return x;
}
int MyPoint::getY()
{
return y;
}
void MyPoint::setPoint(int x1,int y1)
{
x= x1;
y = y1;
}
vucsuf
|
|
|
|
|
Add #include "stdafx.h" to the top of your file
Nish
|
|
|
|
|
Vu
You have to either turn off use of precompiled headers or enable your class to use precompiled headers.
To turn off Precompiled Headers got to the menu. Select Project -> Settings..., select the C/C++ tab. Select Precompiled Headers from the dropdown combobox. Here you select Not using precompiled headers.
To enable your class to use Precompiled Headers add
#include "stdafx.h"
to the top off you classes header file before all other #include statements.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
Just do a Rebuild all after having added StdAFX.h
A vast majority of our imports comes from outside the country.
George W. Bush
|
|
|
|