Re: Calling C++ / MFC / SDKs usinf Inline




"Sankaran" <psankarv@xxxxxxxxx> wrote in message
news:1121499378.909012.21100@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello
>
> I have written the following program
> -----------------------------------------------------------------
> use Inline C => DATA =>
> LIBS =>
>
'-lE:\Sankaran\Work\TP-TAImpacts-LM051049\PerlInline\MyTest3\clregistrywrapp
er';
>
> $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\Hell
o2_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??
>

Yes - try using Inline::CPP instead of Inline::C. Get it from:
http://search.cpan.org/~neilw/Inline-CPP-0.25/

Cheers,
Rob


.



Relevant Pages

  • Calling C++ / MFC / SDKs usinf Inline
    ... int WinBox(char* Caption, char* Text) ... This is to read a particular registry entry from my machine. ... A problem was encountered while attempting to compile and install your ...
    (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)
  • Re: Search engine in a form.....searching the captions
    ... Set the caption of the label to something like "Enter ... Dim mstrFormToSearch As String ... Private Sub Form_Open ... Click menu items Debug -> Compile. ...
    (microsoft.public.access.devtoolkits)