|
Program crashed on that command David.
A C++ programming language novice, but striving to learn
|
|
|
|
|
|
It crashed because the ID_PANE3 is not supposed to be there, rather the nIndex of the Pane is supposed to be there. Works okay if set to 250 rather than 500. Thanks David.
A C++ programming language novice, but striving to learn
|
|
|
|
|
Larry Mills Sr wrote: I sure wished they would show examples of this stuff
They do, you just need to stop thinking that you will find a combined example for your specific needs.
Larry Mills Sr wrote: How do you set a particular Pane's width
That is one specific thing which is clearly depicted in the documentation for the class.
Larry Mills Sr wrote: the width on it to fit the length of a CString
Finding the pixel width of string is an entirely separate subject that there are examples for. If you stop looking for combined examples and learn to break your problems down to the individual parts and solve each of them you might find you are more successful in the field of Software Development.
Larry Mills Sr wrote: using that command.
Also, stop using the word "command". Classes have methods, not commands. C libraries have functions, not commands. When you are using text based communications, applying the correct words is extremely helpful.
led mike
|
|
|
|
|
I am apprehensive for you why? because you flagrant their secrets of course I know you are a donor man.
|
|
|
|
|
A Book shop maintains the inventory of books that are being sold at the shop. The list includes details such as author , title
, price , publisher and stock position. Whenever a customer wants a book , the sales person inputs the title and author and
the system searches the list and displays whether it is available or not. If it is not, an appropriate message is displayed. If
it is, then the system displays the book details and requests for number of copies required. If the requested copies are
available , the total cost of the requested copies is displayed ; otherwise the message " REQUIRED COPIES NOT IN
STOCK " is displayed.
Design a system using a class called books with suitable member functions and constructors. Use new
operator in constructiors to allocate memory space required.
Improve the sytem design to incorporate the following features :
a. The price of the books should be updated as and when required. Use a private member function to implement
this.
b. The stock value of each book should be automatically updated as soon as a transaction is completed.
c. The number of successful and unsuccessful transactions should be recorded for the purpose of statistical
analysis. Use static data members to keep count of transactions.
Modify the program to demonstrate the use of pointers to access the members.
|
|
|
|
|
Thanks for playing, now get back to class!
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Isn't this a good opportunity to learn how to code? (inspired by _AnShUmAn_ )
|
|
|
|
|
a. Go to the book shop.
b. Buy good programming books.
c. Read bought books.
d. Good luck.
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]
|
|
|
|
|
Seller can be writes this program(ha has lot of books about programming) and we are not sure does he need to this program or no so your algoritm is not sufficient.
|
|
|
|
|
Your answer does not fit the situation: the book shop hasn't opened yet, they await a good inventory control system. That is why it's urgent.
|
|
|
|
|
Hey man, instead of arousing silly controversies, why don't you help me sorting out these f*#@ing books on the shelves?
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]
|
|
|
|
|
Exactly a homework but answer: for answer to this question its better you ask this question of your teacher and then you must be surrender of your number!
|
|
|
|
|
I'm confused...
Are you looking for an urgent solution or do you need a solution
and the need is urgent?
I dug through my box of urgent solutions and sadly I don't have one
related to book inventory, sorry.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
So you need to update it!
|
|
|
|
|
humm.. do you know any good author on same subject!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
Have you considered actually reading the textbook?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Dude! have you tried something..?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
ThatsAlok ude! have you tried something..?
ya sir: I ask u, plz, plz help urgent.
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]
|
|
|
|
|
Hi All,
I need to delete the child item in Tree control which is selected.I dont want to delete the other items.
Thanks & Regards
Anitha
|
|
|
|
|
HTREEITEM SelectedItem = tree_control.GetSelectedItem();
if (SelectedItem != NULL) tree_control.DeleteItem(SelectedItem);
But this all is in the documentation, just look these things up ( CTreeCtrl[^] )
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
Hey!
I have a CWnd (created dynamically) and on that CWnd there are several CDialogs. These CDialogs were create with the Ressource-Editor and all of them function as controls (So there are eg no title bars).
In the CWnd class the OnPaint() function is used to draw a text (a title for the CWnd)...
Now when there is a window that covers the CWnd, drawing does not work correctly. The text is drawn at the position of the covering window.
I hope the problem is described a little bit understandable and someone has a hint to the solution?!
|
|
|
|
|
And what do you want to do? Do you want your CWnd drawing over its child windows?
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]
|
|
|
|
|
|
Hi to all.
I would like to get yours advice/hints/guides about next.
I'm looking for a Chart/Graph control which can be of group bar or line type, further I need to be able to show a time data on X ax (CString format dd.mm.yyyy\nhh:mm:ss) and int on Y ax. My app works something like this: I'm calculating more values on time intervals and after I have collected all data I need to display them on graph.
I was dealing with this control ("http://www.codeguru.com/cpp/controls/controls/chartingandanaloguecontrols/article.php/c5245/) but couldn't show time on x ax so after some time I give up and here I am looking for yours advice.
My graph looks like this
http://img183.imageshack.us/img183/9453/grafwi0.jpg[^]
I need time not 1 - 2 - 3- 4.... on x!!!
Thanks!
|
|
|
|