What happened to _lclose_()?

Windows specific forum
Alberto
User
User
Posts: 25
Joined: Mon May 19, 2003 4:59 pm

What happened to _lclose_()?

Post by Alberto »

I dont know if this is a bug but try to execute the code of this topic
viewtopic.php?t=5270&highlight=lclose

The code works good on PureBasic 3.70 but on the next releases till 3.90 it doesn't function. The PureBasic tells me:

_lclose_() is not a function, an array or a linked list

The problem is that I've made several programs using the _lclose_() API function and the new version of PureBasic desn't support this function.

What have I to do?

Is it a bug?

Alberto :cry:
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

@Alberto:
Windows API Platform SDK says: _lclose is a Obsolete Windows Programming Element.

I'ts replaced by CloseHandle_
Hope this helps.
Alberto
User
User
Posts: 25
Joined: Mon May 19, 2003 4:59 pm

Eureka!!

Post by Alberto »

CloseHandle works well.

Many thanks

Alberto :D
Post Reply