Porting GlobalLock, GlobalUnlock, GlobalSize for MAC OS X

Posted on 2007-08-01
Last Modified: 2013-11-14

would you know how to port GlobalLock, GlobalUnlock, GlobalSize for MAC OS X?

Thank You
Question by:hlienert
    1 Comment
    LVL 22

    Accepted Solution

    globallock and unlock can just be empty stubs, as mac memory doesnt need to be locked that way.  GlobalSize is a bit of a problem, as I don't think you can get the size of a heap block.   You may have to write your own alloc() that stuffs the size into the [-1] word of the allocated block so GlobalSize() can get it.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
    Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
    The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
    The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now