[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Function pointer

Posted on 1997-09-07
2
Medium Priority
?
210 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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