![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") [...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. |
#3
| |||
| |||
|
|
Am 08.06.2010 00:05, schrieb Dave Wurtz: In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. *I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") *>[...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Maybe the function has a different name. *You may want to use Dependency Walker (<URL:http://www.dependencywalker.com/>) to examine the function the DLL exports. -- * M S * Herfried K. Wagner M V P *<URL:http://dotnet.mvps.org/ * V B * <URL:http://dotnet.mvps.org/dotnet/faqs/ |
#4
| |||
| |||
|
|
On Jun 7, 5:16*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me- h... (AT) gmx (DOT) at> wrote: Am 08.06.2010 00:05, schriebDaveWurtz: In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. *I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") *>[...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Maybe the function has a different name. *You may want to use Dependency Walker (<URL:http://www.dependencywalker.com/>) to examine the function the DLL exports. -- * M S * Herfried K. Wagner M V P *<URL:http://dotnet.mvps.org/ * V B * <URL:http://dotnet.mvps.org/dotnet/faqs/ Thanks for the reply. As suggested, I downloaded the Dependency Walker program and opened the DLL. *In looking at the function I want to call and selecting "Undecorate C++ Functions", this is what it shows: int BuildCompositeFile(char *,char *,char *,char *,char *,char *,int) Do I have the correct signature defined? Thanks.Dave- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") _ Public Shared Function BuildCompositeFile(ByVal szOldFile As String, _ ByVal szNewFile As String, _ ByVal szCompositeFile As String, _ ByVal szOldPrefix As String, _ ByVal szNewPrefix As String, _ ByVal szCompositePrefix As String, _ ByVal bCheckForChangedImages As Integer) As Integer End Function I must be doing something wrong because when I call the function, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. |
#6
| |||
| |||
|
|
On Jun 7, 5:16*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me- h... (AT) gmx (DOT) at> wrote: Am 08.06.2010 00:05, schrieb Dave Wurtz: In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. *I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") *>[...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Maybe the function has a different name. *You may want to use Dependency Walker (<URL:http://www.dependencywalker.com/>) to examine the function the DLL exports. -- * M S * Herfried K. Wagner M V P *<URL:http://dotnet.mvps.org/ * V B * <URL:http://dotnet.mvps.org/dotnet/faqs/ Thanks for the reply. As suggested, I downloaded the Dependency Walker program and opened the DLL. In looking at the function I want to call and selecting "Undecorate C++ Functions", this is what it shows: int BuildCompositeFile(char *,char *,char *,char *,char *,char *,int) Do I have the correct signature defined? Thanks. Dave |
#7
| |||
| |||
|
|
Am 17.06.2010 22:57, schriebDaveWurtz: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") _ * * Public Shared Function BuildCompositeFile(ByVal szOldFile As String, _ ByVal szNewFile As String, _ ByVal szCompositeFile As String, _ ByVal szOldPrefix As String, _ ByVal szNewPrefix As String, _ ByVal szCompositePrefix As String, _ ByVal bCheckForChangedImages As Integer) As Integer * * End Function I must be doing something wrong because when I call the function, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Try it with * Declare Function... with same name and same types. Also try * Declare Ansi Function... -- Armin- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
DaveWurtzformulated the question : On Jun 7, 5:16*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me- h... (AT) gmx (DOT) at> wrote: Am 08.06.2010 00:05, schriebDaveWurtz: In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. *I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") *>[...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Maybe the function has a different name. *You may want to use Dependency Walker (<URL:http://www.dependencywalker.com/>) to examine the function the DLL exports. -- * M S * Herfried K. Wagner M V P *<URL:http://dotnet.mvps.org/ * V B * <URL:http://dotnet.mvps.org/dotnet/faqs/ Thanks for the reply. As suggested, I downloaded the Dependency Walker program and opened the DLL. *In looking at the function I want to call and selecting "Undecorate C++ Functions", this is what it shows: int BuildCompositeFile(char *,char *,char *,char *,char *,char *,int) Do I have the correct signature defined? Thanks. Dave If the dll is exposing a decorated name, then you must alias the vb declare to the decorated name.... -- Tom Shelton- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
On Jun 18, 8:47*am, Tom Shelton <tom_shel... (AT) comcast (DOT) invalid> wrote: DaveWurtzformulated the question : On Jun 7, 5:16*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me- h... (AT) gmx (DOT) at> wrote: Am 08.06.2010 00:05, schriebDaveWurtz: In my VB.NET application, I'm trying to call a function from a 32-bit, non-.NET dll file and I'm having problems. *I believe I have the correct signature for the dll with: System.Runtime.InteropServices.DllImportAttribute( "asdHTMLCompare.dll") *>[...] When I run this, I get the error: An exception of type 'System.EntryPointNotFoundException' occurred in ProductVision.Windows.Forms.dll but was not handled in user code. Additional information: Unable to find an entry point named 'BuildCompositeFile' in DLL 'asdHTMLCompare.dll'. Maybe the function has a different name. *You may want to use Dependency Walker (<URL:http://www.dependencywalker.com/>) to examine the function the DLL exports. -- * M S * Herfried K. Wagner M V P *<URL:http://dotnet.mvps.org/ * V B * <URL:http://dotnet.mvps.org/dotnet/faqs/ Thanks for the reply. As suggested, I downloaded the Dependency Walker program and opened the DLL. *In looking at the function I want to call and selecting "Undecorate C++ Functions", this is what it shows: int BuildCompositeFile(char *,char *,char *,char *,char *,char *,int) Do I have the correct signature defined? Thanks. Dave If the dll is exposing a decorated name, then you must alias the vb declare to the decorated name.... -- Tom Shelton- Hide quoted text - - Show quoted text - I don't understand what you are saying. Can you expand on this and/or show an example? |
#10
| |||
| |||
|
|
If the dll is exposing a decorated name, then you must alias the vb declare to the decorated name.... I don't understand what you are saying. Can you expand on this and/or show an example? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |