Page 1 of 1

Problem with dasHard2006.dll

Posted: Tue May 25, 2010 12:55 pm
by jflavoie
Hi,

I am having problems using dasHard2006.dll with a SIUDI 8C unit I just purchased. I am only trying to make the slmini sample application work. There is no crash, but the DHC_OPEN call always returns -1. The DHC_INIT command returns correctly (so the DLL is found). I am on WinXP SP3, I installed the latest drivers available on the website and everything seemed to install fine. Is there anything I am missing ?

Thanks for any help !

Jeff

Re: Problem with dasHard2006.dll

Posted: Fri Jan 21, 2011 8:22 pm
by guillaumesmo
Update : DHC_INIT is causing an error, not DHC_OPEN. DHC_INIT returns -1 everytime.

Can someone help me please ? (Changing the dll filename makes the app crash so the app finds the dll correctly. Idem for "DasUsbCommand") Here is my code (output: -1, function returns 1) :

Code: Select all

HINSTANCE g_dasusbdll;
typedef int (*DASHARDCOMMAND)(int, int, unsigned char*);
DASHARDCOMMAND  DasUsbCommand;
int ref_open;

int HardDllOpen()
{
	
	g_dasusbdll = LoadLibrary(L"DasHard2006.dll");

	if (g_dasusbdll){
		DasUsbCommand  = (DASHARDCOMMAND)GetProcAddress(g_dasusbdll, "DasUsbCommand");
	}

	if (DasUsbCommand){
		Debug::WriteLine(DasUsbCommand(DHC_INIT,0,NULL));
		return 1;
	}

	return 0;
}
Traduction : La commande DHC_INIT me retourne toujours -1. Que puis-je faire ?

Re: Problem with dasHard2006.dll

Posted: Thu Oct 23, 2014 6:53 pm
by marcoardi
Hi to all,
I have a SIUDI 8c.
I wrote an application in VB6 for a previous SIUDI 6C that worked in some manner
Driver upgraded
Firmware version 1.08
Using "tools" I'm able to control a sample led light
But:
Using example VB6 project, led light is not controlled enad blinks
I encountered the same error in addition. (-1 in DHC_OUTOFF)
Has anyone some VB6 or C++ code sample of how to correctly use a SIUDI 8C?

Help would be VERY appreciated

Re: Problem with dasHard2006.dll

Posted: Thu Oct 30, 2014 11:14 am
by simonB
If you would like to send me an e-mail I'll forward this to the developer responsible for the developer kit

Re: Problem with dasHard2006.dll

Posted: Wed Dec 16, 2015 10:30 pm
by rcourtney319
I know this post is over a year aged. I was able to get the dll to work but need guidance with the standalone
memory mode.

Were you successful with your projects?