Click here to Skip to main content
15,885,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: convert Pin
Eytukan21-Mar-09 22:02
Eytukan21-Mar-09 22:02 
Questionhow to write list control data in text file in MFC Pin
amit14aug21-Mar-09 4:38
amit14aug21-Mar-09 4:38 
AnswerRe: how to write list control data in text file in MFC Pin
Rajesh R Subramanian21-Mar-09 4:41
professionalRajesh R Subramanian21-Mar-09 4:41 
Questionpointer-to-array Pin
korte2521-Mar-09 3:49
korte2521-Mar-09 3:49 
AnswerRe: pointer-to-array Pin
CPallini21-Mar-09 4:09
mveCPallini21-Mar-09 4:09 
GeneralRe: pointer-to-array Pin
korte2521-Mar-09 6:09
korte2521-Mar-09 6:09 
GeneralRe: pointer-to-array Pin
CPallini21-Mar-09 6:25
mveCPallini21-Mar-09 6:25 
GeneralRe: pointer-to-array Pin
korte2521-Mar-09 6:57
korte2521-Mar-09 6:57 
I have a base class, let's say Car, and derived classes BMW, Mercedes, Renault, etc.
The array is: Car* p_Cars[2][16];
The pointer: Car** pCar;

for (int i = 0; i < 2; i++)
{
    for (int j = 0; j < 16; j++)
    {
        if (j==2 || j==3)
            p_Cars[i][j] = new BMW(i, j);
        else if (j==4 || j==5)
            p_Cars[i][j] = new Mercedes(i, j);
        .
                    .
                    .
    }
}


So I'd like to know, whether I can determine the element from its address.
I hope you understand my problem, i tried my best Sniff | :^)
GeneralRe: pointer-to-array Pin
CPallini21-Mar-09 7:41
mveCPallini21-Mar-09 7:41 
GeneralRe: pointer-to-array Pin
korte2521-Mar-09 7:44
korte2521-Mar-09 7:44 
GeneralRe: pointer-to-array Pin
CPallini21-Mar-09 7:48
mveCPallini21-Mar-09 7:48 
AnswerRe: pointer-to-array Pin
Stuart Dootson21-Mar-09 12:29
professionalStuart Dootson21-Mar-09 12:29 
GeneralRe: pointer-to-array Pin
korte2522-Mar-09 2:30
korte2522-Mar-09 2:30 
QuestionCreateDirectoryW() Pin
p_196021-Mar-09 3:47
p_196021-Mar-09 3:47 
AnswerRe: CreateDirectoryW() Pin
«_Superman_»21-Mar-09 4:05
professional«_Superman_»21-Mar-09 4:05 
GeneralRe: CreateDirectoryW() Pin
p_196021-Mar-09 4:17
p_196021-Mar-09 4:17 
AnswerRe: CreateDirectoryW() Pin
Rajesh R Subramanian21-Mar-09 4:28
professionalRajesh R Subramanian21-Mar-09 4:28 
QuestionHow to use Borland C DLL in C#.NET Pin
dataminers21-Mar-09 3:28
dataminers21-Mar-09 3:28 
AnswerRe: How to use Borland C DLL in C#.NET Pin
dataminers21-Mar-09 3:49
dataminers21-Mar-09 3:49 
AnswerRe: How to use Borland C DLL in C#.NET Pin
CPallini21-Mar-09 4:03
mveCPallini21-Mar-09 4:03 
GeneralRe: How to use Borland C DLL in C#.NET Pin
dataminers21-Mar-09 5:04
dataminers21-Mar-09 5:04 
Questionsending structure data on tcp socket Pin
jalsa G21-Mar-09 2:55
jalsa G21-Mar-09 2:55 
AnswerRe: sending structure data on tcp socket Pin
CPallini21-Mar-09 3:27
mveCPallini21-Mar-09 3:27 
AnswerRe: sending structure data on tcp socket Pin
«_Superman_»21-Mar-09 3:38
professional«_Superman_»21-Mar-09 3:38 
GeneralRe: sending structure data on tcp socket Pin
CPallini21-Mar-09 4:13
mveCPallini21-Mar-09 4:13 

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.