Click here to Skip to main content
15,906,558 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do startup programs work. Pin
Antti Keskinen15-Nov-03 14:39
Antti Keskinen15-Nov-03 14:39 
QuestionGet the first sector of harkdisk in vc++ ? Pin
kendao15-Nov-03 13:38
kendao15-Nov-03 13:38 
AnswerRe: Get the first sector of harkdisk in vc++ ? Pin
Michael Gunlock16-Nov-03 5:54
Michael Gunlock16-Nov-03 5:54 
Questioncreate 100 button in dialog with code ? Pin
kendao15-Nov-03 13:34
kendao15-Nov-03 13:34 
AnswerRe: create 100 button in dialog with code ? Pin
Snyp15-Nov-03 14:23
Snyp15-Nov-03 14:23 
AnswerRe: create 100 button in dialog with code ? Pin
Antti Keskinen15-Nov-03 14:34
Antti Keskinen15-Nov-03 14:34 
GeneralC++ Question. Pin
WREY15-Nov-03 12:39
WREY15-Nov-03 12:39 
GeneralRe: C++ Question. Pin
Antti Keskinen15-Nov-03 14:50
Antti Keskinen15-Nov-03 14:50 
1. Create a string object
2. Use it's member method 'operator +=' to append characters to string, specifying the start of the array as the parameter.

Example:
#include <string>
using namespace std;
<DIV>
... Later in the code...
<DIV>
// Let's assume charArray[40] is an array of 'char' characters.
<DIV>
// Create a string object
string myString;
<DIV>
// Use the member method
myString += &charArray[0];
<DIV>
// myString is now a copy of charArray[40]

Not completely sure if this will work, haven't tested it. But according to the Standard C++ Library Reference, it should go like this Smile | :)

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
GeneralRe: C++ Question. Pin
WREY15-Nov-03 16:22
WREY15-Nov-03 16:22 
GeneralRe: C++ Question. Pin
Michael Dunn15-Nov-03 16:37
sitebuilderMichael Dunn15-Nov-03 16:37 
GeneralRe: C++ Question. Pin
WREY15-Nov-03 17:49
WREY15-Nov-03 17:49 
GeneralRe: C++ Question. Pin
Peter Weyzen15-Nov-03 18:26
Peter Weyzen15-Nov-03 18:26 
GeneralRe: C++ Question. Pin
Christian Graus16-Nov-03 16:22
protectorChristian Graus16-Nov-03 16:22 
GeneralHelp with searching for things in text files. Pin
Snyp15-Nov-03 12:00
Snyp15-Nov-03 12:00 
GeneralRe: Help with searching for things in text files. Pin
Peter Molnar15-Nov-03 14:42
Peter Molnar15-Nov-03 14:42 
GeneralRe: Help with searching for things in text files. Pin
Snyp15-Nov-03 14:44
Snyp15-Nov-03 14:44 
GeneralRe: Help with searching for things in text files. Pin
Antti Keskinen15-Nov-03 14:56
Antti Keskinen15-Nov-03 14:56 
GeneralRe: Help with searching for things in text files. Pin
Snyp15-Nov-03 14:59
Snyp15-Nov-03 14:59 
GeneralRe: Help with searching for things in text files. Pin
Peter Molnar15-Nov-03 14:57
Peter Molnar15-Nov-03 14:57 
GeneralRe: Help with searching for things in text files. Pin
Joe Woodbury15-Nov-03 18:57
professionalJoe Woodbury15-Nov-03 18:57 
GeneralRe: Help with searching for things in text files. Pin
Joe Woodbury15-Nov-03 18:50
professionalJoe Woodbury15-Nov-03 18:50 
General_CrtIsValidHeapPointer Pin
DougW4815-Nov-03 11:26
DougW4815-Nov-03 11:26 
GeneralWindows Explorer Pin
harsh91115-Nov-03 9:54
harsh91115-Nov-03 9:54 
GeneralRe: Windows Explorer Pin
Peter Molnar15-Nov-03 14:51
Peter Molnar15-Nov-03 14:51 
GeneralRe: Windows Explorer Pin
harsh91115-Nov-03 19:24
harsh91115-Nov-03 19:24 

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.