By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,767 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

How to pass 128 bit Long value to cdll function expecting const unsigned char*

P: 1
Expand|Select|Wrap|Line Numbers
  1. from ctypes import*
  2.  
  3. cdll = "Windll"
  4. var = 0x1fffffffffffffffffffffff # I want to send this long variable to character pointer which is in cdll
  5.  
  6.  
  7. cdll.createBuff (var)
  8.  
  9. cdll function
  10. int createBuff (const unsigned char*){
  11.    print charBuff
  12.    return 0;
  13. }
Facing a issue in passing 128 bit Long value to cdll function expecting const unsigned char*.how could i achieve this, I researched on this topic, i found ctypes in python. I didnt get any clue to solve using in ctypes. Please help me sorting out this issue.
Aug 18 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.