Host Engineering Forum
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
February 04, 2012, 07:54:27 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Issues with .net 2003 example and DLLs  (Read 1227 times)
stevejfrank
Newbie
*
Posts: 2


« on: March 30, 2010, 02:53:07 pm »

I have recently downloaded the .net 2003 example and can successfully launch (debug) it in VS 2008. Per the code it shows the location of hei32_3.DLL in the c:\ root directory. I have placed this file and hei_pas.dll there. When I run and then click on init network I get the following error from line 724 in etherccm.vb "Rc = HEIOpen(HEIAPIVersion)"

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

I am using the dlls from the LIB directory of the SDK.

I tried to manually register the two dlls assuming that might be the cause, but no luck.

regsvr32 c:\hei32_3.dll
regsvr32 c:\hei_pas.dll

I get the following error:

the Module "c:\hei_pas.dll" was loaded but the entry-po0int dllregisterserver was not found.

Am I supposed to register it manually or just include it in the root?

Any help or direction would be greatly appreciated.

Steve
Logged
stevejfrank
Newbie
*
Posts: 2


« Reply #1 on: March 30, 2010, 03:23:33 pm »

The project was compiling the solution as target cpu "Any CPU". Upon changing the Target CPU type to x86 the solution performed as expected.

You may want to repackage the .net 2003 solution and change the Target CPU to x86 since your DLLs are such.

Issue solved.
Logged
MikeS
Host Moderator
*****
Posts: 170



WWW
« Reply #2 on: March 31, 2010, 08:28:04 am »

the .NET version of the Ethernet SDK source code was provided to us by a customer. Thanks for the update on the target CPU, I'll add that note to our web.
Logged

Good design costs a lot. Bad design costs even more.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM