Solved

Function pointer

Posted on 1997-09-07
2
193 Views
Last Modified: 2013-12-26
In order to invoke an asynchronous sound routine, I have to pass a function pointer to that subroutine. What is the proper syntax to set the value of that pointer?
Example:

void   myRoutine(void);
....
ProcPtr    mypointer;
....
mypointer = ???????
0
Comment
Question by:C_novice
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 50 total points
ID: 1291679
mypointer = myRoutine;
should work.

0
 

Author Comment

by:C_novice
ID: 1291680
It didn't, but I was using a pointer to a Completion Procedure:

NewSndCallBackProc(myRoutinename)

did work.

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Complete beginner needs help making a cron job 9 125
WinWaitActive parameters 12 31
NotAlone Challenge 20 84
sumHeights  challenge 17 73
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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