in reply to help with Win32::API (Struct and general)
Did you check the return value of sizeof? I'm guessing you should pass the name of the structure, instead of the reference.
Please try:
I think you'll get a saner value for 'RASENTRY', but I'm just guessing.#right after $rasentry = Win32::API::Struct->New( 'RASENTRY' ); # in your code printf "Sizeof \$rasentry: %d, sizeof RASENTRY: %d\n", (Win32::API::Struct::sizeof($rasentry)), (Win32::API::Struct::sizeof('RASENTRY'));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: help with Win32::API (Struct and general)
by Anonymous Monk on Aug 22, 2003 at 02:44 UTC | |
by mabman (Novice) on Aug 22, 2003 at 02:45 UTC |