I am working on a program in C++ builder 6, which uses TDate and TDateTimePicker.
I am getting the following error
[C++ Error] Product.h(58): E2303 Type name expected
[C++ Error] myGUI.cpp(39): E2316 'create' is not a member of 'Product'
for the following function:
Expand|Select|Wrap|Line Numbers
- void create(TEdit *EnterProductID,
- TEdit *EnterProductName,
- TEdit *EnterProductWeight,
- TEdit *EnterPrice,
- TDateTimePicker *ExpiryDatePicker, ///1st error in this line!!
- TEdit *EnterAmountInStock,
- TEdit *EnterReorderLimit,
- TEdit *EnterProductCategory,
- TEdit *EnterInputDate,
- TEdit *EnterDueDate,
- TEdit *EnterManufacturer,
- TEdit *EnterManufacturerAddress);
Expand|Select|Wrap|Line Numbers
- myProductList.getProduct(i)->create(EnterProductID,
- EnterProductName,
- EnterProductWeight,
- EnterProductPrice,
- ExpiryDatePicker,
- EnterAmountInStock,
- EnterReorderLimit,
- EnterProductCategory,
- EnterInputDate,
- EnterDueDate,
- EnterManufacturer,
- EnterManufacturerAddress);