Real Software Forums
http://forums.realsoftware.com/

declare a variable belonging to a dll in RB
http://forums.realsoftware.com/viewtopic.php?f=20&t=41155
Page 1 of 1

Author:  shahiddarbar [ Tue Oct 25, 2011 10:25 am ]
Post subject:  declare a variable belonging to a dll in RB

Hi All,

To declare a method in a .dll file we use

Soft Declare Function Method_in_dll Lib "Blah.dll" (nComPort As integer, IBaudrate As Integer) As Integer

suppose if there is a variable called Blah_Variable in dll file which changes when you call the method,

How can you access it from Realbasic ?

Any help will be a lifesaver....

Author:  MonkeybreadSoftware [ Tue Oct 25, 2011 10:32 am ]
Post subject:  Re: declare a variable belonging to a dll in RB

declares work only with functions.

The DLL needs to have function to give you the new value.

Greetings
Christian

Author:  shahiddarbar [ Tue Oct 25, 2011 10:35 am ]
Post subject:  Re: declare a variable belonging to a dll in RB

Thanks christian, that will save me lot of time.. keep up the great work at monkeybread..

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/