15,907,395 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 How to insert char* to char array - WITHOUT using string Vaclav_16-Dec-17 4:52 Vaclav_ 16-Dec-17 4:52
 Re: How to insert char* to char array - WITHOUT using string PIEBALDconsult16-Dec-17 4:57 PIEBALDconsult 16-Dec-17 4:57
 Re: How to insert char* to char array - WITHOUT using string Victor Nijegorodov16-Dec-17 5:06 Victor Nijegorodov 16-Dec-17 5:06
 Re: How to insert char* to char array - WITHOUT using string leon de boer16-Dec-17 5:08 leon de boer 16-Dec-17 5:08
 Re: How to insert char* to char array - WITHOUT using string Vaclav_16-Dec-17 10:43 Vaclav_ 16-Dec-17 10:43
 Re: How to insert char* to char array - WITHOUT using string Victor Nijegorodov16-Dec-17 21:31 Victor Nijegorodov 16-Dec-17 21:31
 Re: How to insert char* to char array - WITHOUT using string Vaclav_20-Dec-17 7:25 Vaclav_ 20-Dec-17 7:25
 Re: How to insert char* to char array - WITHOUT using string jschell16-Dec-17 8:55 jschell 16-Dec-17 8:55
 Vaclav_ wrote:Any constructive help would be appreciated, First since you are using C++ you should be using 'new' Steps 1. Call the existing character array A. Call the data to insert S. 2. Determine the size of the NEW array that you need. Add A size plus size of S. 3. Use 'new' to create brand new character array using size from #1. Call this new array X. 4. Determine where you are going to insert the new data. 5. Copy from A into X up to the point where you want to insert 6. Copy all of S into X at the point where you STOPPED in #4 7. Copy the REMAINDER of A (what was left over in A from #4) into X at the point where you STOPPED in #6. Result is now in X.
 Re: How to insert char* to char array - WITHOUT using string Richard MacCutchan16-Dec-17 9:51 Richard MacCutchan 16-Dec-17 9:51
 Re: How to insert char* to char array - WITHOUT using string Munchies_Matt20-Dec-17 3:47 Munchies_Matt 20-Dec-17 3:47
 Re: How to insert char* to char array - WITHOUT using string Vaclav_20-Dec-17 7:31 Vaclav_ 20-Dec-17 7:31
 Re: How to insert char* to char array - WITHOUT using string Munchies_Matt20-Dec-17 21:53 Munchies_Matt 20-Dec-17 21:53
 How know if a window is above another Schehaider_Aymen15-Dec-17 5:46 Schehaider_Aymen 15-Dec-17 5:46
 Re: How know if a window is above another Rick York15-Dec-17 6:09 Rick York 15-Dec-17 6:09
 Re: How know if a window is above another Victor Nijegorodov15-Dec-17 9:28 Victor Nijegorodov 15-Dec-17 9:28
 Re: How know if a window is above another Schehaider_Aymen15-Dec-17 11:07 Schehaider_Aymen 15-Dec-17 11:07
 Re: How know if a window is above another Richard Andrew x6416-Dec-17 3:15 Richard Andrew x64 16-Dec-17 3:15
 Re: How know if a window is above another leon de boer16-Dec-17 5:36 leon de boer 16-Dec-17 5:36
 Frame or even Thread exception handler with _try _except/_catch() ForNow15-Dec-17 3:22 ForNow 15-Dec-17 3:22
 How to check session created or not in MySQL X DevApi A,k,a X Protocol. lynxpravoka14-Dec-17 12:49 lynxpravoka 14-Dec-17 12:49
 Re: How to check session created or not in MySQL X DevApi A,k,a X Protocol. Jochen Arndt14-Dec-17 21:01 Jochen Arndt 14-Dec-17 21:01
 Re: How to check session created or not in MySQL X DevApi A,k,a X Protocol. lynxpravoka15-Dec-17 2:34 lynxpravoka 15-Dec-17 2:34
 Re: How to check session created or not in MySQL X DevApi A,k,a X Protocol. Jochen Arndt15-Dec-17 2:51 Jochen Arndt 15-Dec-17 2:51
 C pre increment and post increment Anonygeeker13-Dec-17 23:27 Anonygeeker 13-Dec-17 23:27
 Re: C pre increment and post increment Richard MacCutchan13-Dec-17 23:52 Richard MacCutchan 13-Dec-17 23:52
 Last Visit: 31-Dec-99 18:00     Last Update: 28-May-24 16:43 Refresh ᐊ Prev1...318319320321322323324325326327 Next ᐅ