|
visual studio requires you to have a project & workspace in order to compile anything. Make a new project (it will create a workspace automatically) and then figure out how to "add a source file" to the project. Then you can compile it.
Projects & Workspaces are things that help organize different projects that a coder might otherwise just be sticking in a directory labeled, "/usr/home/mystuff/".
|
|
|
|
|
anassamar wrote: I want to write my code ( Vc++) in txt file then I want to compile it, how I do that?
What do you mean exactly ? You want to load a text file at run-time and execute the code in that file at run-time ? If yes, then C++ is not meant for that. C++ is a compiled language and you can't execute code this way. You will need to use a scripting language for that purpose instead.
|
|
|
|
|
"make file" seems can,but i don't know how to do it!
|
|
|
|
|
I want to change the text color and add some tooltip to the texts in the CListBox control.
I am adding the strings to the list as follows:
CListBox m_drivelist;
m_drivelist.AddString(str);
Apurv
“Never trust a computer you can’t throw out a window.”
(Steve Wozniak)
“There are only two industries that refer to their customers as ‘users’.”
(Edward Tufte)
|
|
|
|
|
apr~asp wrote: I want to change the text color...the texts in the CListBox control.
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
Hello,
I have 2 control lists with the following Extended Style:
m_List.SetExtendedStyle(LVS_REPORT | LVS_OWNERDRAWFIXED| WS_BORDER|LVS_EX_FULLROWSELECT | LVS_SHOWSELALWAYS );
m_Group.SetExtendedStyle(LVS_REPORT | LVS_OWNERDRAWFIXED| WS_BORDER| LVS_SHOWSELALWAYS |LVS_EX_FULLROWSELECT);
I am having a problem in keeping the row highlighted when I lose focus from either of the control list.
What have I set wrong or what could I be doing wrong?
Thanks a million.
|
|
|
|
|
FISH786 wrote: m_List.SetExtendedStyle(LVS_REPORT | LVS_OWNERDRAWFIXED| WS_BORDER|LVS_EX_FULLROWSELECT | LVS_SHOWSELALWAYS );
Some of those are not extended styles.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I guess the question is how do I keep the row selected? or do I have to set the background color just before I lose focus in order to accomplish what I need?
thanks.
|
|
|
|
|
FISH786 wrote: I guess the question is how do I keep the row selected?
By setting the LVS_SHOWSELALWAYS style (at design time).
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
I guess I am doing something wrong..Cause I have the property set as true.
Not sure what else to change..
Short of setting the backgroud color of the row. I have tried everything I could think of.
Any other suggetion or can you think of anything I could be doing wrong?
Thanks a million.
|
|
|
|
|
I tried this and the selected item in the list control remained selected, albeit in a different color, when the list control lost focus.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
ok...I will try it again...thanks a million
|
|
|
|
|
The row stays selected and is highlighted - but the highlighting changes colour when the control loses focus - I don't believe there's nything you can do about that without making the control owner-draw.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I was trying to avoid using custom draw.. When I look at the control very closly yes the row is still selected but the color is a very light color. I can barely notice it as been highlighted.
Thanks a million for replying.
|
|
|
|
|
Hi all,
Recently,I have to design a small soft,but how to make the software interface on our own style is beyond us.As we all known, the window created by MFC is very ugly.Some software interface is so attractive,but how to imatate?(English is not my mother language and this is my first time ashing question,I am sorry I can't declared my doubt clearly.)
Thanks
|
|
|
|
|
wb_program wrote: Some software interface is so attractive,but how to imatate?(
Why not ?
Which one you want to imitate ?
|
|
|
|
|
wb_program wrote: As we all known, the window created by MFC is very ugly.
Which is your opinion, not everyone elses.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
wb_program wrote: but how to imatate?
With a lot of work and knowledge with Win32 and advanced MFC.
This signature was proudly tested on animals.
|
|
|
|
|
wb_program wrote: As we all known, the window created by MFC is very ugly.
Hey man, how did you gain access to my MFC applications?
(BTW: there are many beautyful applications written using MFC )
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I know there are many beautyful applications written using MFC,but I can't make it 
|
|
|
|
|
Making a good GUI is not that difficult as the way you say. there are lots of applications available over the net. and you just need some imagination of how the screen should look like.. 
|
|
|
|
|
This [^] may help.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You beat me to it. 5.
Klingon programmers don't care about beautification of the UI, but that's a different thing.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Klingon programmers don't care about beautification of the UI
That's right and, moreover, Klingon programmers don't defend (nor use) MFC . I lost 100 Klingon points indeed...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You might like this[^].
Also, search the code project for CPictureEx class for displaying simple animated .gif.
If you have time to get into "OwnerDraw" options, then you can _really_ make anything look like whatever you want, even with MFC
|
|
|
|