Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 C++/CLI: GetType() and typeid

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
jorgito11 Posted - Feb 22 2006 : 7:58:50 PM
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Standard

VA_X.dll file version 10.2.1440.0 built 2006.01.17

Visual C++/CLI

Visual Assist X does not seem to recognize "GetType()" and "typeid"

public ref struct Record
{
String ^ name;
int age;
};

...
Type ^ type1 = Record::typeid; // red underline (no intellisense)

Record ^ rec = gcnew Record;
Type ^ type2 = rec->GetType(); // red underline
...


10   L A T E S T    R E P L I E S    (Newest First)
jorgito11 Posted - Feb 26 2006 : 5:58:39 PM
Generally, C# is a cleaner looking language than C++/cLI. However, C++/CLI appears more C++ like than the old 1.1 Managed C++. Anyway, C++/CLI is not for everyone. There is much more learning resources available for C# and VB than C++/CLI. Since I have used C++ for years, C++/CLI seems quite natural to me.
feline Posted - Feb 26 2006 : 09:40:47 AM
quote:
Originally posted by jorgito11

It appears "static" methods or properties on types get the red underline:

__int64::MinValue



i am seeing the same thing.

case=1007


as for the whole question of managed C++, i do not know enough about the language to have an informed opinion. however what i have seen seems rather "complicated", since mixing garbage collected memory allocation with normal memory allocation, plus the new types, all seems like quite a lot to juggle. certainly it tends to result in code snippets that look very strange.

then again, this could simply be because i am not familiar with it *shrug*
jorgito11 Posted - Feb 25 2006 : 11:38:34 AM
Native C++ is great, and I have written a lot of code using ATL, STL, WTL, MFC, Boost library and Win32. C++/CLI (or Managed C++) is just another nice tool that integrates legacy code with Managed code without a lot of effort. I needed to access an entity-relation database via the web and C++/CLI cut development time. I still need to know C# to create ASP.NET applications; however,the helper assemblies were created in C++/CLI.
jpizzi Posted - Feb 25 2006 : 01:40:48 AM
quote:
I have a lot of native C code to work with! C++/CLI is a better tool to work with this code.
Managed C++ is better to work in than native C++?

Please, do tell how that is. Maybe I can learn something about managed C++.
jorgito11 Posted - Feb 24 2006 : 8:55:00 PM
It appears "static" methods or properties on types get the red underline:

__int64::MinValue
jorgito11 Posted - Feb 24 2006 : 6:41:55 PM
Come on, now! Let's not get started!

I have a lot of native C code to work with! C++/CLI is a better tool to work with this code.
jpizzi Posted - Feb 24 2006 : 03:07:29 AM
quote:
jpizzi this is managed C++ syntax.
Yet another reason to stay away from managed C++
jorgito11 Posted - Feb 23 2006 : 8:32:00 PM
You are right! It does not show up when VAX is disabled. However, it does turn blue.
feline Posted - Feb 23 2006 : 3:30:46 PM
jpizzi this is managed C++ syntax. CLI is its new name in VS2005, i know that much, but that is about where my knowledge of this ends.

case=998

interestingly enough, with VA disabled the IDE its self will not suggest typeid after the struct name, at least it will not for me.
jpizzi Posted - Feb 22 2006 : 8:19:14 PM
That is C#, isn't it? The ^ in C++ is the bitwise OR.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000