Ask a Question related to PERL Modules, Design and Development.
-
Sankaran #1
Calling C++ / MFC / SDKs usinf Inline
Hello
I have written the following program
-----------------------------------------------------------------
use Inline C => DATA =>
LIBS =>
'-lE:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\clregistrywrapper';
$text = "@ARGV" || 'Inline.pm works with MSWin32. Scary...';
WinBox('Inline Text Box', $text);
__END__
__C__
#include
"E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\CLRegistry.h"
int WinBox(char* Caption, char* Text)
{
const CString& entryName =
"HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat
Reader\5.0\AdobeViewer\EULA";
DWORD dwValue = 0.0;
const CString subKey = _T("");
BOOL bRead = ReadFromRegistry(entryName,dwValue,subKey);
if (TRUE == bRead)
{
printf("Successful Registry Read \n");
printf ("Dword Value: %f", dwValue);
}
else
{
printf("Successful Registry Read");
}
return 0;
}
----------------------------------------------------------------
This is to read a particular registry entry from my machine. and I am
getting the following error
------------------------------------------------------------------
Hello2_pl_3b3e.c
C:\PROGRA~1\MICROS~3\VC98\MFC\INCLUDE\afx.h(15) : fatal error C1189:
#error : M
FC requires C++ compilation (use a .cpp suffix)
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
A problem was encountered while attempting to compile and install your
Inline
C code. The command that failed was:
nmake > out.make 2>&1
The build directory was:
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\_Inline\build\Hello2_p
l_3b3e
To debug the problem, cd to the build directory, and inspect the output
files.
at Hello2.pl line 0
INIT failed--call queue aborted.
-----------------------------------------------------------------
I have installed Inline:C module only. To compile this do I require any
other modules (Inline:CPP)? From where can I get this??
Regards,
Sankaran
Sankaran Guest
-
Calling external dll from inline perl using gcc on XP
Hi I'm trying call an external dll from inline using the below perl code. use warnings; use Inline C => Config => MYEXTLIB =>... -
ANNOUNCE: Inline::WSC V0.01
Inline::WSC allows Perl to call JavaScript and VBScript methods, passing parameters and retrieving return values. Inline::WSC is Win32-only. ... -
Calling External DLL functions in Perl using Inline
Hello I am trying to call a DLL function from Perl using Inline as follows use Inline C => DATA => LIBS => '-lInlinetestLib'; greet(); ... -
[PHP-DEV] [PATCH] inline -> static inline
On Fri, 15 Aug 2003, Jason Greene wrote: Thanks, I have applied the patch. The CVS reorg did not affect karma assignment. - Sascha -
Download earlier SDKs?
Are the SDKs for versions of PS prior to 7.x available for download? Thanks. -
Sisyphus #2
Re: Calling C++ / MFC / SDKs usinf Inline
"Sankaran" <psankarv@yahoo.com> wrote in message
news:1121499378.909012.21100@g44g2000cwa.googlegro ups.com...'-lE:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\clregistrywrapp> Hello
>
> I have written the following program
> -----------------------------------------------------------------
> use Inline C => DATA =>
> LIBS =>
>
er';E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\_Inline\build\Hell>
> $text = "@ARGV" || 'Inline.pm works with MSWin32. Scary...';
>
> WinBox('Inline Text Box', $text);
>
> __END__
> __C__
>
> #include
> "E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\CLRegistry.h"
>
> int WinBox(char* Caption, char* Text)
> {
> const CString& entryName =
> "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat
> Reader\5.0\AdobeViewer\EULA";
> DWORD dwValue = 0.0;
> const CString subKey = _T("");
> BOOL bRead = ReadFromRegistry(entryName,dwValue,subKey);
> if (TRUE == bRead)
> {
> printf("Successful Registry Read \n");
> printf ("Dword Value: %f", dwValue);
> }
> else
> {
> printf("Successful Registry Read");
> }
> return 0;
> }
> ----------------------------------------------------------------
> This is to read a particular registry entry from my machine. and I am
> getting the following error
> ------------------------------------------------------------------
> Hello2_pl_3b3e.c
> C:\PROGRA~1\MICROS~3\VC98\MFC\INCLUDE\afx.h(15) : fatal error C1189:
> #error : M
> FC requires C++ compilation (use a .cpp suffix)
> NMAKE : fatal error U1077: 'cl' : return code '0x2'
> Stop.
>
> A problem was encountered while attempting to compile and install your
> Inline
> C code. The command that failed was:
> nmake > out.make 2>&1
>
> The build directory was:
>
o2_pYes - try using Inline::CPP instead of Inline::C. Get it from:> l_3b3e
>
> To debug the problem, cd to the build directory, and inspect the output
> files.
>
> at Hello2.pl line 0
> INIT failed--call queue aborted.
> -----------------------------------------------------------------
> I have installed Inline:C module only. To compile this do I require any
> other modules (Inline:CPP)? From where can I get this??
>
[url]http://search.cpan.org/~neilw/Inline-CPP-0.25/[/url]
Cheers,
Rob
Sisyphus Guest



Reply With Quote

