PC Review


Reply
Thread Tools Rate Thread

Problem with class ListView Visual C++ 2005

 
 
lukgol3
Guest
Posts: n/a
 
      13th Jun 2007
Hello.
I have a problem with class ListView.
I want to create control based on my class 'LisCtrl'


This is how I create my class:
#pragma once

public ref class ListCtrl ublic
System::Windows::Forms::ListView
{
public:
ListCtrl(void);
};

In Form class I defined variable:
LeftList ^ ListCtrl;

Next I want to call this function
LeftList = gcnew ListView();

Compiler gave me this:
error C2440: '=' : cannot convert from
'System::Windows::Forms::ListView ^' to 'ListCtrl ^'
No user-defined-conversion operator available, or
Cast from base to derived requires safe_cast or static_cast
Please help me I am beginner in this environement and i couldn`t find
in the internet and I am sorry for my language but I am from Poland
and I don`t speak well.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in Visual Studio 2005 Listview object. Help! cr113 Microsoft Dot NET 3 16th Nov 2009 02:06 AM
Visual studio 2005 C++ clr class libarary Don Microsoft Dot NET Compact Framework 5 27th Mar 2008 06:43 PM
Problem with Marshal class in Visual Studio 2005 william.thorpe.b@bayer.com Microsoft C# .NET 7 11th Sep 2007 09:48 PM
creating class library in visual web dev 2005 express pb Microsoft Dot NET 3 14th Jun 2007 10:59 PM
string class in Microsoft visual Studio 2005 bor_kev Microsoft VC .NET 1 9th Feb 2005 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:07 AM.