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 wOOdy-Soft 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: greadey
  • Content: Threads
  • Order by date
  1. greadey

    anyone know of a suitable program to work out UK tax?

    A bit OT perhaps but does anyone know of a suitable program for linux that will help me work out my tax so I can fill in my tax return. thanks, greadey
  2. greadey

    using perl to write to a bookmark in a word doc

    Hi all, Does anyone know what code is to be used to write to a bookmark in Word with perl? I've tried the following; #Code opens word and makes it visible $doc = $word->ActiveDocument; $sel = $doc->bookmarks("bk1")->Select; $doc->$sel->InsertAfer("here is some text"); perl seems to be...
  3. greadey

    Keep getting emails returned that I never sent!!!!!!!!

    Hi all, I've recently been getting returned emails that were never sent by me conciously in the first place. Is this a sign of infection by e.g worm or is there another more likely scenario. Thanks, greadey.
  4. greadey

    Running make; make install on windows box

    Hi all, I've downloaded a module to drive a LabJack data acquisition device. After the usual perl Makefile.PL the next commands are make; make install. How do I get round this on a windows 2000 box? The module is definitely a windows module (the presence of *.dll files seems to give that one...
  5. greadey

    Hi all, I'm trying to access my

    Hi all, I'm trying to access my parallel port to use as an interface for a PIC programmer. I cannot seem to get the port to respond to anything I do. A while ago I nicked a simple program from the portio HOWTO and changed it to make a simple little binary counter from the parallel port. So...
  6. greadey

    Was "How to insert text in Word Doc"

    Following a question about how to inset text into a word document at a specific bookmark I followed a thread given to me by NaChoz (many thanks). As seems to be the general opinion there was nothing concrete anywhere on this particular subject, however there was enough info to help me start...
  7. greadey

    Inserting test in a Word doc

    Hi all, Can anyone tell me if it is possible to insert text at a specific bookmark in a word document? I have had a go using Win32::OLE but I've got absolutely nowhere. Thanks in advance. gready
  8. greadey

    Help with pTk and passing listbox methods as args to function pls

    Hi all here's a tricky one I think; First a code example using a Tk::Listbox; my @list = (qw/1 2 3 4 5/); $mw = MainWindow; $list1 = $mw->Listbox->pack; $list2 = $mw->Listbox->pack; $but = $mw->Button(-text => 'Add', -command => [\&ADD, $list1->curselection])->pack; MainLoop; sub ADD...
  9. greadey

    Why doesn't if (-e $file) work proper like?

    Hi peeps, I'm using this code; $file = "true_existing_file"; if(-e $file) { print "File exists\n"; } else { print "No luck sucker\n"; } the other way is; open(F, $file) or die "Etc\n"; if(-e FILE) { print "FILE exists\n"; } else...
  10. greadey

    Using strtod with a pointer to a double doesn't work

    Hi all, using the following code; #include <stdio.h> #include <stdlib.h> int main () { char *val = &quot;1.234&quot;; double pnum; pnum = strtod(val, NULL); printf(&quot;%f\n&quot;, pnum); return(0); } works just fine and dandy however writing the code like this...
  11. greadey

    Is it possible to pass a structure pointer to a function?

    Here's a snippet of code; // a simple structure for my experiment struct new { int i; int j; int k; }; // This won't compile! float some_func( new *); // I can do this though struct new mystruct; struct new *pMystruct; so if I can declare a pointer to the strcuture...
  12. greadey

    how to return a pointer from a function

    Hi all, I'm trying to understand pointers and have written some small programs to investigate these beasties. Can someone tell why this function won't compile? int * plus3 (int *x) { ++(*x); return (x); } Thanks Greadey
  13. greadey

    What types of identifier do #define pragmas create?

    When you use a #define pragma, what is the type of identifier created, for example; #define BAUD 9600 // is BAUD an int or a char[] #define PARITY 8N1 // Same question. Thanks for your help, greadey.
  14. greadey

    Help!!! Newbie can't even add 2 and 2

    Hi all, I am very new to assembly and have now got bored of &quot;Hello World&quot;. I am trying to write my own program to simply add two numbers together and display the result. I have written the following program for nasm on Linux; bits 32 section .data num1 db 4 num2 db 5 bytes...
  15. greadey

    Internal Modem - Bad deflink on /dev/cuaa3 can't open /dev/cuaa0

    Hi peeps, I've been trying to set up my internal modem. My Linux tells me it is set up on ttyS3 at IRQ 3, I also have ttys0 on IRQ 4. I have enabled sio0 and sio3 in my kernel at IO_COM1 and IO_COM4 respectively, with IRQ 3 and 4 as in Linux. The kernel seems to configure fine and boots up...
  16. greadey

    Query on configuring ata0 at 0x1F0 IRQ14 on atapci0 in kernel

    Hi peeps, I'm trying to reconfigure my kernel and have the following lines in my GENERIC conf; device ata0 at isa? port IO_WD1 IRQ14 device ata1 at isa? port IO_WD2 IRQ15 My dmesg.boot file gives me the following; isa0 on isab0 at device 7.0 on pci0 atapci0 port 0xe000 - 0xe00f at device 7.1...
  17. greadey

    New to FreeBSD - want my colours back

    Hi peeps, I have just installed FreeBSD 4.4. on my PC alongside Debian GNU/Linux. After a 4 hour install session, and a few changes to my lilo.conf, the BSD was up and running with absolutely no problems at all. I was surprised :-). Anyway I changed my default shell to Bash and tried a; ls...
  18. greadey

    Apologies to tsdragon

    Apologies for talking out of my rear re. using $_ in subs. I tries it myself at home and you were right all along - it doesn't work. Must have had a momentary lobotomy :-(

Part and Inventory Search

Back
Top