Re: cffi.e

new topic     » goto parent     » topic index » view thread      » older message » newer message
AlexXX said...

Again I made a mistake somewhere:

First, it is looking in the wrong lib:

--constant LoadImageA=define_cffi_func(SHELL32,tLoadImageA)  
constant USER32 = open_dll("user32")  
constant LoadImageA=define_cffi_func(USER32,tLoadImageA)  

Second, it needs something like this (alternatively a plain define_struct would do), before struct t_N:

struct t_GUID """ 

typedef struct _GUID { 
  DWORD Data1; 
  WORD  Data2; 
  WORD  Data3; 
  BYTE  Data4[8]; 
} GUID; 
""" 

end struct 
AlexXX said...

It is not clear in which line of my program the error is.

Fair point. I've improved the error handling in a few places for the next release.
(I might be able to put a source patch together but it's a bit all over the place.)
For now, you'll need to look a bit further down in the ex.err for whatever called cffi.e/structs.e/etc - but that won't really help for compile-time errors.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu