c++.mfc - Now a link problem - CPictureHolde
- Andy C (7/7) Jan 16 2004 Well the old MS VC++ program compiled (I will post the final fixes and
- Walter (5/12) Jan 18 2004 Make sure the .lib file it is looking for exists on the LIB environment
- Andy C (6/22) Jan 19 2004 Walter,
- Walter (5/31) Jan 19 2004 How about specifically listing the appropriate .lib file on the command ...
- Andy C (12/46) Jan 20 2004 Walter,
- Jan Knepper (7/65) Jan 20 2004 You probably can by compiling you program with static MFC libraries.
- Andy C (3/68) Jan 20 2004 I am using IDDE
- Jan Knepper (8/89) Jan 20 2004 Project Settings -> Target -> Uses -> MFC + MFC (.LIB)
- Andy C (9/98) Jan 20 2004 Jan,
- Jan Knepper (9/131) Jan 21 2004 Well, I guess what you could try to do is compile ctlpict.cpp as part of...
- Walter (8/18) Jan 22 2004 file:
Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compiles references to CPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 16 2004
Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 18 2004
Walter, I did to no avail, but I also discover that the project links if MFC is included as a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 19 2004
How about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 19 2004
Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks! Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...How about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 20 2004
Andy C wrote:Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks!You probably can by compiling you program with static MFC libraries. Are you using the IDDE to compile or a makefile?Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgHow about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 20 2004
I am using IDDE Andy C In article <buk61h$s36$1 digitaldaemon.com>, Jan Knepper says...Andy C wrote:Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks!You probably can by compiling you program with static MFC libraries. Are you using the IDDE to compile or a makefile?Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgHow about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 20 2004
Andy C wrote:I am using IDDEProject Settings -> Target -> Uses -> MFC + MFC (.LIB) HTH JanAndy C In article <buk61h$s36$1 digitaldaemon.com>, Jan Knepper says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgAndy C wrote:Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks!You probably can by compiling you program with static MFC libraries. Are you using the IDDE to compile or a makefile?Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgHow about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 20 2004
Jan, thanks, but I have that set correctly. See if you can get it to work with MFC linked as .LIB. In any project just add these two lines and see if you can link and run. I am a long time DMC user but this little (and useful) control has me stumped! #include <afxctl.h> // Include for CPictureHolder CPictureHolder cp; // Add simple control for drawing JPG's Thanks - Andy C In article <buk99s$11eg$1 digitaldaemon.com>, Jan Knepper says...Andy C wrote:I am using IDDEProject Settings -> Target -> Uses -> MFC + MFC (.LIB) HTH JanAndy C In article <buk61h$s36$1 digitaldaemon.com>, Jan Knepper says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgAndy C wrote:Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks!You probably can by compiling you program with static MFC libraries. Are you using the IDDE to compile or a makefile?Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgHow about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 20 2004
Well, I guess what you could try to do is compile ctlpict.cpp as part of your project. It seems that in the standard libraries CPictureHolder (ctlpict.cpp) is only compiled into a .DLL... HTH Andy C wrote:Jan, thanks, but I have that set correctly. See if you can get it to work with MFC linked as .LIB. In any project just add these two lines and see if you can link and run. I am a long time DMC user but this little (and useful) control has me stumped! #include <afxctl.h> // Include for CPictureHolder CPictureHolder cp; // Add simple control for drawing JPG's Thanks - Andy C In article <buk99s$11eg$1 digitaldaemon.com>, Jan Knepper says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgAndy C wrote:I am using IDDEProject Settings -> Target -> Uses -> MFC + MFC (.LIB) HTH JanAndy C In article <buk61h$s36$1 digitaldaemon.com>, Jan Knepper says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgAndy C wrote:Walter, I searched for a .LIB with one of the missing functions and I found this file: C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked with no errors! But when I tried to run it I got errors telling me that it could not find sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that I don't have to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatly appreciated. Thanks!You probably can by compiling you program with static MFC libraries. Are you using the IDDE to compile or a makefile?Andy C In article <bui95l$sdu$2 digitaldaemon.com>, Walter says...-- ManiaC++ Jan Knepper But as for me and my household, we shall use Mozilla... www.mozilla.orgHow about specifically listing the appropriate .lib file on the command to the linker? "Andy C" <Andy_member pathlink.com> wrote in message news:bugnm0$1elh$1 digitaldaemon.com...Walter, I did to no avail, but I also discover that the project links if MFC isincludedas a DLL, but not in a .LIB. Any idea what can cause that? Thanks. Andy C In article <bufqo1$2usu$1 digitaldaemon.com>, Walter says...Make sure the .lib file it is looking for exists on the LIB environment variable path setting. "Andy C" <Andy_member pathlink.com> wrote in message news:bu9np0$23or$1 digitaldaemon.com...Well the old MS VC++ program compiled (I will post the final fixes and work-arounds when I am finished, mostly updating MFC classes with new functions). The new problem is that while it correctly compilesreferences toCPictureHolder, it failes to find the .LIB file to link it. Any ideas? MS VC++ just seems to pick it up and don't reference a .LIB file. Thanks! Andy C
Jan 21 2004
"Andy C" <Andy_member pathlink.com> wrote in message news:buk49q$ph4$1 digitaldaemon.com...Walter, I searched for a .LIB with one of the missing functions and I found thisfile:C:\dm\mfc\LIB\SFCO42D.LIB. I added that to the project and it linked withnoerrors! But when I tried to run it I got errors telling me that it couldnotfind sccrt70.DLL (plus a bunch of other DLL's). So, I copied the EXE to c:\dm\redist32 and ran it from there and it works! My question is, can I get these DLL's into my EXE at link time so that Idon'thave to install each time I want to transfer the program? Plus any general info on what I was doing wrong would be greatlyappreciated.Thanks!Make sure the .DLL exists on your PATH environment variable setting.
Jan 22 2004