Author Topic: Extern Erros  (Read 3248 times)

0 Members and 2 Guests are viewing this topic.

Peter

  • Guest
Extern Erros
« on: March 11, 2013, 04:06:19 AM »
Deleted
« Last Edit: May 07, 2015, 11:09:17 AM by Peter »

Charles Pegge

  • Guest
Re: Extern Erros
« Reply #1 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

Charles Pegge

  • Guest
Re: Extern Erros
« Reply #2 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.

Charles Pegge

  • Guest
Re: Extern Erros
« Reply #3 on: March 12, 2013, 12:32:46 AM »
That means it cant locate ShowFPS

Latest Oxygen attached:

X
« Last Edit: March 12, 2013, 12:39:38 AM by Charles Pegge »

Aurel

  • Guest
Re: Extern Erros
« Reply #4 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....

Aurel

  • Guest
Re: Extern Erros
« Reply #5 on: March 12, 2013, 08:42:01 AM »
Charles...
Do you can improve errors messages?

Charles Pegge

  • Guest
Re: Extern Erros
« Reply #6 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.