Im using vc express im getting some kind of warning something may be unsafe but it disappears when my program starts so I cant read it. how do you see it if it only appears for a second?
does the warning comes in compilation or when you execute the program?
unsafe functions warnings in VS comes during compilation. This is due to introduction of safe functions in newer VS versions.
i have no choice. start debuging starts the program. step into starts the program. there is no way to start the debug without the program starting. it flashes a warning then is immediately replaced with
'main6.exe': Loaded 'C:\Users\john\Documents\Visual Studio 2010\Projects\main6\Debug\main6.exe', Symbols loaded.
'main6.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
'main6.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
ok i got it now. your right it stays when its not running. thanks at least i know now.
>------ Build started: Project: main6, Configuration: Debug Win32 ------
1> main.cpp
1>c:\users\john\documents\visual studio 2010\projects\main6\main6\main.cpp(12): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\string.h(105) : see declaration of 'strcpy'
1>c:\users\john\documents\visual studio 2010\projects\main6\main6\main.cpp(56): warning C4154: deletion of an array expression; conversion to pointer supplied
1> main6.vcxproj -> c:\Users\john\Documents\Visual Studio 2010\Projects\main6\Debug\main6.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
'main6.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'main6.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
PDB files are files with debugging symbols built into them. Debugging symbols are usually left out in release versions, so VS shouldn't be able to find the symbols in the versions of kernel32.dll [and the other dlls] on your system, because they aren't there. This is fine, because, when debugging, these files will not be the source of errors anyways.
thanks. my program was a flyweight pattern experiment. I have 5 unique tiles that are used dozens of times. so i thought flyweight would help. the more i look at the code the more i dont think it works good for what im doin anyway.