While the static library name may be hard to understand, the "shared dll" bit should be easier!
An EXE is the program you're running. It can also use DLLs, which other EXEs can use - hence shared DLLs. If you're struggling with that idea, then this is not the right forum for you.
In this case, your program will reference the MFC DLL(s). This could be MFC42U.dll for example. But this may or may not be on a system, so you'd need to put it there - and what if a bad person overwrites it? And is it will contain every MFC class and code, it will be quite large.
The alternative is to link all the MFC functions into your EXE. It will now be larger than before, but more selfcontained. And not as large as the EXE and DLL were before.
Which you use is heaviliy dependent on other conditions. Ease of install, whether the DLLs already exist on the system (which is a given with older versions of MFC). Will this be downloaded over a slow internet connection? etc.
There is no black or white, good or bad answer. Welcome to programming - land of compromises and cost-benefit analysis.
i would use shared DLL usually but the main problem which i faced as an AMATUER programmer was tht my program wont run on my friend system! so static DLL helped me out! though the size of the exe incresed to few MBytes but atleast i got STANDALONE application
See also this post[^] of mine about rounding in SQL Server.
If you need an exact decimal, perhaps for currency values, use a scaled integer. These are harder to find in C++, there's no standard implementation as far as I know, but basically treating an integer as if it were in cents rather than dollars, or pence rather than pounds, generally works pretty well.
ACtually when i was trying to use the code of OnInitdialog function in my onititdialog function with InsertItem function it was giving two errors .
thet were related to linking error.
Remeber I am only using cod eof OnInitDialog funcion.
Dont know why.
Sorry to bother you I have gone through the code and implemented it also. Now the problem i am facing in my tree control is that it is showing all the drives and network neighbourhood but when i am selecting any one of them it is not expanding. I dont know why although i have added the event handlers for expanding.
hello to all,
i want to use "Navigate" function of CWebBrowser2 class which i have added as a activex control in my programm but i dont know how to use it in different classes other than CMainFrame and CView class as i dont know what will be the pointer to the frame in which the web site will be dispalyed. Bcoz i want to navigate to a given web site URL after clicking a perticular button of a dialog box means i want to use "Navigate" function in a message handler of that dialog box class, how can i generate a frame in which the web site will be dispalyed.can anybody help me plz.
Following is the code i m using, and it's working.
GetText.cb = sizeof(100);
GetText.codepage =CP_ACP ;
GetText.lpDefaultChar = NULL;
GetText.lpUsedDefChar = NULL;
Last Visit: 31-Dec-99 19:00 Last Update: 3-Dec-23 17:58