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

.



Relevant Pages

  • Re: Calling C++ / MFC / SDKs usinf Inline
    ... > int WinBox(char* Caption, char* Text) ... > A problem was encountered while attempting to compile and install your ... To compile this do I require any ...
    (comp.lang.perl.modules)
  • Re: Compact SQL - Any CPU Build
    ... After the install, I confirmed the keys were created under ... our application can be installed on both of the x86 and x64 platform. ... But if we want to compile it as x64 version, ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.general)
  • Re: Linux vs FreeBSD vs SCO
    ... >> often you install an upgrade, and you find it needs something else, ... >> package, from packages otherwise it has to compile Ruby, and some ... in a Maynard Sandstar floppy controller and hung 8" DD floppies ... The official IBM DOS 2.0 manuals and disks are there too. ...
    (comp.unix.sco.misc)
  • Re: Suse 10.3 and DVD::RIP
    ... Gnome began to sort of fork off and became increasingly unfriendly to ... As we are a openSUSE group, that is what I am talking about. ... be problematic to compile is none of my business. ... I have to install 75 MB of stuff to run a 2 ...
    (alt.os.linux.suse)
  • =?ISO-2022-JP?B?UmU6IGEgcHJvYmxlbSBhYm91dCBOUEIgTVBJIGJlbmNobWFyayAsIHBhdGhzY2FsZRskQiEnGyhC
    ...   Recently, I compile the benchmark of NPB3.3-MPI, and my platform is ... When I install my mpich like belows: ... the compiler or the object file hello++.o generated by it are failing ... But there are another error now when compile simpl.o as ...
    (comp.lang.fortran)