Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: mail a file from VC++/MFC application Pin
PJ Arends30-Aug-05 10:41
professionalPJ Arends30-Aug-05 10:41 
AnswerRe: mail a file from VC++/MFC application Pin
ThatsAlok30-Aug-05 21:00
ThatsAlok30-Aug-05 21:00 
QuestionHow to create a Service in VC++ Pin
snprani30-Aug-05 1:31
snprani30-Aug-05 1:31 
AnswerRe: How to create a Service in VC++ Pin
sunit530-Aug-05 1:51
sunit530-Aug-05 1:51 
GeneralRe: How to create a Service in VC++ Pin
Dudi Avramov30-Aug-05 2:29
Dudi Avramov30-Aug-05 2:29 
AnswerRe: How to create a Service in VC++ Pin
ThatsAlok30-Aug-05 21:00
ThatsAlok30-Aug-05 21:00 
QuestionTo Enumerate all ports of PC Pin
rajeevktripathi30-Aug-05 1:14
rajeevktripathi30-Aug-05 1:14 
QuestionError on compilation Pin
babyspidy30-Aug-05 0:23
babyspidy30-Aug-05 0:23 
Hello guys out there. I've been doing my project and have some additional functions/codes I added. When I try to compile it returns some error.
The compiling error is shown like this:
--------------------Configuration: WebJudge - Win32 Debug--------------------
Compiling...
MyProjectView.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\MyProject\MyProjectView.cpp(225) : error C2228: left of '.InsertRowTable' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\MyProject\MyProjectView.cpp(228) : error C2228: left of '.WriteHtmlFile' must have class/struct/union type
Error executing cl.exe.

MyProject.exe - 2 error(s), 0 warning(s)
-----------

From my MyProjectView.cpp (where the error is):

void CMyProjectView::CreateHtmlFile()
{
CPtrArray* pPageInfos = CDatabase::GetInstance()->GetPageInfo();
CHtmlEdit oHtmlEdit();
for (int nIndex = 0; nIndex < pPageInfos->GetSize(); nIndex++)
{
CPageInfo *pPageInfo = (CPageInfo*)pPageInfos->GetAt(nIndex);
oHtmlEdit.InsertRowTable(nIndex, pPageInfo->ToString());
}

oHtmlEdit.WriteHtmlFile("./demo.htm");

}

----------------

Can someone out there, what went wrong with my code? I really don't know how I will solve that.
Thanks and best regards.


With great power comes a great responsibility.
AnswerRe: Error on compilation Pin
prasad_som30-Aug-05 0:32
prasad_som30-Aug-05 0:32 
AnswerRe: Error on compilation Pin
HasanMalaysia30-Aug-05 0:36
HasanMalaysia30-Aug-05 0:36 
GeneralRe: Error on compilation Pin
babyspidy30-Aug-05 0:47
babyspidy30-Aug-05 0:47 
QuestionXP feature is disabled while running my MDI program. Pin
G Haranadh30-Aug-05 0:03
G Haranadh30-Aug-05 0:03 
QuestionHow to use type library files? Pin
Dody_DK29-Aug-05 23:29
Dody_DK29-Aug-05 23:29 
QuestionGrouping windows Pin
Nishad S29-Aug-05 23:27
Nishad S29-Aug-05 23:27 
AnswerRe: Grouping windows Pin
Rage30-Aug-05 0:06
professionalRage30-Aug-05 0:06 
GeneralRe: Grouping windows Pin
toxcct30-Aug-05 0:10
toxcct30-Aug-05 0:10 
GeneralRe: Grouping windows Pin
Nishad S30-Aug-05 0:15
Nishad S30-Aug-05 0:15 
QuestionUNICODE woes Pin
TheGroinalRampager29-Aug-05 23:15
TheGroinalRampager29-Aug-05 23:15 
AnswerRe: UNICODE woes Pin
toxcct29-Aug-05 23:25
toxcct29-Aug-05 23:25 
AnswerRe: UNICODE woes Pin
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX30-Aug-05 0:10
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX30-Aug-05 0:10 
GeneralRe: UNICODE woes Pin
toxcct30-Aug-05 0:13
toxcct30-Aug-05 0:13 
General[Message Deleted] Pin
TheGroinalRampager30-Aug-05 1:00
TheGroinalRampager30-Aug-05 1:00 
GeneralRe: UNICODE woes. Pin
toxcct30-Aug-05 1:05
toxcct30-Aug-05 1:05 
Generaloh..... but still..... Pin
TheGroinalRampager30-Aug-05 1:16
TheGroinalRampager30-Aug-05 1:16 
GeneralRe: oh..... but still..... Pin
toxcct30-Aug-05 1:20
toxcct30-Aug-05 1:20 

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.