Alsalam alikom wa ra7mat Allah wa barakatoh
Today, I found a program that cought my attention, I didn't try it yet but I read a tutorial and now downloading the package...
What is it anyway?
SWIG stands for Software Interface Generator, it's a program that takes your unmanaged code (C/C++ for example) and automatically builds a wrapper library for it in a lot of other languages (C#, Perl, PHP, ...etc).
Just that simple...
Example:
// Example: file.h
class SimpleSample
{
public:
void DoSomething();
}
This header file can be converted to SimpleSample.cs which uses pInvoke to call the underlying C++ Code...
SWIG is a fully function C++ Compiler. It can also build up a proxy class for a collection of your C++ Functions/Classes. It's just nice and powerful (I hope it functions like how it sounds)
Moreover, it's Open Source, works with a GNU CSharp Compiler (in case you want to output a .NET Library) it can also work with many other CSharp Compilers (if you wish to change)
I'm going to try it (when I manage to connect to the wireless service at the faculty again In Shaa Allah...) and I'll be posting my little experience with it In Shaa Allah...
There are a lot of ideas over there... work hard, and you will get one, then you will have to work harder to get it done... Just start...
Alsalam alikom wa ra7mat Allah wa barakatoh
Today, I found a program that cought my attention, I didn't try it yet but I read a tutorial and now downloading the package...
What is it anyway?
SWIG stands for Software Interface Generator, it's a program that takes your unmanaged code (C/C++ for example) and automatically builds a wrapper library for it in a lot of other languages (C#, Perl, PHP, ...etc).
Just that simple...
Example:
// Example: file.h
class SimpleSample
{
public:
void DoSomething();
}
This header file can be converted to SimpleSample.cs which uses pInvoke to call the underlying C++ Code...
SWIG is a fully function C++ Compiler. It can also build up a proxy class for a collection of your C++ Functions/Classes. It's just nice and powerful (I hope it functions like how it sounds)
Moreover, it's Open Source, works with a GNU CSharp Compiler (in case you want to output a .NET Library) it can also work with many other CSharp Compilers (if you wish to change)
I'm going to try it (when I manage to connect to the wireless service at the faculty again In Shaa Allah...) and I'll be posting my little experience with it In Shaa Allah...
There are a lot of ideas over there... work hard, and you will get one, then you will have to work harder to get it done... Just start...
Alsalam alikom wa ra7mat Allah wa barakatoh
Comments
Post a Comment