[DONE] Error: Unknown Windows API function

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

[DONE] Error: Unknown Windows API function

Post by Mistrel »

Unknown Windows API function:
_SHGetFolderPathA@20

Code: Select all

ProcedureDLL TB_Test()
	Path.s=Space(#MAX_PATH)
	SHGetFolderPath_(0,#CSIDL_SYSTEM,0,0,@Path.s)
EndProcedure
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

the title says error, but its a warning.
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I didn't realize it still compiled. Why does this API function have a warning?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Mistrel wrote:I didn't realize it still compiled. Why does this API function have a warning?
Probably because it's not found PureLibraries\Windows\.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

it was the missing "@" in the file "shfolder.lib". I modified the TailBite sources and the next version will not have that annoying warning anymore.
Post Reply