473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Accessing a custom dll file

I am having trouble accessing a custom dll file in VB .net for a web page.

I am using the <DLLImport way of pulling in the dll. My code is this:
<DllImport("C:\WINNT\system32\PRDewPointV1.dll", CharSet:=CharSet.Auto)> _
Public Shared Function PRDewPointV1(ByVal CalcType As Double, ByVal
UnitsType As Double, ByVal PRESSURE As Double, ByVal DEWPOINTINPUT As Double,
ByVal C6PLUSMOLWTINPUT As Double, ByVal ZINPUT As Double, ByVal ARRAYOUTPUT
As Double) As Double
End Function

My error comes when I try to access the function:

VarOut = PRDewPointV1(CalcType, UnitsType, PRESSURE, DEWPOINTINPUT,
C6PLUSMOLWTINPUT, _
ZINPUT, ARRAYOUTPUT)

The error is 'System.NullReferenceException' occurred.
Object reference not set to an instance of an object.

Any suggestions would be greatly appreciated.

Thanks,

paul
Nov 19 '05 #1
0 844

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul Phillips | last post by:
Here is what I am trying to do. I have an application that is written in VB 6 and in this application it is accessing a custom dll file that was created using Microsoft Fortran Professional 4.0....
23
by: Lamberti Fabrizio | last post by:
Hi all, I've to access to a network file from an asp pages. I've red a lot of things on old posts and on Microsoft article but I can't still solve my problem. I've got two server inside the...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
4
by: Bruce Parker | last post by:
I have an executable that is launched by a custom action in the Windows Installer. Is there a way to get access to the Session variables (Global Properties)? Also how do I create a return code if...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
0
by: le0 | last post by:
hi guys can you help me with this, this is my first time to published a website to another server and access it using my browser but this runtime error always appears. Server Error in...
10
by: Nemisis | last post by:
Hi everyone, I am trying to create a custom error page, that the user gets shown when a error has occurred within my website. The code works perfectly, apart from when an invalid URL is typed...
2
by: olekribu | last post by:
Hi! I'm struggling with the following scenario: I want my asp.net application to be able to create and write to a specific file on a remote file server from a web server. Both servers have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.