Hi guys!
I am coding a free software that will have 2 parts. Part 1. is an admin panel where a user will be able to select some options. Part 2. is a finished new application which a user can send to some other user, so a standalone application that has nothing to do with the admin panel. Now, the problem is, I don't know how to connect those two parts. I want to add an option in the admin panel that says "build" which will create a file with the native c/c++ code and then compile it into an .exe as a final product. Something like a chicken that lays an egg, if you know what I mean. Well, the egg will be the .exe file in my case. The problem is, how can I make the chicken to lay an egg an not a smelly, black thing that he lays every few hours? :)
The admin panel will be in .NET technology (C# or C++) and the .exe file will be in native c/c++ an win32 api code. I know how to write text into a file, so that's not a problem. The problem is, how to implement an auto compiler that will be able to compile that newly written file without any problems and without a user intervention? The newly generated code is 100% correct, because it compiles clean in Visual Studio, so no problem there. And I would like that the compiling of that file would be independent from the users configuration. I mean, they will still have to have windows and .net installed, but I don't want to make them to install platform sdk and .net sdk.
I AM NOT LOOKING FOR A CODE ABOUT THIS. - This is for those who skim the text so they can see that I am not looking for a code solution. What I need is some guidelines to how to do it.
First, I was thinking about packing the whole VC++ compiler into my application and then to start it in the background with console commands to the cl.exe so it can make an .exe. While this idea is accepted in some way, the problem is with packing all the libraries for the win32 api dll's and then all the files cl.exe is dependent from. I am affraid that it will take away a lot of MB's, since the win32 api dll's are a few MB's already, and I don't know if I can redistribute cl.exe and all the other libraries for free.
The second option was the C++ redistributable package. The problem is, I never worked with it, and I don't know if it supports compiling and how. Though, I have a few versions of the c++ redistributable package already installed on my system from different games and applications. If you worked with this package and if you think that that's the right solution, speak up and save me from my misery. :)
I was also looking at some free compilers, namely, borland c++, but it is ~7MB, and I don't know if I need to pack all the 7MB into my application or not, and if I do, then how should I use it?
So, as you see, I am on a road toward something, but I think I am lost and I need somebody to give me a clue which way to go now.
Can anybody help me??? :)
I am coding a free software that will have 2 parts. Part 1. is an admin panel where a user will be able to select some options. Part 2. is a finished new application which a user can send to some other user, so a standalone application that has nothing to do with the admin panel. Now, the problem is, I don't know how to connect those two parts. I want to add an option in the admin panel that says "build" which will create a file with the native c/c++ code and then compile it into an .exe as a final product. Something like a chicken that lays an egg, if you know what I mean. Well, the egg will be the .exe file in my case. The problem is, how can I make the chicken to lay an egg an not a smelly, black thing that he lays every few hours? :)
The admin panel will be in .NET technology (C# or C++) and the .exe file will be in native c/c++ an win32 api code. I know how to write text into a file, so that's not a problem. The problem is, how to implement an auto compiler that will be able to compile that newly written file without any problems and without a user intervention? The newly generated code is 100% correct, because it compiles clean in Visual Studio, so no problem there. And I would like that the compiling of that file would be independent from the users configuration. I mean, they will still have to have windows and .net installed, but I don't want to make them to install platform sdk and .net sdk.
I AM NOT LOOKING FOR A CODE ABOUT THIS. - This is for those who skim the text so they can see that I am not looking for a code solution. What I need is some guidelines to how to do it.
First, I was thinking about packing the whole VC++ compiler into my application and then to start it in the background with console commands to the cl.exe so it can make an .exe. While this idea is accepted in some way, the problem is with packing all the libraries for the win32 api dll's and then all the files cl.exe is dependent from. I am affraid that it will take away a lot of MB's, since the win32 api dll's are a few MB's already, and I don't know if I can redistribute cl.exe and all the other libraries for free.
The second option was the C++ redistributable package. The problem is, I never worked with it, and I don't know if it supports compiling and how. Though, I have a few versions of the c++ redistributable package already installed on my system from different games and applications. If you worked with this package and if you think that that's the right solution, speak up and save me from my misery. :)
I was also looking at some free compilers, namely, borland c++, but it is ~7MB, and I don't know if I need to pack all the 7MB into my application or not, and if I do, then how should I use it?
So, as you see, I am on a road toward something, but I think I am lost and I need somebody to give me a clue which way to go now.
Can anybody help me??? :)
Comment