473,396 Members | 2,115 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,396 software developers and data experts.

Localize Structure Definition dll/app

Hey newsees,

I'm trying to figure out a way to pass a user defined structure to a dll
that I write (in vb6) from my app (also vb6) Then have the dll modify it
and return the modified copy or else just modify it by reference.I
understand you can pass params and return params but where to I define a
structure (hopefully only one place) that both my dll and app can utilize?

Thanks in advance,
-Philyard8133
Jul 17 '05 #1
2 2877
On Sun, 02 Nov 2003 03:06:10 GMT, "Philip" <ph****@afterapriltax.com>
wrote:
Hey newsees,

I'm trying to figure out a way to pass a user defined structure to a dll
that I write (in vb6) from my app (also vb6) Then have the dll modify it
and return the modified copy or else just modify it by reference.I
understand you can pass params and return params but where to I define a
structure (hopefully only one place) that both my dll and app can utilize?


In a .BAS module included in both projects
Jul 17 '05 #2

"Philip" <ph****@afterapriltax.com> wrote in message
news:Cw******************@nwrddc01.gnilink.net...
Hey newsees,

I'm trying to figure out a way to pass a user defined structure to a dll
that I write (in vb6) from my app (also vb6) Then have the dll modify it
and return the modified copy or else just modify it by reference.I
understand you can pass params and return params but where to I define a
structure (hopefully only one place) that both my dll and app can utilize?

Thanks in advance,
-Philyard8133

The official way would be to define a public class in the DLL. Your app can then
use that class as well.
Or just use the approach J French suggested.
Jul 17 '05 #3

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

Similar topics

13
by: Amarendra | last post by:
Folks, This structure padding issue is bothering me now, could not locate a satisfactory answer on clc, so here it goes... I have a structure, given below: typedef struct { int flag; char...
7
by: Randy Yates | last post by:
Hi, I work in an embedded environment in which we often use a mix of C and assembly code. Thus a recurring requirement is to be able to take a C header file with structure definitions as input...
2
by: Madhav | last post by:
Hi all, I was going through a piece of code which had a very interesting format. There were two files: one was a .h file, and the other was a .c file. The .c file had a structure defined in it...
2
by: gk245 | last post by:
I have something like this: #include <stdio.h> #include <ctype.h> #include <strings.h> struct sentence get_sentence (char string) { struct sentence my_sentence {
1
by: pmm | last post by:
hi I am repeating my post here plz excuse i am trying out a UDP packet transfer between a windows machine and a linux I created a structure on both sides (ie on linux and on windows) and I sent...
8
by: SP | last post by:
The following code crashes after I add the two nested FOR loops at the end, I am starting to learn about pointers and would like to understand what I'm doing wrong. I think the problem is the way...
20
by: dspfun | last post by:
I've come a across a program that declares the following data structure. typedef struct node { struct node *next; } node; It looks like a recursive data structure but I'm having trouble...
17
by: Jason Doucette | last post by:
I am converting a C-style unit into a C++ class. I have an implementation function that was defined in the .cpp file (so it was hidden from the interface that exists in the .h file). It uses a...
6
by: carles | last post by:
Hi, Here, sample code where a byte array is used to fill a particular structure: fs = File.OpenRead(path); // FileStream BITMAPFILEHEADER bfh = new BITMAPFILEHEADER(); b = new byte;
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.