It came from visual basic, and was adopted for OLE Automation (the IDispatch interface, & the Variant type). So this is one piece of Visual Basic in the Windows API. There are some other pieces in the scripting support. That Visual Basic is truly dead, no longer supported. But pieces of it live on...
> Espanha: a homeopatia é reconhecida como especialidade médica, sendo ensinada nas universidades de Sevilha, Valladolid, Múrcia, Barcelona, Bilbao e Málaga.
In Spain it's a medical specialty, taught in universities.
At work they said to me no STL and no Boost. We're targeting Windows, Linux, OS X and other future OSes we don't even know about yet; we can't depend on these (unportable) third party libraries.
I was like. I can't. It won't. There's. Not. Even. What.
I'm keeping my mouth shut and follow the rules. But it hurts. :(
@wilhelmtell: I suspect that the reason you were given was not the real reason. Instead, manager probably wants code that is "a better C", not that newfangled impossible to understand full C++. Small parts of the code can then be understood by certain employees, or perhaps even by manager himself; employees or temp hires who can understand parts of C-like code are probably mucho cheaper than C++ experts.
i am using vc6. what is wrong in code below, i cant find out:
std::map<int, std::vector<int> > myTemplate;
//append data to map
int temp=0;
for (int i=0;i<=5;i++)
{
std::vector<int> tempVector;
temp+=111;
tempVector.push_back(temp);
std::pair<int, std::v...
@john: a great many people share that sentiment, that DevStudio 6.0 was the best MS IDE. It had to do, I think, with the downhill trend after 6.0, where the IDE to a much larger degree was made by idiots for idiots, and therefore e.g. incorporated ideas about knowing better than the programmer. Lemme fix that for you. It's incredibly annoying when you, for example, write formally correct XML and the ph*cking IDE "corrects" it for you. 6.0 only trashed image files, not more.
@wilx Simple: it's not even close to nonsense at all. The only real room for argument about VC6 being less than the best, would be to argue in favor of VC5 or possibly VC4.2b.
If you really think it's nonsense, consider writing a really good answer to one of my (old) questions:
Having recently installed the beta of VS 2010, I'm curious whether anybody knows how to get it to do something that was quite straightforward with VS 6. To create a simple database browser in VS 6, you could create an MFC application using a database view, connected to (for example an ODBC connec...
The real question is pretty simple: are you interested primarily on something where you can get a pretty screen layout while you're programming, or in something that helps you produce better programs?
@wilx Hmm...I have to guess your vision isn't very good then -- like all WPF-based text, it has some rather serious problems with not drawing fonts correctly. The older versions were even worse, but even in VS 2010, it's still not quite right.
@wilx If you subject yourself to the stock Intellisense, you deserve all the problems you get. Whole Tomato FTW.
@wilx For me the most important thing missing in VS since VS6 is speed. You young folks might be unable to even imagine it, but it used to be that you would click on a menu item and the dialog box would pop up right away - on a machine bought 15 years ago! Nowadays, when I want to open, e.g., the project settings dialog, and I hadn't been doing that recently, it takes forever to load, freezing a 2.8GHz dual core machine with 8GB of RAM. This is most ridiculous and nearly insufferable.
OT: Do you not think that the whole idea of web applications has been taken too far? Why were Java applets not good enough?
It seems to me (I do not do either Java or we apps development) todays web apps development is way more complicated than doing similar simple Java applet would be.
I wrote an addin (which works about 90% of the time) to add C++ projects to a solution, or .cpp files to a project without having to open the "new..." dialog
and using property sheets for nearly everything to avid having to open project properties
@sbi there was. But with VS2010, it became primarily a .NET app
at least according to VS devs blog posts, they've had bits and pieces written in .NET for a long time
Well, to be able to work on any stream, you have to implement it like template <typename CharT, typename Traits> basic_istream<CharT,Traits>& operator>>(basic_istream<CharT,Traits>& is, T& t);.
@AlfPSteinbach: Thanks a lot, I got all the library functions to work! The library is very systematic, all the IntPtrs can just be treated as an opaque void*, and all the Strings are wchar_ts which I run through my standard mbstowcs mill. Cheers!
mysqldump -uroot -pmysql test> C/backup/test.sql
If I run the command above in commandline, it will do a backup for my database "test"
Now, I tried to use the same command inside my Qt C++ code, but it did not work, while I can insert,delete,and update my "test" database easily with no problems...
@KerrekSB It doesn't contain the entire program source code. The difference between IL and source is the same as the difference between x86 assembly and source, the only difference being that IL is much closer to that source than x86 is
@kbok It's a common problem when you try to port template code from VC to other compilers. In VC, the compiler properly compiles templates way to late, and has thus more context than it should have.
@CatPlusPlus This is for educational purposes, so I try not to use boost. But I think it's worth using, even if not shorter, because it would be much clearer IMO.
Oh, and @Cat is right, you should pass data per (non-const) reference. Also, you should not assign to it unless the input operation succeeded. See here for the canonical form of an overloaded input operation.