December 10th, 2008 06:04 PM
I was unable to reproduce the described behaviour. Maybe you could post a small project showing the problem?
- petter
December 10th, 2008 05:52 PM
When the value assigned to an enumerator falls outside the range an signed integer (int) you'll have to specify a different base-type.
This won't compile:
enum Range { A = 3000000000 };
...
December 4th, 2008 03:50 AM
If you're referring to the HTTP status code returned from the server, take a look at this.
- petter
December 2nd, 2008 02:45 AM
This error message is often related to the previous included header or the piece of code that occurs right before you include your header.
- petter
December 1st, 2008 09:03 PM
temp.number_of_elements = number_of_elements+a.number_of_elements;
?
- petter
December 1st, 2008 08:59 PM
Ahh. Another snag. Your array of WaitHandles is initialized, but the individual elements are not. So when you try to access the whandles[i].SafeWaitHandle property you'll get an...
December 1st, 2008 06:42 PM
Check out InternetReadFile.
- petter
December 1st, 2008 06:33 PM
What kind of CommunicationException? What's its inner exception? Message?
- petter
December 1st, 2008 06:29 PM
You're using the post-increment/decrement operator while you probably want to use the pre-increment/decrement operator.
- petter
December 1st, 2008 06:21 PM
It depends on how you fill your drop down list with data. Try avoid changing the drop down during postbacks:
If (Not Page.IsPostBack) Then
DropDownList1.Items.Add("a")
...
December 1st, 2008 06:02 PM
Your code won't link (and thus it won't run) because it cannot find an implementation of the mission member function. If you implement that one (or remove the declaration) it should link just fine.
...
December 1st, 2008 05:55 PM
It's not the return statement that's causing the console window to close, it's is due to the fact that your program has come to an end.
As you've noticed you can execute your application in a...
December 1st, 2008 05:43 PM
I find those methodologies somewhat mixed up. Object oriented design relates to how you structure your code, whereas the others relates to how you manage your project.
- petter
December 1st, 2008 05:33 PM
for (int i = 0; i < processlist.Length; ++i)
What you probably meant was:
for (int i = 0; i < closeProcesses.Length; ++i)
Or better yet, use a for each statement.
- petter
December 1st, 2008 05:27 PM
There is a Timer class in both the javax.swing package and the java.util package. If you import both, then the compiler doesn't know which one to use.
You can distinguish between the two by using...
November 7th, 2008 05:52 AM
Here is my and wikipedia definition on a memory leak:
If you unintentionally use up more and more memory... you got a leak.
- petter
November 5th, 2008 02:31 AM
You could keep on adding elements to some kind of collection (List, Dictionary etc.).
- petter
November 4th, 2008 06:18 PM
To use the vector class you'll need to include the 'vector.h' header class:
#include <vector>
In addition you need to specify the 'std' namespace, either like this:
using namespace std;
November 3rd, 2008 08:14 AM
It doesn't know what i is:
void setProperties(int j)
{
i = j;
}
Did you mean:
November 3rd, 2008 07:58 AM
There is an example of using WSAEnumNetworkEvents here.
After calling WSAEnumNetworkEvents you can use the WSANETWORKEVENTS structure to determine which events that has occured and if they failed...
November 3rd, 2008 07:52 AM
Maybe you can use the Java Console Window to get more information on your problem (depending on your browser, your should find it somewhere in the browsers menu).
- petter
September 10th, 2008 07:16 PM
XPath is used to query well formed XML documents. Your XML isn't well formed, so I'm not sure you can use XPath here.
- petter
September 7th, 2008 01:02 PM
They're for one way communication only. So if you need to transfer data in both directions, you'll need two pipies.
- petter
September 7th, 2008 12:56 PM
Take a look at the Version class and one of the examples.
- petter
September 7th, 2008 12:42 PM
signal.h defines functions that enable you to handle (or raise) special condions in your application; like floating-point exception and program termination.
It is not particulary related to...