Just for a simple information :) . Does a simple 'small' query works? I mean I want to know that here is a general problem or the problem is for that big query.
It would be better if you could use code tags :) ...and also if the code doesn't work then you should upload a sample project that we can try to figure it out why doesn't work.
Well I personaly don't understand what is the error?! "application terminate --> Too Parameters. ... " Can you please more exact and offer more information .... because we don't know what app did you...
Well it's really hard to say what you could do whithout more information ...perhaps you could modify you consol application and put the important things in a static library ( lib ) or in a dynamic...
Did you tried to create a new Temporary projects and put these lines what you showed us ?
I tried at my place and works.... ( I'm using Vs 2005 ).
It's looks fine..... The posted code looks fine...
Well not sure didn't tried it ( If I understand correctly what you are trying to do ) .... but the logic should be that you show the parent window and put the focus back on child :) . :D
pdc->CreateCompatibleDC (pdc);
//Creates a memory device context that is compatible with the device specified by pDC.
So you make compatible the pdc to pdc????
...