Hi,
have you had a look at the Excel wrapper? I am not an expert in VB, but isn’t VB.net closely related to the code used to call a DLL from Excel? Download the Windows installer and look at the Excel plugin to get an idea of what I am talking about: http://www.coolprop.org/coolprop/wrappers/Excel/index.html#automated-installation
Jorrit
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
coolprop-user...@googlegroups.com.
To post to this group, send email to
coolpro...@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.
Hi,
have you had a look at the Excel wrapper? I am not an expert in VB, but isn’t VB.net closely related to the code used to call a DLL from Excel? Download the Windows installer and look at the Excel plugin to get an idea of what I am talking about: http://www.coolprop.org/coolprop/wrappers/Excel/index.html#automated-installation
Jorrit
From: coolprop-users@googlegroups.com [mailto:coolprop-users@googlegroups.com] On Behalf Of Spiz103
Sent: Monday, December 18, 2017 6:11 PM
To: coolprop-users
Subject: [coolprop-users] Attempting to call Coolprop from VB.net (Visual Studio 2017)
Well,
I've been trying to use Coolprop to do some thermodynamic calculations but I can't, no matter what, get a project to work that allows me to call it from inside VB.net using VS 2017.
I've found some files that purported to be working examples for earlier versions of Visual Studio but they unfortunately throw horrible exception errors in 2017.
Does anyone have any idea how to get it working? I've tried all the instructions on the sourceforge website but am getting basically nowhere?
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
I would say the things to do would be:1) Rewind to the version of visual basic that we claim works. Make sure it works for you. If not figure out why not.2) Take the working project from old VS and import into VS 2017. Make sure that works.3) Start over with VS 2017.At each step, error logs are indispensable. This statement is useless from a debugging standpoint: "throw horrible exception errors" :)Kind Regards,Ian
On Mon, Dec 18, 2017 at 3:24 PM, Jorrit Wronski <jo...@ipu.dk> wrote:
Hi,
have you had a look at the Excel wrapper? I am not an expert in VB, but isn’t VB.net closely related to the code used to call a DLL from Excel? Download the Windows installer and look at the Excel plugin to get an idea of what I am talking about: http://www.coolprop.org/coolprop/wrappers/Excel/index.html#automated-installation
Jorrit
From: coolpro...@googlegroups.com [mailto:coolpro...@googlegroups.com] On Behalf Of Spiz103
Sent: Monday, December 18, 2017 6:11 PM
To: coolprop-users
Subject: [coolprop-users] Attempting to call Coolprop from VB.net (Visual Studio 2017)
Well,
I've been trying to use Coolprop to do some thermodynamic calculations but I can't, no matter what, get a project to work that allows me to call it from inside VB.net using VS 2017.
I've found some files that purported to be working examples for earlier versions of Visual Studio but they unfortunately throw horrible exception errors in 2017.
Does anyone have any idea how to get it working? I've tried all the instructions on the sourceforge website but am getting basically nowhere?
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpr...@googlegroups.com.
Visit this group at https://groups.google.com/group/coolprop-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Hmm maybe I need to look into this. Can you please file an issue on this topic on GitHub?
On Dec 19, 2017 7:34 AM, "Spiz103" <edmund....@student.manchester.ac.uk> wrote:
Sorry for yet another message by me,--
Please find attached my code - I started with the original Coolprop VB.net example wrapper and it has mutated into this since it doesn't seem to work on VS2017 at all, not even recognising the C# component properly.
I have managed to work out the entry point problem using the manifest txt file on Sourceforge, however have run into a brick wall that the execution of this code generates a System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.' Error at the point at which the actual call to the DLL is made, the input does not appear to be malformed in any way and it is not throwing a segmentation fault.
So at this point I am entirely stumped.
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
1) Do you want VB.NET or VB?
2) What have you tried so far? It's hard to tell from your question. What does "nothing works" mean? Logs/screenshots please
3) Can you please show your build log of your recompiled solution from scratch?
On Thu, Mar 15, 2018 at 8:49 AM, Alessandro Mandelli <alessandr...@coster.eu> wrote:
Hello, I'm trying to use Coolprop in a vb.net vs2017 solution.
How did you get through the "Unable to find an entry point" dreaded error.
Despite using precompiled dll, or recompiling the solution from scratch, nothing works.
I can't get through the missing entry point.
Il giorno martedì 19 dicembre 2017 14:20:05 UTC+1, Spiz103 ha scritto:Further to my last message:
Unfortunately rolling back to VS2012 is no longer an option as that software is no longer provided by Microsoft except to people with an MSDN subscription,
I have managed to get it to load the x64 DLL, however it now throws the exception error "System.EntryPointNotFoundException: 'Unable to find an entry point named '_Props@32' in DLL 'CoolProp.dll'.'" when it attempts to actually call a command in it.
I am pretty sure I am in the correct architecture as otherwise I get an error "System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)'" - which I understand is associated with calling a 64 bit DLL with a 32 bit call?
--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To post to this group, send email to coolpro...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.
Sede legale/operativa Milano: Via San G.B. De La Salle 4/A 20132 Milano Tel:+39.02.2722121 Fax: +39.02.2593645
Coster Group s.r.l.
Risparmio e Contabilizzazione Energia - Building Automation - Monitoring - Remote Control
Sede operativa Novi Ligure: Via Trattati di Maastricht, 32 15067 Novi Ligure (AL) Tel. +39 0143 329717 Fax +39 0143329707
Sede operativa Roma: Via Stefano Longanesi 14 00146 Roma Tel:+39 065534191 Fax: +39.06.5566517
Stabilimento e Spedizioni: Via Gen. Treboldi, 190/192 - 25048 Edolo (BS)
Indirizzo PEC: coste...@pec.it
Numero REA: MI - 2108989
C. F. e P.I. : 09712950964
Le informazioni contenute in questa e-mail sono ad uso esclusivo del destinatario indicato e coperte dal segreto professionale.
Se non siete il destinatario indicato, vi informiamo che la diffusione o la riproduzione della comunicazione è contraria alle vigenti disposizioni di legge. Se questa comunicazione vi fosse pervenuta per errore, vi preghiamo di volerci avvertire per telefono o telefax o e-mail chiamando i numeri indicati e di distruggere quanto ricevuto.
Module Module1
Private Declare Function PropsSI_private Lib "C:\CoolProp\CoolProp-x64.dll" Alias "PropsSI" (ByVal ReturnValue As String, ByVal Name1 As String, ByVal Value1 As Double, ByVal Name2 As String, ByVal Value2 As Double, ByVal Ref As String) As Double
Private Declare Function Props1SI_private Lib "C:\CoolProp\CoolProp-x64.dll" Alias "Props1SI" (ByVal Ref As String, ByVal ReturnValue As String) As Double
Private Declare Function HAProps_private Lib "C:\CoolProp\CoolProp-x64.dll" Alias "HAProps" (ByVal ReturnValue As String, ByVal Input1Name As String, ByVal Value1 As Double, ByVal Input2Name As String, ByVal Value2 As Double, ByVal Input3name As String, ByVal Value3 As Double) As Double
Public Function PropsSI(ByVal ReturnValue As String, ByVal Name1 As String, ByVal Value1 As Double, ByVal Name2 As String, ByVal Value2 As Double, ByVal Ref As String) As Double
PropsSI = PropsSI_private(ReturnValue, Name1, Value1, Name2, Value2, Ref)
End Function
Public Function Props1SI(ByVal Ref As String, ByVal ReturnValue As String) As Double
Props1SI = Props1SI_private(Ref, ReturnValue)
End Function
Public Function HAProps(ByVal ReturnValue As String, ByVal Input1Name As String, ByVal Value1 As Double, ByVal Input2Name As String, ByVal Value2 As Double, ByVal Input3name As String, ByVal Value3 As Double) As Double
HAProps = HAProps_private(ReturnValue, Input1Name, Value1, Input2Name, Value2, Input3name, Value3)
End Function
Sub Main()
Console.WriteLine(PropsSI("T", "P", 101325, "Q", 0, "Water"))
End Sub
End ModuleSede legale/operativa Milano: Via San G.B. De La Salle 4/A 20132 Milano Tel:+39.02.2722121 Fax: +39.02.2593645
Coster Group s.r.l.
Risparmio e Contabilizzazione Energia - Building Automation - Monitoring - Remote Control
Sede operativa Novi Ligure: Via Trattati di Maastricht, 32 15067 Novi Ligure (AL) Tel. +39 0143 329717 Fax +39 0143329707
Sede operativa Roma: Via Stefano Longanesi 14 00146 Roma Tel:+39 065534191 Fax: +39.06.5566517
Stabilimento e Spedizioni: Via Gen. Treboldi, 190/192 - 25048 Edolo (BS)
Indirizzo PEC: coste...@pec.it
Numero REA: MI - 2108989
C. F. e P.I. : 09712950964
Le informazioni contenute in questa e-mail sono ad uso esclusivo del destinatario indicato e coperte dal segreto professionale.
Se non siete il destinatario indicato, vi informiamo che la diffusione o la riproduzione della comunicazione è contraria alle vigenti disposizioni di legge. Se questa comunicazione vi fosse pervenuta per errore, vi preghiamo di volerci avvertire per telefono o telefax o e-mail chiamando i numeri indicati e di distruggere quanto ricevuto.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-users+unsubscribe@googlegroups.com.
To post to this group, send email to coolprop-users@googlegroups.com.