Novellizator
Novellizator

Reputation: 14893

Is Windows Form Application (in visual studio c++) automatically C++/CLI?

I want to do a Windows Form Application in C++ but by making a simple hello world program (http://www.youtube.com/watch?v=9sGms_j3l2M) I got a common error (I guess it's common since it has been questiones here many times)

"Intellisense: Unavailable for C++/CLI"

So my question is, can I do a Windows Form Application in pure C++ (I really want IntelliSense and for other reasons too)

Upvotes: 1

Views: 594

Answers (2)

Science_Fiction
Science_Fiction

Reputation: 3443

Yes it will be, and no you cannot do a Windows form application in pure C++. You would need another GUI framework for that, MFC or similar.

Question is: You usually use C++/CLI when you are calling some native C++ code etc, what is your use case?

If it's a project from scratch, can you not just use the C# for Windows forms.

Upvotes: 1

Oded
Oded

Reputation: 499302

Windows Forms, by definition is a .NET technology, meaning that yes, it would be C++/CLI.

You can't write a Windows Forms application without using the .NET assemblies - you may be able to use interop to call to the .NET libraries, but this would be the long and difficult way about it.

Upvotes: 1

Related Questions