Help : grid ++ report recompiled with the new version of the control after an undefined parameters ( no class or a variable structure or a structure in )

Category: VC/MFC -> ATL/ActiveX/COM Author: junldc1 Date: 2001-07-09 09:59:28
 
junldc1
2001-07-09 09:59:28
Modify a senior tool inside the grid ++ do not know what version , previously developed in VC6.0 above .
(1) How do I know which version he is doing ? Because the control position is black, could not be loaded .
(2) I am using the grid ++   version 4.5 , according to the help files when the new 4.5 application controls , previously compiled files successfully , there are several classes that are not defined . I looked at the success of the previous compilation , these definitions appear in the \ Debug \ grpro.tlh , but grpro.tlb and & nbsp I have related ; grdes.tlb file updated.
code appears wrong place :
void   CMON_HislogEvent :: FetchRecord (VARIANT_BOOL   * pEof)
{
struct   LOG_MSG4BUF *   pMsgBuf;
CString   ty ,   body;
POSITION   pos;
COleDateTime   oleDate;
IGRDateTimeFieldPtr time = m_pGridppReport- > FieldByName (" TIME ") - > AsDateTimeField;   // husong
IGRStringFieldPtr type = m_pGridppReport- > FieldByName (" TYPE ") - > AsStringField;
IGRStringFieldPtr record = m_pGridppReport- > FieldByName (" RECORD ") - > AsStringField;
IGRIntegerFieldPtr pointer = m_pGridppReport- > FieldByName (" POINTER ") - > AsIntegerField;

pos = m_pBuf- > m_queue.GetHeadPosition ();
while (NULL = pos!)
{
pMsgBuf = m_pBuf- > m_queue.GetNext (pos);
m_msg.LoadMsg (pMsgBuf);
if (m_pFilter- >! IfEnableMsg (m_msg.m_msg.type ))
continue;
m_pGridppReport- > DetailGrid- > Recordset- > Append ();
time- > Value = COleDateTime (m_msg.m_msg.time);
ty = " ";
body = " ";
if (OK == m_msg.GetTypeBody (ty,   body))
{
type- > Value = (LPCTSTR) ty;
record- > Value = (LPCTSTR) body;
}
pointer- > Value = (unsigned   __ int32) pMsgBuf;
m_pGridppReport- > DetailGrid- > Recordset- > Post ();
}

error occurs : ----------------- --- Configuration:   Monitor   -   Win32   Debug --------------------
Compiling ...
MON_HislogEvent.cpp
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (46)  :   error   C2065:   'IGRDateTimeFieldPtr'  :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (46)  :   error   C2146:   syntax   error  :   missing   ';'   before   identifier   ' time '
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (46)  :   error   C2039:  ' AsDateTimeField ' :   is   not   a   member   of   'IGRField'
                e: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ monitor_modify_8_22 \ debug \ grpro.tlh (4690)  :   see   declaration   of   'IGRField'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (47)  :   error   C2065:   ' IGRStringFieldPtr ' :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (47)  :   error   C2146:   syntax   error  :   missing   ';'   before   identifier   'type'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (47)  :   error   C2065:   'type'  :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (47)  :   error   C2039:   'AsStringField'  :   is   not   a   member   of   'IGRField'
                e: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ monitor_modify_8_22 \ debug \ grpro.tlh (4690)  :   see   declaration   of   'IGRField'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (48)   :   error   C2146:   syntax   error  :   missing   ';'   before   identifier   'record'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent. cpp (48)  :   error   C2065:   'record'  :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (48)  :   error   C2039:   'AsStringField'  :   is   not   a   member   of   'IGRField'
                e: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ monitor_modify_8_22 \ debug \ grpro.tlh (4690)  :   see   declaration   of   'IGRField'
E: \ 0409 work \ mmi2008_6_16g4. 5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (49)  :   error   C2065:   'IGRIntegerFieldPtr'  :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (49)  :   error   C2146:   syntax   error  :   missing   ';'   before   identifier   'pointer'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (49)  :   error   C2065:   'pointer'  :   undeclared   identifier
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (49)  :   error   C2039:   'AsIntegerField'  :   is   not   a   member   of   'IGRField'
                e: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ monitor_modify_8_22 \ debug \ grpro.tlh (4690)  :   see   declaration   of   'IGRField'
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (59)  :   error   C2227:   left   of   '- > Value'   must   point   to   class / struct / union
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (64)  :   error   C2227:   left   of   '- > Value '  must   point   to   class / struct / union
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (65)  :   error   C2227:   left   of   '- > Value'   must   point   to   class / struct / union
E: \ 0409 work \ mmi2008_6_16g4.5 \ mmi2008_6_16 \ Monitor_modify_8_22 \ MON_HislogEvent.cpp (67)  :   error   C2227:   left   of   '- > Value'   must   point   to   class / struct / union
execution   cl.exe   error
( sorry . everyone, no points )
sgsjhgsjhs
2001-07-09 10:17:53
we help ah ! Brother novice, first post .
libiao9932
2001-07-09 10:37:32
find the current highest version of it
This should be backwards compatible with it
tyaimj
2001-07-09 10:51:19
I used 5.0 and 4.5 , the result is the emergence of 3.6 error. I do not know how the matter?