Thanks for that.

 

I see a lot of wrapping projects having a readme note like the below do you
know what Application Wizard is? Or how I can generate a wrapper it seems to
be something default in Visual Studio? But I can't find it.

 

 

    DYNAMIC LINK LIBRARY : shamirsharp Project Overview

========================================================================

 

AppWizard has created this shamirsharp DLL for you.  

 

This file contains a summary of what you will find in each of the files that

make up your shamirsharp application.

 

shamirsharp.vcproj

    This is the main project file for VC++ projects generated using an
Application Wizard. 

    It contains information about the version of Visual C++ that generated
the file, and 

    information about the platforms, configurations, and project features
selected with the

    Application Wizard.

 

shamirsharp.cpp

    This is the main DLL source file.

 

shamirsharp.h

    This file contains a class declaration.

 

AssemblyInfo.cpp

       Contains custom attributes for modifying assembly metadata.

 

////////////////////////////////////////////////////////////////////////////
/

Other notes:

 

AppWizard uses "TODO:" to indicate parts of the source code you

should add to or customize.

 

////////////////////////////////////////////////////////////////////////////
/

 

 

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Preet Sangha
Sent: Saturday, 8 October 2011 4:32 PM
To: ozDotNet
Subject: Re: using win32 C++ Dynamic Dll in .NET

 

Python painful? Hahahahah I found it one of the best .net languages for it's
clean syntax and interoperability. But that aside. MC++ is just C++ for the
CLR and you use Visual Studio as it's part of the pacakge, Since the library
is written in MSVC then I suspect the compile to MC++ may not be as hard.
However you still have to put wrappers on.

 

Have a look at this example see if it's something that suits : Code Project
Managed C++ - Learn by Example
<http://www.codeproject.com/KB/mcpp/cpptomancpp.aspx>   

 

On 8 October 2011 18:09, Tom Gao <[email protected]> wrote:

Thanks that sounds rather painful to have to go to python.

 

I was hoping there were an easier way. P/Invoke isn't exactly the easiest
thing to use.

 

Also what's the IDE for MC++?

 

From: [email protected] [mailto:[email protected]]
On Behalf Of Preet Sangha
Sent: Saturday, 8 October 2011 3:47 PM
To: ozDotNet
Subject: Re: using win32 C++ Dynamic Dll in .NET

 

Just had a thought. You could use SWIG to generate a python wrapper that
could possibly be used from IronPython 1.1 (CLR 2+) or the 2.7 (CLR4+)

 

On 8 October 2011 17:44, Preet Sangha <[email protected]> wrote:

my suggestion is one of these

 

1. if you need a small subset of the functions write a P/Invoke or MC++
wrapper for the functions you need.

2. If you need to use a large subset of it, recompile it using MC++ with
appropriate exposure to functions you need using MC++

 

 

 

On 8 October 2011 16:28, Tom Gao <[email protected]> wrote:

Hi Everyone,

 

I'm trying to use crypto++ I have found a binary that's compiled using msvc
2005
http://sourceforge.net/projects/cryptopp/files/cryptopp/cryptopp530win32win6
4/cryptopp530win32win64.zip/download

 

However I'm not sure how I can interface it with .NET C#. I know I can't add
it as a reference and I need to create a wrapper class. But surely there're
easier ways to do this than manually creating all the functions. Has anyone
used SWIG http://sourceforge.net/projects/swig/ or any other tools to do
this.

 

Thank you,

Tom





 

-- 
regards,
Preet, Overlooking the Ocean, Auckland





 

-- 
regards,
Preet, Overlooking the Ocean, Auckland





 

-- 
regards,
Preet, Overlooking the Ocean, Auckland

Reply via email to