简体   繁体   English

Windows XP SP3上将旧C ++ / DirectX 7-8代码从一本书更新为C#/ SlimDX或DirectX 9的最佳过程?

[英]Best process on Windows XP SP3 to update old C++/DirectX 7-8 code from a book to C#/SlimDX or DirectX 9?

I am diving back into the world of programming. 我正回到编程世界。 In a few months, after I have grown competent in C#, I'm going to use an old book, that C++ Terrain Engine thing Charles Rivers released, and maybe a few other titles I have. 在几个月后,当我逐渐具备C#的能力后,我将使用一本旧书,这是Charles Rivers发布的C ++ Terrain Engine东西,也许还有其他一些书名。

The problem is I am using C# and not C++. 问题是我正在使用C#而不是C ++。 Also, I don't care how much better C++ may be. 另外,我不在乎C ++会好多少。 As well I don't want or need statements such as, "It takes more than one person to make a game engine..." or "You shouldn't do this until (some condition)..." or anything else. 同样,我不需要或不需要诸如“需要多个人来制作游戏引擎...”或“在(某些条件下)...之前不应该这样做”之类的声明。

Note well! 请注意! In my mind, in my imagination. 在我的脑海中,在我的想象中。 I have build and created my own GCS, by myself, in C#. 我已经用C#自己创建并创建了自己的GCS。 I have been dreaming about it, seeing its features clearly, for some time now. 一段时间以来,我一直在做梦,清楚地看到它的功能。 In other words, I have already made this and it is only a matter of time before it takes physical shape. 换句话说,我已经做到了这一点,而要形成物理形状只是时间问题。 All I am doing now is manifesting the reality I created. 我现在所做的只是体现我创造的现实。 To take steps to do so I am learning programming and planning ahead so I can test what I call flow. 为此,我要提前学习编程和规划,以便测试所谓的流程。 I don't expect you to agree with my mindset here, I just ask that you respect it. 我不希望您在这里同意我的想法,我只是请您尊重它。

So, what would be the best process, in your opinion, to take the C++ code from an old book and write a C# equivalent? 那么,您认为从旧书中获取C ++代码并编写等效于C#的最佳过程是什么?

Next,because Microsoft screwed things up with DirectX, as I'm sure many of you know, most of the code in these books will fail to work in the DirectX department. 接下来,由于Microsoft搞砸了DirectX,正如我确定你们中许多人都知道的那样,这些书中的大多数代码将无法在DirectX部门中使用。 So what is the best way to take old DirectX commands and change them to newer DX9 commands for Windows XP? 那么,采用旧的DirectX命令并将其更改为Windows XP的较新的DX9命令的最佳方法是什么? Or perhaps SlimDX? 还是SlimDX?

I figure there has to be some way, some process, that allows a coder to take a 2-10 year old book and write functioning code from it. 我认为必须有某种方式,某种过程,使编码人员可以拿起2到10年的旧书并从中编写有效的代码。 In essence I am asking what is this process? 本质上,我在问这个过程是什么?

Thank you for reading. 感谢您的阅读。 I appreciate your help - - DreamBliss 感谢您的帮助--DreamBliss

Well I've ended up delving back into C++. 好吧,我最终又重新研究了C ++。 And I have figured out how to get old DirectX code to run. 而且我已经弄清楚了如何运行旧的DirectX代码。 You can watch my new video tutorial series, explaining exactly how to do it, here: http://adifferentpath.blog.com/using-old-directx-code-links-and-resources/ 您可以在这里观看我的新视频教程系列,其中确切说明了操作方法: http//adifferentpath.blog.com/using-old-directx-code-links-and-resources/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM