Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using C++ DLLs

Status
Not open for further replies.

arlequin

Programmer
Sep 21, 1999
232
UY
I must manage dynamic memory structures like stacks and queues and VB doesn't handle with them...<br>
So I thaught generating a DLL with MS-Visual C++ but I don't know how to tell VB to use it.<br>
<br>
Thanx
 
You could try and use the same technique as is used in declaring Win32 API calls. I think I read somewhere that this would work - or you could try and use the references option, and see if you can see your C dll that way. <br>
Dan Applemans book on the Win32 API gives clear instructions on what has to be done for the declerations and data types to be used with VB if passing data to a C DLL.
 
Arlequin,<br>
<br>
Probably easier to fake it &lt;smile&gt;<br>
<br>
Bear in mind that you can change the size of an array (an array of anything - a structure even) whilst a program is running and without losing data. (using the ReDim Preserve command)<br>
<br>
DLL's are all very well if you're a clever sort (and maybe you are) but they're a pain in the b*&t to debug and get working properly. If you can do it in ordinary VB - that's the way to go.<br>
<br>
You could, for instance, create a VB class that managed queue like structures.<br>
<br>
Regards<br>
<br>
Mike<br>
<br>
<br>
<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href=http:// Cargill's Corporate Web Site</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top