DiscussionsIssue archiveOther usage issues

Archived discussion

Error compiling mfcsample

Other usage issuesMon, 07/26/2004 - 16:263 replies

Browse this forum
QuestionAuthor

Hello all. I´m Jorge.

I have installed Visual C++.NET 2002 and Open CASCADE 5.1. I tried to compile the samples but when begin with mfcsample proyect it show this:
Compilando...
OCC_3dBaseDoc.cpp
\OpenCASCADE5.1\samples\standard\mfc\Common\OCC_3dBaseDoc.cpp(19) : error C2440: 'static_cast' : no se puede realizar la conversión de 'int (__thiscall OCC_3dBaseDoc::* )(void)' a 'AFX_PMSG'
Ninguna de las funciones con este nombre en el ámbito coincide con el tipo de destino
\OpenCASCADE5.1\samples\standard\mfc\Common\OCC_3dBaseDoc.cpp(38) : error C2440: 'static_cast' : no se puede realizar la conversión de 'void (__thiscall OCC_3dBaseDoc::* )(UINT)' a 'BOOL (__thiscall CCmdTarget::* )(UINT)'
Ninguna de las funciones con este nombre en el ámbito coincide con el tipo de destino

I know what is the problem but I don´t know how to resolve it.
Later it show other error compiling the rest sample proyects:
Vinculando...
LINK : fatal error LNK1181: no se puede abrir el archivo de entrada '\OpenCASCADE5.1\samples\standard\mfc\mfcsample\Release\mfcsample.lib'
But I think it is because the first error don´t let create mfcsample.lib

Please, help me. Thank you very much.

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Jorge,

I think OCC5.1 does not support (officially) .Net.
BTW, the up-to-date vesion of .Net is 2003.

Commenter-1

02Commenter-2

Hi Stephane.
Thank you for the information. I´ll try it with Visual C++.

03Commenter-2

At the end I install Open CASCADE 5.2 and it works ok with Microsoft Visual Studio.NET.