Click here to Skip to main content
15,923,087 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Doing something when I press "Enter" key Pin
codeadair6-Jul-06 14:20
codeadair6-Jul-06 14:20 
QuestionHow can I emulate the mouse? Pin
Klazen11-May-06 14:31
Klazen11-May-06 14:31 
QuestionBeginners help on forms/database Pin
johncassell11-May-06 10:55
johncassell11-May-06 10:55 
AnswerRe: Beginners help on forms/database Pin
prasanna811-May-06 19:52
prasanna811-May-06 19:52 
GeneralRe: Beginners help on forms/database Pin
johncassell16-May-06 6:58
johncassell16-May-06 6:58 
GeneralRe: Beginners help on forms/database Pin
abipeter198325-May-06 3:30
abipeter198325-May-06 3:30 
QuestionHow to send text strings to Excel Worksheet? Pin
Rashar11-May-06 10:40
Rashar11-May-06 10:40 
QuestionNeed Help Accessing Functions in a DLL Pin
rjlohman11-May-06 10:24
rjlohman11-May-06 10:24 
Hi, all:
I've been around VB for a while, but am new to .Net and accessing DLLs. I'm currently working on a project in VB 2005 Express, and am having trouble executing functions contained within a DLL. Part of the problem (I expect) is my inexperience with terminology, as I can't seem to find anything in the help on Google that seems to apply. Here's the scenario:

I have an application that needs to open a CSV file in one format, and write selected fields out to a new file in a new format. There will be many input and output formats (many that I have not yet concieved of) so I thought I would place the reading/writing routines in external files. This way, when a new format comes along, I just have to write a new DLL, and through the configuration files, call that DLL. This way, the core app that handles opening of files, specifying default directories, user interface, etc. does not have to be recompiled each time I come up with a new output format.

I used VB 2005 Express to create a DLL project called iclocalio (thus, iclocalio.dll). Within that file are two functions, GetDataFromLocalFile, which is to be called from the core app, and GetICDataFromString, which is called from the first function. GetDataFromLocalFile returns an array. (BTW, I have already tested the logic by including these functions in my core app - they pull the data as expected, so I have since moved them out to a DLL file where they will hopefully take up permanent residency).

In the core app, I expect to call GetDataFromLocalFile, passing a filename string as an argument, and assigning the result to an array, a la:
arData = GetDataFromLocalFile(ByVal sFileName As String)

The problem is that I have no idea how to tell my app that this DLL exists, or that there is a function inside of it that I can call. Any help on this is appreciated. Even if it's along the lines of 'what you're trying to do is [insert correct terminology here] so see this MS help topic: xxxxx'.

Thanks in advance!

:Rich Lohman
AnswerRe: Need Help Accessing Functions in a DLL Pin
Dave Kreskowiak11-May-06 15:33
mveDave Kreskowiak11-May-06 15:33 
GeneralRe: Need Help Accessing Functions in a DLL Pin
rjlohman12-May-06 5:42
rjlohman12-May-06 5:42 
AnswerRe: Need Help Accessing Functions in a DLL Pin
arcticbrew12-May-06 9:37
arcticbrew12-May-06 9:37 
GeneralRe: Need Help Accessing Functions in a DLL Pin
rjlohman18-May-06 11:42
rjlohman18-May-06 11:42 
GeneralRe: Need Help Accessing Functions in a DLL Pin
arcticbrew18-May-06 12:45
arcticbrew18-May-06 12:45 
GeneralRe: Need Help Accessing Functions in a DLL Pin
rjlohman23-May-06 4:57
rjlohman23-May-06 4:57 
QuestionParent/Child Forms Pin
jaded_angel11-May-06 9:28
jaded_angel11-May-06 9:28 
AnswerRe: Parent/Child Forms Pin
Dave Kreskowiak11-May-06 15:26
mveDave Kreskowiak11-May-06 15:26 
QuestionSSL FTP Pin
eagertolearn11-May-06 9:14
eagertolearn11-May-06 9:14 
QuestionPrinting on preprinted forms from different printers. Pin
nighttimeinar11-May-06 8:44
nighttimeinar11-May-06 8:44 
AnswerRe: Printing on preprinted forms from different printers. Pin
Duncan Edwards Jones12-May-06 8:23
professionalDuncan Edwards Jones12-May-06 8:23 
QuestionDecimal Places in a Double Pin
crtwrght_mrk11-May-06 7:50
crtwrght_mrk11-May-06 7:50 
AnswerRe: Decimal Places in a Double Pin
jwakeman11-May-06 8:55
jwakeman11-May-06 8:55 
GeneralRe: Decimal Places in a Double Pin
crtwrght_mrk11-May-06 9:25
crtwrght_mrk11-May-06 9:25 
QuestionOpen/Close Forms VB.Net Pin
Duane L.11-May-06 6:26
Duane L.11-May-06 6:26 
AnswerRe: Open/Close Forms VB.Net Pin
Jared Parsons11-May-06 10:28
Jared Parsons11-May-06 10:28 
GeneralRe: Open/Close Forms VB.Net Pin
Duane L.11-May-06 10:32
Duane L.11-May-06 10:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.