PureBasic 4.51 RC2 released

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Re: PureBasic 4.51 RC2 released

Post by Azul »

possibly dumb question but: does the DLL bug (at the news) affect purebasic or programs created with it?

Code: Select all

; Hello, World!
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 4.51 RC2 released

Post by Fred »

Which bug ?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: PureBasic 4.51 RC2 released

Post by Trond »

If you can't program, then yes. It's really not a bug with dll handling, it's a bug with understanding the difference between current directory and application directory.

If you use Import .. EndImport, you're not affected (after Windows XP SP1 and onwards). If you use LoadLibrary() without the full path, the current directory will be searched for the dll. If this is not what you want, then DON'T DO IT. If you know which dll you want, pass the full path (probably GetPathPart(ProgramFilename())+dllname).
User avatar
Azul
Enthusiast
Enthusiast
Posts: 109
Joined: Fri Dec 29, 2006 9:50 pm
Location: Finland

Re: PureBasic 4.51 RC2 released

Post by Azul »

Fred wrote:Which bug ?
There has been quite many programs affected by bug that has DLL-related security problem. I'm not sure exactly what but I guess this is related http://news.cnet.com/8301-27080_3-20014625-245.html and as Trond mentions, it's not a problem if you know what you are doing.
Trond wrote:If you can't program, then yes. It's really not a bug with dll handling, it's a bug with understanding the difference between current directory and application directory.
ok, thanks from the info.

Code: Select all

; Hello, World!
Fred
Administrator
Administrator
Posts: 18220
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 4.51 RC2 released

Post by Fred »

Sounds more like a Windows issue to me.
User avatar
OldSkoolGamer
Enthusiast
Enthusiast
Posts: 150
Joined: Mon Dec 15, 2008 11:15 pm
Location: Nashville, TN
Contact:

Re: PureBasic 4.51 RC2 released

Post by OldSkoolGamer »

Fred wrote:Sounds more like a Windows issue to me.
GASP!!! A Windows issue-----------------------NEVER :lol:
Post Reply