Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » sysinfo gets error
icon3.gif  Re: sysinfo gets error [message #34712 is a reply to message #34710] Wed, 07 December 2011 00:54 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
OK, as could be predicted, its not you it's me Smile

I just built the SysInfo_demo_gui and it works fine. I added my geotiff package to it and it still appears to work fine.

No idea what I am doing wrong in my own software.

Nick

EDIT: OK, the SysInfo package likes to get included first. It is a very important package and so should come straight after

#include <CtrlLib/CtrlLib.h>
#include <GridCtrl/GridCtrl.h>

So now I can compile with MSC10 but not MSC10x64. In MSC10x64 I get

----- SysInfo ( GUI MT OCOE PRO MSC10X64 FORCE_SPEED WIN32 MSC ) (14 / 29)
SysInfo.cpp
C:\upp\bazaar\Functions4U/Functions4U.h(297) : warning C4267: '+=' : conversion from 'size_t' to 'int', possible loss of data
C:\upp\bazaar\SysInfo\SysInfo.cpp(646) : error C2065: 'GWL_HINSTANCE' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(660) : warning C4244: 'initializing' : conversion from 'LRESULT' to 'int', possible loss of data
C:\upp\bazaar\SysInfo\SysInfo.cpp(1607) : error C4235: nonstandard extension used : '_asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1608) : error C4235: nonstandard extension used : '__asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1608) : error C2065: '_emit' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1608) : error C2143: syntax error : missing ';' before 'constant'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1609) : error C4235: nonstandard extension used : '__asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1609) : error C2146: syntax error : missing ';' before identifier '_emit'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1609) : error C2065: '_emit' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1609) : error C2143: syntax error : missing ';' before 'constant'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2146: syntax error : missing ';' before identifier 'mov'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2065: 'mov' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2146: syntax error : missing ';' before identifier 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2146: syntax error : missing ';' before identifier 'PTR'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2275: 'DWORD' : illegal use of this type as an expression
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\windef.h(152) : see declaration of 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2065: 'PTR' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1610) : error C2146: syntax error : missing ';' before identifier 'start'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2065: 'eax' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2146: syntax error : missing ';' before identifier 'mov'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2065: 'mov' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2146: syntax error : missing ';' before identifier 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2146: syntax error : missing ';' before identifier 'PTR'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2275: 'DWORD' : illegal use of this type as an expression
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\windef.h(152) : see declaration of 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1611) : error C2065: 'PTR' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1612) : error C2065: 'edx' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1612) : error C2143: syntax error : missing ';' before '}'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1616) : error C4235: nonstandard extension used : '_asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1617) : error C4235: nonstandard extension used : '__asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1617) : error C2065: '_emit' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1617) : error C2143: syntax error : missing ';' before 'constant'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1618) : error C4235: nonstandard extension used : '__asm' keyword not supported on this architecture
C:\upp\bazaar\SysInfo\SysInfo.cpp(1618) : error C2146: syntax error : missing ';' before identifier '_emit'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1618) : error C2065: '_emit' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1618) : error C2143: syntax error : missing ';' before 'constant'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2146: syntax error : missing ';' before identifier 'mov'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2065: 'mov' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2146: syntax error : missing ';' before identifier 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2146: syntax error : missing ';' before identifier 'PTR'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2275: 'DWORD' : illegal use of this type as an expression
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\windef.h(152) : see declaration of 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2065: 'PTR' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1619) : error C2146: syntax error : missing ';' before identifier 'end'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2065: 'eax' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2146: syntax error : missing ';' before identifier 'mov'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2065: 'mov' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2146: syntax error : missing ';' before identifier 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2146: syntax error : missing ';' before identifier 'PTR'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2275: 'DWORD' : illegal use of this type as an expression
C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\windef.h(152) : see declaration of 'DWORD'
C:\upp\bazaar\SysInfo\SysInfo.cpp(1620) : error C2065: 'PTR' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1621) : error C2065: 'edx' : undeclared identifier
C:\upp\bazaar\SysInfo\SysInfo.cpp(1621) : error C2143: syntax error : missing ';' before '}'

Does this mean anything to you?

I also get this with MSC9x64 and I also get it when I compile SysInfo_demo_gui.

I can setup a machine with Windows 7 x64, UPP 4193 and MSC10 and MSC10x64 for you to test on here through remote access if you're up for it. Let me know by email and I can send you the login etc.

Nick

EDIT tried SDKs 6.1, 7.0 and 7.1 all with same result

For now I have had to comment out the bodies of GetWindowsList() and GetCpuSpeed(). I don't need these functions anyway so not a problem for now.

[Updated on: Wed, 07 December 2011 02:12]

Report message to a moderator

 
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SysInfo package
Next Topic: CtrlBinder as an alternative for CtrlRetriever
Goto Forum:
  


Current Time: Fri Apr 19 08:08:27 CEST 2024

Total time taken to generate the page: 0.08659 seconds