C# led panel controlling over ethernet with native dll - c#

Hy,
I had bought a "Huidu HD-E40" led panel a few days ago and the company sent me a .dll file. (I mean, it wasnt written in .Net). My question was the following: How can I use the file contents in C#. I had registered the dll via regsvr32, then added to the project reference but it seem like incompatible. I need some advice how to start with this projekt. I'd just like send a short string to the display via ethernet port. Sorry for my bad english, I'm a greenhorn from Hungary.
There are the file, that I've got for reference
http://wikisend.com/download/349890/Huidu_DLL_Reference1.doc

I know the question was asked more that 7 years ago, but for those who are looking for info on the SDK:
If you are referring to the HDSDK.dll which can be found in the Huidu_Gen6SDK_V1.9.zip then you need to use it with P/Invoke as that dll is not a .NET assembly but a native one. As #Kwang suggested if you would be able to download the SDK from their webpage there would be a complete C# demo.
Unfortunately it isn't available anymore, so you need to use the wayback machine to obtain it from here: https://web.archive.org/web//http://download.huidu.cn/download/

I think you need download the lastest version of HDSDK in the home page.It is contain some demo with C, C# and vb.net. Im using it for my project but it missed function create digit.

Related

Determine who has a file open using C# - is there a way now?

I need to be able to check who has a file open using C#. I found a few people asked this question before but they were all a long time ago with the latest being in 2012. I was wondering if, in the last 5 years, has Microsoft added this ability to .net or maybe someone came out with a nuget package that is capable.
Here is the latest answer I found
You can use windows internal function NTQuerySystemInformation with undocumented parameter SystemHandleInformation for it. I don't know about c# implementation, but I know delphy code for it, and vb6 code. Check this links, it will help you to make your c# implementation.
Delphi - get what files are opened by an application
https://forum.sysinternals.com/topic14546.html
As far as I know, the standard library still does not have suitable functions for this. There is a popular question about this: https://stackoverflow.com/a/937558/5665527.
Also, if you want to know who opened the file remotely - net file function may be useful (which is accessible via cmd). I believe that there are similar WinAPI functions on MSDN that could be implemented in a similar way.

VBScript with HTML frontend

this is my first thread here and I am trying to be as accurate as possible. Furthermore I am not a native speaker so I am sorry in advance for any spelling or grammar mistakes.
I've just started working on a project to automate the parameterization of Siemens drives with the software Siemens Starter v4.4.
The project description is to write some VB-Scripts to set values in the Starter software and to have an html frontend for the user.
The problem is, that my company is always using the most recent Internet Explorer version. But unfortunetly VBS can only interface correctly with IE10 or lower.
Therefore I am wondering if it is possible to have a standalone IE10 portable installation next to the required scripts. The problem as far as I know is to access the objects used for the communication of IE and VBS.
Of course I am open for any other method of creating a simple frontend.
I am not a professional developer and have to teach myself. Despite of that I have some programming experience in C, C++, C# and VBS. Therefore I would appreciate a solution where I can find some online help and documentation for.
Thank you in advance.

How to write Firefox plugin with C# and mono?

this question was asked many times:
2004
http://lists.ximian.com/pipermail/mono-devel-list/2004-October/008213.html
2005
http://web.archiveorange.com/archive/v/0SAXwxPyVBCC31hdB3Mm
http://codeverge.com/netscape.mozilla.jseng/xpcom-and-mono-or-just-c/1577232
2007
http://forum.mozilla-russia.org/viewtopic.php?id=17385
http://rsdn.ru/forum/cpp.applied/2514021.flat
2009
http://ru-csharp.livejournal.com/153546.html
2010
https://forums.mozilla.org/viewtopic.php?f=13&t=1445
https://www.linux.org.ru/forum/development/5069566
and always without answers...
Language bindings page doesn't contain C# or mono (but does so for Java and Python):
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings
There is some code - http://off.net/~shaver/mono/
But i don't see C++ part of it (and I think it is necessary as a "XPCOM Component Loader")
There is also something what is called MonoConnect
https://bugzilla.mozilla.org/show_bug.cgi?id=296672
But i didn't found it's docs in google.
I know that it is possible to implement plugin as CLR host as written here:
http://www.mono-project.com/docs/advanced/embedding/
but i don't want to reinvent the wheel,
that is why I am asking where to find an existing implementation of "Component Loader".
Here is your answer: http://lists.ximian.com/pipermail/mono-devel-list/2004-October/008215.html, first answer in your first link to a mailing list.
Here is a github link to the issue in MonoConnect. I just took some strings in the diff which is in the tracker(the link you provided) and searched in google for it, got a github repo.
As well as this: http://people.mozilla.org/~chofmann/l10n/tree/mozilla/extensions/mono/
As far as written code, this is the most you will probably get.

how to call Photoshop cs5 function from C#?

Making a winform in C#,there are several buttons, Click the button to achieve the photoshop cs5 functions through the ps'dll ? All I know is c# call cs4's functions through "interop.photoshop.dll", but I don't know which dll I should call in cs5. I can't find any info about c# in PS cs5 SDK,it't all about andriod,ios... Can anybody help me ???
You can download the Photoshop CS5 SDK with all documentation (including all on the COM interfaces) at http://www.adobe.com/devnet/photoshop/sdk/eula.html
It comes with samples/source code too...
I had such problem 2 days ago
First, look here:
http://www.pcpix.com/Photoshop/
You must download script listener plugin for photoshop, then convert JS script to c# language.
I test it with Photoshop CS6. all works fine. You can do almost all functions and parametrize them.
JS code is not small, so to convert it manualy you need to spend a lot of time.
I created an software that do it within one click.
You can download it from https://sourceforge.net/projects/js2cconverterphotoshopscript/
Hope it will be useful

C# and .NET FOLDERID

How do I use Windows Vista's FOLDERID API in order to retrieve filepaths for "known folders" such as System or Windows? I've seen some APIs but I don't know how to import them properly. And yes, I know this is a very newbie question, but I spent a half hour googling and couldn't find the answer; I'd also appreciate a way to find an answer to questions like this in the future. :-)
Edit 1: So apparently the relevant functions are included inside of a DLL, and not any "proper" C# class/library that can be imported. The pinvoke syntax might work, although I was hoping for an OOP interface, not a function. Will test.
Edit 2: So I am very new to C# and don't know what a managed interface is. System.Environment.GetFolderPath is perfect.
Take a look at PInvoke SHGetKnownFolderPath
There's also a managed API:
Environment.GetFolderPath
but it doesn't contain all the folders.
This morning I read about Vista Bridge. It may help.
"Many of you don’t know about the Vista Bridge sample library, what can it do or even where you can find it. Let’s start with the basics; i.e. definitions. Vista Bridge is a sample library that contains managed wrappers for a number of Windows Vista APIs that are not exposed in the .NET Framework. The wrappers include common Open and Save file dialogs and new Vista advanced task dialogs. So, where to download it? There are three ways to obtain the sample library. It’s included in both the Windows SDK for Windows Vista Update and in the newer Window SDK for Windows Server 2008 and .Net Framework 3.5; or a third option is to download the Vista Bridge sample library which is part of the Windows SDK Cross Technology samples. I recommend downloading the Windows SDK for Windows Server 2008 and .Net Framework 3.5, but if you don’t have the network bandwidth or just want the samples, then the last option should be the most suitable.
..."

Categories