I added several DataTables to one DataSet, and want to display this DataSet on DataGrid.rnrnBut it only display the first DataTable. <em>How</em> can I display all the DataTables on one DataGrid?rnrnDifferent DataTable have different columns, and some of them do not have any relations.rnrnAny advice or good idea? Thanks a lot!
I'm a beginner in BCB2006. rnI need to imigrate old version to new platform. So I want to open the two projects in one BCB develop environment.Before I add the two project files into one ProjectGroup in BCB2006(BDS2006), the old version project can not pass the compiler and th new version project can pass the compiler. rn<em>How</em>ever, when I add the two projects into one ProjectGroup and select the new version project active to compile, errors that belong to the old version pop on the screen. I have checked that the options of the two project are different and the compiler is compiling the new version project.rn<em>How</em> can I do to make the compiler work properly?rn
(sorry,i can't used chinese now)rnrni tried to use the service sample(all <em>generate</em>d by .NET web servicernwizard)...like the follow:rnrn [WebMethod]rn public string HelloWorld()rn rn return "Hello World";rn rnrnrnbut when i type the follow command to test the .NET service:rnhttp://localhost/WebService1/Service1.asmx?WSDLrnrnit shows error, and the error message at the follow:rnrnServer Application UnavailablernThe web application you are attempting to access on this web server isrncurrently unavailable. Please hit the "Refresh" button in your web browserrnto retry your request.rnrnAdministrator Note: An error message detailing the cause of this specificrnrequest failure can be found in the system event log of the web server.rnPlease review this log entry to discover what caused this error to occur.rnrnrnrnand when i checked the event viewer,it shows two error message:rnrn1->>aspnet_wp.exe could not be started. HRESULT for the failure: 80004005rnrn2->>aspnet_wp.exe could not be launched because the username and/or passwordrnsupplied in the processModel section of the config file are invalid.rnrnrnrnhow about your suggestion? how can i resolve it?~~~hope you can help me..:)rnrnrn--rnBenny NgrnrnBenny_Wufree@hotmail.comrnrn
2. <em>generate</em> if
3. <em>generate</em> case
To prepare for programming contests or coding examinations, the judge sometimes has to <em>generate</em> random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (zero) from O (o in uppercase). One solution is to replace 1 (one) by @, 0 (zero) by %, l by L, and O by o. Now it is your job to write a program to check the accounts <em>generate</em>d by the judge, and to help the juge modify the confusing passwords.nnInputnThere are multiple test cases. Each case contains a positive integer N (nnSample Input:n2nTeam000001 R1spOdfanTeam000002 Rlsp0dfan1nteam110 abcdefg332n0nSample Output:n2nTeam000001 R@spodfanTeam000002 RLsp%dfanNo account is modified.
Expert One on One Oracle学习资料
这本书是Oracle界的经典之作，最初是基于Oracle8i进行写作的，现在Tom已经出版了基于Oracle9i/Oracle10g的升级版，书名为《Oracle Database Architecture 9i and 10g Programming Techniques and Solutions》，现在中文译本也已经快要出版了。
Problem DescriptionnLv Bu and his soldiers are facing a cruel war——Cao Cao had his best generals just miles away. nnThere’s little time , but Lv Bu is unaware of how to arrange his warriors , what he know is that he have n brave generals while Cao Cao has m , and he has k fights to choose from , he’d like to make all his n warriors participate in the battle but get the least injuries . Lv Bu is happy because there is always a good solution . So , now is your task to tell Lv Bu the least injuries his troop would get.nNo one could take part in two fights.n nnInputnMultiple cases. For each case ,there are three integers in the first line , namely n,m (1<=m*n).nThe next k lines are the information about k possible fights , for each line are two strings (no more than 20 characters ) and an integer. The first string indicates Lv Bu’s general and the second , of course , Cao Cao’s , and the integer is the injury Lv Bu’s general would get if this fight were chosen.n nnOutputnOne integer , the least injuries Lv Bu’s generals would get.n nnSample Inputn2 3 5nLvBu ZhangFei 6nLvBu GuanYu 5nLvBu XuChu 4nZhangLiao ZhangFei 8nZhangLiao XuChu 3n nnSample Outputn8
For some reasons, I got a program in which create too much rnCMultiDocTemplate objects. When it creates 7*15 objects, the XP can NOT create any window.rnrnrnrnI used the MFC wizard to create a brand new projects, I wrote like this:rnrnrnrnBOOL CTestDocTemplatesApp::InitInstance()rnrnrnrnfor(int i=0; is very wrong to write codes like this. But I need to know why this happen. My guess is that the CMultiDocTemplate objects consume too much resource.rnrnrnrnMy question: who know the exact reason of this? or is there any articles talked about this?rnrnrnrnThanks a lotrn
I'm having trouble exporting or converting an ADO recordset to a comma separated (CSV) file. Does anyone have any sample code that works?rnrnQQ:375625900rnEmail:email@example.comAny one who want Demo_Project contact me,plz!
<em>How</em> to receive events from more than one source in ATL? For example, from DWebBrowserEvent2 and HTMLElementEvents2?rnrnI failed to use DispEventAdvise(m_spSite) to establish a connection with the event source represented by IID_HTMLElementEvents2.rnrnrn感觉翻译成中文不能达意，请各位帮忙。rnrnrnrn
I am going to set some criteria to display table results. In my database (Microsoft Access) I have a table (tblResults) with the following fieldsrnrnID, contents, field1, field2, field3 as shown followingrnrnid contents Field1 Field2 Field3rnrn1 C1 A1 B1 D1rn2 C2 A2 B2 D2rn3 C3 A1 B2 D1rn4 C4 A3 B1 D3rn5 C5 A2 B3 D2rn6 C6 A3 B3 D3rn7 C7 A1 B2 D4rn8 C8 A4 B3 D3rnrnOn the form of Visual Basic I havernrn1. A DataControl (Data1) with its database property set to my database and its recordsource left blankrnrn2. A Flexgrid (Flex1) with its datasource set to the datacontrolrnrn3. 2 Combo Box (Combo1 and Combo2) to select the criteriarnrn4. A command button (cmdTable) to do the search and display resultsrnrnI can set two criteria to two different fields, then get the table results by the following codes. For example select A1 in Field1, and selcet B2 in Field2, then press the commond button to get the table results.rn-------------------------------------------------rnmySQL = "SELECT * FROM tblResults WHERE ((tblResults.field1) like '" & Combo1.Text & "*' And (tblResults .field2) like '" & Combo2.Text & "*')"rn---------------------------------------------------rnrnBut now I am going to select two more options in one field first, for example, select (A1 and A2), or (A1 and A3) or (A1, A2 and A4) or (A2, A3 and A4) and so on from Field 1, then select only one record(B1, B2 or other) from Field2, then press common button to show the table. <em>How</em> can I select more options in one field then display the table? Dose it mean that I must add more Combo Box, but even for me, I do not know how many I should add because the option number is not fixed.rnrnI hope someone can solve this problem.rnrnThanks a lot in advance! rn
Jerry decided to congratulate his friend Jessica with Chinese New Year upcoming. He bought her a present --- a nice collection of n colored candles. Now he wants to pack them to present to Jessica. He has made a nice triangular box and started to put candles inside, when it turned out that the box is too small. So now he wants to know how many candles he can put into the box. Help him.nnnThe box is a triangle with integer side lengths in inches. Each candle is a cylinder with radius of one inch. All candles must be put into the box vertically, so we can consider each candle as a circle when looking from above. Candle may touch each other and the box sides, but of course they must not be deformed.nnInputnnThe first line of the input file contains n (1 ≤ n ≤ 10). The next line contains three integer numbers --- the lengths of the sides of the box. The lengths are positive and do not exceded 10.nnThere are multiple cases. Process to the end of file.nnOutputnnOutput the maximal number of candles Jerry can pack into his box.nnSample Inputnn3n6 5 5n1n10 10 10n7n1 1 1nSample Outputnn2n1n0