|
This setting purely affects the way the MFC dlls are used with your applicaiton. They are either linked statically, ie, they are built into the exe (like a .lib file) or they are not, in which case the machine your exe is going to run on had better have the latest MFC dlls installed. (See Microsofts ludicrously named 'side by side' installation for more info on what an utter joke this has become. Yes, with manifests, and versions. Dll hell just became manidest hell...).
Anyway, enough slaging off the people at Microsoft...
Your library is either a dll or a lib.
If it is a lib then you want to use static linking. Make sure the lib is in the link path, and make sure the lib is added to the projects link settings.
If it is a dll you want to use dynamic linking. Even with a dll there is a tiny little lib file, make sure that is in your link path and that it is added to your projects link settings. And deploy the dll with your exe.
==============================
Nothing to say.
modified on Thursday, September 15, 2011 6:12 AM
|
|
|
|
|
For Visual Studio, under the project properties go to the Linker tab. Under general, you can modify the Additional Library directories field if the *.lib file created by your other project is not in a standard directory and not in the same directory as the project. Then under Input, you add the lib file under Additional Dependencies (you probably already see the standard files, such as kernel32.lib, user32.lib, etc. added).
|
|
|
|
|
Yes, I know. That is what I said to the OP.
==============================
Nothing to say.
|
|
|
|
|
I hate it when people reply to me when they meant that for OP.
|
|
|
|
|
I thought it cleaner (view-wise) to respond to you, to make it clear it was a small specific addition to what you said. If the OP read your answer, he/she (I figured) would probably read my answer right after it.
Unfortunately, the alert system at CP only decides to inform you. But in this case, it doesn't matter because my post was only an addition to your post for if the OP hadn't seen it yet.
|
|
|
|
|
OK, so next time reply to the OP and say "in addition to what xxx said..."
That way you are seen as giving credit, rather than copying someone else, and the right person gets your post.
==============================
Nothing to say.
|
|
|
|
|
I should think that, assuming I was not doing this by mistake, one would see this as giving credit.
If I had posted in parallel without referring to the other person's post, now that would indeed look like copying.
And I already explained why I thought it was acceptable that the OP did not receive a notification.
All in all, I don't see why everybody is getting all round up about this. Technically, I was doing it right ... But apparently, I am in heavy violation of CP forum etiquette (specifically CP forum, as other forums I have been active on do not go into a /rage mode over such as I've seen happen here :P )
Maybe it's the extra spam? Then again, one can hardly post on a board and then complain about notifications.
|
|
|
|
|
These settings won't affect your problem. Check that your library is correctly exporting the relevant entry points and that the linker is able to find it when you build your project.
|
|
|
|
|
This is the most likely cause... at least for the first error... +5 (+10 if I could )
|
|
|
|
|
Thanks but you're too kind. Errors such as this are basic stuff that the average developer should be well able to diagnose; especially if they are being paid for their work.
|
|
|
|
|
You're very welcome and very true about the being paid part...
|
|
|
|
|
Your use of MFC can be either way. But the restriction is that for both projects, the use must be the same. So even though you have a static library project, it may use or include MFC either statically or dynamically. Regardless of which of those two settings you apply to your static library project, you must apply the same setting to your second project that is linking with your static library.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
|
|
|
|
|
Hello Friends
I want to know about lay out diagram of an application.My Application is having One main Toolbar with Some buttons and have four Other toolbar having around 20 controls in those toolbars.
For each Toolbar ,I created a separate dll. Main toolbar Will consist of main.Now,i want to know that how can i use four other toolbar dlls in main so that
1)if i want to remove one of four toolbar i remove that dll and it doesnt affect whole application.
2)And I want to initialize those four toolbars only one time and want to use their values in between four toolbars and main toolbars,like static.
3)want to consider memory and other speed issues.
Thanks In Advance.
Regards
Yogesh
|
|
|
|
|
So that's getting on for 100 controls, which is far more than the average user can handle. You may want to consider:
1. Looking at the Windows Ribbon Bar - see Michael Dunn's Ribbon series[^].
2. Redesigning your application to reduce the number of tools required in toolbars.
|
|
|
|
|
Hello,Thanks for Reply.
i am using Ribbon Toolbar for this but i want to know that How do i link all these dlls.
Which Architecture should I follow?
Regards
Yogesh
|
|
|
|
|
yogeshs wrote: Which Architecture should I follow?
The architecture of the Ribbon Toolbar, as referred to in the link in my previous message.
|
|
|
|
|
Hi,
I am using CRichCtrl for displaying text. I have data in columns.
It is coming is correct format. But If line is having a space in starting then It is not displaying the space because of that my formatting is not coming correct.
If data is
10
9
it is displaying like
10
9
I can no not use Right aligned becuase my other data will get spoiled.
Please suggest.
|
|
|
|
|
john5632 wrote: I am using CRichCtrl
I assume you actually mean CRichEditCtrl[^]. In order to line up columns you need to use a fixed width font for that field; see the difference as follows (I use the character i in order to demonstrate the width clearly:
10
i9 - variable width
10
i9 - fixed width
|
|
|
|
|
You are right its CRichEditCtrl.
Please suggest me which fixed width font I need to use?
|
|
|
|
|
john5632 wrote: Please suggest me which fixed width font I need to use?
Use whichever one offers the clearest type for you and your users.
|
|
|
|
|
john5632 wrote: I am using CRichCtrl for displaying text. I have data in columns.
Wouldn't a grid or list control be better suited for this?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather
|
|
|
|
|
Hi All,
I have two project one in mfc and othe in Win32
from MFC project i create on .cpp file that used in win32 API application
so i want to execute MFC application first and on the click of OK i want to execute WIN32 API application
|
|
|
|
|
Ok. But where are you stuck??
Every new day is another chance to change your life.
|
|
|
|
|
Thanks for reply becouse for lots of trial i get first reply
now my problem is strait forward
i have two application on depend on another
like
i have mfc application for user selection to generate some data to create .cpp file
now this .cpp file used by WIN32 API project to create a Win32 api exe my second project.
my concern only with win32 exe not with MFC exe so
i want to execute win32 exe after mfc application selection complete
|
|
|
|
|
Coder Block wrote: i want to execute win32 exe after mfc application selection complete
Yes but again, what is your problem? You want to do something after some other event, so add some code to your MFC app to start the second app at the appropriate time.
|
|
|
|