473,387 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

TDateTimePicker : type name expected

62
Hello,
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
  1. void create(TEdit *EnterProductID,
  2.                             TEdit *EnterProductName,
  3.                             TEdit *EnterProductWeight,
  4.                             TEdit *EnterPrice,
  5.                             TDateTimePicker *ExpiryDatePicker, ///1st error in this line!!
  6.                             TEdit *EnterAmountInStock,
  7.                                TEdit *EnterReorderLimit,
  8.                                TEdit *EnterProductCategory,
  9.                                TEdit *EnterInputDate,
  10.                                TEdit *EnterDueDate,
  11.                                TEdit *EnterManufacturer,
  12.                                TEdit *EnterManufacturerAddress);
  13.  
Second error for the function call in the form:
Expand|Select|Wrap|Line Numbers
  1.  
  2.  myProductList.getProduct(i)->create(EnterProductID,
  3.                                             EnterProductName,
  4.                                             EnterProductWeight,
  5.                                             EnterProductPrice,
  6.                                             ExpiryDatePicker,
  7.                                             EnterAmountInStock,
  8.                                             EnterReorderLimit,
  9.                                             EnterProductCategory,
  10.                                             EnterInputDate,
  11.                                             EnterDueDate,
  12.                                             EnterManufacturer,
  13.                                             EnterManufacturerAddress);
  14.  
I have included vcl.h where this function is declared. Am i missing something???
Nov 21 '07 #1
1 2011
weaknessforcats
9,208 Expert Mod 8TB
Post your product.h. I can't see line 58.
Nov 21 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: lawrence | last post by:
I'm trying to read up on the rfc's that govern form inputs. Much of what I'm reading is stuff I didn't know before and some of it is alarming. This one left with me questions: ...
1
by: Andrew Edwards | last post by:
Could someone please tell me what I'm doing wrong? The compiler barks at me whenever I throw (bad_alloc). If I remove this the code compiles just fine. template < class DT, class KF > class...
3
by: Jon | last post by:
I'm learning about datatables. When using the example provided by MS in the ..NET Framework Class Library for DATATABLE (see below) I get an error on line 3 that says "Type expected". Is something...
1
by: finizaini | last post by:
I'm receiving an "Object Expected" Error (Line:309, Char:0). I'm confused as to what is happening.Also, I can't run this code using other browser such as Fire Fox. Thispage only can view using IE....
5
by: lefterist | last post by:
Good afternoon, I 've got the followin code to validate a form, and get the "error:object expected (line 171 char. 1, line 172, char 2)" even if i tried to solve it (parentheses, function syntax...
2
by: jc | last post by:
I'm trying the below and getting OBJECT EXPECTED error in javascript. On my aspx page I have this java script block: <script language="javascript" type="text/javascript"> function...
2
by: tridirk | last post by:
Hi; I am getting a Objceted Expected Error on my forum site. I can't find what is wrong? Line: Char: Error: Object expected Code:0 the site is My SMF Forum
8
by: gladi8r | last post by:
Hi, This probably has an extremely stupid answer, but I'm just beginning to learn PHP in an attempt to have a working registration program for my website. I have made the HTML and PHP the way that...
7
by: Ibys | last post by:
hi, hoping i have posted this in the right section this time :) i am doing my javascript still, and cant figure out why i keep getting an error: object expected message for validateform() im just...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.