Oxygen Basic

Programming => Bugs & Feature Requests => Topic started by: Peter on March 11, 2013, 04:06:19 AM

Title: Extern Erros
Post by: Peter on March 11, 2013, 04:06:19 AM
Deleted
Title: Re: Extern Erros
Post by: Charles Pegge on March 11, 2013, 07:21:58 AM
Hi Peter, I use extern all the time, so I think it is caused by something else.

Does this work in isolation for you?

Code: [Select]
Extern STDCALL Lib "kernel32.dll"
  ! GetModuleHandleA
  ! Sleep                   
  ! GetTickCount         
  ! ReadFile             
  ! WriteFile             
  ! CloseHandle           
  ! CreateFileA           
  ! GetFileSize
End Extern

'#recordof GetModuleHandleA
sleep 1000
print hex GetModuleHandleA
Title: Re: Extern Erros
Post by: Charles Pegge on March 11, 2013, 09:16:00 AM
This bug is quite a smart one. I have not seen anything like it before. You will have to corner it.
Title: Re: Extern Erros
Post by: Charles Pegge on March 12, 2013, 12:32:46 AM
That means it cant locate ShowFPS

Latest Oxygen attached:

X
Title: Re: Extern Erros
Post by: Aurel on March 12, 2013, 06:43:15 AM
Quote
In the declaration I wrote SetFps! I didn't know that we have now upper-case and lower-case differentiation
!

I have found this problem before with some api names....
Title: Re: Extern Erros
Post by: Aurel on March 12, 2013, 08:42:01 AM
Charles...
Do you can improve errors messages?
Title: Re: Extern Erros
Post by: Charles Pegge on March 12, 2013, 12:49:41 PM
DLL declarations are case-sensitive whenever an alias is not provided. This is the only exception to general case insensitivity.

I often think about ways to improve error trapping and reporting. Should be easier once language development is finished.