Click here to Skip to main content
15,902,189 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: C++/CLI: Formatting outputs (decimal places, hexadecimal, case notation) Pin
TigerNinja_24-Dec-08 19:04
TigerNinja_24-Dec-08 19:04 
QuestionConverting COM object to actual unmanaged type pointer Pin
sajanemmanuel14-Dec-08 18:50
sajanemmanuel14-Dec-08 18:50 
QuestionCreating a Registry Value in C++/CLI environment Pin
J_E_D_I13-Dec-08 8:36
J_E_D_I13-Dec-08 8:36 
AnswerRe: Creating a Registry Value in C++/CLI environment Pin
Mark Salsbery13-Dec-08 10:01
Mark Salsbery13-Dec-08 10:01 
GeneralRe: Creating a Registry Value in C++/CLI environment Pin
J_E_D_I13-Dec-08 17:33
J_E_D_I13-Dec-08 17:33 
GeneralRe: Creating a Registry Value in C++/CLI environment Pin
Mark Salsbery14-Dec-08 9:40
Mark Salsbery14-Dec-08 9:40 
AnswerRe: Creating a Registry Value in C++/CLI environment Pin
leonigah18-Dec-08 23:04
leonigah18-Dec-08 23:04 
QuestionHow to check availability of internet connection Pin
anveshvm11-Dec-08 3:00
anveshvm11-Dec-08 3:00 
Hi I have an SQL query which is to be executed from the server. Just before executing, I am checking if the internet is available or not.

I am using InternetGetConnectedState api to implement this.

But this call returns true, for 2-3 seconds after the network connection is lost. This causes the application to hang.

Pls verify my code and check if it is the appropriate code

---------------------------------------------------

[DllImport("wininet.dll",
SetLastError=true,CharSet=CharSet::Unicode,ExactSpelling=true,
CallingConvention=CallingConvention::StdCall)]
static bool InternetGetConnectedState(int &Description, int ReservedValue ) ;

bool IsConnectedToInternet()
{
int Desc ;
return InternetGetConnectedState(Desc, 0 ) ;
}

if (IsConnectedToInternet())
{
mysql_query(mysqlConnectorObject,sqlQuery);
return mysql_store_result(mysqlConnectorObject);
}
else
{
MessageBox::Show("Not connected");
}

----------------------------------------------------

Thanks in advance

Anvesh
GeneralRe: How to check availability of internet connection Pin
Luc Pattyn11-Dec-08 3:16
sitebuilderLuc Pattyn11-Dec-08 3:16 
GeneralRe: How to check availability of internet connection Pin
anveshvm11-Dec-08 4:12
anveshvm11-Dec-08 4:12 
GeneralRe: How to check availability of internet connection Pin
Luc Pattyn11-Dec-08 4:36
sitebuilderLuc Pattyn11-Dec-08 4:36 
GeneralRe: How to check availability of internet connection Pin
anveshvm11-Dec-08 4:42
anveshvm11-Dec-08 4:42 
GeneralRe: How to check availability of internet connection Pin
Luc Pattyn11-Dec-08 13:29
sitebuilderLuc Pattyn11-Dec-08 13:29 
QuestionHow to check the return value of a messagebox Pin
anveshvm11-Dec-08 2:52
anveshvm11-Dec-08 2:52 
GeneralRe: How to check the return value of a messagebox Pin
Luc Pattyn11-Dec-08 3:10
sitebuilderLuc Pattyn11-Dec-08 3:10 
GeneralRe: How to check the return value of a messagebox Pin
anveshvm11-Dec-08 3:31
anveshvm11-Dec-08 3:31 
GeneralRe: How to check the return value of a messagebox Pin
Luc Pattyn11-Dec-08 3:43
sitebuilderLuc Pattyn11-Dec-08 3:43 
QuestionHow to call base class method Pin
s196675m8-Dec-08 8:54
s196675m8-Dec-08 8:54 
AnswerRe: How to call base class method Pin
Mark Salsbery8-Dec-08 9:51
Mark Salsbery8-Dec-08 9:51 
GeneralRe: How to call base class method Pin
Eytukan12-Dec-08 19:49
Eytukan12-Dec-08 19:49 
GeneralRe: How to call base class method Pin
Mark Salsbery13-Dec-08 6:52
Mark Salsbery13-Dec-08 6:52 
QuestionGetting HDD serial No in C++/CLI environment Pin
J_E_D_I5-Dec-08 21:50
J_E_D_I5-Dec-08 21:50 
AnswerRe: Getting HDD serial No in C++/CLI environment Pin
Mark Salsbery6-Dec-08 6:12
Mark Salsbery6-Dec-08 6:12 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
J_E_D_I6-Dec-08 9:07
J_E_D_I6-Dec-08 9:07 
GeneralRe: Getting HDD serial No in C++/CLI environment Pin
Mark Salsbery6-Dec-08 9:36
Mark Salsbery6-Dec-08 9:36 

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.