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

ArrayList in a Managed header file

Hi I have defined a generic c++ class in a .net project c++

In the definition (the header file) i declare a define a variable for
it

#pragma once

#include "categories.h"

#using <mscorlib.dll>
using namespace System;
using namespace System::Collections;

__gc class BooksOfEntry
{
public:
String* BookName;
Categories* categories1;
ArrayList* CustomerOrders;

BooksOfEntry(String* name);
~BooksOfEntry(void);
};
I am getting problem compiling this ArrayList definition is causin
compiler errors.

May 24 '06 #1
1 1576

<Fe*****@gmail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Hi I have defined a generic c++ class in a .net project c++

In the definition (the header file) i declare a define a variable for
it

#pragma once

#include "categories.h"

#using <mscorlib.dll>
using namespace System;
using namespace System::Collections;

__gc class BooksOfEntry
{
public:
String* BookName;
Categories* categories1;
ArrayList* CustomerOrders;
objects with __gc class types need __gc*

BooksOfEntry(String* name);
~BooksOfEntry(void);
};
I am getting problem compiling this ArrayList definition is causin
compiler errors.

May 30 '06 #2

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

Similar topics

8
by: Drew | last post by:
I have recently converted all of my native C++ dll's to be compiled with the /CLR switch. After doing this, I notcied a very strange and frustrating issue. One of my managed dll's calls another...
15
by: TT (Tom Tempelaere) | last post by:
Hey everyone, I noticed that unlike C#, managed C++ still uses headers and implementation files. My question is, is there any consensus of where to put the implementation of the managed class? ...
8
by: Ignazio | last post by:
When creating forms with Visual C++ 2005, all the code for building the interface (the InitializeComponent method) and event handlers are set in the ..H file, as they were inline methods. So I ask,...
12
by: Sueffel | last post by:
I'm having problems with this one: I have a tructure that is being added to an arraylist, so I may have 15 of these structure objects in an arraylist. now, what I want to do is this: dim TT as...
6
by: GrandpaB | last post by:
While writing this plea for help, I think I solved my dilemma, but I don't know why the problem solving statement is necessary. The inspiration for the statement came from an undocumented VB...
31
by: Extremest | last post by:
I have a loop that is set to run as long as the arraylist is > 0. at the beginning of this loop I grab the first object and then remove it. I then go into another loop that checks to see if there...
9
by: Amit Dedhia | last post by:
Hi All I have a VC++ 2005 MFC application with all classes defined as unmanaged classes. I want to write my application data in xml format. Since ADO.NET has buit in functions available for...
12
by: Cmtk Software | last post by:
I'm trying to define an enum which will be used from unmanaged c++, C++/CLI managed c++ and from C#. I defined the following enum in a VS dll project set to be compiled with the /clr switch: ...
5
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C#...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.