Click here to Skip to main content
15,900,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Delete CLISTCONTROL Item Pin
Code-o-mat18-Nov-09 20:34
Code-o-mat18-Nov-09 20:34 
AnswerRe: Delete CLISTCONTROL Item Pin
David Crow19-Nov-09 3:20
David Crow19-Nov-09 3:20 
QuestionDIB built by extracting 3 channels as RGB from multiband tiff is drawn wiredly in view Pin
jianzhuhuai18-Nov-09 16:12
jianzhuhuai18-Nov-09 16:12 
AnswerRe: DIB built by extracting 3 channels as RGB from multiband tiff is drawn wiredly in view Pin
Chris Losinger18-Nov-09 17:11
professionalChris Losinger18-Nov-09 17:11 
QuestionHow to prevent same program can open twice in windows? Pin
DevelopmentNoob18-Nov-09 14:24
DevelopmentNoob18-Nov-09 14:24 
AnswerRe: How to prevent same program can open twice in windows? Pin
Randor 18-Nov-09 15:00
professional Randor 18-Nov-09 15:00 
GeneralRe: How to prevent same program can open twice in windows? Pin
DevelopmentNoob19-Nov-09 18:59
DevelopmentNoob19-Nov-09 18:59 
QuestionTrouble building a dynamic string array. Coming from C# Pin
Mark Randel18-Nov-09 10:38
Mark Randel18-Nov-09 10:38 
I've already written my code in C# and it works. But to integrate it into our product, I have to re-write it C++ 6.0. I'm very weak here and am lost. My problem is this: I start with a line extracted from a file. The string contains a variable number of individual commands consisting of one letter followed by a number. In C# my code is built like this:

private string[] LineSplitter(string LineIn){
            if (LineIn == "")
                return null;
            string[] strOut = new string[0];
            int i = 0;
            string strChar;
            do
            {
                ...code to locate length of number following letter
                } while ((isNumeric(strChar)) && (i + 1 < LineIn.Length));
                strOut = (string[])ResizeArray(strOut, strOut.Length + 1);
                strOut[strOut.Length - 1] = LineIn.Substring(0, i);
                LineIn = LineIn.Substring(i);
            } while (LineIn.Length > 0);
            return strOut;
        }


(And I'm sorry for putting C# in a C++ group, but I'm looking for the C++ equivalent)

Here are my questions...
1. How do I declare the function as string array?
2. How do I increment array elements until I'm done? Each line can have a variable number of elements.
3. How do I return the result.

Please be gentle. I'm struggling with C++ and this is my first post. I'm wrestling through the majority of everything else in this process, but this has my brain in a pickle.
AnswerRe: Trouble building a dynamic string array. Coming from C# [modified] Pin
«_Superman_»18-Nov-09 10:47
professional«_Superman_»18-Nov-09 10:47 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
Mark Randel19-Nov-09 9:32
Mark Randel19-Nov-09 9:32 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
Mark Randel19-Nov-09 9:34
Mark Randel19-Nov-09 9:34 
GeneralRe: Trouble building a dynamic string array. Coming from C# Pin
«_Superman_»19-Nov-09 9:42
professional«_Superman_»19-Nov-09 9:42 
QuestionHow to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 8:28
Software200718-Nov-09 8:28 
AnswerRe: How to launch an application a file on double click in MFC? Pin
«_Superman_»18-Nov-09 8:31
professional«_Superman_»18-Nov-09 8:31 
AnswerRe: How to launch an application a file on double click in MFC? Pin
Maximilien18-Nov-09 8:52
Maximilien18-Nov-09 8:52 
GeneralRe: How to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 9:29
Software200718-Nov-09 9:29 
QuestionRe: How to launch an application a file on double click in MFC? Pin
«_Superman_»18-Nov-09 9:37
professional«_Superman_»18-Nov-09 9:37 
AnswerRe: How to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 9:48
Software200718-Nov-09 9:48 
GeneralRe: How to launch an application a file on double click in MFC? Pin
«_Superman_»18-Nov-09 9:50
professional«_Superman_»18-Nov-09 9:50 
GeneralRe: How to launch an application a file on double click in MFC? Pin
Software200718-Nov-09 9:53
Software200718-Nov-09 9:53 
AnswerRe: How to launch an application a file on double click in MFC? Pin
LunaticFringe18-Nov-09 10:35
LunaticFringe18-Nov-09 10:35 
AnswerRe: How to launch an application a file on double click in MFC? Pin
David Crow19-Nov-09 3:31
David Crow19-Nov-09 3:31 
QuestionMFC Dialog and PDF Reader refresh issue Pin
kasi1418-Nov-09 7:37
kasi1418-Nov-09 7:37 
QuestionRe: MFC Dialog and PDF Reader refresh issue Pin
22491718-Nov-09 16:51
22491718-Nov-09 16:51 
QuestionIs there any way to determine plunging or removing of a removable storage like flash memories to the system in MFC? Pin
A&Ms18-Nov-09 7:37
A&Ms18-Nov-09 7:37 

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.