DCSIMG
C++/CLI - class Alon : public CPP, public Architecture

class Alon : public CPP, public Architecture

The smart virtual home of Alon Fliess

Syndication

Browse by Tags

All Tags » C++/CLI (RSS)
Developing a Windows Store app using C++ and XAML
Like any Windows API , Windows Store Application s API is based on native code. Unlike the old Win32 API, the new native interface is not based on the C language prototype, nor the old COM programming model. Microsoft has realized that the .NET type system provides modern, richer and more productive alternative. To have .NET productivity in native code, Microsoft has borrowed the type system principles ( ECMA 335 CLI type system) and merged it with the COM programming model. In Windows Store API...

Posted by Alon Fliess | with no comments

Message Only Window in for .NET Application
Overview .NET is great platform, it speeds up the development process, you deal with your application logic and in most cases you don't need to know that there is whole Windows operating system down there. However sometimes you do need to program against Windows without the .NET assistance. As a Windows developer, you need to keep all your weapons ready, be it .NET, COM or C++ with the native Win32 API. In this article I am going to show how to deal with Windows Message based communication protocol...

Posted by Alon Fliess | 2 comment(s)

My Build Event Insights
You didn't have to go to //BUILD/ to get the information and knowledge of the new Windows Platform APIs; you could watch all the sessions from the comfort of your home, and I encourage you to do so, however attending the conference helps obtaining a perception about the future of Microsoft and especially the future of Windows technologies and the reaction of the developers that attended the conference. I didn't want to post about the conference before I have a clear picture, and believe me...

Posted by Alon Fliess | 14 comment(s)

Thanks to the people that came to the first meeting of the Windows Platform Developers User Group
Thanks for all of you that despite the traffic jams, made it and came to the first meeting. And thanks again for your feedbacks, all of them were excellent! Here are the links for the resources that we talked about: Windows 7 Training Kit Visual Studio 2010 Training Kit – The kit contains the MFC labs for the Windows 7 features XP2Win7 – stay tuned for a new release next week, or two. Removing the Kernel Dispatcher lock by Arun Kishan Mark Russinovich: Inside Windows 7 Mark Russinovich: Inside Windows...

Posted by Alon Fliess | 2 comment(s)

The first meeting of the Windows Platform Developers User Group
Come and join Pavel and me to the first meeting of the Windows Platform Developers user group . If the Windows platform is interesting you (and it probably does, otherwise you won’t be reading this post) you have to come. This is the chance to influence the spirit of the group. Pavel and I wanted to have a group for people like us. Those who develop for Windows with any needed tool, not just .NET or C++ but both and even more. The first meeting will be about Windows NT 6.1, this is the shortest way...

Posted by Alon Fliess | 3 comment(s)

Make your application runs and shines on Windows 7
Moving applications to new platform is not an easy decision to make. Sometimes you have no choice, new desktops and laptops run the new operating system and you have to support your clients. Sometimes you do have a choice, you install your application with the system and you can choose the operating system that your code will run on. There are two factors in this dilemma: first is the investment effort on making the application compatible with the new O/S comparing to the benefit (ROI). Second is...

Posted by Alon Fliess | 2 comment(s)

Windows 7 RC Training Kit
More of our work is available to download. Microsoft has published the Windows 7 training kit . the kit includes the PowerPoint decks, the demos and HOLs. This is a great way to learn the new and cool features of Windows 7. The kit was developed by Yochay Kiriaty (DPE Redmond) with a lot of work of Dima, Sasha and myself. We took the PDC 2008 slides, fixed them, added new information, developed new demos and created new Hands-On-Lab for most of the features. Microsoft will soon publish another demo...

Posted by Alon Fliess | 1 comment(s)

Finally – Our Windows 7 .NET Wrappers are out
During the last few months a small team from Sela , has developed course materials, exercises and demos for the DPE Metro Program, that show how to develop with the new features of Windows 7. As you may know, all of the new feature of the system are exposed to native developer, using Win32 API and COM. To use C# and .NET we developed set of wrappers. Sasha developed the Taskbar wrappers, and also wrote about it in his blog. Dima developed the Sensor & Location Platform wrappers and I developed...

Posted by Alon Fliess | 40 comment(s)

C++ Open House
Thanks for all the C++ developers that came today to the Microsoft C++ Open House. I hope that you enjoyed and learned about the new features of MFC, TR1, C++/CLI and C++ ox. As I promised here are the slides and examples . In addition I told you about the JobObjectWrapper project. This is a good example of using C++/CLI to bring the native world capabilities to the .NET world. For those who were in the Windows Server 2008 open house, here are the post with the examples of that day. One last thing...

Posted by Alon Fliess | 5 comment(s)

Finally - We released the JobObjectWrapper project
A job object allows a group of processes to be managed as a unit. Job objects are namable, securable, sharable objects that control attributes of and assign limits to the processes associated with them. Operations performed on the job object affect all processes associated with the job object. JobObjectWrapper is a .NET abstraction over the Win32 Job Object. With this library you can create job objects, create and assign a process to the job, control process and job limits, and register for the various...

Posted by Alon Fliess | with no comments

Native Callback
This is not new, but many people have hard time when combining native and managed code. One of the more challenging interop task is to call back from native code into managed code. There are multiple ways of doing it: Use P/Invoke and pass a delegate as a pointer to the native code. Use COM interop and connection points (The COM wrapper produces .Net events) You may find other ways such as using Windows Messages or other inter-process comunication mechanism. For example to call to native code (not...

Posted by Alon Fliess | 7 comment(s)

תגים:,

++VC לאן
רבים שואלים מה הכיוון שאליו מיקרוסופט מכוונת כאשר מדובר ב ++VC. מדוע אין תמיכה בטכנולוגיות החדשות כגון WPF או WF, מדוע לא תהיה תמיכה ב Linq ולמה לפתח STL ל Managed Code כאשר הביצועים יהיו קצת פחות טובים מ Native STL. אם חושבם על זה קצת, אז די ברור שבנושא NET. ל ++C יש בעיה, הרבה יותר טבעי וקל לפתח ב #C מאשר ב C++/CLI. אז למה בכל זאת לתמוך ב NET.? התשובה היא Interop. ואם Interop אז ברור למה STL וגם ברור למה לא WPF ו WF ששם #C נותנת כבר את המענה. לתשובה מפורטת יותר אנא קראו את הפוסט הזה

Posted by Alon Fliess | with no comments

תגים:, , ,