|
"MFC AppWizard(exe)" and "Win32 Application",
"MFC AppWizard(dll)" and "Win32 Dynamic-link Library",
"Database Project" and "New Database Wizard" and "Extended Stored Proc Wizard"
when i create a new project?
thanks for your help!
|
|
|
|
|
I don't have VC6 open in front of me, but if memory serves, the only difference is that the MFC AppWizard takes you through a bunch of extra hooey (that is, steps in the wizard) and then generates a large majority of the code for you, whereas a strait win32 application, well, doesn't: it just gives you an empty project.
augs
|
|
|
|
|
An MFC project - of course - also includes MFC
|
|
|
|
|
hi,
how can i costumize the tab order in the Dialog window editor?
|
|
|
|
|
|
I would like to figure out how to make a feature like the CTRL+A feature that is in Notepad. You can also select the menu option Edit and then select Select All. I currently have a dialog box with and edit box (multiline) in the middle of it. I type stuff in there and would like to press Ctrl+A to automatically highligh all of the text. Does anyone know how to do this?
Thank you
|
|
|
|
|
|
Thanks for the info. I am still having problems though. Can you give me a set of steps on how to do this. For example:
Create new MFC AppWizard(exe)
Make Project name Test
next,dialog based,finish
Drag a Edit Box over to the dialog
Drag a button over to the dialog next to edit box
Set properties ID to IDC_EDIT_MESSAGE and make multiline
close properties
go into the MFC class wizzard
click on the Members Variables tab
select IDC_EDIT_MESSAGE
click on the Add Variable button
make member variable name m_message
change category to control
select ok and get out of the class wizard
double click on the button created and then select ok for the function to be created
now in the to do area of the new function type what?
this is where I would like for the button to select all of the text
sorry, but I have been a way from programming for a while and I do not have any of my books near me that demonstrate this type of stuff
thanks
|
|
|
|
|
|
Okay, I see now why it did not appear to work before. I did as you suggested and still did not see the text get selected. But after putting in the line m_message.SetSel(0,-1); I typed m_message.copy(); The text was selected but it did not show the text as selected until I did a copy. The only problem with this is that this copies the text in memory. It must be that after selecting the text I have to change the background color of the text as well. In this example we went through I used an edit text box and defined it as control, how could I have selected text if I would have defined it as a CString?
Thank you for the info
|
|
|
|
|
|
For the attention of the forum administrator.
I have been in the programming industry for 15+ years
and I am surprised and shocked by the number of offensive
and arrogant updates that pour ridicule on certain members of this forum that ask 'inappropriate' questions aimed at resolving their problem.
There seems to be a few contributors that deem themselves way above the learning curve who most likely forget that they once started at the bottom.
One of the most important aspects of programming is shared knowledge and
without that philosophy none of us would progress at all.
To slight and ridicule others who ask questions deemed trivial, is a disgrace.
You should be ashamed of yourself and you know who you are.
My whole expertise is built on the learning curve, development and experience of others,
that's how the whole of information technology was developed.
Sharing ideas and the solution to problems is at the heart of IT and to allow a few
contributors to use your forum as a kind of arrogant chatroom where naive questions
are frowned upon, surely cannot be right.
James.
|
|
|
|
|
Don't know if I should be ashamed, but well said!
|
|
|
|
|
I've been nuked a few times, do to errors in my answers. The majority of nukes seem to be directed at students who are asking for someone else to give them the answer, insted of presenting an attempted solusion.
INTP
|
|
|
|
|
While I can sympathise with your standpoint, I don't know what you referred to and neither the threads and questions.
That said, I know from experience that many questions are repeated - displaying the questioner have not even done the basic googling or searching of even CP itself.
If the questioner tells up front "I've been trying to find this answer using means x, y and z" it's one thing, but asking a beginners question with an almost obvious proof s/he hasn't even done a google search IMO deserves LARTing.
Again, as I don't know what you referred to there might have been something more serious provoking your post, but in my experience post of this kind are provoked by a bystander watching, just for a short while, people who are too lazy to even bother trying to find their own answers before bugging the general public and get flamed for it.
|
|
|
|
|
hi,
i want to make a view that no matter how many other child windows opened,
untill i won't close this perticiler view, i cant touch the other windows...
like in dialog boxes..
does anyone knows how to do that? or get me a link?
Avi.
|
|
|
|
|
You should rethink your design and use a modal dialog instead. That way, you conform to the GUI-guidelines, and will not surprise the users. You might want to search for interface guidelines on MSDN, the Apple developer site http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/index.html[^](!), for example, also have lots of usability and design information.
If you insist on doing it this way, you might want to call EnableWindow with a FALSE parameter for all the windows that should be disabled.
|
|
|
|
|
hi,
how can i create a response type window? (im using Doc/View architecture).
i create a new window with command myDocTemp.OpenDocumentFile() (after i found the right template), but it only open me a regular window.
do u know a way to open a response or popup window?
|
|
|
|
|
You don't explain what you mean with a response window. Given your other post, I suspect that you mean a modal dialog? In that case, create a dialog box in the resource editor, assign it to a class (with the Class Wizard), create an instance of the class, and call DoModal on the instance.
|
|
|
|
|
AOA !
I recently am involved in developing a Remote Desktop Monitor, (I can view the active desktop of any of the machines on my network). I already have reached a static solution where I recieve a static desktop image from each of my clients and I have to send a refresh request to get the image again.
I want that my client automatically sends me the image each time any portion of his screen is updated. I thought of sending the entire image again and again but it would be extremely inefficient. I want to send Only the portion of (Invalid Rectangle) whcih is updated.
I have used Windows Hooks to get any WM_PAINT message when it is posted in system message Queue and I get the Invalid Rectangle, but this rectangle has not been validated yet and I want a certain notification after a WM_PAINT message is processed. So I could copy the updated portion (image) from Desktop and send it again.
I do get which portion of screen is invalid but How can I know when a certain portion is Validated ...
Please Help .... Anyone !!
Aleem
|
|
|
|
|
|
Hi,
I am almost at the ending of my project. Now I have to build a statically linked exe file. How can do it?
Thank you,
R.Ravi Kiran
|
|
|
|
|
Is it an MFC application?
If so, selected "Use MFC in a Statically Linked Library" from the Project->Settings dialog will do it.
augy
|
|
|
|
|
I am using qt for the front end with MFC sockets and threads. I used qmake tool of qt to create a dsp file. And
I am getting the following error if I compile the project using the "Use MFC in a statically Linked Library" option set in project settings:
Generating Code...
Linking...
nafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@YAXPAX@Z) already defined in libcpmt.lib(delop.obj)
libcmt.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll
Release/max.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
max.exe - 2 error(s), 4 warning(s)
Plz help me out.
Thank you,
R.Ravi Kiran
|
|
|
|
|
I have 0 experience with qt, so I don't really know how it works.
However, maybe I can still be of some use...
So you don't get this error if you dynamic-link your MFC?
Are you compiling debugging symbols in?
Are you including stdafx.h twice?
I don't know what the contents of nafxcw.lib or libcpmt.lib are, so these are just stabs at the problem.
augy
|
|
|
|