Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 17, 2019 5:30 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Declares: .dlls other than in System32? <closed>
PostPosted: Thu Oct 20, 2011 8:42 am 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
dprowse wrote:
Ok.

The relative path did not work for me either.

I'll stick with app location then for now.

I'll have to open a new topic on the dlls I guess as even with using extern "C" I get nothing acknowledged by RB using MSVS2005 dll wizard. odd.

Thanks for your help though.

Derek

Try using a FolderItem to grab the DLL via relative path, then use the FolderItem.AbsolutePath property within your Declare. :)

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: Declares: .dlls other than in System32?
PostPosted: Thu Oct 20, 2011 9:29 am 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
The path to a library must be a literal or a constant
It cannot be defined in a variable

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: Declares: .dlls other than in System32?
PostPosted: Thu Oct 20, 2011 10:19 am 
Offline
User avatar

Joined: Fri Nov 10, 2006 4:10 pm
Posts: 1855
Location: Michigan, USA
npalardy wrote:
The path to a library must be a literal or a constant
It cannot be defined in a variable

Oh. Bummer. Well, that would be a nice feature, Norman. ;)

I can see that being an issue for Hard Declares, as they're pre-loaded, but couldn't a Soft Declare theoretically do this?

_________________
Windows 8 x64
Windows XP Pro SP3
Ubuntu 11.04 via Virtual Box
RS Enterprise 2012r1.1

Programming Tutorials & Free Projects: http://www.JasonTheAdams.com
"Christianity has not been tried and found wanting; it has been found difficult and not tried." - G.K. Chesterton


Top
 Profile  
Reply with quote  
 Post subject: Re: Declares: .dlls other than in System32?
PostPosted: Thu Oct 20, 2011 4:43 pm 
Offline
Real Software Engineer

Joined: Sat Dec 24, 2005 8:18 pm
Posts: 7858
Location: Canada, Alberta, Near Red Deer
Jason_Adams wrote:
I can see that being an issue for Hard Declares, as they're pre-loaded, but couldn't a Soft Declare theoretically do this?


In theory anything can be done.
It's more difficult in practice :)

I think there's a feature request like this for soft declares I just dont know the # off the top of my head

IF you make a self contained assembly for Windows then you can put your dll's relative to the exe and use them that way
Basically put them in the "libs" directory and use them
This is actually something that MS recommends

_________________
Norman Palardy (Real Software)


Top
 Profile  
Reply with quote  
 Post subject: Re: Declares: .dlls other than in System32?
PostPosted: Thu Oct 20, 2011 5:01 pm 
Offline

Joined: Mon May 31, 2010 5:35 am
Posts: 2412
Location: Netherlands
rpehlm wrote:
Hi Swort,
Do you have a FreeBasic project to generate a DLL that can be used by RB and that you would be willing to share? Just looking for a simple example to get started. Tried the DLL example in the FreeBasic manual and it does not work in RB2011.


i'm sorry... i don't have any examples. As it was more like a suggestion.

I only know that it can compile to .dll and .dylib (or .so).
But i'm not a declares man..sorry

_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source plugins)
For Dutch User Groups ask me to enter!


Top
 Profile  
Reply with quote  
 Post subject: Re: Declares: .dlls other than in System32?
PostPosted: Thu Oct 20, 2011 5:34 pm 
Offline

Joined: Tue Jun 06, 2006 3:50 pm
Posts: 4
No problem, I'll figure it out eventually :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group