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: *

  1. jamesp0tter

    Reuse socket connection multiple times

    Hello all ! I'm developing a personal side project, and basically I need to get various bits of a remote file. I use the "Range" field in the HTTP request to accomplish this, and it's all working perfectly. But, as I need various bits, initiating a connection, sending headers, getting...
  2. jamesp0tter

    Problems saving an incomming stream into a file

    Hey guys, like the title says, I can't save an incomming connection's data into a file, or at least not the correct data: I managed to TFileStream it but the data was all garbled, and seeing the file in an hex editor showed the contents of the saved data are very different from the actual one...
  3. jamesp0tter

    Delphi panics when returning a custom class in a function?

    I have defined a custom class: type TWhtv = class one: string; two: string; end; and the following code function abc: TWhtv; var u: TWhtv; begin u.one := 'first'; u.two := 'second'; result := u; end; procedure TForm1.Button1Click(Sender: TObject); var o: TWhtv...
  4. jamesp0tter

    Creating an ActiveXObject based on a VCL component ?

    I'm trying to build an ActiveXObject that mimics the behavior of a VCL component I have (non-visual, both VCL and ActiveX). What do I have to do to accomplish this ? I created a sucessfull example of an ActiveX that displays a message box when a custom method is called, but how do I make it...
  5. jamesp0tter

    ASUS special buttons - API ?

    Hello, I've been trying to solve this problem for some time now, but with no luck ... I own a ASUS M6N and it has a set of special buttons/keys that perform specific functions around the laptop. I'd like to know how I can "hook" this special button keypresses so I can perform custom procedures...
  6. jamesp0tter

    preg_replace question

    Hello, I have the following code: <!--TestBegin12--> sjgidshgifdjhsdh <!--TestEnd12--> <!--TestBegin22--> ssrvytybsgfhgfjh <!--TestEnd22--> <!--TestBegin47--> fdhsfdjdfyhhsjfj <!--TestEnd47--> <!--TestBegin2467--> asfsvffdjhsdh <!--TestEnd2467--> and I need to match them with a preg_replace...
  7. jamesp0tter

    Bluetooth audio - Nokia 6630

    Hi, First of all I'm a complete novice in bluetooth/symbian interaction. I own a Nokia phone with bluetooth, and a bluetooth usb adapter. I can connect the phone to the pc without any problem, and do every task I'm supposed to be able to. My question is, is there any way I can "talk" to my...
  8. jamesp0tter

    Integrate App in Windows Taskbar (Toolbar like)

    Can anyone tell me how to create an toolbar that would dock into the windows taskbar, like the new Windows Media Player does? Like this: Thank you in advance! jamesp0tter, mr.jamespotter@gmail.com p.s.: sorry for my (sometimes) bad english :p
  9. jamesp0tter

    works in IE, but not in Mozilla :(

    i have the following webpage: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled Document</title> <style> table, td { font-family: Tahoma; font-size: 12px; color: #404040; border-collapse: collapse } .sechover { cursor: pointer } .procurar {...
  10. jamesp0tter

    Separate Unit for Functions

    i've got unit1: uses Unit1; type TForm1 = class(TForm) ... var Form1: TForm1; F: TF; .... procedure bla bla; begin F.Function(1); end; and in unit2 i have: type TF = class public function 1; function 2; function 3; function 4; ...
  11. jamesp0tter

    String To Hex

    Hello, I need to know how to convert a TEXT string into a Hex string of the chars in the text string. Something like: text := 'hello'; hex := '68656C6C6F'; Is there any pre-defined function, like StrToWhatever ? I searched nearly everywhere and only found functions to convert already...
  12. jamesp0tter

    accessing comp name dinamically?

    i have: N TShape objects named 'shape1'...'shape2'...'shapeN' a string list with strings '1'...'2'...'N' where N is an unknown number can i access the TShape object named *figure* 'shape' + Str[N] */figure* ? example: TShape -> 'shape7' String -> 7 what_i_want := 'shape' + 7; ---...
  13. jamesp0tter

    Network Traffic - In/Out

    anyone knows how to get incomming/outgoing traffic count (separate) on the fly ? tks jamesp0tter, jamespotter@netcabo.pt p.s.: sorry for my (sometimes) bad english :p
  14. jamesp0tter

    preg_replace

    i'm stuck... imagine i have: $whtv_var = "[aaaaa] bbb (ccccccccc) - dddd"; so, to get those lil letters, i use: $As = preg_replace("'\[(.*?)\] (.*?) \((.*?)\) - (.*?)'","\$1", $whtv_var); $Bs = preg_replace("'\[(.*?)\] (.*?) \((.*?)\) - (.*?)'","\$2", $whtv_var); $Cs =...
  15. jamesp0tter

    about to get nuts

    well, i'm stuck in a code for hours and just can't figure out what's wrong.. i have this: <? if ((!$_SESSION['membro']) || ( $_SESSION['membro'] == '0' )) { unset($MEMBRO); } else { $MEMBRO = $_SESSION['membro']; } // now, i'm sure $MEMBRO is set because other scripts use this var and they...
  16. jamesp0tter

    probably basic question.. :\

    imagine i have this variables: $blablaONE $blablaTWO etc and i have $num that can be &quot;ONE&quot;, &quot;TWO&quot;, etc. how do i refer to the &quot;resulting&quot; variable, for instance if $num is &quot;TWO&quot; how do i get $blablaTWO's value ? ps: $blablaONE , etc have diferent...
  17. jamesp0tter

    simple URL help

    i found sometime ago the way to use blabla.php?var instead of blabla.php?somevar=var but i've lost it :X can someone please remind me ? ;) tks ! jamesp0tter, jamespotter@netcabo.pt p.s.: sorry for my (sometimes) bad english :p
  18. jamesp0tter

    newbi in delphi » select text

    well, i'm kind of starting in delphi... (1 month +/-) i have some code that allows me to search a memo for some string, select it if found and copy it to other memo. like: [memo1.lines] this is line one ehe this is line two ehe [/] so, the only thing that changes is the 'one' / 'two'.. now...
  19. jamesp0tter

    sessions problem in php+flash menu

    i use a flash menu in my new website, generated by a external .txt file like &quot;linktext|linkurl|window\n&quot; and so on for each item. but when i tryed to make sessions work, the session appears registered in the first page, but after i link to another through a flash menu item, it doesn't...
  20. jamesp0tter

    netPBM » pnmscale PROBLEM

    well, i'm trying to use the following code: $netpbm = &quot;/usr/local/netpbm/bin/&quot;; // netPBM bin path $to = &quot;/tmp/&quot;; // path where pics are and pics go system ($netpbm.&quot;jpegtopnm $to&quot;.&quot;pic.jpg > $to&quot;.&quot;temp.pnm&quot;,$r); echo $r.&quot;<br><br>&quot...

Part and Inventory Search

Back
Top