|
How i get a control over the GetScrollPos() return values?
|
|
|
|
|
...you can minimize the size of a whole mfc program, for my program, it takes ~1,5 mb just for a small hello world app, grrrr
so my question is : how do i have to setup my project options to minimise the size of the program ?
please help me
|
|
|
|
|
goto the 'general' section and then 'tips' here on codeproject ... there are several articles on exactly what u are looking for
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Usually the release version is much smaller when options set to MINIMIZE-CODE.
But when you want to have very small code than there is no better way then using raw WinAPI.
( WinAPI "Hello world" is about 25k - so any more question about MFC *ggg* ! )
Greatings Mario ///
----------------------
www.klangwerker.de
mario@klangwerker.de
----------------------
|
|
|
|
|
well, ok, but the .exe file size doesnt matter to me
i think about all those dll files (mfcu42.dll,.........)
so, my question is "If i want to give my program to a friend, what do i have to do for the smallest size possible" , do i always have to give him the dll files, or is there any special option that reduces the project files to one , maybe two dlls ?
PLease help :P
|
|
|
|
|
Well, unless you are using the Learning Edition, you can compile staticly, it will create one large application (not counting the use of new versions of common controls and ActiveX).
|
|
|
|
|
Does anybody know how to develop pseudo-printer driver like Adobe Acrobar Writer?
|
|
|
|
|
you would need the windows ddk (device driver kit) and a generic printer driver skeleton ... then the icky work would start ... sheesh ... isn't it just easier to buy adobe acrobat?
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Hi. I need open a txt file to an user can modifies it content (the option "save as" have to stay disabled) How can i do open a file which only have "save" option enabled? Thanks.
|
|
|
|
|
ummm ... assuming u mean in an mfc mdi or sdi app with a file/save and file/save as menu option on it ... just remove the file/save as option in the resource editor
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
In order to create a worker thread from a member function you need to make it static. Making it static prevents it binding to any instance of a particular class. Given this, how do I access the member functions or variables of my class from within the thread function?
For instance, if I have the thread function below, how would I update a dialog control or status bar with the threads current progress or even access a member variable?
// Static thread function
UINT CDemoDlg::ThreadFunc( LPVOID pParam )
{
// DO: Time consuming thing
// Update dialog control
// or update status bar etc?
return 0;
}
What is the standard procedure for dealing with such things? Some kind of polling a non-member global variable or is it possible to resolve the scope of a class member variable or function from within a static member function??? My attempts to do the latter failed would you believe
Thanks...
|
|
|
|
|
Hmm, helps to check the articles list before posting a question that is already covered there huh?
Apologies to all!
|
|
|
|
|
Stupid question alert!
I have an array of strings, what is the easiest way to convert that array to an array of ints.
|
|
|
|
|
assuming you have valid numbers in the strings you can use atof, atoi, atol etc etc depending on the data ranges and precision ... just loop thru the arrays
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
OK, you can use atoi function (see Help) and convert one per one elements in array (with a loop help).
|
|
|
|
|
Ok, am making a simple thing, a bitmap on a dialog.
Simple.
But i want to move the bitmap to the right when i press a key on my keyboard,
i know how to move the bitmap with a control button, but i dont know to tell my program
that i pressed a button. Please give me an example.
Thank you.
|
|
|
|
|
OnChar, OnKeyDown or OnKeyUp in your class wizard will all tell you if a key was pressed.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Dear all,
Is there anyone familiar with the Microsoft SAPI (text-to-speech)?
I have tried to write a program by using SAPI 4.0, however, I got these
errors. Can anyone help me how to solve it?
Waiting for you sincere reply. Thx a lot.
--------------------Configuration: tts - Win32 Debug--------------------
Linking...
ttsDlg.obj : error LNK2001: unresolved external symbol _CLSID_TTSEnumerator
ttsDlg.obj : error LNK2001: unresolved external symbol _IID_ITTSEnumA
ttsDlg.obj : error LNK2001: unresolved external symbol
_IID_ITTSBufNotifySink
Debug/tts.exe : fatal error LNK1120: 3 unresolved externals
Error executing link.exe.
tts.exe - 4 error(s), 0 warning(s)
|
|
|
|
|
The simplest way to solve such type of problems (linking problems) is to search these strings (like ITTSBufNotifySink) in all *.lib files. Than you must link (via Alt+F7 or #pragma comment) this lib-file to your project.
Btw, many MSDN articles describes that libs are needed for the code they describes.
With the best regards, Vitaly.
|
|
|
|
|
As you know, the CRebar in MS Internet Explorer has dividers on all sides (Top, Bottom and Sides). How can I get this done with CRebar?
CString Dutch = "Double Dutch";
|
|
|
|
|
Hello.
When I create the MDI application with other types views the MFC propose select (in the 'list_dialog') the view.
Question is: How I can break this way and call myself list_dialog or set by default some view (where is this place) (how i can find some type of view there) ?
Thx. evb.
Sergey (dr)
|
|
|
|
|
I presume you're asking if you have more than one possible document type when you click 'new' it asks what sort you want to create ? If so, in your CWinApp derived class, override OnFileNew to do this
// Force use of first template as it does not matter
POSITION POS = GetFirstDocTemplatePosition();
CDocTemplate* pTemp = GetNextDocTemplate(POS);
CYOURCLASSDoc* pDoc = (CYOURCLASSDoc*) pTemp->OpenDocumentFile(NULL);
This forces it to use the first template, you'll need to change that by the no. of times you call GetNextDocTemplate if needed.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi,
Please help me. How do I create an EXE file when my program is being run.
Thank you.
|
|
|
|
|
i think you haven't quite grasped the subtleties of programming yet and as such would recommend a bit more reading and practice
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Hey,
Anybody familiar with ad-blocking software such as AtGuard or Norton Internet Security? What I want to know is how they trap incoming HTML pages without being set up as a proxy. (i.e. You don't have to point your browser to go through them, they just automagically work as if they intercept the incoming HTML document and modify it before it gets to your browser)
Does anybody have any idea / links as to how this HTML trapping without proxy stuff is done.
Any help would be much appreciated...
|
|
|
|