Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E2303: type name expexted

Status
Not open for further replies.

sakapuce

Programmer
Jun 20, 2003
3
BE
Hi,

I usually use a Linux alternative (like Qt) when i want to program in c++. Today, i decided to try c++ builder 6 enterprise. After installation, i tried to compile many differents examples but all of them give the sames errors and always at an 'USEFORM()' line instruction:

Project.cpp(6): E2303 Type name expected
Project.cpp(6): E2034 Cannot convert 'char *' to 'int'
Project.cpp(6): E2293 ) expected
Project.cpp(8): E2141 Declaration syntax error

I already tried to find the solution by myself but without success.

If you have a solution, please tell me.

Thanks.
 
Post the line of code that is causing the problem. It will help is diagnosis.


James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
The line where the error appears looks like:

USEFORM("FngrMain.cpp", FormMain);

Project.cpp(6): E2303 Type name expected
Project.cpp(6): E2034 Cannot convert 'char *' to 'int'
Project.cpp(6): E2293 ) expected
Project.cpp(8): E2141 Declaration syntax error

and give the followings messages:
[C++ Error] FngrDemo.cpp(5): E2303 Type name expected
[C++ Error] FngrDemo.cpp(5): E2034 Cannot convert 'char *' to 'int'
[C++ Error] FngrDemo.cpp(5): E2293 ) expected
[C++ Error] FngrDemo.cpp(6): E2303 Type name expected
[C++ Error] FngrDemo.cpp(6): E2034 Cannot convert 'char *' to 'int'
[C++ Error] FngrDemo.cpp(8): E2141 Declaration syntax error
 
The line where the error appears looks like:

USEFORM("FngrMain.cpp", FormMain);

and give the followings messages:
[C++ Error] FngrDemo.cpp(5): E2303 Type name expected
[C++ Error] FngrDemo.cpp(5): E2034 Cannot convert 'char *' to 'int'
[C++ Error] FngrDemo.cpp(5): E2293 ) expected
[C++ Error] FngrDemo.cpp(6): E2303 Type name expected
[C++ Error] FngrDemo.cpp(6): E2034 Cannot convert 'char *' to 'int'
[C++ Error] FngrDemo.cpp(8): E2141 Declaration syntax error
 
I do not think USEFORM("FngrMain.cpp", FormMain); will work in Builder6.

try
#include "FngrMain.h"
#pragma link "FormMain"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top