Description:
Microsoft Visual C newsgroup.
|
|
|
Question: "const" infront and after a function-declaration: Meaning ?
|
| |
Hello All,
I've been looking at some VC++ sourcecode, and saw some function
declarations which I do not understand because of a 'const' modifier in it.
I even saw a function declaration with one both preceeding as well as
following it.
Could anyone here explain to me why its used and what they mean (at those... more »
|
|
<random> in VC++ 2008 Express Edition
|
| |
Hi,
Is there a way to use stuff from <random> header in VC++ 2008 express (version 3.5 SP1)?
The header file is there but I cannot seem to use the objects as intended according to stl reference for <radnom>, e.g.:
......
std::default_random_engine r;
The compiler just gives me: 'default_random_engine' : undeclared identifier.... more »
|
|
VC++ 2010 - best way to do this !
|
| |
Hello guys, please help me with following problem. I have a.c which includes a.h i have b.c which includes b.h i have b.h which includes c.h (c.lib included) a.c uses some functions which are defined in c.lib. so i included b.h in a.h therby including c lib functions. but iam writing something like hardware abstraction layer.... more »
|
|
Strange clash of WinAPI with communications library
|
| |
... > o a message) calls to the WinAPI functions Sleep, WaitForSingleObject
> cause a stack overflow exception.
... > call to Sleep(400) or after four calls to Sleep(100).
...
Could you post some code snippet showing your communication library usage? How about the stack trace for the exception?... more »
|
|
A good, preferrably command-line Diff & Merge utility for VC++ 2008 ?
|
| |
Hello,
Just a quick question from someone just starting with VC++ , and needing a
way to store changes I'm making to an existing project: I'm looking for a
good diff & merge utility -- you know, for those 'patch files' with lines
starting with either a '-' or a '+' -- and thought that, instead of blindly... more »
|
|
std::string::push_back
|
| |
Excuse me for interuppting, I was an MVP in C++ many years ago but have been rather away doing other things. I have googled around but not had a definitive answer to my question.
My natural way to stick a character at the end of a string would be to do std:;string::push_back(c), where c is of type std::string::value_type (i.e. in practice a char or wchar_t), but with the Dinkumware standard library I have found this is incredibly slower (96ms on my 8 core for one push_back) than std::string::operator+=, and actually slightly quicker than that is std::string:;append(1, c);... more »
|
|
clipboard globalunlock windows
|
| |
AddClipboardFormatListener(thi s->GetSafeHwnd());
if (IsClipboardFormatAvailable(CF _UNICODETEXT)) {
if (::OpenClipboard(this->m_hWnd) ) { HGLOBAL hg_clipdata = ::GetClipboardData(CF_UNICODET EXT);
LPTSTR lptstr; lptstr = (LPTSTR)::GlobalLock(hg_clipda ta); BOOL retv = ::GlobalUnlock(hg_clipdata);... more »
|
|
Just for test
|
| |
I am just testing whether I can send message to server.
--- news://freenews.netfront.net/ - complaints: n...@netfront.net ---
|
|
good app for distributing a large app
|
| |
I am current using the old Wise Installation
System program to distribute our large, 250 MB,
app with many exes, dlls and four sub-directory
levels of sample files. Wise Installer creates
a 80 MB setup.exe program for us.
Unfortunately, Wise Installer does not do silent
installed very well. Does anyone have some... more »
|
|
warning C4786: 'std::_Tree
|
| |
Hi,
am using vc 6.0 on windows 7 while using map its show 100 warnings in the program
this is my code.
...
...using namespace std;
int main(int argc, char *argv[])
{
map<string, string> strMap;
strMap["Monday"] = "MD";
strMap["Tuesday"] = "TD";
strMap["Wednesday"] = "WD";... more »
|
|
|