473,408 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Perl interpreter crashes in function call, using Win32::API

The windows dll has a function like:
C_GetInfo(&info); which return a pointer.
now using this below code i am unable to get the return of the portion in bold.
Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2. use Win32::API;
  3. my $lpBuffer = '' x 140;
  4. Win32::API->Import('cryp','DWORD C_Initial()')or die $^E;  
  5. my $i= C_Initialize();  
  6.  
  7. Win32::API->Import('cryp','LPSTR C_GetInfo()')or die $^E;
  8. my $pp2 = C_GetInfo();
  9. print $pp2;
  10.  
  11. Win32::API->Import('cryp','DWORD C_Final()')or die $^E;
  12. my $y = C_Finalize();
  13. print $y;
  14.  
Mar 1 '11 #1
0 1120

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dov P | last post by:
hello everyone, i need to use api function named RegSetKeySecurity in my C# program. This function require ADVAPI32.DLL, but i cannot add this reference. I tried to use Microsoft.Win32.Registry...
1
by: Lenny | last post by:
Hello, Our ASP.NET application needs to be able to access remote ftp site and bring files to the local server. I have ftp component developed by another company. Basically they're using Win32...
1
by: Rat | last post by:
Hi, Using vb.net. Using WIN32 API. i need to change the DATE Format(from MM/dd/yyyy to dd/MM/yyyy) in Reginal Settings. How will i do that. Regards,
13
by: Susan Beebe | last post by:
I have downloaded the code described in Microsoft article Q154078. I am trying to send raw ZPL (zebra barcode printer) code from Microsoft access. It works just fine if I hard code the actual...
2
by: JY | last post by:
Hello,everyone! I have been working on a project using vb.net and ComponentOne.net.The c1 component is really cool and fast.How did they build those component? I am just wondering if win32...
3
by: Michael | last post by:
Hi all, I'm trying to figure out how to use setupapi.dll in C#, specifically the SetupDiCallClassInstaller function. I'm trying to develop a test suite which tests drivers and part of this...
1
by: Sanghoon Lee | last post by:
I wrote tiny sample of smart client using Win32 API and get parent IE's handle as follow public static extern IntPtr GetParent(IntPtr hWnd); IntPtr cHandle = this.Handle; // this is smart...
4
by: Steve Richter | last post by:
I have a C++ forms project that I am adding some unmanaged code to. I have a member function of the Form1 class that returns a String^ holding the text of the last win32 error. The code is...
3
by: anupam roy | last post by:
I want to dynamically load a c# DLL from a c# client project(say by using LoadLibrary) I dont want to use pinvoke add-in. Please suggest way to use LoadLibrary in c# code or any other means...
1
by: leoce7 | last post by:
I need some help renaming a file that has a full path length longer than MAX_PATH (>260). I can locate the files using WIN32 API ("\\?\" recognition for long paths, etc.) coding and have actually...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.