Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: IStream and XmlLite Pin
George L. Jackson7-Sep-07 3:10
George L. Jackson7-Sep-07 3:10 
GeneralRe: IStream and XmlLite Pin
Jan S.7-Sep-07 3:51
Jan S.7-Sep-07 3:51 
QuestionOLE Viewer Pin
George_George6-Sep-07 22:40
George_George6-Sep-07 22:40 
QuestionWhere do I write questions in C? Pin
gizmokaka6-Sep-07 22:29
gizmokaka6-Sep-07 22:29 
GeneralRe: Where do I write questions in C? Pin
Maxwell Chen6-Sep-07 22:31
Maxwell Chen6-Sep-07 22:31 
AnswerRe: Where do I write questions in C? Pin
Nishad S6-Sep-07 22:33
Nishad S6-Sep-07 22:33 
AnswerRe: Where do I write questions in C? Pin
Hamid_RT6-Sep-07 23:43
Hamid_RT6-Sep-07 23:43 
GeneralRe: Where do I write questions in C? Pin
gizmokaka6-Sep-07 23:49
gizmokaka6-Sep-07 23:49 
Thanks and sorry for the late reply,

my ques is like that:

i have a struct built for ADT in a source file, and it compiles successfully.
the problem is that when i try to use it in the designated program, It doesn't recognize all of the members of the struct.

here is the relevant code:

this is the struct source file:

typedef struct data
{
	char** colName;
	const struct element_interface** ifc;
	Element* temp_row;
}data;

typedef struct table_rec
{
	char TabInitFlag;

	int iterator;
	data* localData;
	char** last_found_array;
	Matrix tableArray;
	int tableWidth;
	int last_found;
}table_rec;



header file:
typedef struct table_rec *Table;


application try to use:



Result rdb_del_customer(RestaurantDB rdb,const char* name)
{
		Element passName[1]; 
		int *count;
		passName[0] = string_to_element(name);
		count = (int*)malloc(sizeof(int));
		tab_delete_rows(rdb->customers , rdb->customers->localData->colName , passName , 1 , count);
		if(*count == 0)
			return RES_NO_MATCH;
		else
			return RES_NO_ERROR;
}




it doesn't recognize the rdb->customer as a Table, pointer to table_rec Struct

Error message:
error C2037: left of 'localData' specifies undefined struct/union 'table_rec'	c:\documents and settings\dan\my documents\visual studio 2005\projects\mtm_rst\mtm_rst\restaurantdb.c	61	


and of course I want to use code project to ask my questions, it's my guide in
every step on my way to become a programmer excellent.
GeneralRe: Where do I write questions in C? Pin
Cedric Moonen6-Sep-07 23:53
Cedric Moonen6-Sep-07 23:53 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 0:05
gizmokaka7-Sep-07 0:05 
GeneralRe: Where do I write questions in C? Pin
Cedric Moonen7-Sep-07 0:56
Cedric Moonen7-Sep-07 0:56 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 0:58
gizmokaka7-Sep-07 0:58 
GeneralRe: Where do I write questions in C? Pin
Russell'7-Sep-07 0:56
Russell'7-Sep-07 0:56 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 1:09
gizmokaka7-Sep-07 1:09 
GeneralRe: Where do I write questions in C? Pin
jhwurmbach7-Sep-07 1:50
jhwurmbach7-Sep-07 1:50 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 2:26
gizmokaka7-Sep-07 2:26 
GeneralRe: Where do I write questions in C? [modified] Pin
jhwurmbach7-Sep-07 2:36
jhwurmbach7-Sep-07 2:36 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 2:57
gizmokaka7-Sep-07 2:57 
GeneralRe: Where do I write questions in C? Pin
jhwurmbach7-Sep-07 2:58
jhwurmbach7-Sep-07 2:58 
GeneralRe: Where do I write questions in C? Pin
gizmokaka7-Sep-07 6:23
gizmokaka7-Sep-07 6:23 
GeneralRe: Where do I write questions in C? Pin
jhwurmbach7-Sep-07 6:24
jhwurmbach7-Sep-07 6:24 
GeneralRe: Where do I write questions in C? Pin
El Corazon7-Sep-07 3:38
El Corazon7-Sep-07 3:38 
GeneralRe: Where do I write questions in C? Pin
Russell'7-Sep-07 22:58
Russell'7-Sep-07 22:58 
QuestionIntelliSense and Sockets Pin
baerten6-Sep-07 21:52
baerten6-Sep-07 21:52 
AnswerRe: IntelliSense and Sockets Pin
Naveen6-Sep-07 23:20
Naveen6-Sep-07 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.