Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > error when usin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4297 of 4370
Post > Topic >>

error when using a typedef struct in a other module

by Gerhard Wolf <quisquiliae@[EMAIL PROTECTED] > Oct 7, 2008 at 10:45 AM

Hi,

i have defined a:
------main.h----------------
typdef struct {
  int a,b...
  double c,d...
} mystruct;
....
....
class TForm1: public TForm
....
----------------------------

in a other module i have

-------module.cpp----------
#include "module.h"
void myfunc(mystruct test) {
....
}

-------module.h------------
#include "main.h"
....
void myfunc(mystruct test);     // <- Line 200

on compile i get the error:
[C++ error] module.h(200): E2293 ) expected.
I do not understand this error! What am i doing wrong here?
 




 2 Posts in Topic:
error when using a typedef struct in a other module
Gerhard Wolf <quisquil  2008-10-07 10:45:16 
Re: error when using a typedef struct in a other module
Richard Heathfield <rj  2008-10-07 09:53:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 10:26:56 CST 2008.