View Single Post
  #7   Spotlight this post!  
Unread 23-10-2005, 18:53
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Typedef Struct as function input

OK, so I've solved some problem and caused some more.

Right now my code is...
Code:
void Func(struct typedef_example *variable);

void Func(struct typedef_example *variable)
{
...
}

typedef struct
{
  int x;
} typedef_example;
typedef_example object_example;

object_example.x = 2;

Func(object_example);
I'm getting Error [1146] type mismatch in argument 1 when I try to compile. Any ideas?

EDIT: The error is on Func(object_example);
__________________
http://www.mikesorrenti.com/

Last edited by Mike : 23-10-2005 at 18:55.