VS2008有什么函数能获取当前文件的路径么,用于写错
还有获取出错的行数,谢谢
[解决办法]
用__FILE__宏
[解决办法]
To set this compiler option in the Visual Studio development environment
1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
2. Expand the Configuration Properties node.
3. Expand the C/C++ node.
4. Select the Advanced property page.
5. Modify the Use Full Paths property.
楼主是wince/mobile程序?看了下的确没有Use Full Paths的设置。
我自己加了/FC,测了下也没起作用。
[解决办法]
__FILE__
__LINE__
__FUNCTION__
组合在一起也基本够判断出来上下文了。