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 TouchToneTommy 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: barryp
  • Content: Threads
  • Order by date
  1. barryp

    WaitForMultipleObjects

    I have N (atually 35) processes to complete - all just number crunching. Since I have a dual core PC I thought of using threads. So I kick off 2 threads & call WaitForMultipleObjects(2,h,FALSE,INFINITE) & pick up the rsponse, determine which thread has completed, update the paras & kick it off...
  2. barryp

    Need to create DCS 2 eps

    Hi I'm struggling to produce a 'good' DCS 2 EPS file. I have taken one produced by PhotoShop (in PhotoShop I produced an image with 4 spot color channels). Stripped out all the PhotoShop Specific stuff. replaced the Binary images with standard postscript 'image' greyscales. But although...
  3. barryp

    Multiple forms POST vs GET

    Hi Can anyone see the problem here ? If I click on the submit in the first form I get the hidden datafield value=1 sent to my editHotel.php script. HOWEVER if I use method=GET it works !!! BUT I want method=POST please. <table border="1"> <tr> <td>name</td> <td>tel</td>...
  4. barryp

    Execute other Windows apps within MDI ?

    Before I get REALLY bogged down - is this even possible for a programmer just learning visual C 6 ? I want to write an MDI app which runs several other existing windows apps within MY window. It would be nice to 'tile' them so they are all visible. The idea is to visually compare the results of...
  5. barryp

    setcolorspace

    Hi I'm confused by the following code. 'scaleTimes' & 'centerShow' are defined & they're fine. It's the setcolorspace & the 6 pops + 0.304645 that gets me. Can someone walk through this code for me please ? I really need to separate this into 6 postscript files to send to 6 devices (one for...
  6. barryp

    Help with Macros please

    Hi I have encapsulated the SET KEY= index lookup into a macro which tests _iosrc_ & returns a SUCCESS or Failure flag My call is %INDLOOK(SET=,KEY=,OPTION=) the macro contains set &SET key=&KEY &OPTION; Question - I have a variable - myoption Length myoption $ 9; If i say...
  7. barryp

    Help with &quot;SET KEY=&quot; please

    Hi I have an index (not unique) on a dataset. Why does SET dataset KEY=mykey; SET dataset KEY=mykey; SET dataset KEY=mykey; SET dataset KEY=mykey; give different results to i=4; DO WHILE(i>0); SET dataset KEY=mykey; i=i-1; END; The first gives the first occurrence of a record matching...
  8. barryp

    screen output delayed

    Hi I've been trying to find out why the following code's output is delayed 'till all the processing is completed. I see the first line in the ListBox but then the rest don't appear till the end. void CAddDialog::OnOK() { STARTUPINFO startup; PROCESS_INFORMATION procinfo; CString...
  9. barryp

    SHORTFILEEXT

    Hi We are running SAS for Windows on several boxes Recently, one PC always creates SAS datasets with the SHORT ext SD7 instead of SAS7BDAT I cannot see why We don't use the -shortfileext anywhere and in options/system this param is set to zero Has anyone an idea what could have triggered...
  10. barryp

    worksheet.saveas File causes Workbook rename

    Hi I'm new to the power of Excel+VB I've tried Path = &quot;c:\temp\test.bat&quot; Worksheets(&quot;Sheet2&quot;).Activate ActiveSheet.SaveAs Filename:=Path, FileFormat:=xlTextPrinter ActiveSheet.Name = &quot;Sheet2&quot; I understand why I have to rename the Sheets...
  11. barryp

    Prevent Running Whole Script

    Hi We use SAS v8 for windows & an all-to-frequent mistake is to forget to highlight the PROC or DATA step to run. This results (of course) in the WHOLE script (all DATA & PROC steps) being run - disaster ! Being new to the company (& SAS) I thought that just adding a line &quot;SAS - STOP...
  12. barryp

    Database Naming Problem

    I've an SQL script which initialises my databases as required. This has been working fine. Now I have to create & use a database called 'Home+Away' My script now fails The lines in my sql file are DROP DATABASE IF EXISTS `Home+Away`; CREATE DATABASE `Home+Away`; USE `Home+Away`; The USE...
  13. barryp

    File Upload OK - How to stop REFRESH uploading again

    I've got my file upload working fine If I detect a duplicate file on the server I simply rename the file to 'file.001' or something & report to the user. If the user immediately hits the Browser Refresh then the file gets sent again, & again etc. How can I prevent this ??
  14. barryp

    downloading acrobat PDF

    Hi I have an ASP script which is given a filename as a parameter & must then download a page containing the PDF file So, I have Response.ContentType = &quot;application/pdf&quot; FilePath = Request.QueryString(&quot;docPath&quot;) FileName =...
  15. barryp

    set timeout for command

    I have a script which is run by CRON It looks in a folder on a remote server for a file & if there will copy it across, process it then ON THE REMOTE SERVER move it to a 'done' folder. Most of the time - it works BUT all too frequently it hangs for hours on the MOVE I use /usr/bin/ssh -q...
  16. barryp

    exit status from php in shell script

    I use if `php -q mystuff.php` within a shellscript run from crontab How can I pass an error status from within my PHP to the shell script ? If I say exit(-1); within PHP I do not see this in my shellscript.
  17. barryp

    mysql_fetch_object &amp; multi-table search

    I'm sure I come across the answer - but can't find it when I really need it ! I make an sql query like $query = &quot;SELECT * FROM `product` as p, `productlanguage` as p1, `productlanguage` as p2 WHERE (p.guid=p1.d_id and p1.lang_id='de') and (p.guid=p2.d_id and p2.lang_id='en')&quot...
  18. barryp

    Command-line params

    Hi On a Linux server I use MySQL I have a shellscript run by CRON which initialises one of my databases I need to DROP & re-CREATE the database & then initialise the tables I have an SQL file to do this but how can I pass the database name to the SQL script ? init.sql contains DROP...
  19. barryp

    Shell Script Question

    Please help a newbie ! I have a shell script which takes 2 parameters I now need to run this script usiong a control file e.g. Control File contains param1.1 param1.2 param2.1 param2.2 param3.1 param3.2 The shell script would be run 3 times How can I set up a loop to achieve this? I have...
  20. barryp

    Demo CD-Rom with MySQL

    Hi This is probably a stupid question - but here goes ! I've put together an application using PHP & MySQL using the internet. Several contacts tell me that a large number of potential customers are NOT allowed internet access. So could I release the package on CD-ROM. Fine. I can include...

Part and Inventory Search

Back
Top