I guess I'm the only one who loves PHP. (Although, not as much as C++ :) ) There are PHP editors out there which include things like auto-completion and color syntax highlighting. Both commerical[^] and free[^]. There is also a add-in[^] available for Visual Studio 2005, which costs money - and Eclipse[^] just released a (free) PHP plug-in for their platform as well.
ToxickZero
Posts
-
Spoilt by .NET -
Spoilt by .NETJosh Smith wrote:
PHP is old and not made by MS.
The same could be said about C++. :laugh:
-
Macros in Version 6Hello experts, Is there a way to tie a Macro to a hotkey? For instance I've written a macro that inserts a big old block of comment text at the top of a C++ document. Now I want to be able to push Ctrl+Alt+C or something and fire off that macro. Can it be done in MSVC Version 6?
-
Best practices question: do you comment out or delete old code?I think that if you're using a versioning system, then commenting out code just adds unnecessary clutter, and makes code harder to read, understand and navigate.
-
Just a quick onechar* buffer;
int fileSize = WhateverToGetFileSize();
buffer = new char[fileSize];
DoStuffWithBuffer(buffer);
delete[] buffer;
-
MFC Serialization Questions..One of the ways that I've gotten around this is by outputting the number of elements in the list before outputting the list. Then reading that number at load time to see how many elements are getting ready to get read:
int numElements;
if( ar.IsStoring() ) { numElements = \_yourList.GetCount(); ar << numElements; POSITION pos = \_yourList.GetHeadPosition(); while( pos ) { YourType currElement = \_yourList.GetNext( pos ); currElement.Serialize( ar ); } } else { \_yourList.RemoveAll(); // clear list ar >> numElements; // get number of forthcoming elements for( int i = 0; i < numElements; ++i ) { YourType newElement; newElement.Serialize( ar ); \_yourList.AddTail( newElement ); } }
That's untested code, but you should get the idea. -- modified at 15:34 Friday 30th December, 2005