|
I just noticed CException has those two virtual functions.
I guess I should have caught that earlier. If I derive from CException and customize the virtual functions, I'm guessing I should be good to go.
I slapped myself upside the head (twice) for you.
Thanks for the help.
|
|
|
|
|
can anybody tell me how to implement RIS (Remote installation Services ) through windows APIs ..
vineesh
|
|
|
|
|
vineeshV wrote: can anybody tell me how to implement RIS
What does that mean? You want to implement your own proprietary remote installation service?
led mike
|
|
|
|
|
Instructions
Please read the following instructions (related project code) carefully:
You'll be expected to observe good programming standards.
• Project code must follow C++ syntax
• Data used in each project must be retrieve and saved in Text Files
• Your project may cover the concepts learnt in CS201 particularly
1. Structures
2. Dynamic memory allocation
3. Text Files
4. Classes , Friend functions ,Function overloading
• You must include a comment explaining the purpose of every variable you use in your program.
• You must use meaningful, suggestive, self-explanatory variable names.
• Precede every major block of your code with a comment explaining its purpose.
• Indent the code properly for making it more understandable
It should be clear that your project will not get any credit if:
o The project is submitted after due date.
o The submitted project does not open or file corrupt.
o The project is copied.
Note: You have to submit Source code (.cpp) , executable file (.exe) and text files (.txt) of your project.
Objective
The objective of project is to enhance your knowledge and sharpen your analytical and programming abilities so that you can work in a professional environment.
Project Title: Daewoo (a Bus service) Reservation System
Project Description:
This program is supposed to simulate a Reservation System of Daewoo. Using this program, Daewoo ticket reservation agency assistant can perform different tasks related to ticket reservation.
The Daewoo Reservation System will ask the user for the following information :
• Name of passenger
• Departure City
• Destination City
• Date of travel
• Time of travel
• Number of tickets
The Daewoo Reservation System should have the following features:
1. Make Reservation-to reserve ticket/tickets for a passenger and indicate his/her seat number.
2. Modify reservation-to modify the already made reservation
3. Cancel reservation-to cancel a particular reservation
4. Search reservation- to search reservation information of a particular passenger by
a) Passenger name
b) Date of travel
5. Exit –to exit from application
Daewoo Reservation System should also support persistence for passenger ticket reservation records
Supporting simple persistence by any application requires handling of two scenarios
• On start up of application-data (passenger ticket reservation records) must be read from file.
• On end/finish up of application -data (passenger ticket reservation records) must be saved in file.
|
|
|
|
|
Soundz urgentz.
Aasia Naz wrote: Please read the following instructions (related project code) carefully:
Why would I do that?
|
|
|
|
|
Michael Schubert wrote:
Why would I do that?
because:
Michael Schubert wrote: Soundz urgentz.
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]
|
|
|
|
|
Somehow, I'm unable to balance this one. Heavier low votes.
|
|
|
|
|
Don't bother: I accept gladly 1.0 votes on humorous posts (or on personal-opinion-based ones). My concerns are about 1.0 votes, without explanations, on technical posts.
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]
|
|
|
|
|
Well said, but I still hate the univoters (who do it without reasoning). I wish they could get a life, which they apparently don't seem to have.
|
|
|
|
|
nobody here is going to do your homework for you
|
|
|
|
|
So you ask a public forum to do your assignment, right ?
how much are you willing to pay for us to do something you're supposed to be able to do yourself ?
|
|
|
|
|
Aasia Naz wrote: The objective of project is to enhance your knowledge and sharpen your analytical and programming abilities so that you can work in a professional environment.
You know, asking people to do your homework certainly does not meet the objective of this project.
This is CS201 - a second level course I presume. Is it really that baffling to you ? If so I would seriously consider another area of study.
|
|
|
|
|
Oh my god You didn't even try to mask it. You simply copy/pasted the question that was asked to you without even bothering to adapt it to your public...
It's a real pity that you forgot to put the adress of the guy for which you had to do the work
|
|
|
|
|
Aasia Naz wrote: It should be clear that your project will not get any credit if:
o The project is submitted after due date.
o The submitted project does not open or file corrupt.
o The project is copied.
seems that i wont do this because i care about your grades.
|
|
|
|
|
Your request is in processing.
|
|
|
|
|
I have a really simple question which I cannot seem to find the answer to...
If I allocate memory like this:
char * pArray = (char*)malloc(123);
Then I free it with:
free(pArray);
And the same with:
char * pArray = new char[123];
And
delete[] pArray;
But how would I free an array created like:
WCHAR pwszRealPath[MAX_PATH];
The best answer I can find is that I don't but I would like to know why.
|
|
|
|
|
__DanC__ wrote: how would I free an array created like:
WCHAR pwszRealPath[MAX_PATH];
such an array is created on the stack, and not on the heap.
so basically, no need to free it
it will be destroyed when going out of scope, of at program termination if static/global...
|
|
|
|
|
Thanks, that is what I thought would be the case but wanted to clarify in case I go causing any memory leaks!
|
|
|
|
|
to be very clear here is what happens with this code:
char* pArray = new char[123];
a variable pArray of type pointer to char is created on the stack.
then, a block of 123 chars is allocated on the heap.
the address of the just allocated memory is stored into the pointer variable you have on the stack (pArray).
so, if you put such a code into a scope, and if you don't free the memory allocated before going out of scope, the variable on the stack is destroyed, but not the memory block on the heap.
so you just loose the reference (the address) to your allocated memory on the heap, hence the memory leak...
|
|
|
|
|
To make things even more simple, there's only one little rule to remember:
everything that is allocated with new should be deleted using delete; everything that is allocated with new...[] should be deleted using delete[] and everything that is allocated with malloc should be deleted with free.
For the rest, you don't have to care (and Toxcct explained that a bit more in details).
|
|
|
|
|
But what about GlobalAlloc()?
(Sorry, couldn't resist. )
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
|
I was making a joke.
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi, I'm looking for a way to do a completely owner-drawn Listbox in C++ with just the Windows API and without MFC. The LBS_OWNERDRAWFIXED allows me to draw the items in the list, but is there a way for me to owner-draw the entire listbox (along with the scroll bars, etc)? Or do I have to subclass the listbox and draw it when it receives WM_PAINT?
Thanks!
KR
|
|
|
|
|
Well owner draw does what it does. You can't make it do something it doesn't do. Does that answer your question?
led mike
|
|
|
|