GetActivePane no longer works in VC++ 2005  
Author Message
ted944





PostPosted: Visual C++ General, GetActivePane no longer works in VC++ 2005 Top

I used the CSplitterWnd::GetActivePane(int&, int&) function and it worked fine with VC++ 6.0.
Recently I started the process of moving the code to the new VC++ 2005.

Under VC++ 2005, the code compiled OK but it does not run because the GetActivePane function
is somehow made obsolete (see afxext.inl). Any idea why

So how do I get this function back or any ways to get around of this problem

Thanks

Ted


Visual C++10  
 
 
Viorel.





PostPosted: Visual C++ General, GetActivePane no longer works in VC++ 2005 Top

I think new function requires pointers instead of references: GetActivePane(&x, &y). So it seems you have to add "&".


 
 
ted944





PostPosted: Visual C++ General, GetActivePane no longer works in VC++ 2005 Top

Thanks. That fixed the problem.
This API change is going to break a lot of code since they all compile but don't run.