?
Solved

Function pointer

Posted on 1997-09-07
2
Medium Priority
?
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
rbr earned 100 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

762 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