Re: Newbie

From: Robert W Hand (rwhand_at_NOSPAMoperamail.com)
Date: 03/29/05


Date: Tue, 29 Mar 2005 09:41:38 -0500

On Mon, 28 Mar 2005 22:22:42 +0200, "ursus.kirk" <secret@nowhere.com>
wrote:

>Hi all,
>
>I am an absolute newbie on C++. Have done VisualBasic premarily and some
>pascal (but that was in 1986). I want to adapt an almost ready plug-in.
>
>I have all the source code for the plug in and all the sourcecode for the
>function I want to add. When I look at the sourcecode for the function (or
>sub, what do you call it here?) there is no entry point. The code starts
>with some define's. What I need to figure out is how to interpret the new
>function so I can insert it into the first source code.

I'm a little confused by your request. The second "function" is in
C#.

>>The function will get a name (surname) and must return a DoubleMetaphone
>string.
>
>The wrapper looks like this and must be adapted somewhat to hold the call to
>the new function. The dataVect comes from an other program (Filemaker Pro)
>that will call this plug-in and pass parameter, which is cought by dataVect.
>
>FMX_PROC(fmx::errcode) Do_XMpl_CommonFormatNumber(short funcId, const
>fmx::ExprEnv& environment, const fmx::DataVect& dataVect, fmx::Data&
>results)
>{
> fmx::errcode errorResult = -1;
>
> errorResult = Do_MyNewFunc(dataVect);
>
>return(errorResult);

Why not just

return Do_MyNewFunc(dataVect);

for the body?

>}
>
>Then comes the function I want to implement, which is quite large, but I
>will post all of it. Thanks for your time and trouble.
>
>/**
> * ShortDoubleMetaphone.cs

A c# file. It is stricly off limits here.

> public class ShortDoubleMetaphone : DoubleMetaphone

This is a C# class. Are you trying to convert it to C++?

-- 
Best wishes,
Bob


Relevant Pages

  • Re: UK interest: trial website
    ... I did provide the source code without ... reservation (or warrant). ... you just have to plug the RSS feed source in and it does all ...
    (rec.sport.rowing)
  • Re: NT 4 Disk device
    ... I take a look at the source code. ... The control code IOCTL_STORAGE_QUERY_PROPERTY the program uses to only work with Plug and Play drivers. ... It doesn't support NT 4. ...
    (microsoft.public.win32.programmer.kernel)