WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
Pages (2) 1 [2]   ( Go to first unread post )

Free C++ compilers, free C++ compilers/programming environments that can work on the free gpl source to TinyCad.

Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 732
Member No.: 773
Joined: 10-November 04


in fact there are just 1 (2 similar) error and 2 warnings (6 similar).

1. 1st Warning:
warning C4244: 'return' : conversion from 'const time_t' to 'LONG_PTR', possible loss of data

That's why I dislike C++
in asm there is just DWORD and in C there are many types, but in fact they are also DWORDS in memory
you can use reinterpret_cast or such

2. 2nd Warning:
warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::_CIP' instead
warning C4812: obsolete declaration style: please use '_CIP<_Interface,_IID>::~_CIP' instead

where ~ is destructor

3. Error:
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

I quess that there is a undeclared counter in a loop.
You can set default type to INT in project prefernces.


When you get warning, it's ok. Compilation/linking stops when error occured (if you haven't set "treat warnings as errors").
PMEmail Poster
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 725
Member No.: 11
Joined: 16-May 04


Thanks for the response Jupiter.

I wasn't worried about the warnings, and probably shouldn't have posted them.

The errors however keep me from compiling and I am so ignorant of C that I don't see how to fix them. I inserted "int" in a few places in the offending lines but that only made the errors worse. How do I fix the line-

{ return ((HMENU) menu) == m_hMenu; }

to solve the error

C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include\mfc\afxwin1.inl(1034) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
?

It says right in the error statement that "C++ does not support default-int".

PMEmail Poster
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 725
Member No.: 11
Joined: 16-May 04


Never mind everyone. I finally figured out how to solve those two errors, and in the next build I got about 20 pages of errors. Clearly C++ express is not the thing to use.
I'm deleting everything and giving up.
PMEmail Poster
Top
Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 732
Member No.: 773
Joined: 10-November 04


what can I say... good luck smile.gif))
ask here and I'll try help you. keep trying.
PMEmail Poster
Top
poop17
Quote Post


Member
**

Group: Members
Posts: 28
Member No.: 3007
Joined: 27-September 06


Dev-C++
you can download at
http://sourceforge.net/projects/dev-cpp/
PMEmail PosterMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages (2) 1 [2]  Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google