A Stupid Question
idbruce
Posts: 6,197
Is it possible to change the compiler of Mcrosoft Visual C++ 6.0 to Propeller GCC? And of course, be able to switch it back again?
Comments
I really wanted to post something helpful too... but a quick Google did not turn up anything sorry
Propeller GCC is for Propeller architecture.
Microsoft's Visual C++ is generally for Intel based architecture and their clones. I am not sure if Microsoft has managed to target other architectures, but they have ignored the Propeller.
Since the Propeller GCC is a cross-compiler, you could have both installed on the same computer.
Probably not so simple to do. What's wrong with SimpleIDE anyway?
Nothing is wrong with SimpleIDE, I am just accustomed to the Visual setup.
I doubt that VS debugging will work for gdb and gcc.
Like you I really got used to all the goodies of VS. It is a really nice IDE, fast, powerful and - well - I am used to since years. So I am biased. Yes I am.
I am also a fan of the company jetbrains. Never tried Clion, since I rarely program in C. But I used a program called TeamCity with some customers of mine and was very happy about that software. Works perfectly together with Visual Studio and almost any Source Control System. Builds whatever you want, runs tests over it, can run tests over your source (like duplicates) and does nice reporting about all of it. Highly recommended to look at.
Enjoy!
Mike
Thanks for the idea Mike.
For those that may be interested in a similar idea.... I don't believe this is the original code that I wrote for the self-deleting batch files, but I am certain that I must have copied the routine for use in this function. This function can easily be altered to create your own self-deleting batch files.
EDIT: Although I would write it much different these days with the use of CString. I was pretty much still a newbie when I wrote this.
I don't get the idea.
If you write a program that writes out a batch file, then runs it. And then the batch file deletes itself. Why not instead have the program delete the batch file when it's finished running?
On a Windows OS, ShellExecute is the easiest way to execute something, such as a batch file. The problem is that ShellExecute only returns a HINSTANCE. It would be difficult to monitor the batch file, to know when it has finished running. It is much easier to just create the self-deleting file, because it will know when the execution is complete.
EDIT: However, ShellExecute has the lpParameters parameter, which may allow you to pass command line arguments directly to GCC.
I don't know if you examined that code at all, but.....
The EXE file writes the BAT file, executes the BAT file, and then the EXE file exits. The BAT file then loops until it is capable of deleting the EXE file that wrote the BAT file and then the BAT file deletes itself Whereas, EXE files cannot delete themselves
So what you have is a self deleting exe file. Now I have to ask, why do you need that ?
This C code deletes it's own executable on Linux. Similar can be done in other operating systems:
Perhaps it does and I should have been more specific. So please allow me to rephrase. On a Windows OS, EXE files cannot delete themselves.
EDIT: Or should I say, that was the case when I wrote that routine.
Sorry for being tedious about this. It's just that I haven't written anything for Windows since Windows 3.1
Understandable.
Back when I wrote that, Visual C++ 6.0, came prepackaged with InstallShield (I think that is what it was called), but I did not like the program, because it was too complicated for the simple tasks that had to be done. Back then, the hardest part to writing your own install programs, were creating shell links and internet shortcuts,
FileServices.cpp
FileServices.h