News:

  • May 17, 2026, 02:34:17 AM

Login with username, password and session length

Author Topic: Issues with .net 2003 example and DLLs  (Read 58361 times)

stevejfrank

  • Newbie
  • *
  • Posts: 2
Issues with .net 2003 example and DLLs
« 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

stevejfrank

  • Newbie
  • *
  • Posts: 2
Re: Issues with .net 2003 example and DLLs
« 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.

MikeS

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 261
    • Host Engineering, Inc.
Re: Issues with .net 2003 example and DLLs
« 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.
Good design costs a lot. Bad design costs even more.