No unfortunately that is not correct. What you are doing is that you are casting size to a pointer type. That basically means that you are giving the caller a pointer pointing at memory that you do...
Type: Posts; User: Atheist
No unfortunately that is not correct. What you are doing is that you are casting size to a pointer type. That basically means that you are giving the caller a pointer pointing at memory that you do...
There are many different types of containers in the standard library. Take a look at the vector class for instance (http://http://www.cplusplus.com/reference/vector/vector/)
To swap endianness, you need to "mirror" the bytes in the value. For instance, to swap the endianness of a 32-bit integer, you'd do something like this:
int32_t swap(int32_t in)
{
return...
You are all sponges in my book.
Do you mean it takes a long period of time to open the project, or to run the project?
If it is the latter, I would suggest you look in the output-window of the build process. What is happening when...
Comparing name and "exit" will only compare the pointers, there will be no string comparison. Take a look at strcmp
What do you mean when you say that you only work with timers?
Why not run it with Valgrind to find out if there is a problem or not?
You will never learn if you do not try. Having other people write your homework assignments for you will not get you anywhere.
What kind of help are you expecting to get? Should someone write the entire project for you?
Just break the task into manageable pieces and solve it one step at a time. If you get stuck, do not hesitate to post a question!
Have you read anything about reading and writing to files? Take a look here.
I guess how well-designed this project should be depends on your level of knowledge and the level of the course you are...
Your problem description is a little vague.
Are you supposed to be able to enter book information that will be save to a database? Or a file of some sort? Or perhaps just in-memory?
Is this C or...
Is this homework of some kind? Have you got anything so far?
I dont see any attached files.
You should read some introductory article on c++ streams, such as this one: http://www.cprogramming.com/tutorial/c++-iostreams.html
I haven't personally read that specific article, but it seems OK....
That is the debug output.
You are writing to the standard output, which in this case is the console windows output. You're just not seeing it because the window closes so fast.
You can always read...
Yes you can create a struct or a class to hold them all, and pass it instead.
class Rule
{
public:
bool cwOn;
WCHAR cwR;
// etc..
I actually enjoy rolling my own implementations every now and then, depending on what needs to be done.
Implementations given to you by, for instance, the standard template library, are written to...
The new keyword is what does it. Everything you declare in a function gets allocated on a stack. So the pointer fw2on is declared on the stack, but the memory it points to is allocated at runtime on...
Does what you currently have compile? I would have assumed that it doesnt, since array declaration requires a constant expression, and fwMapLen seems to be an ordinary variable.
The reason for...
Operator overloading should follow the following syntax:
MyClass operator+(const SomeOtherClass &value)
{
MyClass result;
// calculate new values for result based on...
You seem to be passing to few arguments into BoldDays. Do you have any documentation for the TMonthCalendar, and specifically the BoldDays method?
No, I was under the impression you where using Linux. As far as I can see, that project does not target the Windows platform.
I would suggest installing GNU Autotools and just using the automake system that has been set up. Once you have that installed, open up a terminal in the project directory and write:
configure
make
Personally, the only one i have used is valgrind. I can recommend it, but I guess its not relevant for you since you appear to be using Windows.
Open up your Project menu and click Properties. In the list on the left hand side of the window, expand Configuration Properties and select VC++ Directories. Select Include Directories, click the...
I am not aware of a windows equivalent, but if you ever do some c++ on linux you should really try Valgrind. It is absolutely invaluable for debugging memory issues.
I know its probably not...
Ah I see. Well I assumed szlamany did not literally mean "throw statements that he himself has written" but rather "explicit throw statements in the code". My bad, I should have been clearer.
Im not sure what you mean by that, but the exception handling works similarly to .NET. You can define your own exception and throw it, and the first appropriate catch clause will handle the...
Yes that is right.
tg, I think you are looking at the C# documentation. It is possible to throw and catch types that are not exceptions. For instance, this is valid:
try
{
throw "foo";
}
catch(const...
In the case of errors like that, no exceptions are thrown so there is nothing to catch.
However, I cant see anything in your code that could cause an access violation, which generally occurs when...
If you are looking for someone to complete your project for you, you should post it in the "Open Positions (Jobs)" section of this forum.
You can, however, post relevant details here and we will...
There are a number of tools that supplies a graphical "drag-and-drop" editor. One being Qt that I mentioned in by previous post. Theres also C++/CLI, but I would personally say that Qt is a better...
#1: I would believe that the unicode libraries handle all strings as unicode.
#2: This determines how you link to the MFC libraries. Static linking will link your executable with the library at...
The Win32 API is what provides VB6 (and any other language) with the ability to display graphical windows, buttons, lists.. you name it.
To do the same in C++, you would make use of the Win32 API.
...
You have not posted a problem definition. Even if you had, why would someone else spend time doing your homework?
You are not passing the flag WS_VISIBLE to capCreateCaptureWindow, so I would assume it to be invisible by default. In the first call to the ShowWindow method, the nCmdShow parameter is ignored, so...
What type the 'bmp' object? Aren't you receiving any other message along with the exception?