I would like to use the following in my program, so i can use it's functions:
http://www.coolprop.org/coolprop/wrappers/Csharp/index.html
However i have no idea how to do the things explained in the link above.
I was able to instal the third-party nuget. But i would like to use the original CoolProp and it's functions rather. So i was looking at the "pre-compiled binaries" and "user-compiled binaries" but can't seem to figure it out... I have zero experience in this and have been looking all over the internet for some tutorials etc. without any luck.
basicaly i followed the following:
coolprop explenation
so i do this:
developer comand promt input
and get this result:
devoloper command prompt result
Ran command seperate, first line is ok i think, second throws errors:
separeted lines
folder where i stored the files:
Folder structure
I hope someone here can help me, thanks in advance.
greetings
Matti
Related
I am writing a calculator for a school project. I ran into a problem when parsing form in c# program using VBScript MSScriptControl.ScriptControl().Eval(). That is alright, except for logarithms. VBS cant do c# logarithms with custom base so I need to use an equation to reform it.
I need to get from log10(x) to (log(x)/log(10)) or from log(x, a) where a is base to (log(x)/log(a).
I've tried to search but I can't really find a way to grab two values and put them in a different way. And as I'm a little new to c#, I couldn't come up with better idea than RegEx
Thanks for help
If Eval in VBScript is your problem, try Mono.CSharp which has got Evaluator.Eval method and it pretty much Eval anything which you can in C#.
Here is the link to download David Ebbo's blog about Mono CSharp Compiler Service
I am looking for a way to customize the AutoCAD move command. I have tried the code in the link below without sucess. I received no errors executing it, it just ran the normal AutoCAD open command.
http://through-the-interface.typepad.com/through_the_interface/2007/03/replacing_the_o.html
I also tried this link with no positive results either.
http://adndevblog.typepad.com/autocad/2012/05/disable-certain-commands-for-a-given-entity-or-a-class-in-net.html
The question posted here titled "Override/Customize AutoCAD Command" suggested using overrules. I am not convinced that this is the right approach either. I am certain that I'm missing something and cannot find sufficient information to determine just what it is. A link to it would be greatly appreciated.
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
I am writing a small Visual Studio addin to let the user use more features of the comment tokens (TODO, HACK, etc.). For this I want to extend Visual Studio with new commands (such as TODISCUSS, TODELETE, FIXME, TESTME, etc.). I'd like to do this programmatically when my addin starts.
I already found out how to do this manually: http://msdn.microsoft.com/en-us/library/ekwz6akh%28v=vs.80%29.aspx
Does anyone have an idea how this could be done via the API?
Any ideas or suggestions would be appreciated!
Edit :
See this MSDN Link perhaps digging around in TaskList will get you somewhere.
Original Post :
It's not very clear (to me :) what exactly you want to do. Is it: find, edit, or refactor the tokens and then do something else with the sources? I can suggest this article on Code Project (NRefactory).
Using NRefactory you can do anything and everything with the source files including locating the tokens you want and doing stuff with them. You will also know the files you found them in, line numbers etc.
Perhaps you will be able to use Nrefactory to do all the heavy lifting as far as sources are concerned.
I've searched through the internet, but haven't found any solution in c#. Does anybody know how to give user right to log on as a Service in c#?
EDIT: I found an article on CodeProject with sample code that shows exactly how to do this!
I assume you've already found this KB that shows how to do it with native code. I'm looking for a C# way as well.
I tried in vain to find this. The way I did it in the end was to package the NTRights executable with my application and then launch it as a separate process.
NTRights can be found on the server 2003 resource kti and its usage is documented here:
http://support.microsoft.com/kb/315276