Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

ToxickZero

@ToxickZero
About
Posts
6
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Spoilt by .NET
    T ToxickZero

    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.

    The Lounge php csharp tools question

  • Spoilt by .NET
    T ToxickZero

    Josh Smith wrote:

    PHP is old and not made by MS.

    The same could be said about C++. :laugh:

    The Lounge php csharp tools question

  • Macros in Version 6
    T ToxickZero

    Hello 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?

    Visual Studio c++ question announcement

  • Best practices question: do you comment out or delete old code?
    T ToxickZero

    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.

    The Lounge question com

  • Just a quick one
    T ToxickZero

    char* buffer;

    int fileSize = WhateverToGetFileSize();

    buffer = new char[fileSize];

    DoStuffWithBuffer(buffer);

    delete[] buffer;

    C / C++ / MFC question c++

  • MFC Serialization Questions..
    T ToxickZero

    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

    C / C++ / MFC c++ json question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups