473,396 Members | 1,853 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,396 software developers and data experts.

C3830 error appeared for no apparent reason?

I have a form defined that when compiling has started giving me an error
message I can't make any sense of...

FormFind.h(24): error C3830: 'System::IntPtr': value types can only inherit
from a __gc interface

The error occurs on the line following the definition of the Form class...

public __gc class FormFind : public System::Windows::Forms::Form
{ // <-- error is marked as here
public: // <-- line 24 is here!
FormFind(SqlConnection* conn) : Conn(conn)
{
InitializeComponent();
}
I haven't modified this code, in fact it's code that is generated by the
editor. I have commented out all the code that wasn't generated by the
editor but still get the error!

Any help much appreciated.

--
Best regards
Mark
Nov 17 '05 #1
4 894
Mark,
I have a form defined that when compiling has started giving me an error
message I can't make any sense of...

FormFind.h(24): error C3830: 'System::IntPtr': value types can only inherit from a __gc interface

The error occurs on the line following the definition of the Form class...

public __gc class FormFind : public System::Windows::Forms::Form
{ // <-- error is marked as here
public: // <-- line 24 is here!
FormFind(SqlConnection* conn) : Conn(conn)
{
InitializeComponent();
}
I haven't modified this code, in fact it's code that is generated by the
editor. I have commented out all the code that wasn't generated by the
editor but still get the error!

Any help much appreciated.


Have you tried cleaning and rebuilding the solution? Does that help?

--
Tomas Restrepo
to****@mvps.org
Nov 17 '05 #2
Yes, thanks Tomas, that fixes it. Do you happen to know why this happens? I
had a similiar problem a while ago and just restarted the project! It seems
to be a common thing while working in Visual Studio.

--
Best regards
Mark Baldwin
Software Developer

CAM Systems (Dursley) Ltd.
Draycott Business Park, Cam, Dursley, Glos. GL11 5DQ
Tel: +44 (0)1453 891000 Fax: +44 (0)1453 890770

Calls to Cam Systems may be recorded for training and quality control
purposes.

"Tomas Restrepo (MVP)" <to****@mvps.org> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Mark,
I have a form defined that when compiling has started giving me an error
message I can't make any sense of...

FormFind.h(24): error C3830: 'System::IntPtr': value types can only

inherit
from a __gc interface

The error occurs on the line following the definition of the Form
class...

public __gc class FormFind : public System::Windows::Forms::Form
{ // <-- error is marked as here
public: // <-- line 24 is here!
FormFind(SqlConnection* conn) : Conn(conn)
{
InitializeComponent();
}
I haven't modified this code, in fact it's code that is generated by the
editor. I have commented out all the code that wasn't generated by the
editor but still get the error!

Any help much appreciated.


Have you tried cleaning and rebuilding the solution? Does that help?

--
Tomas Restrepo
to****@mvps.org

Nov 17 '05 #3
Hi Mark,
Yes, thanks Tomas, that fixes it. Do you happen to know why this happens? I had a similiar problem a while ago and just restarted the project! It seems to be a common thing while working in Visual Studio.


Honestly? no idea... best guess is one of the compiler switches causes the
problems after a number of modifications...

Maybe someone from the VC team knows the answer? Ronald?
--
Tomas Restrepo
to****@mvps.org
Nov 17 '05 #4
Can be anything including a memory or disk corruption error. Mark, if you
can find a consistent repro for this, please enter an issue on the MSDN
feedback center.

Thanks.

Ronald Laeremans
Visual C++ team

"Tomas Restrepo (MVP)" <to****@mvps.org> wrote in message
news:ee**************@tk2msftngp13.phx.gbl...
Hi Mark,
Yes, thanks Tomas, that fixes it. Do you happen to know why this happens?

I
had a similiar problem a while ago and just restarted the project! It

seems
to be a common thing while working in Visual Studio.


Honestly? no idea... best guess is one of the compiler switches causes the
problems after a number of modifications...

Maybe someone from the VC team knows the answer? Ronald?
--
Tomas Restrepo
to****@mvps.org

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: masonj | last post by:
For no apparent reason, my webpage cannot be brought up due to an internal server error. My host tells me an asp 0126 error occurred because an include file is missing. Its there. I've also...
5
by: NanQuan | last post by:
I'm hoping someone can help me solve this error since I am at a total loss here. Usually I don't bother posting on any forums or groups on the internet and prefer to solve stuff myself but this is...
1
by: intl04 | last post by:
I am getting strange print-related error messages when trying to create (not print!) reports. For example, when I click 'new' to create a report then choose 'design view', I get an error message...
0
by: M. Farrenkopf | last post by:
I am in the process of converting a Jet database to ADP using SQL Server 2000. Most of this conversation has been smooth, but now I'm running across a problem that has me stumped. Access 2000 SP3...
1
by: StevePBurgess | last post by:
I am using a script (see below) to check if cookies are enabled on my website. The script seems to work but I get an Object Expected error. The error repor says it is at the line incidated by the...
3
by: cpow | last post by:
The database will be working fine and all of a sudden for no apparent reason when I am trying to add a record to the MSAcesss 2000 database I get an error message that simply says "MSACESS ERROR"...
16
by: John Salerno | last post by:
Just something that crosses my mind every time I delve into "Learning Python" each night. Does anyone see any value in learning Python when you don't need to for school, work, or any other reason?...
20
by: teddysnips | last post by:
Weird. I have taken over responsibility for a legacy application, Access 2k3, split FE/BE. The client has reported a problem and I'm investigating. I didn't write the application. The...
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: 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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.