Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIn MFC how to achieve multilevel undo/redo operations for CRichEditCtrl? Pin
steffi12317-Dec-17 19:13
steffi12317-Dec-17 19:13 
AnswerRe: In MFC how to achieve multilevel undo/redo operations for CRichEditCtrl? Pin
Victor Nijegorodov17-Dec-17 21:03
Victor Nijegorodov17-Dec-17 21:03 
AnswerRe: In MFC how to achieve multilevel undo/redo operations for CRichEditCtrl? Pin
_Flaviu17-Dec-17 22:13
_Flaviu17-Dec-17 22:13 
QuestionHow to insert char* to char array - WITHOUT using string Pin
Vaclav_16-Dec-17 4:52
Vaclav_16-Dec-17 4:52 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
PIEBALDconsult16-Dec-17 4:57
mvePIEBALDconsult16-Dec-17 4:57 
AnswerRe: How to insert char* to char array - WITHOUT using string Pin
Victor Nijegorodov16-Dec-17 5:06
Victor Nijegorodov16-Dec-17 5:06 
AnswerRe: How to insert char* to char array - WITHOUT using string Pin
leon de boer16-Dec-17 5:08
leon de boer16-Dec-17 5:08 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
Vaclav_16-Dec-17 10:43
Vaclav_16-Dec-17 10:43 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
Victor Nijegorodov16-Dec-17 21:31
Victor Nijegorodov16-Dec-17 21:31 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
Vaclav_20-Dec-17 7:25
Vaclav_20-Dec-17 7:25 
AnswerRe: How to insert char* to char array - WITHOUT using string Pin
jschell16-Dec-17 8:55
jschell16-Dec-17 8:55 
AnswerRe: How to insert char* to char array - WITHOUT using string Pin
Richard MacCutchan16-Dec-17 9:51
mveRichard MacCutchan16-Dec-17 9:51 
AnswerRe: How to insert char* to char array - WITHOUT using string Pin
Munchies_Matt20-Dec-17 3:47
Munchies_Matt20-Dec-17 3:47 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
Vaclav_20-Dec-17 7:31
Vaclav_20-Dec-17 7:31 
GeneralRe: How to insert char* to char array - WITHOUT using string Pin
Munchies_Matt20-Dec-17 21:53
Munchies_Matt20-Dec-17 21:53 
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 

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.