Click here to Skip to main content
15,881,738 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow know if a window is above another Pin
Schehaider_Aymen15-Dec-17 5:46
Schehaider_Aymen15-Dec-17 5:46 
AnswerRe: How know if a window is above another Pin
Rick York15-Dec-17 6:09
mveRick York15-Dec-17 6:09 
AnswerRe: How know if a window is above another Pin
Victor Nijegorodov15-Dec-17 9:28
Victor Nijegorodov15-Dec-17 9:28 
GeneralRe: How know if a window is above another Pin
Schehaider_Aymen15-Dec-17 11:07
Schehaider_Aymen15-Dec-17 11:07 
GeneralRe: How know if a window is above another Pin
Richard Andrew x6416-Dec-17 3:15
professionalRichard Andrew x6416-Dec-17 3:15 
AnswerRe: How know if a window is above another Pin
leon de boer16-Dec-17 5:36
leon de boer16-Dec-17 5:36 
QuestionFrame or even Thread exception handler with _try _except/_catch() Pin
ForNow15-Dec-17 3:22
ForNow15-Dec-17 3:22 
QuestionHow to check session created or not in MySQL X DevApi A,k,a X Protocol. Pin
lynxpravoka14-Dec-17 12:49
lynxpravoka14-Dec-17 12:49 
it's been 2 days. i'm struggle with this things. this's still new. the documented it just only help a bit. i want to check session created or not. a.k.a Connected or not. i don't know why the developer MySQL make new terms to call a thing. in this code. everytime i change something credential thing like host, port, user,pass. it return same. and return unexpected result with long zero 00000000000000 if use cout to sess. in my server i already enable X Plugin. my enviroment is Visual Studio Community 2017 c++ desktop.

C++
#include <iostream>
#include "mysql_xapi.h"

using namespace std;

int main()
{
// initiliziation 
	mysqlx_session_t  * sess;
	char conn_error[MYSQLX_MAX_ERROR_LEN];
	int err_code;
// open session. i use port 3306 cause this my mysql default port run. but in documented it says default port is 33060. i don't know it's seperate port to access. but when i change it to 33060. the result still same.

	sess = mysqlx_get_session("127.0.0.1", 3306, "root", "root", "test", conn_error, &err_code);

	if(!sess)
{
cout << "It's not connect";
}
else
{
cout << "It's connect";
}

// close session
	mysqlx_session_close(sess);
	return 0;
}

AnswerRe: How to check session created or not in MySQL X DevApi A,k,a X Protocol. Pin
Jochen Arndt14-Dec-17 21:01
professionalJochen Arndt14-Dec-17 21:01 
GeneralRe: How to check session created or not in MySQL X DevApi A,k,a X Protocol. Pin
lynxpravoka15-Dec-17 2:34
lynxpravoka15-Dec-17 2:34 
GeneralRe: How to check session created or not in MySQL X DevApi A,k,a X Protocol. Pin
Jochen Arndt15-Dec-17 2:51
professionalJochen Arndt15-Dec-17 2:51 
QuestionC pre increment and post increment Pin
Anonygeeker13-Dec-17 23:27
Anonygeeker13-Dec-17 23:27 
AnswerRe: C pre increment and post increment Pin
Richard MacCutchan13-Dec-17 23:52
mveRichard MacCutchan13-Dec-17 23:52 
GeneralRe: C pre increment and post increment Pin
Anonygeeker14-Dec-17 1:05
Anonygeeker14-Dec-17 1:05 
AnswerRe: C pre increment and post increment Pin
Jochen Arndt14-Dec-17 0:01
professionalJochen Arndt14-Dec-17 0:01 
GeneralRe: C pre increment and post increment Pin
Anonygeeker14-Dec-17 1:05
Anonygeeker14-Dec-17 1:05 
GeneralRe: C pre increment and post increment Pin
leon de boer14-Dec-17 6:16
leon de boer14-Dec-17 6:16 
AnswerRe: C pre increment and post increment Pin
Daniel Pfeffer14-Dec-17 2:00
professionalDaniel Pfeffer14-Dec-17 2:00 
GeneralRe: C pre increment and post increment Pin
Anonygeeker14-Dec-17 17:15
Anonygeeker14-Dec-17 17:15 
Questionwchar_t in C Pin
Anonygeeker13-Dec-17 22:18
Anonygeeker13-Dec-17 22:18 
AnswerRe: wchar_t in C Pin
CPallini13-Dec-17 22:44
mveCPallini13-Dec-17 22:44 
AnswerRe: wchar_t in C Pin
Jochen Arndt13-Dec-17 22:50
professionalJochen Arndt13-Dec-17 22:50 
GeneralRe: wchar_t in C Pin
Anonygeeker13-Dec-17 23:51
Anonygeeker13-Dec-17 23:51 
GeneralRe: wchar_t in C Pin
Jochen Arndt14-Dec-17 0:09
professionalJochen Arndt14-Dec-17 0:09 
GeneralRe: wchar_t in C Pin
jschell14-Dec-17 8:48
jschell14-Dec-17 8:48 

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.