过期域名预定抢注

 找回密碼
 免费注册

VC++.Net的程序能不能轉換成VC++6。0的?

[複製鏈接]
發表於 2005-4-26 09:25:34 | 顯示全部樓層 |閱讀模式
請教?) ^' o$ Q! [* j* t- Z- s
有程序員在嗎?
3 u7 W1 j- W+ d9 x! Q2 W4 B8 y: ^畢業設計要做個網絡遊戲平台,類似QQ遊戲的,要用VC來做,鬱悶死了。
發表於 2005-4-26 10:17:33 | 顯示全部樓層
.....你的意思.net的你有源碼?畢業設計還規定你要用什麼工具啊,搞笑了。
回復 给力 爆菊

使用道具 舉報

發表於 2005-4-26 10:50:52 | 顯示全部樓層
提示: 作者被禁止或刪除 內容自動屏蔽
回復 给力 爆菊

使用道具 舉報

 樓主| 發表於 2005-4-26 12:43:28 | 顯示全部樓層
用.net工具轉嗎?. A" A$ \- ~" _/ m
我沒裝過.net! `7 [, m8 i% z% N+ t5 p+ Z
反正我知道從VC++6.0升級到.net是可以的。
回復 给力 爆菊

使用道具 舉報

 樓主| 發表於 2005-4-27 16:24:36 | 顯示全部樓層
VC++7 to VC++6 project converter
' }  v5 Y2 U+ \: t. r3 p8 KBy Stephane Rodriguez. * `# I( D) t8 R) I- U4 t+ P
7 X* P; g, h; g" V* H  ]
This tool automatically converts Visual C++ 7.0 projects back to Visual C++ 6.0 projects. : L- ^' y. u' _8 W/ H
What is this ?
% T- u2 ~# _6 p! j& E) }" lThis tool automatically converts Visual C++ 7.0 projects back to Visual C++ 6.0 projects. In other words, .sln/.vcproj file pairs are translated to .dsw/.dsp file pairs.8 F4 l: h- z: S- r
9 v- u, @* \5 R  i
Important note, there is no loss during the conversion: source code is left unchanged; only .dsw/.dsp are created (or overwritten).0 B* ~  u( l% w" P+ O' n
7 [6 C' T) g6 {9 C$ K9 _$ T, H
Why?6 k" a- Q+ U- [+ N
First of all because MS doesn't provide it. It's easy to become cynical against MS when you feel how bad it is to sell developer tools without all the necessary "moulinettes" (converters in ugly English) to go backward.
  U$ }( m# z! A( e! C/ Y' c2 J# t" w) E0 i2 ]# u
Without this tool, you end up recreating your projects from scratch: a total waste of time, and prone to errors. Actually there are several scenarios where this tool is useful:% z! q/ i" _) j) }! B

7 n4 c: G- y9 Z2 G+ N; A! kSomeone gives you a VC++ 7 project, and you only have VC++ 6 installed. 9 A. O1 F" k6 a7 C8 T! O( ?
You have upgraded your project(s) from VC++ 6 to VC++ 7, and you have both .dsw/.dsp and .sln/.vcproj files on your local system drive, but you are willing to keep those files synchronized so any time you need to open the project, you need not bother the VC++ version you work with. - V) I4 q  j; e5 W
Provide both versions of projects (for instance when you share code on CodeProject), so your audience does not need to bother with knowing which devtool is required.
# H# D7 Z5 D, WHow to use it
) X# J- h4 U* X+ Y/ x- eThe tool is a command line of the form:
0 J/ W! h  X% p
% D7 x1 x; U* T2 yprjconverter <solutionname (full filepath)>[.sln]5 p3 i  h5 x8 T* ~4 M- n
For instance,$ M/ c6 Z" v  m9 g

9 r5 ~8 Y. U6 p1 o- Nprjconverter c:\tmp\betterxml\betterxml.sln' M) C$ o7 P8 d" W; Y, k! D
For info, type prjconverter.exe alone in the console.
6 O8 I  O8 Q# l6 D6 F. p/ K6 o* ]$ X
& A! k4 o; c3 k# JWhat is converted
9 F; z# i" J; VA few steps to let you know how the work gets done. The .sln solution file is opened and translated to the .dsw file format, along with all project declarations, dependencies, and source control tags.- Z# m) W0 k0 A" y# j
+ w9 I8 w0 A. P0 M8 a; c
Then all .vcproj project files are translated to .dsp files. I use MSXML to parse the .vcproj file format, and build the meta-model out of it. Then what's left to do is serialize all those XML thingies into the standard .dsp symbol lines./ ~! p" l! q& ~

" P, x3 y4 a) jOf course we care about project configurations (debug, release, ...), and custom file configuration settings.
5 g" q- b% E  a( f: l/ N
  t. J" o( Y2 m: y: O7 j3 HTechnical details2 l% R3 [% @3 v1 P8 P& F
In the code provided, slnprocess.cpp does the .sln =>.dsw conversion. vcprojprocess.cpp does the .vcproj => .dsp conversion. And vcprojconfiguration.cpp holds the project meta-model (all project setting tabs). In VC++ 7, the meta-model is now programmable. Let's check out this link. In fact, vcprojconfiguration.cpp reflects exactly this meta-model (as if it was internal MS code).
) l3 ?" m4 }, O6 W4 Q: ~6 k  L( m8 ]$ s. [! J
Disclaimer8 b; e; w5 s2 C$ |5 H: O
This tool has been extensively tested before being published (MFC/COM/ATL/console apps, makefiles, ...). Though I am willing to know if there is anything I can do in order to improve it, let me clearly say that it's not my fault if your project is corrupted by this tool.
( N6 l6 ~; V2 S) G/ Z' }  T# P5 z0 r( ~) J+ z
Update history. X# n2 J4 J7 }, T& P* X& @& U; U/ {. e
5 \8 \) c( u# U$ [9 K
終於找到了。哈哈
回復 给力 爆菊

使用道具 舉報

發表於 2005-4-27 16:42:12 | 顯示全部樓層
可憐,
回復 给力 爆菊

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 免费注册

本版積分規則

4um點基跨境網編創業社區

GMT+8, 2024-11-24 05:21

By DZ X3.5

小黑屋

快速回復 返回頂部 返回列表