Quick Syntax Issue

Posted on 2003-12-10
Last Modified: 2013-12-06
I have the following code:

#include "globals.h"
#include "ftApp.h"

#include <GL/glut.h>

ftApp::ftApp(int argc, char **argv)
      // Standard GLUT init
      glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);

      // GLUT callback functions


void ftApp::SetupRenderContext(void)

void ftApp::Start(void)

void ftApp::DrawScene(void)


On compile, following error occurs:

...\ftApp.cpp(16): error C2664: 'glutDisplayFunc' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void)'


I think it is obvious what I am trying to do.  How do I do it?


Question by:newstandard
  • 2
LVL 24

Expert Comment

ID: 9918099
LVL 24

Accepted Solution

shivsa earned 250 total points
ID: 9918101

Author Comment

ID: 9918247
wow, that is awkward

but, it works :-)


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

18 Experts available now in Live!

Get 1:1 Help Now