need help getting started using vc7

need help getting started using vc7

Post by Martin Bake » Fri, 19 Jul 2002 18:47:05



Could anyone help me get started with wxWindows?

I have just installed wxWindows (version wxMSW-2.2.9) to C:\wx2 directory.

In order to get started I am trying to compile someone elses wxWindows
project that I found on the web.

I have Microsoft Visual C++ .NET (ie vc7) and I am trying to compile by
setting the project properties rather than command line / makefile.

The project options are set to:

/I "C:\wx2" /I "C:\wx2\include" /I "C:\wx2\contrib\include" /I "C:\wx2\bin"
/I "C:\wx2\lib" /I "C:\wx2\distrib" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"__WINDOWS__" /D "__WXMSW__" /D "DEBUG=1" /D "__WXDEBUG__" /D "__WIN95__" /D
"__WIN32__" /D "WINVER=0x0400" /D "STRICT" /FD /EHsc /MDd /YX"stdafx.h"
/Fp".\Debug/delaunay.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug/" /W3
/nologo /c /ZI

When I try to build the project I get masses of errors as shown below. Do
you know what I am doing wrong and are there any tutorials for using Visual
C++ .NET from program (ie not command line)?

Thanks,

Martin

Compiling...
view2.cpp
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) :
warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2491: 'new' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2078: too many initializers
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2440: 'initializing' : cannot convert from 'int' to 'void *'
        Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2143: syntax error : missing ';' before '('
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2226: syntax error : unexpected type 'size_t'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(29) : error
C2059: syntax error : ')'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) :
warning C4229: anachronism used : modifiers on data are ignored
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2365: 'new' : redefinition; previous definition was a 'member function'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2491: 'new' : definition of dllimport data not allowed
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2078: too many initializers
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2440: 'initializing' : cannot convert from 'int' to 'void *'
        Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2143: syntax error : missing ';' before '['
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C3409: empty attribute block is not allowed
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xdebug(33) : error
C2226: syntax error : unexpected type 'size_t'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xlocale(449) :
error C2061: syntax error : identifier '_DebugHeapTag'
c:\Program Files\Microsoft Visual Studio .NET\Vc7\include\xlocale(449) :
error C2143: syntax error : missing ';' before ')'
c:\mjbworld\mfc\delaunay\Quellcode\view2.h(43) : error C2504: 'wxGLCanvas' :
base class undefined
c:\mjbworld\mfc\delaunay\Quellcode\view2.h(48) : error C2146: syntax error :
missing ';' before identifier 'm_dlist'
c:\mjbworld\mfc\delaunay\Quellcode\view2.h(48) : error C2501:
'MyGLCanvas::GLuint' : missing storage-class or type specifiers
c:\mjbworld\mfc\delaunay\Quellcode\view2.h(48) : error C2501:
'MyGLCanvas::m_dlist' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio
.NET\Vc7\PlatformSDK\Include\gl\GL.h(1152) : error C2144: syntax error :
'void' should be preceded by ';'
c:\Program Files\Microsoft Visual Studio
.NET\Vc7\PlatformSDK\Include\gl\GL.h(1152) : error C2501: 'WINGDIAPI' :
missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio
.NET\Vc7\PlatformSDK\Include\gl\GL.h(1152) : error C2146: syntax error :
missing ';' before identifier 'glAccum'
c:\Program Files\Microsoft Visual Studio
.NET\Vc7\PlatformSDK\Include\gl\GL.h(1152) : error C2182: 'APIENTRY' :
illegal use of type 'void'
<snip>

 
 
 

need help getting started using vc7

Post by Martin Bake » Sun, 21 Jul 2002 19:09:42


Could anyone tell me where I can get an example project with a VC6 project
file, which is known to work when imported into VC7?

Its difficult to get started until I get something that works.

Thanks,

Martin

----- Original Message -----


Sent: Friday, July 19, 2002 11:11 PM
Subject: Re: need help getting started using vc7



> MB> I have Microsoft Visual C++ .NET (ie vc7) and I am trying to compile
by
> MB> setting the project properties rather than command line / makefile.

>  You should instead import the existing VC6 projects -- it was reported
> that it can be done [mostly] without problems.

>  Regards,
> VZ

> _______________________________________________
> wx-users mailing list

> http://lists.wxwindows.org/mailman/listinfo/wx-users


 
 
 

1. Using WinNT/98/95, getting rid of old Netware, need help

  We still have a few DOS machines.  The only way for them to share files is
to deposit the files on the Netware server.  We can't load Win on these
machines becase of some of the software we're using (Mag tape software,
among others).

  The Netware server buys it- it's toast.  Now, is there any way I can get
the DOS computers to share files with the WinNT/98/95 Peer-to-peer network?
TCP/IP maybe?  Even being able to just deposit or grab files would be fine.

Thanks.

-Travis

DMAS

2. How to control instance of IExplorer from C++ app ?

3. wmicore.dll compiled using vc7?

4. Why: debugging dShow in C++ filter i see many threads, in the C# app only a few

5. need help getting started

6. dvd/cdrw is not working

7. Need Help getting old cdrom started while nothing is installed

8. LDAP on NT and W2K workstations?

9. Need help getting started...

10. Need help getting started with POSIX

11. Need help getting started in IT

12. Help needed getting started with MFC

13. I need help/I need help/I need help