nmaillet 97 Posting Whiz in Training

Where are the declarations of dnode and the include function? Other than that, quickly looking through the code: if(val1 < val) would not work, since there is no declaration for it. I am assuming you meant something like if(val1 < p->val) Also the statement *p->next; would not do anything. It would simply give the structure pointed to by the structure *p, but would not assign it to anything. p = p->next; would do that.

nmaillet 97 Posting Whiz in Training

You usually won't get a response unless you put in some effort.

nmaillet 97 Posting Whiz in Training

Here is a pretty good tutorial on SQL http://w3schools.com/sql/default.asp

nmaillet 97 Posting Whiz in Training

I found it in the class library reference at the MSDN. http://msdn.microsoft.com/en-us/library/ms229335.aspx

nmaillet 97 Posting Whiz in Training

Try str.Split(new char[] {' '}, StringSplitOptions.RemoveEmptyEntries); .

serkan sendur commented: very good +3
nmaillet 97 Posting Whiz in Training

Since Finder is no longer a subclass of thread, you cannot store a Thread reference to it. Use Thread thread0 = new Thread(new Finder(target, 0, 249));

nmaillet 97 Posting Whiz in Training

I believe you can use "%programfiles%" and it should result in the path [Default drive letter]:\Program Files\.

Edit: If not you can use "%SystemDrive%\\Program Files\\" .

nmaillet 97 Posting Whiz in Training

Some of the code you are using might be helpful, but using the Close event is probably what you are looking for.

nmaillet 97 Posting Whiz in Training

The Image class has a getScaledInstance method.

nmaillet 97 Posting Whiz in Training

If you want 1000.26 to round to 1000.30, you would have to use Math.ceil.

nmaillet 97 Posting Whiz in Training

You could use a Thread and a loop that simply checks to see if the drive is accessible with each iteration...

nmaillet 97 Posting Whiz in Training

You can use the CheckedChanged event of the radio button, then set the Text property of the text box.

nmaillet 97 Posting Whiz in Training

I don't know how you went about implementing the printing, but you can create a PrintDocument, then call the Print method. It does not show a Print Dialog, since you can manually set the options.

nmaillet 97 Posting Whiz in Training

I should also mention, that if you did want to use a try-catch block (i.e. handle the exception in the constructor) then leave the field declaration as Scanner scan; and initialize the field in the constructor.

nmaillet 97 Posting Whiz in Training

You need to declare the FileNotFoundException in the signature of any constructors, because any variables that are initialized in the field declaration, is like it being initialized in the constructor (before the body of the constructor is executed).

public CityPanel3() throws FileNotFoundException {
...
}

You cannot surround it with a try-catch block, since it is not in a method. Also, if you make any more constructors, make sure to add the throws statement at the end.

nmaillet 97 Posting Whiz in Training

If you set TabStop to true, it should work for you. I believe that scrolls bars are generally not selectable.

nmaillet 97 Posting Whiz in Training

You can run it through a loop to check the other pieces to ensure that the randomly generated square is not already occupied.

nmaillet 97 Posting Whiz in Training

You need to set the rand seed value, use srand() . Unlike Java and C# the seed value, when not set, is the same every time it is run. I suggest using the current time to set the seed value.

nmaillet 97 Posting Whiz in Training

By complete, do you mean not an empty string, or do they need to meet some criteria?

nmaillet 97 Posting Whiz in Training

The nodeType struct should be declared outside the main function.

nmaillet 97 Posting Whiz in Training

If my math is correct,

x(n) = x + r*cos(a + n*pass)
y(n) = y + r*sin(a + n*pass)

where 0 <= n < vertex , x and y is the center point, a is the angle of the first point to the right of the center point from the horizontal(counter-clockwise) and r is the distance from the center point to each of the vertices(the "radius"). Let me know if this is what you were looking for.

Alex_ commented: Good formulas! +1
nmaillet 97 Posting Whiz in Training

Try using const char* instead of a string, since string is a class but LPCSTR is a character array.

nmaillet 97 Posting Whiz in Training

For your last question, yes it is because the character 0 has a value of 32 I think. The character with the value of 0, or NULL, is '\0'.

For the first part, char names[][90] , would not work because it would 0 char arrays of size 90. As for char names[2]="Bert" , you are trying to create a new variable with the same name. Try using names[2] = new char[90] or look at the malloc function.

nmaillet 97 Posting Whiz in Training

Okay, I found this page that shows the DLL to run to install drivers. So the java command would look something like:

Runtime.getRuntime().exec("rundll32 setupapi.dll,InstallHinfSection DefaultInstall <reboot-mode> <INF-file>");

See the link above for the reboot mode (near the bottom).

nmaillet 97 Posting Whiz in Training

It's possible to use:

Runtime.getRuntime().exex("rundll32 [dll],[entry point] [parameters]")

You can probably find which DLL to use if you search google some.

nmaillet 97 Posting Whiz in Training

If you are using Windows, I believe DirectShow has recording capabilities.

nmaillet 97 Posting Whiz in Training

Visual C++ Epress is a free version of Visual Studio, it just requires separate downloads for other languages.

nmaillet 97 Posting Whiz in Training

Simple, for each character in the line array, search through the source array for the character, then use the same index to replace the characters with that of the target array...You'll most likely want to use two for-loops.

nmaillet 97 Posting Whiz in Training

No problem, and try this:

logFileOut.open ("logfile.txt");
for (int write=0;write<account_Names.size();write++)
{
	logFileOut << account_Numbers[write] << ":" << account_Names[write] << ":" << account_Dates[write] << ":" << account_Tran[write] << ":" << amount[write] << "\n";
}
logFileOut.close();

You were closing the file with each iteration.

Nick

nmaillet 97 Posting Whiz in Training

I'm not very experienced with threads in C++, but from what you said, it shouldn't make a difference in the amount of time it takes to empty the buffer. Have you tried it on another computer? And how long are you setting it to sleep for? Also, some code might help.

Nick

nmaillet 97 Posting Whiz in Training

The problem is with line 203. You're trying the assign the value of newAccount to memory outside the bounds of the vector's array. Use account_Names.push_back(newAccount) instead, and it should reallocate the memory for you.

Nick

nmaillet 97 Posting Whiz in Training

>It's so simple: exactly sizeof(void*) .
How do you propose this to be meaningful for pointers to functions?

The size of a pointer has to be consistent for a particular system. It is the reason for labeling a system as 32-bit, 64-bit, etc. The reason for having different types of pointers is for the allocation of memory at that particular location, and to help prevent buffer overflows when passing a pointer.

nmaillet 97 Posting Whiz in Training

After the do-while loop is done you can calculate everything. You have the size of the set of scores, counter , so all you need to do is declare an integer as an index to use in a for loop, as well as three double's for the high, low and average.

nmaillet 97 Posting Whiz in Training

And did you download the SDK?

nmaillet 97 Posting Whiz in Training

It's 4 bytes on a 32-bit system (reason for a 4GB RAM limit), and 8 bytes on a 64-bit system. I believe you can check using something like sizeof(void*).