Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB Retard needs assistance
Message
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
VB Retard needs assistance
Miscellaneous
Thread ID:
01108126
Message ID:
01108126
Views:
49
Hi all,

I'm not real polished in VB and need some assistance. Trying to find this in a textbook comes up fruitless, perhaps it is too basic (no pun intended).

I have Visual Studio 6 and want to create a VB DLL that can be callable from a non-Microsoft development language. It doesn't have a "createobject" function in the language, and this is where I am getting lost. It can define an external DLL and then call functions within it, passing it parameters (no return value is needed).

Now, I have created a DLL before that consisted of a class module with one function and some properties and got it to work with Visual FoxPro, butVFP has a createobject function to define the class.

I am not sure how to write the functions if the calling program cannot define functions within the dll. Create just a plain module in VB?

Here is an example of the syntax of how the DLL will be used:

external: "c:\MyDLLs\MyDLLFile.dll", double, "MYFUNCTIONNAME", int, int;

* The double defines the return value. the two int values are parameters. Now calling a function within the dll will look like:

Retval = MYFUNCTIONNAME(int_1, int_2);


The DLL will have 4 functions that will receive 3 parameters. Here are the things I would like to know:

1) How to structure the project and what kind of object to use?
2) How to define the functions to receive the parameters and return a value?

If there are any examples that I can look at, that picture would be worth more than 1000 words!

Thanks in advance,

John Miller
John L. Miller
Logikos, Inc.
"Solutions With Software"
Tel: 979-826-6034
Fax: 979-826-8845
Next
Reply
Map
View

Click here to load this message in the networking platform