VS 2005 Pain Solved!

As it turns out, If you define and implement your whole class/structure in a .h file a consumer needs to mark it #pragma unmanaged.  If you don't delete will get confused and issue the errors i received from my earlier post.

Comments [1]

Disable Intellisense

Would you like to just get some work done in VC++ 2005 or 2007?  Then rename or delete the following file:
<VS root path>\VC\vcpackages\feacp.dll

Beware class view(I don't use it my project is to large) will no longer work.  And c++ winforms will not work.  I have Visual Assist X and CodeRush/Refactor! so i still have all that Intellisense offers only better!


 

Comments [0]

This is embarrassing

With one little mistake comes a nasty memory leak.  We found this in some of the code i wrote

CMenu* CLMI::GetLenderMenu(void)
{
    //test if lender should show up if not
    if ( !ShowLender() )
        return NULL;

    CMenu* clm = new CMenu();......


Sadly clm was never reclaimed, and MFC redraws the Main menu every time you blink so can you say bad :(

Comments [0]

VS 2005 pains

This is interesting, I am moving a vc++ project to VS 2005.  When i run it in debug mode i receive this error:

---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: c:\Dev\Point\PointMain\Debug\Winpoint.exe
File: dbgdel.cpp
Line: 52

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.


This I can trace back to the call to delete in this function:

    void RemoveIt(CDlgAncItem* item)
    {
        if (item)
        {
            RemoveIt(item->next);
            delete(item);
        }
    }

The CDlgAncItem is a class it has a destructor and a copy constructor.  I am not sure why the debugger is losing track of the memory, Its a pretty simple data structure stored in a dynamically allocated link list.
Edit: I found a solution.
Comments [0]

New January Orcas CTP

Looks like its time to start playing with Orcas.  After reading this month's CTP download details there finally looks to be some meat.

Download the CTP VPC image at:

Microsoft Pre-release Software Visual Studio Code Name "Orcas" - January 2007 Community Technology Preview (CTP)

Comments [0]

Nothing new on the home front thought I would pass along some posts of intrest.

Since I am still working on my blog about what I did for my winter break I thought I would share a couple items that I noticed in this morning.

Alfred Thompson's Blog talks about an issue I think of whenever I hear Spec documentation is being designed without customer involvement. And I found Scott Gu's announcement that the new Yahoo Messenger is build with WPF and .net rather interesting.

Comments [0]

ATM network not very secure

I picked up this issue from Mike Walker blog  where he reports that the US Secret Service is calling the ATM system unsafe after reading this post and the original report from Bob Sullivan's blog.  It Basically amounts the the fact that researchers that work for an Israeli computer security company have released a report in how the ATM network can be compromised in order to reveal PIN numbers.  ATM PIN's are essentially decrypted and encrypted on every network hop so if one machine is compromised it becomes simple to crack the PIN's encryption. And apparently this is some thing the Russian Mob is very interested in.  The Israely company release this report after being dismayed with the American Banks lack of action(Banks were informed of this security flaw in the ATM protocol 2 months before the release of the report.)

Comments [1]

msn radio powered by PANDORA

If you haven't seen it yet you might want to check out MSN radios new player powered by Pandora basically it will create a unique play list of music based on a song or artist you give it.  I have been playing with it for that past few days its been pretty cool.

Comments [0]

Humble pie any one?

Apologies to Mark Miller for a comment I left on his blog
Comments [1]

What is Centro?

Centro much like Small business server(code named cougar) is a bundle of several Microsoft technologies namely Longhorn(Vista server) Exchange Server 2007.  but targeted at business with 250 ish computers so larger then a small business but not an Enterprise.  Check out The SBS and Centro Community Lead Blog For Microsoft's explanation.

Comments [0]