Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
KarstenK7-Jul-08 3:48
mveKarstenK7-Jul-08 3:48 
AnswerRe: Service Programming - How to tell if the current process is running as a Windows Service.. Pin
Nibu babu thomas7-Jul-08 17:41
Nibu babu thomas7-Jul-08 17:41 
QuestionArray of pointers to functions Pin
softwaremonkey7-Jul-08 3:37
softwaremonkey7-Jul-08 3:37 
AnswerRe: Array of pointers to functions Pin
Iain Clarke, Warrior Programmer7-Jul-08 4:04
Iain Clarke, Warrior Programmer7-Jul-08 4:04 
QuestionRe: Array of pointers to functions Pin
David Crow7-Jul-08 4:24
David Crow7-Jul-08 4:24 
AnswerRe: Array of pointers to functions Pin
softwaremonkey8-Jul-08 1:20
softwaremonkey8-Jul-08 1:20 
QuestionMigration Approach Pin
Member 35010957-Jul-08 2:55
Member 35010957-Jul-08 2:55 
QuestionAdo slow connection to sql server when compiled with VS2008 Pin
peterboulton7-Jul-08 2:26
professionalpeterboulton7-Jul-08 2:26 
I've been scratching my head about this for a couple of days and am getting nowhere!

I upgraded my existing MFC app from VS2005 to VS2008. It uses ADO to connect to a sql server database. When compiled under VS2005 the connection to the server via the _ConnectionPtr interface opens virtually instantly.

When compiled under VS2008, the first time in my app takes around 30 seconds to return from _ConnectionPtr::Open, though if I close the connection and then open it again it's back to near instant. And the app runs 100% fine thereafter - no crashes, freezes etc..

It's literally freezing in the 'm_pConnection->Open(_bstr_t(m_strConnection),...' bit. I cannot trace deeper than that call!

I've created a simple console app with the bare minimum stuff needed for ADO with MFC and it connects instantly under VS2008. So I'm confused!

I'm thinking it must be something in my project settings. Also, my app uses a non-standard byte alignment for historical reasons, but it did under VS2005 and connected near instantly.

Any suggestions would be very gratefully received! Thanks!

Pete
QuestionQuery on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 1:48
ComplexLifeForm7-Jul-08 1:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
KarstenK7-Jul-08 2:29
mveKarstenK7-Jul-08 2:29 
GeneralRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm7-Jul-08 8:40
ComplexLifeForm7-Jul-08 8:40 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:48
Saurabh.Garg7-Jul-08 15:48 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
Saurabh.Garg7-Jul-08 15:50
Saurabh.Garg7-Jul-08 15:50 
AnswerRe: Query on DLL manifest file for a project compiled with VC++ 2005 SP1 Pin
ComplexLifeForm9-Jul-08 2:28
ComplexLifeForm9-Jul-08 2:28 
Questionhow can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 1:18
danginkgo7-Jul-08 1:18 
AnswerRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman7-Jul-08 2:36
rp_suman7-Jul-08 2:36 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 3:04
danginkgo7-Jul-08 3:04 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman7-Jul-08 3:43
rp_suman7-Jul-08 3:43 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 19:30
danginkgo7-Jul-08 19:30 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
rp_suman8-Jul-08 4:36
rp_suman8-Jul-08 4:36 
QuestionRe: how can I display a bitmap with an alpha chanel? Pin
Mark Salsbery7-Jul-08 6:25
Mark Salsbery7-Jul-08 6:25 
AnswerRe: how can I display a bitmap with an alpha chanel? Pin
danginkgo7-Jul-08 19:17
danginkgo7-Jul-08 19:17 
GeneralRe: how can I display a bitmap with an alpha chanel? Pin
Mark Salsbery8-Jul-08 6:12
Mark Salsbery8-Jul-08 6:12 
QuestionIE in my app Pin
Ajay L D7-Jul-08 1:15
Ajay L D7-Jul-08 1:15 
AnswerRe: IE in my app Pin
Varghese Paul M7-Jul-08 1:22
Varghese Paul M7-Jul-08 1:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.