• Viernes 19 de Abril de 2024, 02:20

Autor Tema:  Problemas En Migraciond Eevc 3.0 A Evc 4.0  (Leído 3071 veces)

cesar_omar

  • Nuevo Miembro
  • *
  • Mensajes: 18
    • Ver Perfil
Problemas En Migraciond Eevc 3.0 A Evc 4.0
« en: Jueves 23 de Septiembre de 2004, 16:38 »
0
Saludos

 Tengo una plaicacion en evc 3.0 con Oracle Lite 9i y Cefusion 3.7 dicha aplicacion funciona en pocket pc 2002 pero no en pocket pc 2003.

 Me recomendaron que instalara evc 4.0 con service pack 4 y el microsoft pocket pc 2003 sdk,investigando consegui esta pagina:
http://www.microsoft.com/spanish/msdn/arti...c4migration.asp

Ahi habla de que debo tener la misma configuracion que tenian en evc 3.0 especialmente en Precompiled headers settings (C/C++ -> Precompiled Headers)
alli tengo el siguiente problema:

1 Originalmente en evc 3.0 esta en "Used precompiles header file" y le coloco en el Through header:stdafx.h, me da el siguiente error
"fatal error c1852:ARMV4ReleaseWCE30/Moviltrack.pch is not a valid precompiled header file".
Dicho error me sale para cada uno de los archivos de mi proyecto

2 Luego seleccione Automatic used of precompiled headers y le coloco  en el Through header: stdafx.h, me da el siguiente error
Connection.cpp
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(61) : error C2065: 'COleVariant' : undeclared identifier
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(61) : error C2146: syntax error : missing ';' before identifier 'varTmp'
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(61) : error C2065: 'varTmp' : undeclared identifier
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(78) : error C2228: left of '.bstrVal' must have class/struct/union type
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(102) : error C2440: '=' : cannot convert from 'unsigned short [17]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(115) : error C2440: '=' : cannot convert from 'unsigned short [18]' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(386) : error C2146: syntax error : missing ';' before dentifier 'varTmp'
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\Connection.cpp(390) : error C2228: left of '.bstrVal' must have class/struct/union type
EnviarReporte.cpp
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(122) : error C2079: 'oleFecha' uses undefined class 'COleDateTime'
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(129) : error C2027: use of undefined type 'COleDateTime'   c:\windows ce tools\wce300\pocket pc 2002\mfc\include\afx.h(1779) : see declaration of 'COleDateTime'
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(129) : error C2065: 'GetCurrentTime' : undeclared identifier
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(131) : error C2228: left of '.GetDay' must have class/struct/union type
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(132) : error C2228: left of '.GetMonth' must have class/struct/union type
C:\DevGEDICA\RollOut\DevMoviltrack\Moviltrack v3.0\EnviarReporte.cpp(133) : error C2228: left of '.GetYear' must have class/struct/union type

Es decir que no reconoce las siguientes clases o funciones COleVariant y oleFecha.

Me recomendron que verificara que dicho header este incluido donde se implementa COleVariant y oleFecha.

Respuesta: El header no esta ni el stdafx.h ni esta en el archivo donde se implementa sino que se le da la ruta en Tools->Options pestaña Directories

Luego  en los archivos donde se implenta COleVariant y oleFecha inclui #include <afxdisp.h> pero me sale el siguient error:
c:\windows ce tools\wce300\pocket pc 2002\mfc\include\afxdisp.h(63) : fatal error C1189: #error :  "Can't build MFC OLE projects using static MFC libraries."

1 No se que detalle se me paso? no se si se debe incluir en el stdafx.h?

2 No se si tiene que ver en la configuracion del proyecto en Project->Setting pestaña C/C++ -> Precompiled Headers que en evc 3.0 yo lo tenia en Used precompiles header file pero no funciono y entonces lo coloque en Automatic used of precompiled headersy es que me salen estos errores?

3 Que otra forma hay d emigrar o estoy haciendo la migracion mal?

Es un caso de vida o muerte toda ayuda es valiosa agradecienole de antemano su colaboracion