legacy

Installation of VB6 on Windows 7 / 8 / 10 [duplicate]

对着背影说爱祢 提交于 2019-11-27 02:43:29
Possible Duplicate: Has anyone had success with Visual Studio 6 on Windows 7? Does the VB6 IDE run on Windows 7 64-bit? I have been having problems installing VB6 on Windows 7. I realize it is a legacy IDE and my research on the net hasn't been that much of help. Every time I attempt to install VB6 on Windows 7, besides the alert notifying me of compatibility issues, the setup runs and fails near the end, to which the installation process fails ultimately. And when another attempt is made, certain dll files are supposedly unreachable. These are but some of the few links I have visited in the

Is it possible to use the VC++ 6 compiler in Visual Studio 2012?

ⅰ亾dé卋堺 提交于 2019-11-27 01:24:30
问题 I am using Visual Studio 2012 to develop my projects, and I also have installed Visual Studio 2010 - which gives me the option to use the VC++10 compiler in Visual Studio 2012 (project properties), but I also have installed Visual C++ 6 and somehow the option to use the VC++6 compiler is not present in Visual Studio 2012, how do I add this option (manually)? 回答1: The answer is definitely maybe. It seems quite possible, but I could not get a copy of VC 6 so I was unable to verify it. What I

How do you introduce unit testing into a large, legacy (C/C++) codebase?

◇◆丶佛笑我妖孽 提交于 2019-11-26 23:52:38
问题 We have a large, multi-platform application written in C. (with a small but growing amount of C++) It has evolved over the years with many features you would expect in a large C/C++ application: #ifdef hell Large files that make it hard to isolate testable code Functions that are too complex to be easily testable Since this code is targeted for embedded devices, it's a lot of overhead to run it on the actual target. So we would like to do more of our development and testing in quick cycles,

bash: $[<arithmetic-expression>] vs. $((<arithmetic-expression>))

╄→гoц情女王★ 提交于 2019-11-26 22:48:08
I have just stumbled upon the bash syntax: foo=42 bar=$[foo+1] # evaluates an arithmetic expression When I Googled for this, I found http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_04.html#sect_03_04_05 : 3.4.6. Arithmetic expansion Arithmetic expansion allows the evaluation of an arithmetic expression and the substitution of the result. The format for arithmetic expansion is: $(( EXPRESSION )) ... Wherever possible, Bash users should try to use the syntax with square brackets: $[ EXPRESSION ] However, this will only calculate the result of EXPRESSION, and do no tests... In my bash man

How can I run a Windows GUI application on as a service?

不羁岁月 提交于 2019-11-26 22:13:36
I have an existing GUI application that should have been implemented as a service. Basically, I need to be able to remotely log onto and off of the Windows 2003 server and still keep this program running. Is this even possible? EDIT: Further refinement here... I do not have the source, it's not my application. Windows services cannot have GUIs, so you will need to either get rid of the GUI or separate your application into two pieces - a service with no UI, and a "controller" application. If you have the source code, converting the non-GUI code into a service is easy - Visual Studio has a

Why are bmps stored upside down?

痞子三分冷 提交于 2019-11-26 21:31:34
问题 Why are BMP images stored upside down and zero-padded so they are four-byte aligned? 回答1: Here's a quote from Petzold: So, in DIBs, the bottom row of the image is the first row of the file, and the top row of the image is the last row in the file. This is called a bottom-up organization. Because this organization is counterintuitive, you may ask why it's done this way. Well, it all goes back to the OS/2 Presentation Manager. Someone at IBM decided that all coordinate systems in PM—including

DDD, Anti Corruption layer, how-to?

旧城冷巷雨未停 提交于 2019-11-26 15:35:19
问题 At the moment, we have to build an application which is based on a legacy one. Code for that old application should be thrown away and rewritten, but as it usually goes - instead of rewriting it, we need to base something new on it. Recently, we decided to go the DomainDrivenDesign path. So -- anti corruption layer could be a solution for our problems. As far as I understand, this way it should be possible to gradually rewrite the old application. But -- I can't find any good example. I would

Finding “dead code” in a large C++ legacy application [closed]

和自甴很熟 提交于 2019-11-26 11:59:19
问题 I\'m currently working on a large and old C++ application that has had many developers before me. There is a lot of \"dead code\" in the project, classes and functions that aren\'t used by anyone anymore. What tools are available for C++ to make a analysis of large code base to detect and refactor dead code? Note: I\'m not talking about test coverage tool like gcov. How do you find dead code in your project? 回答1: You'll want to use a static analysis tool StackOverflow: What open source C++

Marshalling a big-endian byte collection into a struct in order to pull out values

孤街醉人 提交于 2019-11-26 11:18:22
问题 There is an insightful question about reading a C/C++ data structure in C# from a byte array, but I cannot get the code to work for my collection of big-endian (network byte order) bytes. (EDIT: Note that my real struct has more than just one field.) Is there a way to marshal the bytes into a big-endian version of the structure and then pull out the values in the endianness of the framework (that of the host, which is usually little-endian)? (Note, reversing the array of bytes will not work -

Installation of VB6 on Windows 7 / 8 / 10 [duplicate]

一笑奈何 提交于 2019-11-26 10:13:13
问题 Possible Duplicate: Has anyone had success with Visual Studio 6 on Windows 7? Does the VB6 IDE run on Windows 7 64-bit? I have been having problems installing VB6 on Windows 7. I realize it is a legacy IDE and my research on the net hasn\'t been that much of help. Every time I attempt to install VB6 on Windows 7, besides the alert notifying me of compatibility issues, the setup runs and fails near the end, to which the installation process fails ultimately. And when another attempt is made,