Hello,

I am trying to run a 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)
{
char* entryName = "HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat
Reader\5.0\AdobeViewer\EULA";
DWORD dwValue = 0.0;
char* 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;
}
--------------------------------------------------------------
and getting the following error
--------------------------------------------------------------
E:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3>Perl
Hello2.pl

Microsoft (R) Program Maintenance Utility Version 6.00.9782.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
D:\Perl\lib\ExtUtils/xs
ubpp -typemap D:\Perl\lib\ExtUtils\typemap Hello2_pl_4b53.xs >
Hello2_pl_4b53.x
sc && D:\Perl\bin\Perl.exe -ID:\Perl\lib -ID:\Perl\lib
-MExtUtils::Command -e mv
Hello2_pl_4b53.xsc Hello2_pl_4b53.c
cl -c
-IE:/Sankaran/Work/TP-TAImpacts-LM051049/PerlInline/MyTest3 -O1 -M
D -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT
-DPERL_IMPLICIT_CONT
EXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -MD -DNDEBUG
-DVERSION=\"
0.00\" -DXS_VERSION=\"0.00\" -ID:\Perl\lib\CORE Hello2_pl_4b53.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8804 for
80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.

Hello2_pl_4b53.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_4b53

To debug the problem, cd to the build directory, and inspect the output
files.

at Hello2.pl line 0
INIT failed--call queue aborted.
-----------------------------------------------------------------------------------------------------------------------------------
For this I was trying to install Inline:CPP. But I think the problem is
something else. Any clue ?

Regards,
Sankaran