| Author |  | 
      
        | diego Intermediate
 
  
 
 Joined: December 13 2005
 Location: United States
 Posts: 3
 | 
          Hi, i'm trying to test it but I can't compile...
           | Posted: December 13 2005 at 9:25am | IP Logged |   |  
           | 
 |  
 I'm trying with visual studio 2005 Beta. If I open the .dsw file it tries to transform the files but if I "Open Project"/"C++  Project" it opens without trying to transform.
 Anyway when I compile it gives me:
 Error     1 error C2220: warning treated as error -  no 'object' file generated  c:\Program\...\AddressBook.cpp      110
 
 Any ideas?
 (line 110 is pfile = fopen("AddressBook.txt","rt");)
 
 Thank you!
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | support Administrator
 
  
 
 Joined: January 26 2005
 Location: United States
 Posts: 1666
 | 
          Hi diego,
           | Posted: December 13 2005 at 11:54am | IP Logged |   |  
           | 
 |  
 Please post the WARNINGS that are being generated. Your error mesage above is generated by the compiler because your compiler settings are such that "warnings are being treated as errors". We need to see the warnings that are being generated.
 
 Support
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | diego Intermediate
 
  
 
 Joined: December 13 2005
 Location: United States
 Posts: 3
 | 
          StdAfx.cpp
           | Posted: December 13 2005 at 2:01pm | IP Logged |   |  
           | 
 |  WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
 Compiling...
 AddressBook.cpp
 ..\Common\AddressBook.cpp(110) : error C2220: warning treated as error - no 'object' file generated
 ..\Common\AddressBook.cpp(110) : warning C4996: 'fopen' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(235) : see declaration of 'fopen'
 ..\Common\AddressBook.cpp(205) : warning C4996: 'fopen' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(235) : see declaration of 'fopen'
 ..\Common\AddressBook.cpp(350) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 ..\Common\AddressBook.cpp(351) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 ..\Common\AddressBook.cpp(352) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 ..\Common\AddressBook.cpp(413) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 ..\Common\AddressBook.cpp(414) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 ..\Common\AddressBook.cpp(415) : warning C4996: 'strncpy' was declared deprecated
 C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
 
 etc...
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | support Administrator
 
  
 
 Joined: January 26 2005
 Location: United States
 Posts: 1666
 | 
          You have 2 choices:
           | Posted: December 13 2005 at 3:35pm | IP Logged |   |  
           | 
 |  
 1)
 Turn off "warnings as errors" in your compiler settings.
 
 2)
 Use a #pragma and disable warning #4996 as in something like:
 
 #pragma warning( disable : 4996)
 
 Put it at the top of each module that gets these warnings or in your precompiled header file if you use that.
 
 Note: We offer "very limited" support for the trial version of the VOIP Media Engine. Question are limited to pre-sales technical questions about the product.
 
 Support
 | 
       
        | Back to Top |       | 
       
       
        |  | 
        | diego Intermediate
 
  
 
 Joined: December 13 2005
 Location: United States
 Posts: 3
 | 
          yes, option #1 worked.
           | Posted: December 13 2005 at 4:10pm | IP Logged |   |  
           | 
 |  Thanks!
 I will test it properly now.
 | 
       
        | Back to Top |     | 
       
       
        |  |