I do know C but am not an expert. I'm creating an interface to the GLUT
library from the language Eiffel. Here is the signature for a function that
I do not understand:
GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK
*func)(int value), int value);
The part that is giving me a problem is (int value),
Any assistance appreciated.
Regards
Chris Saunders 9 2526
On Jun 21, 12:11 pm, "Chris Saunders" <e...@mountaincable.netwrote:
I do know C but am not an expert. I'm creating an interface to the GLUT
library from the language Eiffel. Here is the signature for a function that
I do not understand:
GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK
*func)(int value), int value);
The part that is giving me a problem is (int value),
Assuming reasonable definitions for the three macros...
The second parameter of glutTimerFunc() is a pointer to a function
which takes a single int as a parameter, and returns nothing. IOW,
the function passed as the second parameter must be fined something
matching "void xx(int a) {}".
In article <90***************************@MOUNTAINCABLE.NET >,
Chris Saunders <ev**@mountaincable.netwrote:
>I do know C but am not an expert. I'm creating an interface to the GLUT library from the language Eiffel. Here is the signature for a function that I do not understand:
GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK *func)(int value), int value);
The part that is giving me a problem is (int value),
Any assistance appreciated.
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links: http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/C_programming_language
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.
Regards
Chris Saunders
Chris Saunders wrote:
There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.".
An early introduction to the group's troll!
--
Ian Collins.
On Jun 21, 4:26 pm, "Chris Saunders" <e...@mountaincable.netwrote:
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.
Regards
Chris Saunders
GLUT is relatively portable, but strictly conforming C programs run on
machines which don't have windowing systems or graphics capabilities,
so technically most of GLUT is off topic here. There is "portable"
and there is "Portable." :) Something like the syntax for a function
declaration is generally always on topic since it isn't specific to a
particular library or anything, and doesn't require assuming anything
about the target platform.
"Chris Saunders" <ev**@mountaincable.netwrites:
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.
KM is a particularly pathetic troll. Please ignore him.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>"Chris Saunders" <ev**@mountaincable.netwrites:
>My thanks to Robert Wellel for your reply, I managed to accomplish what I was attempting as a result. There was another reply from Kenny McCormack stating "Off topic. Not portable. Cant discuss it here. Blah, blah, blah.". I don't know C well enough to comment on the portability of the function signature in my original post but my understanding is that GLUT is supposed to be portable. Anyway, I got a response that filled my need.
KM is a particularly pathetic troll. Please ignore him.
KT is a particularly anal-retentive freak. Please enjoy him.
Chris Saunders wrote:
>
My thanks to Robert Wellel for your reply, I managed to accomplish
what I was attempting as a result. There was another reply from
Kenny McCormack stating "Off topic. Not portable. Cant discuss
it here. Blah, blah, blah.". I don't know C well enough to
comment on the portability of the function signature in my
original post but my understanding is that GLUT is supposed to be
portable. Anyway, I got a response that filled my need.
Always ignore McCormack. He is a troll.
--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net
--
Posted via a free Usenet account from http://www.teranews.com
On Thu, 21 Jun 2007 22:13:44 -0400, CBFalconer <cb********@yahoo.com>
wrote:
> Always ignore McCormack. He is a troll.
Probably this should be added to the FAQ.
--
Al Balmer
Sun City, AZ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Aguilar, James |
last post by:
I thought that functions always had to have different parameters if they had
the same names. However, this section
(http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.8)
of...
|
by: Suzie |
last post by:
Hi guys,
I've been coding in C for several years and I'm getting started with
C++. I was given the following exercise to do and I don't quite
understand it. I was wondering if any of you guys...
|
by: titan0111 |
last post by:
#include<iostream>
#include<iomanip>
#include<cstring>
#include<fstream>
using namespace std;
class snowfall
{
private:
int ft;
|
by: Crimsonwingz |
last post by:
Trying again for understanding and comprehension.
Simple database. Name, birthday, age. Name and birthday are provided.
From a form (yes, I need to do it this way), I would like to click a...
|
by: Marek |
last post by:
Hi
I'm trying to call a native C++ dll using the following code (both C# and
C++ code segments included). When I make the call to the method
(AddTwoDoubles) that has no return value all is fine. ...
| |
by: asdf |
last post by:
They looks so similar. Anybody would like to tell me their differences?
Thanks a lot.
|
by: Noah Roberts |
last post by:
Trying to use boost::function in a C++/CLI program. Here is code:
pragma once
#include <boost/function.hpp>
#include <boost/shared_ptr.hpp>
#include <vector>
using namespace System;
|
by: Joshua Moore |
last post by:
/* Hi, I was hoping someone could help me with this problem. I did my
work and worked my way through the usual compiler messages, but I have
run against some problem I can't identify. The compiler...
|
by: vcquestions |
last post by:
Hi.
Is there way to have a function pointer to a delegate in c++/cli that
would allow me to pass delegates with the same signatures as
parameters to a method?
I'm working with managed code. ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |