From .exe to .lib
-
Hello all, I have a working BIG MFC project X. Now I want to create a new project Y(or another interface) that will use the older MFC project X as a library from which classes and methods are called. I changed the general properties of the X from .exe to .lib and Linked Y to X in the linker properties. The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this? Thank you very much. Regards
-
Hello all, I have a working BIG MFC project X. Now I want to create a new project Y(or another interface) that will use the older MFC project X as a library from which classes and methods are called. I changed the general properties of the X from .exe to .lib and Linked Y to X in the linker properties. The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this? Thank you very much. Regards
safigh wrote:
The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
safigh wrote:
The problem is that I lost all linker options that were in X (I used to link X to other libraries). Whatis the solution for this?
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
DavidCrow wrote:
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?
-
DavidCrow wrote:
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?
Notice the word "temporary" in my suggestion?
safigh wrote:
How to create this DLL project...
Use MFC's AppWizard.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
Notice the word "temporary" in my suggestion?
safigh wrote:
How to create this DLL project...
Use MFC's AppWizard.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
I can't get you. This is complicated for me. I am a beginner. Can you explain in more details and easier steps?
safigh wrote:
Can you explain in more details and easier steps?
It doesn't get any easier than what I've already provided. Since you have already created a "BIG MFC project," we must assume that you are at least somewhat familiar with the process. In any case, see here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
-
DavidCrow wrote:
Create a temporary DLL project and make a note of what linker options are used. Incorporate those into X.
Do you mean that I should creat a DLL project that link to these libraries and then put this DLL in X, thus X is linked to the libraries? How to create this DLL project and how to link it to X?
hi, you can see this site www.functionx.com there you can find samples for creating dll samples venu
-
safigh wrote:
Can you explain in more details and easier steps?
It doesn't get any easier than what I've already provided. Since you have already created a "BIG MFC project," we must assume that you are at least somewhat familiar with the process. In any case, see here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb