Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with Win32 Threads Pin
kikoso23-Nov-09 2:13
kikoso23-Nov-09 2:13 
AnswerRe: Problem with Win32 Threads Pin
HimanshuJoshi23-Nov-09 2:22
HimanshuJoshi23-Nov-09 2:22 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:38
kikoso23-Nov-09 2:38 
AnswerRe: Problem with Win32 Threads Pin
Member 392263923-Nov-09 2:27
Member 392263923-Nov-09 2:27 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 2:32
kikoso23-Nov-09 2:32 
AnswerRe: Problem with Win32 Threads Pin
Rajesh R Subramanian23-Nov-09 2:50
professionalRajesh R Subramanian23-Nov-09 2:50 
GeneralRe: Problem with Win32 Threads Pin
kikoso23-Nov-09 5:15
kikoso23-Nov-09 5:15 
QuestionSubscript requires array or pointer type Pin
deadlyabbas23-Nov-09 0:47
deadlyabbas23-Nov-09 0:47 
I was having this initially
double* m_Value [4];
I want to redefine it differently.So what I did is

typedef vector <double> DOUBLE_VECTOR;
DOUBLE_VECTOR DoubleVec;
vector <double_vector> m_Value;

Above I did in .h file

Now I initialize it in constructor I mean .cpp file

DoubleVec.resize (10,0.0);
m_SplitArrPtr.resize (5,DoubleVec);

Till here I thing I have done fine.

Issue:
Now there is a function whose defination is somewhat like this

static void Func (double& ObjData,void* DataPtr);

In above function I have to fill the ObjData by DataPtr OK

So I did this

void ClassName::Func (double& ObjData,void* DataPtr)
{

int RowIndex = 0; // row index
int ColIndex = 0; // column index

//copy data to existing structure
for (RowIndex;
RowIndex < 5;
RowIndex++)
{
for(ColIndex;
ColIndex < 10;
ColIndex++)
{
ObjData [RowIndex][ColIndex] = DataPtr->m_Value [RowIndex][ColIndex];
} //for ColIndex
} // for RowIndex

}
But I am facing an error

"error C2109: subscript requires array or pointer type"


So please help me out that how I will be able to fill the ObjData.
AnswerRe: Subscript requires array or pointer type Pin
Cedric Moonen23-Nov-09 1:03
Cedric Moonen23-Nov-09 1:03 
AnswerRe: Subscript requires array or pointer type Pin
T210223-Nov-09 1:29
T210223-Nov-09 1:29 
QuestionHow can i register a service using Visual Studio Setup .??? Pin
jain_MS22-Nov-09 23:53
jain_MS22-Nov-09 23:53 
QuestionLinking problem Pin
KASR122-Nov-09 23:50
KASR122-Nov-09 23:50 
AnswerRe: Linking problem Pin
Cedric Moonen22-Nov-09 23:56
Cedric Moonen22-Nov-09 23:56 
GeneralRe: Linking problem Pin
KASR122-Nov-09 23:59
KASR122-Nov-09 23:59 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:10
Cedric Moonen23-Nov-09 0:10 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:13
KASR123-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:35
KASR123-Nov-09 0:35 
AnswerRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:02
mveRichard MacCutchan23-Nov-09 0:02 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:10
KASR123-Nov-09 0:10 
GeneralRe: Linking problem Pin
Cedric Moonen23-Nov-09 0:14
Cedric Moonen23-Nov-09 0:14 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:19
KASR123-Nov-09 0:19 
GeneralRe: Linking problem Pin
Richard MacCutchan23-Nov-09 0:22
mveRichard MacCutchan23-Nov-09 0:22 
AnswerRe: Linking problem Pin
KarstenK23-Nov-09 0:13
mveKarstenK23-Nov-09 0:13 
GeneralRe: Linking problem Pin
KASR123-Nov-09 0:14
KASR123-Nov-09 0:14 
AnswerRe: Linking problem PinPopular
Stuart Dootson23-Nov-09 0:22
professionalStuart Dootson23-Nov-09 0:22 

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.