Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: stuartd
  • Content: Threads
  • Order by date
  1. stuartd

    Find the size of a dynamic array

    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)...
  2. stuartd

    No logon servers available

    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...
  3. stuartd

    No logon servers available

    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...
  4. stuartd

    Sleep function...zzzz....zzzz...

    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) {...
  5. stuartd

    Getting SqlDataAdapter.UpdateCommand to work

    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...
  6. stuartd

    Using DataSet object

    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()...
  7. stuartd

    Client / Server

    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...
  8. stuartd

    Set variable=null ?

    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
  9. stuartd

    Calling command button click event

    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...
  10. stuartd

    Reading from file in Embedded VB

    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
  11. stuartd

    Hex to int in a better way?

    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...
  12. stuartd

    Building Xerces-p on Solaris 9

    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...
  13. stuartd

    Building Xerces-p on Solaris 9

    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...
  14. stuartd

    Redirection

    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...
  15. stuartd

    Redirection to the next page

    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...
  16. stuartd

    Disk suite problem

    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...
  17. stuartd

    Linux on SPARC

    Hi, Does anyone know if you can install a LINUX package onto a SUN Sparc box? Has anyone done it, and is there any advantage over Solaris? SD
  18. stuartd

    'mono' - .NET on UNIX?

    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
  19. stuartd

    "Mono" - .Net on UNIX

    Hi, Has anyone heard of mono - a .net implementation for UNIX/Linux platform? Has anyone attempted to install this onto Solaris? SD
  20. stuartd

    Messages to console

    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...

Part and Inventory Search

Back
Top