VS2003 bugs

1. 工程文件无法更改

BUG:VS2003在编译修改VC++工程的时候,如果工程路径通过映射网络驱动器生成的磁盘(如E:),会无法修改工程中的源码文件。

FIX:安装VS2003 SP1,即VS7.1sp1-KB918007-X86.exe,可以解决这个问题。

 

 

2. RealGetLongPathName函数指针类型错误

BUG:VS2003的NewAPIs.h文件的Probe_GetLongPathName函数中,RealGetLongPathName定义错误,导致GetLongPathName = RealGetLongPathName;语句报C2440错。

FIX: BOOL (CALLBACK *RealGetLongPathName)(LPCTSTR, LPTSTR, DWORD);

修改为DWORD (CALLBACK *RealGetLongPathName)(LPCTSTR, LPTSTR, DWORD);

[dragon@localhost Downloads]$ mkdir ~/ova_temp [dragon@localhost Downloads]$ sudo chmod -R 777 ~/ova_temp/ [dragon@localhost Downloads]$ ls centos-disk1.vmdk centos.mf centos.ovf win2003.ova [dragon@localhost Downloads]$ sudo tar -xvf win2003.ova -C ~/ova_temp/ win2003.ovf win2003.mf win2003-disk1.vmdk win2003-file1.nvram [dragon@localhost Downloads]$ virt-v2v -i ova ~/ova_temp/win2003.ovf -o local -os ~/vms/win2003/ [ 0.0] Opening the source -i ova /home/dragon/ova_temp/win2003.ovf virt-v2v: error: /home/dragon/ova_temp/win2003.ovf: unsupported file format Formats which we currently understand for '-i ova' are: tar (uncompressed, compress with gzip or xz), zip If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] [dragon@localhost Downloads]$ virt-v2v -i ovf ~/ova_temp/win2003.ovf -o local -os ~/vms/win2003/ virt-v2v: error: unknown -i option: ovf If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] [dragon@localhost Downloads]$ grep "vssd:VirtualSystemType" win2003.ovf grep: win2003.ovf: 没有那个文件或目录 [dragon@localhost Downloads]$ ls centos-disk1.vmdk centos.mf centos.ovf win2003.ova [dragon@localhost Downloads]$ grep "vssd:VirtualSystemType" ~/ova_temp/win2003.ovf <vssd:VirtualSystemType>vmx-14</vssd:VirtualSystemType> [dragon@localhost Downloads]$ cd ~/ova_temp/ [dragon@localhost ova_temp]$ virt-v2v -i ovf win2003.ovf -o local -os ~/vms/win2003/ virt-v2v: error: unknown -i option: ovf If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] [dragon@localhost ova_temp]$ grep "disk .vmdk" win2003.ovf [dragon@localhost ova_temp]$ # 1. 安装 OVF 工具 [dragon@localhost ova_temp]$ sudo yum install ovftool Last metadata expiration check: 0:36:46 ago on 2025年11月03日 星期一 20时0118秒. No match for argument: ovftool Error: Unable to find a match: ovftool [dragon@localhost ova_temp]$ [dragon@localhost ova_temp]$ # 2. 升级 OVF 版本(ESXi 6.5+ 兼容) [dragon@localhost ova_temp]$ ovftool --acceptAllEulas --skipManifestCheck \ > win2003.ovf \ > upgraded_win2003.ovf Opening OVF source: win2003.ovf The manifest does not validate Opening OVF target: upgraded_win2003.ovf Writing OVF package: upgraded_win2003.ovf Transfer Completed Warning: - The manifest is present but user flag causing to skip it Completed successfully [dragon@localhost ova_temp]$ [dragon@localhost ova_temp]$ # 3. 转换升级后的 OVF [dragon@localhost ova_temp]$ virt-v2v -i ovf upgraded_win2003.ovf -o local -os ~/vms/win2003/ virt-v2v: error: unknown -i option: ovf If reporting bugs, run virt-v2v with debugging enabled and include the complete output: virt-v2v -v -x [...] [dragon@localhost ova_temp]$ sudo yum install ovftool Last metadata expiration check: 0:37:32 ago on 2025年11月03日 星期一 20时0118秒. No match for argument: ovftool Error: Unable to find a match: ovftool [dragon@localhost ova_temp]$ sudo yum search ovftool Last metadata expiration check: 0:37:44 ago on 2025年11月03日 星期一 20时0118秒. No matches found. [dragon@localhost ova_temp]$
最新发布
11-04
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值