Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralExample please....(Re: CCriticalSection question) Pin
ChiYung25-Mar-02 19:03
ChiYung25-Mar-02 19:03 
GeneralRe: Example please....(Re: CCriticalSection question) Pin
Nish Nishant25-Mar-02 19:17
sitebuilderNish Nishant25-Mar-02 19:17 
GeneralRe: Example please....(Re: CCriticalSection question) Pin
ChiYung25-Mar-02 19:30
ChiYung25-Mar-02 19:30 
GeneralRe: Example please....(Re: CCriticalSection question) Pin
Gaurika Wijeratne25-Mar-02 22:07
Gaurika Wijeratne25-Mar-02 22:07 
GeneralRe: CCriticalSection question Pin
Neville Franks31-Mar-02 0:42
Neville Franks31-Mar-02 0:42 
QuestionHow to change the bkcolor of a window? Pin
Feng Qin25-Mar-02 15:18
Feng Qin25-Mar-02 15:18 
AnswerRe: How to change the bkcolor of a window? Pin
Michael Dunn25-Mar-02 17:29
sitebuilderMichael Dunn25-Mar-02 17:29 
GeneralVector array question..... Pin
ChiYung25-Mar-02 15:11
ChiYung25-Mar-02 15:11 
hi,

Take a look the structure of my array first:

struct WAITQUEUE_STRUCT
{
CWinThread* pThread;
int LockType;
LARGE_INTEGER start_time;
};

struct LOCK_TABLE
{
CWinThread* CurrentThread;
int CurrentLock;
std::vector<WAITQUEUE_STRUCT> WaitQueue;
};

std::vector<LOCK_TABLE> LockTable;


In my program:

std::vector <WAITQUEUE_STRUCT>::iterator Iter;

for (int i=0; i<NumOfDBObject; i++)
{
Iter = LockTable[i].WaitQueue.begin();
if (*Iter.pThread != NULL) <- one of the error here
{ .......
.......
.......


i got the error message :

"error C2228: left of '.pThread' must have class/struct/union type"

What happened??????



GeneralRe: Vector array question..... Pin
Vivek Rajan25-Mar-02 15:10
Vivek Rajan25-Mar-02 15:10 
GeneralHelp me to get the solution Pin
binnu25-Mar-02 15:04
binnu25-Mar-02 15:04 
GeneralRe: Help me to get the solution Pin
PJ Arends25-Mar-02 16:31
professionalPJ Arends25-Mar-02 16:31 
GeneralRe: Help me to get the solution Pin
PJ Arends25-Mar-02 17:18
professionalPJ Arends25-Mar-02 17:18 
GeneralI want to terminate the FOR loop at the middle... Pin
ChiYung25-Mar-02 14:41
ChiYung25-Mar-02 14:41 
GeneralRe: I want to terminate the FOR loop at the middle... Pin
Derek Waters25-Mar-02 14:44
Derek Waters25-Mar-02 14:44 
Generaltimer.. Pin
hkl25-Mar-02 14:14
hkl25-Mar-02 14:14 
GeneralRe: timer.. Pin
Nish Nishant25-Mar-02 14:15
sitebuilderNish Nishant25-Mar-02 14:15 
GeneralRe: timer.. Pin
hkl25-Mar-02 15:29
hkl25-Mar-02 15:29 
GeneralRe: timer.. Pin
Nish Nishant25-Mar-02 16:12
sitebuilderNish Nishant25-Mar-02 16:12 
GeneralRe: timer.. Thank you! :) Pin
hkl25-Mar-02 16:22
hkl25-Mar-02 16:22 
GeneralRe: timer.. Pin
Le centriste26-Mar-02 2:03
Le centriste26-Mar-02 2:03 
GeneralRe: timer.. Pin
Tim Smith26-Mar-02 2:23
Tim Smith26-Mar-02 2:23 
GeneralPassing parameters to an HTML page Pin
HawkSoftware25-Mar-02 13:58
HawkSoftware25-Mar-02 13:58 
GeneralRe: Passing parameters to an HTML page Pin
Derek Waters25-Mar-02 14:48
Derek Waters25-Mar-02 14:48 
GeneralRe: Passing parameters to an HTML page Pin
HawkSoftware25-Mar-02 18:37
HawkSoftware25-Mar-02 18:37 
GeneralRe: Passing parameters to an HTML page Pin
HawkSoftware25-Mar-02 18:39
HawkSoftware25-Mar-02 18:39 

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.