Click here to Skip to main content
15,902,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Coloring Text Pin
act_x9-Aug-04 5:54
act_x9-Aug-04 5:54 
GeneralHtmlHelp inside DLLs Pin
brdavid9-Aug-04 5:17
brdavid9-Aug-04 5:17 
GeneralRe: HtmlHelp inside DLLs Pin
Blake Miller9-Aug-04 8:15
Blake Miller9-Aug-04 8:15 
GeneralRe: HtmlHelp inside DLLs Pin
brdavid9-Aug-04 10:30
brdavid9-Aug-04 10:30 
GeneralRe: HtmlHelp inside DLLs Pin
Blake Miller10-Aug-04 5:08
Blake Miller10-Aug-04 5:08 
GeneralRe: HtmlHelp inside DLLs Pin
brdavid10-Aug-04 6:33
brdavid10-Aug-04 6:33 
GeneralCustom Appwizard in VC.Net Pin
BlackDice9-Aug-04 4:40
BlackDice9-Aug-04 4:40 
GeneralSQL Server Connection String Pin
shultas9-Aug-04 4:27
shultas9-Aug-04 4:27 
Hey all. I'm having a problem getting a connection to a SQL Server to timeout. What is happening is I am using CDatabase::OpenEx (code below). If the computer is disconnected from the network, or the database server is down, the program just hangs forever. It never even times out after five or ten minutes and I have to manually end the process.

Here's what I'm using to connect:
CString DBCONNECT = "Driver={SQL Server};Connection Timeout=10;Server=DSC\\DAVEINSTANCE;Database=Master;Uid=sasd; Pwd=blah;"

(I put a space between ; and Pwd because the smiley was showing up)

CDatabase myDB;
myDB.SetLoginTimeout(10);
TRY {
myDB.OpenEx(DBCONNECT,CDatabase::noOdbcDialog);

.... I've tried without "Connection Timeout=10;" in the connection string, and only using myDB.SetLoginTimeout ... and vice versa ... without SetLoginTimeOut. I've also tried "Connect Timeout=10" Neither of these are working. I saw in the MSDN that some connections do not allow SetLoginTimeout, but I'm guessing there has to be a way to time out the connection instead of having the program hang on myDB.OpenEx().

Any help would be appreciated.
GeneralCPU usage going to 100% full from running a DDE using VC++ Pin
swerajan9-Aug-04 3:53
swerajan9-Aug-04 3:53 
GeneralRe: CPU usage going to 100% full from running a DDE using VC++ Pin
David Crow9-Aug-04 4:00
David Crow9-Aug-04 4:00 
GeneralRe: CPU usage going to 100% full from running a DDE using VC++ Pin
swerajan9-Aug-04 4:03
swerajan9-Aug-04 4:03 
QuestionHow do I read .cda file from a CD? /w Win 32 API Pin
Link26009-Aug-04 3:34
Link26009-Aug-04 3:34 
Generalselection problem --- Pin
nainakhawaja9-Aug-04 2:35
nainakhawaja9-Aug-04 2:35 
GeneralRe: selection problem --- Pin
David Crow9-Aug-04 2:44
David Crow9-Aug-04 2:44 
GeneralRe: selection problem --- Pin
nainakhawaja9-Aug-04 2:52
nainakhawaja9-Aug-04 2:52 
GeneralRe: selection problem --- Pin
Stlan9-Aug-04 3:07
Stlan9-Aug-04 3:07 
GeneralRe: selection problem --- Pin
David Crow9-Aug-04 3:16
David Crow9-Aug-04 3:16 
GeneralRe: selection problem --- Pin
John R. Shaw9-Aug-04 4:08
John R. Shaw9-Aug-04 4:08 
GeneralDream project for D R M receivers Pin
samandmag9-Aug-04 1:59
samandmag9-Aug-04 1:59 
GeneralNon-uniform width button in toolbar Pin
gokings9-Aug-04 1:53
gokings9-Aug-04 1:53 
GeneralRe: Non-uniform width button in toolbar Pin
John R. Shaw9-Aug-04 4:35
John R. Shaw9-Aug-04 4:35 
GeneralRe: Non-uniform width button in toolbar Pin
gokings9-Aug-04 7:39
gokings9-Aug-04 7:39 
Generalsizeof(class) question Pin
kfaday9-Aug-04 1:43
kfaday9-Aug-04 1:43 
GeneralRe: sizeof(class) question Pin
gokings9-Aug-04 1:50
gokings9-Aug-04 1:50 
GeneralRe: sizeof(class) question Pin
kfaday9-Aug-04 13:15
kfaday9-Aug-04 13:15 

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.