Hi,
I have a dynamic array which i need to find the size of to re-allocate more space to:
char **dynamic_array;
char *ptr;
ptr=(char *)malloc(10);
memcpy(ptr,"something\0",10);
dynamic_array=(char **)malloc(1);
dynamic_array[0]=ptr;
ptr=(char *)malloc(10);
memcpy(ptr,"nothing \0",10)...
I have a server which normally resides in an office on a domain.
I have a remote location with a server which does not belong to a domain.
I physically take the office server to the remote location to run a job, which involves copying files from the office server to the other server. The 2...
I have a server which normally resides in an office on a domain.
I have a remote location with a server which does not belong to a domain.
I physically take the office server to the remote location to run a job, which involves copying files from the office server to the other server. The 2...
Hi,
I have written the following ugly function. This appears to hog all processor power, so there must be a better way to sleep in a program for a period of time.
Does anyone have any suggestions?
// Will sleep the program for given number of seconds
private void Sleep(int i_SleepSeconds)
{...
I have managed to connect to a remote server DB and retriev a record using SqlDataAdapter.SelectCommand and putting the result into a DataSet.
Now i want to update a table. The code appears to run through with no exceptions, but the DB never shows an update.
Here is the code:
string...
Hi
I am using the SqlCommand/DataAdapter/DataSet to read some records from a table. I then put the results into some text boxes. I am using Rows, and ItemArray :
txtEventID.Text=oDS.Tables["Events"].Rows[x].ItemArray[0].ToString()...
Hi,
I want to write a server program accepting socket connections.
So far i have:
my_socket=new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
g_ws.Bind(ENDPOINT);
g_ws.Listen(10);
So i need an ENDPOINT to bind - so far i have:
IPEndPoint ep; ep=new...
Hi,
I know that c# has automatic garbage collection, but i have seen some code like this:
object o = new object;
...
{code to use object}
...
o=null;
Is the "o=null;" required or recommended?
SD
Hi,
I have a button which when clicked runs some code.
I want to call the 'click' event when i load the form for the first time to run this code.
In vb i just said 'command1_click'.
The Click method in .Net requires arguments (object sender, System.EventArgs e) which i don't have.
Can i do...
Hi,
I want to read a file line by line using eVB.
Can i do this?
All i can find in the help file is 'ReadFile' which reads the whole thing in one go.
SD
Hi,
I am converting a hex pair to a single char.
Can this be done in a tidier way? - there seems to be a lot of casting and i am having to use a temp int to store the halfway results. I am sure this can be done in fewer lines (and casts) in 'c'.
Here is my code:
private char...
Hi,
I am trying to build Xerces-p perl module on Solaris 9.
I have sun studio compiler installed, and gcc. I have sun make and gnu make.
The instructions say :
perl Makefile.PL
make
make test
make install
I run step 1, which creates makefiles
When i run step 2, the compile...
Hi,
I am trying to build Xerces-p perl module on Solaris 9.
I have sun studio compiler installed, and gcc. I have sun make and gnu make.
The instructions say :
perl Makefile.PL
make
make test
make install
I run step 1, which creates makefiles
When i run step 2, the compile...
Hi,
I am trying to get a perl script to do some processing (decide what to do next) and then redirect to the next page.
Here is code snippet:
if ($query->param('button') eq 'Next')
{
$url="next.pl";
}
else
{
$url="last.pl";
}
print $query->redirect($url);
When i run this code I get...
Hi,
I am trying to get a perl script to do some processing (decide what to do next) and then redirect to the next page.
Here is code snippet:
if ($query->param('button') eq 'Next')
{
$url="next.pl";
}
else
{
$url="last.pl";
}
print $query->redirect($url);
When i run this code I get...
Hi,
We have an E250 with an A1000 disk array connected by fibre. Sol7 and Disk Suite installed. We mirror data using the disk suite between some disks in the E250 box and some in the A1000
Each week we do a full system backup (ufsdump), but almost all weeks one of the mirrored disks (/) get...
Hi,
Has anyone heard of mono - a .net implementation for UNIX/Linux platform?
Has anyone attempted to install this onto SUN Solaris? or any other Unix/Linux OS?
SD
SD
Hi,
I have a Sparc4 work station with a terminal on term/a.
I am running a data input program, but system messages keep writing over the screen ("Last message repeated...., etc.) and moving the cursor, making the input difficult.
I have tried editing /etc/syslog.conf file (I assume that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.