Home > Software engineering >  Help Daniel to help small white using MFC to do a interface.
Help Daniel to help small white using MFC to do a interface.

Time:10-05

Done with a database, MySQL, now need a interface, but there was not studied MFC,

CodePudding user response:

CodePudding user response:


Do interface, if you want to c # to do, is very fast, almost 10 minutes can do an interface

CodePudding user response:

Completely have not learned you are now beginning to learn, instead of plan is you use the console to render the data

CodePudding user response:

How much can you

CodePudding user response:

CodePudding user response:

The second floor of moderator V5!
C # to do really very fast, but also binding and database,

CodePudding user response:

The use of ado not or interface

CodePudding user response:

A man working outdoors feels more like A man if he can have A bottle of suds

CodePudding user response:

reference pcradio reply: 3/f
completely had not learned just now beginning to learn, instead of a plan is you use the console to render the data
is because we can not use the console, so for help

CodePudding user response:

Quote: refer to 7th floor qq_29700255 response:

The use of ado not or not interface, is there any simple to fit the tutorial

CodePudding user response:

reference 1st floor sichuanpb response:
MFC very not easy to get started

CodePudding user response:

Baidu search "MFC mysql"

CodePudding user response:

I have a vinegar, who can lend me a plate of dumplings

CodePudding user response:

What do what bai, baidu,

CodePudding user response:

http://blog.sina.com.cn/s/blog_6bd471e80100ycv8.html



As long as literacy with figure out

CodePudding user response:

references to the tenth floor xingvivi response:
Quote: refer to 7th floor qq_29700255 response:

The use of ado not or not interface, is there any simple overhand tutorial

Interface requirements, look, complex point for all the graphic map, this need to spend time to learn, simple, don't need a custom painting is vc control can be achieved, just need to grab some data to see to control the use of line, this soon
In addition, the use of vc operation mysql see _RecordsetPtr

CodePudding user response:

reference 13 floor mlqxj35674 reply:
I have vinegar, who can lend me a plate of dumplings

I have a buckle, who help me to sew on a suit,

CodePudding user response:

Train of thought is that you use MFC to connect to the database, in MFC dialog box to add a ListControl then in OnInitDialog function
 m_Grid. SetExtendedStyle (LVS_EX_FLATSB 
| LVS_EX_FULLROWSELECT
| LVS_EX_HEADERDRAGDROP
| LVS_EX_ONECLICKACTIVATE
| LVS_EX_GRIDLINES);
M_Grid. InsertColumn (0, "return Banks", LVCFMT_LEFT, 70, 0).
M_Grid. InsertColumn (1, "sales of Banks", LVCFMT_LEFT, 70, 1);
M_Grid. InsertColumn (2, "product id", LVCFMT_LEFT, 70, 2);
M_Grid. InsertColumn (3, "name of commodity, LVCFMT_LEFT, 70, 3);
M_Grid. InsertColumn (4, "sales amount", LVCFMT_LEFT, 70, 4);
M_Grid. InsertColumn (5, "operator", LVCFMT_LEFT, 70, 5);
M_Grid. InsertColumn (6, "return date", LVCFMT_LEFT, 70, 6);
ADOCon ADOCon;
Cstrings SQL;
Int I=0;
AdoCon. OnInitADOConn ();
SQL. The Format (" select * from M_BACK ");
AdoCon. M_pRecordset=AdoCon. GetRecordSet (SQL) (_bstr_t);
While (! AdoCon. M_pRecordset - & gt; AdoEOF)
{
M_Grid. InsertColumn (I, "");
M_Grid. SetItemText (I, 0, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; THPH GetCollect (" "));
M_Grid. SetItemText (I, 1, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; XSPH GetCollect (" "));
M_Grid. SetItemText (I, 2, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; GetCollect (" SPBH "));
M_Grid. SetItemText (I, 3, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; SPMC GetCollect (" "));
M_Grid. SetItemText (I, 4, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; XSJE GetCollect (" "));
M_Grid. SetItemText (I, 5, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; CZY GetCollect (" "));
M_Grid. SetItemText (I, 6, (char *) (_bstr_t) AdoCon. M_pRecordset - & gt; THRQ GetCollect (" "));
AdoCon. M_pRecordset - & gt; MoveNext ();
i++;
}
AdoCon. ExitConnect ();

So you put the database data simple dialog box
  • Related