kathyayini
Programmer
i am trying to declare array dynamixcally :
DWORD dwThreadId[IThreads];
IThreads is of int type.
But it is giving the error as follows : C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2057: expected constant expression
C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2466: cannot allocate an array of constant size 0
C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2133: 'dwThreadId' : unknown size
waiting for the reply
DWORD dwThreadId[IThreads];
IThreads is of int type.
But it is giving the error as follows : C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2057: expected constant expression
C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2466: cannot allocate an array of constant size 0
C:\Windows\Desktop\Copy (2) of Storedprocedure\StoredProcedure.cpp(31) : error C2133: 'dwThreadId' : unknown size
waiting for the reply