473,378 Members | 1,236 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

pointer to pointer to void (void**) - iTunes VisualSDK

Hey guys,

I'm sorry if this question is rather second grade of programming, but my C programming days are long ago :-(
I'm trying to write a visual plugin for iTunes using their VisualSDK, which contains a function to retrieve the AlbumArt (Cover) of the currently played song.
Now the returns the cover as a "Handle", which in the SDK's case is a "void **" pointer. I have no clue, whether this actually points to a byte array bitmap and the API information is more than shallow. Hence, my question:

How can I proceed with the "void **" pointer? Is there a way to gain the size of what it is pointing at so that I can write it as binary data to a file?

Regards,

Sebastian
Sep 3 '08 #1
2 1632
weaknessforcats
9,208 Expert Mod 8TB
You can tell from a pointer the size if the thing it points at becuse the pointer has a type, like an int* or a double*.

In your case you have a void**. That's just the address of a another void*. And that void* has the address of the thing.

Because of the "void-ness", you don't have the type so you are now blind.

I suspect you will need to have this information kept somewhere when you create the thing pointed at so you can get at that information here when you need it.
Sep 4 '08 #2
Banfa
9,065 Expert Mod 8TB
Alternatively having got the handle look for further API functions to call that take a handle and return useful information.
Sep 5 '08 #3

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

Similar topics

0
by: hardikmehta | last post by:
Hello All, :) I m using xml file for itunes. When i gives .php url from itunes then control back to my php page and creates .xml file and return to itunes. Itunes habdle some types of...
0
by: bar10dr | last post by:
What I want to do is get song info from iTunes if the application is running, using the ituneslib API (from Apple). One of the problem is that to check if iTunes is playing any songs I need to...
3
by: Denrael | last post by:
I've been playing with the iTunes sdk on windows, and have come across a strange problem. With the following code: import win32com.client iTunes =...
16
by: william tanksley | last post by:
I'm trying to convert the URLs contained in iTunes' XML file into a form comparable with the filenames returned by iTunes' COM interface. I'm writing a podcast sorter in Python; I'm using iTunes...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.