Calling an XLL in C# - c#

I have a XLL Addin (Test.xll). I wish to use this in my C# (VS2008/.Net 3.5) application. If anybody can guide me how to use this in my C# application.
If anybody could please guide me how to use this XLL in the C# application, it will be great.
Any help is appreciated.
Regards,
Tushar

You'll have to use P/Invoke via static external methods which use the DLL's exports. However, depending on the dependencies in the XLL (especially if it uses some Excel functionality) you may not be able to get this to work properly.

Related

How to use dlib library in C#

Is there anyway I can use dlib c++ library in C#. What I understood is creating a dll which can be called from c# may work but I dont know how to do it. Any help is appreciated. I am not familiar with C# and dll. Thank you
This section on MSDN explains interop: https://msdn.microsoft.com/en-us/library/ms235282.aspx

control a wpf from matlab by using a c# dll

i would like to know weather it is possible to control some wpf application written in c# by using a c# dll out of matlab.
what i need is the possibility to start the MainWindow and i have to be able
to get some values into my controller.
What i found so far was things working from c# that use matlab, but the other way round seems not to be that much populatet, as i found nothing i could really use.
I allready tried to import a .net Library, but i dont seem to be able to open a external class from my dll.
So if you could help me on this it would be great.
Regards,
justSomeone
Ok, i did just find out, that i can also import my .exe file into Matlab instead of only dlls .
I am using the function NET.addAssebly('Path.exe') to do this.
Path.exe is just a symbol that it is directed to the place of the .exe file.
I achieved to be able to use my methods as i wanted i do have my instance of the class. So i am happy now. :D
But if you have other solutions which are more handy, dont hesitate to post them. There might still be interesting things to discover :)
Regards,
justSomeone

Files accessed by a process, c# , deviare

I need to find out the files accessed by a given (hook) process. what am i suppose to achieve that using c# and deviare?
Can anyone enlighten me?
Thanks in advance :)
You can use Deviare examples to hook without writing code. There are 2 applications that let you hook any process and watch their API calls in a console. The source code of those applications is available and easy to follow. You have examples in C# and C++.

integrate LightScribe functionality with c# application

hope you guys could share some light with me..are you guys aware of lightscribe? i have the sdk document and am tasked to integrate LightScribe functionality with c#.can anyone of you guide me or mayb have some examples to show me?
I haven't used the lightscribe api myself. But it appears to be a C++ API, what you will need to do is write a C# wrapper around it (using p/invoke)
A quick google search also turns up this wrapper library that someone has already done, have a look at the source in that and you will see the techniques used.

Importing mpp file into SQL Server through ASP.NET?

I have an assignment which is to import mpp file into database via ASP.NET (C#).
Can anyone please advice me on this matter.
Any help is very much appreciated.
Thanks.
Depending on the situation, using Interop isn't necessarily a good choice (have to have Project installed on the machine).
You can use MPXJ to open the mpp file and read the information in it. It's free and open-source and works fairly well, though since it's a port from Java, you have to do some things in a Java way in your .NET code.
A paid option is ASPOSE.Tasks, which is a little nicer to use, but pretty expensive.
Project programmability is available in C# but docs are only available for VBA.
This should get you going - all the stuff that is available in VBA can be accessed from C# using the Project Primary Interop Assembly from the list here.
Check out Application.FileSaveAs.

Categories