February 11th, 2008 02:19 AM
Your passing '&pass' (the address of the pointer) as opposed to 'pass' which is the pointer to the data.
void GeneratePass( const char* passPath, size_t units ){
std::ofstream passFile;
...
October 18th, 2006 01:58 AM
Can you insert a character? or is it only replace.
October 12th, 2006 01:52 PM
comboBox1.Items.AddRange(Enum.GetNames(typeof(YOUR_ENUM_TYPE)));
Should give you a route to try...
October 3rd, 2006 01:57 AM
private void UpdateProgressBar(int iCount)
{
BeginInvoke((MethodInvoker)delegate()
{
// This runs on the UI thread!
progressBar.Value = iCount;
});
}
September 1st, 2006 11:31 AM
What I mean is that the process you are starting will use the parent process working directory unless you specifically specify it and if the program starting the process is not in the same directory...
September 1st, 2006 02:08 AM
When you make this call
System.Diagnostics.Process.Start(@"path");
what is the current working directory?
August 16th, 2006 02:32 AM
I'd look at the intensity of each pixel in the gray scale image before and after the filter and apply this ratio to the intensity of each pixel in the rgb image.
Only a suggestion but I believe it...
August 12th, 2006 11:13 PM
First off strlen requires a null terminated string
when you call
hash1[strlen(hash1) - x] = challengeConcat[y];
and x = 0 the null termination will be over written. From then on i...
August 4th, 2006 06:33 AM
Good point. I stand corrected.
August 4th, 2006 05:55 AM
If you presume your number will always be positive then
unsigned short x = 10;
double y = x;
unsigned short z = (unsigned short)(y+0.5);
August 4th, 2006 05:02 AM
Is there also the possiblilty that the double will see it as 9.99999999999 and therefore when you convert from the double to int you'll get z = 9. The safest bet here would be to round your answer...
August 4th, 2006 04:54 AM
i'd suspect right
mName= new char[strlen(imgname)+1];
strcpy(mName,imgname);
mName[strlen(imgname)] = '\0';
strlen returns number of char without null termintor...
August 3rd, 2006 12:05 PM
1 possible solution would be to use a completely seperate form with this panel instead of a panel within the calling form. You could then set the FormBorderStyle to none and just show and hide the...
August 2nd, 2006 12:04 PM
You need to make a call to unmanaged code to get greater than 15ms resolution. The tickcount you was using was based on windows rather than the cpu...
using System;
using...