Problem with DasHard

User based support for the SLESA-U6 - SL512BC - developer kit

Moderators: simonB, nick, dylan, florent, Ben

Post Reply
guillaumesmo
Posts: 2
Joined: Sun Dec 26, 2010 1:57 pm

Problem with DasHard

Post by guillaumesmo » Sun Dec 26, 2010 2:15 pm

Hi,

I'm trying to create a Visual C++ 2010 (Express) application but I'm stuck with a bug.

I used the "slmini2006" project in the developer kit to learn about the DLL implementation and SIUDI commands. Unfortunately, I can't modify the slmini project because my Visual C++ version doesn't support MFC applications.

So here's the problem :

I use the same commands as slmini for loading the DLL :

Code: Select all

				int dll_open=0, ok=0;
				dll_open = HardDllOpen();
				if (dll_open>0)
				{
					// New command
					HardDllCommand(DHC_INIT,0,NULL);
					ref_open = HardDllCommand(DHC_OPEN,0,NULL);


				}
				else
					MessageBox::Show("'DasHard2006.dll' not found !", "DLL", MessageBoxButtons::OK);
I don't get the messagebox so I suppose it's loaded, but then, ref_open returns "DHE_ERROR_COMMAND".

What is really weird is that the slmini.exe works great. My siudi 6A is version 115.


Thanks in advance.

Post Reply