strings and numbers

Discussion in 'Perl Misc' started by les_andrey@yahoo.com, Jul 30, 2005.

  1. Guest

    Hi,

    Please, tell me is it a bug or it works properly:

    We have Perl code:

    use WIN32::API;
    my $ref=Win32::API->new('Test_Dll.dll','TestParamMY','PP','N');
    my ($test1,$test2) = ('Test_Dll.dll','TestParamMY');
    $test1>10;
    print $test1."\n";
    $ref->Call( $test1, $test2);

    Where TestParamMY (C code):

    TEST_DLL_API
    PDH_FUNCTION TestParamMY( IN LPCSTR szTest1, IN LPCSTR
    szTest2){
    printf("%s, %s", szTest1, szTest2);
    return 1;
    }

    output:
    Test_Dll.dll, Test_Dll.dll
    (null), TestParamMY

    Modified:

    use WIN32::API;
    my $ref=Win32::API->new('Test_Dll.dll','TestParamMY','PP','N');
    my ($test1,$test2) = ('Test_Dll.dll','TestParamMY');
    #######$test1>10;
    print $test1."\n";
    $ref->Call( $test1, $test2);

    Output:
    Test_Dll.dll, Test_Dll.dll
    Test_Dll.dll, TestParamMY

    Thanks,
    Andrew
    , Jul 30, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    756
    Malcolm
    Jun 24, 2006
  2. Subra
    Replies:
    25
    Views:
    1,187
    user923005
    Mar 8, 2007
  3. Andrew Tatum

    Fibonacci Numbers and Lucas Numbers

    Andrew Tatum, May 26, 2007, in forum: C++
    Replies:
    6
    Views:
    558
    Howard
    May 27, 2007
  4. Lance Hoffmeyer
    Replies:
    2
    Views:
    521
    Lance Hoffmeyer
    Jul 26, 2007
  5. one man army

    Numbers to strings to numbers again

    one man army, Dec 28, 2005, in forum: Javascript
    Replies:
    6
    Views:
    140
    one man army
    Dec 30, 2005
Loading...

Share This Page