I am writing you from Switzerland and despite the fact that I have been looking in literature about C++ and on line forums, it remains a problem that I would submit to you. I would be grateful of your help. I am far away from being an expert but indeed today ( I mean since days I am blocked by this ! )
I have to manage a project in C++ which is pretty well working and dealing with stocks of the company I work with ( import/export of mineral water and dispatching stocks).
My project is within a folder: folder00 [ let's call it so]
all *.cpp, *.h files...etc...
I have to modify only one *.h file
and one *.cpp file.
hd01.h
blo1.cp
==> for hd01.h, I have to modify line 5 to 22
and replace the block of numbers by a new block of numbers in a worpad file wpd01.rtf
==> same for blo1.cp [line 58 to 72] with wpd02.rtf
The path of each file is stable
How can I proceed from an external C++ executable file [ let's call it external.cpp]?
And how can I automatically rebuilt the project? From external.cpp too?
Hello,
Hmm external.cpp would be a file taking part in the project? If it would, it's impossible.
Else, you can create a program, which will modify the lines you want.
An other way : if those lines are just variables, you can make a piece of code which will load/save variables in a file, like variables.txt, so you will just have to modify this .txt, without recompiling.