Calling C++ / MFC / SDKs usinf Inline
- From: "Sankaran" <psankarv@xxxxxxxxx>
- Date: 16 Jul 2005 00:36:18 -0700
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
.
- Follow-Ups:
- Re: Calling C++ / MFC / SDKs usinf Inline
- From: Sisyphus
- Re: Calling C++ / MFC / SDKs usinf Inline
- Prev by Date: Re: Can't locate loadable object for module Tk::Event
- Next by Date: How to Install Inline:CPP module
- Previous by thread: stepping out
- Next by thread: Re: Calling C++ / MFC / SDKs usinf Inline
- Index(es):
Relevant Pages
|