typedef (type alias) and ctypes

Y

Yosifov Pavel

I try to create type aliases, like typedef in C (a specially aliases
to ctypes objects). This case:

works in all cases but not with type qualification:
True

This trivial way for typedef doesn't allow to determine real type and
it's absolutely right :)
False

The problem:
1st way work in complex using of ctypes (interfacing with some DLLs),
but doesn't allow to determine real type!
2st way allows to determine real type, but "access violation reading
0x0000000C'" occurs in some DLL calls!

Question: what "warts", errors are in 2nd way (may be reason of access
violation)?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,296
Messages
2,571,535
Members
48,281
Latest member
DaneLxa72

Latest Threads

Top