Click here to Skip to main content
11,647,170 members (70,914 online)

Visual Studio 2015 & .NET 4.6

 
QuestionWInRT component and event grief Pin
Super Lloyd11-Dec-12 4:51
memberSuper Lloyd11-Dec-12 4:51 
AnswerRe: WInRT component and event grief Pin
Pete O'Hanlon11-Dec-12 6:23
protectorPete O'Hanlon11-Dec-12 6:23 
GeneralRe: WInRT component and event grief Pin
Super Lloyd12-Dec-12 3:14
memberSuper Lloyd12-Dec-12 3:14 
GeneralRe: WInRT component and event grief Pin
Pete O'Hanlon12-Dec-12 3:19
protectorPete O'Hanlon12-Dec-12 3:19 
GeneralRe: WInRT component and event grief Pin
Super Lloyd12-Dec-12 11:25
memberSuper Lloyd12-Dec-12 11:25 
GeneralRe: WInRT component and event grief Pin
Pete O'Hanlon12-Dec-12 12:02
protectorPete O'Hanlon12-Dec-12 12:02 
GeneralRe: WInRT component and event grief Pin
Super Lloyd12-Dec-12 23:45
memberSuper Lloyd12-Dec-12 23:45 
GeneralRe: WInRT component and event grief Pin
Super Lloyd14-Dec-12 20:09
memberSuper Lloyd14-Dec-12 20:09 
GeneralRe: WInRT component and event grief Pin
Pete O'Hanlon14-Dec-12 22:50
protectorPete O'Hanlon14-Dec-12 22:50 
GeneralRe: WInRT component and event grief Pin
Super Lloyd15-Dec-12 1:57
memberSuper Lloyd15-Dec-12 1:57 
GeneralRe: WInRT component and event grief Pin
Pete O'Hanlon15-Dec-12 10:34
protectorPete O'Hanlon15-Dec-12 10:34 
GeneralRe: WInRT component and event grief Pin
Super Lloyd15-Dec-12 18:26
memberSuper Lloyd15-Dec-12 18:26 
GeneralRe: WInRT component and event grief Pin
Super Lloyd15-Dec-12 18:30
memberSuper Lloyd15-Dec-12 18:30 
QuestionWinRT: C++ C# interop grief Pin
Super Lloyd5-Dec-12 4:37
memberSuper Lloyd5-Dec-12 4:37 
I created a simple WinRT C++ class to help having meaningful exception, it looks like that

	public enum class ErrorCodes
	{
		CodeStart = 0x0200, CodeEnd = CodeStart + 100, NotErrorCode = CodeEnd - 1,
		StupideError1 = CodeStart + 1,
		StupideError2 = CodeStart + 2,
	};
 
	public ref class Class1 sealed
	{
	private:
		Class1() {}
 
	public:
		static void Throw(ErrorCodes c);
		static ErrorCodes GetCode(Platform::Exception^ ex);
	};
However, when I try to use it in C#, with code like that

			try
			{
				Class1.Throw(ErrorCodes.StupideError1);
			}
			catch (Exception ex)
			{
				var c = Class1.GetCode(ex);
			}

I got the following compiler error in my C# project:

2>C:\Dev\W8\App1\App1\App.xaml.cs(42,5,42,8): error CS0012: The type 'Platform.Exception' is defined in an assembly that is not referenced. You must add a reference to assembly 'platform, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime'.
2>C:\Dev\W8\App1\App1\App.xaml.cs(42,13,42,31): error CS1502: The best overloaded method match for 'CppComp.Class1.GetCode(Platform.Exception)' has some invalid arguments
2>C:\Dev\W8\App1\App1\App.xaml.cs(42,28,42,30): error CS1503: Argument 1: cannot convert from 'System.Exception' to 'Platform.Exception'


How could I fix that?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.

AnswerRe: WinRT: C++ C# interop grief Pin
Super Lloyd5-Dec-12 5:20
memberSuper Lloyd5-Dec-12 5:20 
GeneralRe: WinRT: C++ C# interop grief Pin
FrankLavigne3-Jan-13 5:14
memberFrankLavigne3-Jan-13 5:14 
QuestionHow to throw a usable error from a WinRT C++ component to a C# code Pin
Super Lloyd5-Dec-12 3:59
memberSuper Lloyd5-Dec-12 3:59 
AnswerRe: How to throw a usable error from a WinRT C++ component to a C# code Pin
Super Lloyd5-Dec-12 4:22
memberSuper Lloyd5-Dec-12 4:22 
Questionstill no lambdas debugging ? :( Pin
pip01021-Nov-12 22:16
memberpip01021-Nov-12 22:16 
QuestionIntelliTrace only in Ultimate edition for VS11? Pin
devvvy5-Nov-12 22:41
memberdevvvy5-Nov-12 22:41 
AnswerRe: IntelliTrace only in Ultimate edition for VS11? Pin
Pete O'Hanlon5-Nov-12 23:00
protectorPete O'Hanlon5-Nov-12 23:00 
GeneralRe: IntelliTrace only in Ultimate edition for VS11? Pin
devvvy6-Nov-12 16:52
memberdevvvy6-Nov-12 16:52 
GeneralRe: IntelliTrace only in Ultimate edition for VS11? Pin
Pete O'Hanlon6-Nov-12 20:25
protectorPete O'Hanlon6-Nov-12 20:25 
GeneralRe: IntelliTrace only in Ultimate edition for VS11? Pin
devvvy6-Nov-12 20:43
memberdevvvy6-Nov-12 20:43 
NewsWindows XP & Framework 4.5 Pin
Clifford Nelson26-Oct-12 15:19
memberClifford Nelson26-Oct-12 15:19 
GeneralRe: Windows XP & Framework 4.5 Pin
Richard Deeming29-Oct-12 2:13
memberRichard Deeming29-Oct-12 2:13 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson29-Oct-12 5:16
memberClifford Nelson29-Oct-12 5:16 
GeneralRe: Windows XP & Framework 4.5 Pin
pip01021-Nov-12 22:17
memberpip01021-Nov-12 22:17 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson22-Nov-12 9:49
memberClifford Nelson22-Nov-12 9:49 
GeneralRe: Windows XP & Framework 4.5 Pin
Pete O'Hanlon22-Nov-12 10:38
protectorPete O'Hanlon22-Nov-12 10:38 
GeneralRe: Windows XP & Framework 4.5 Pin
Clifford Nelson22-Nov-12 11:06
memberClifford Nelson22-Nov-12 11:06 
GeneralRe: Windows XP & Framework 4.5 Pin
Expert Coming2-Dec-12 11:59
memberExpert Coming2-Dec-12 11:59 
QuestionUnable to consume WCF Pin
msameh97625-Oct-12 14:08
membermsameh97625-Oct-12 14:08 
AnswerRe: Unable to consume WCF Pin
Nitin Sawant26-Nov-12 0:26
memberNitin Sawant26-Nov-12 0:26 
Questiondevenv Pin
Meysam Tolouee9-Oct-12 8:47
memberMeysam Tolouee9-Oct-12 8:47 
AnswerRe: devenv Pin
ryanb319-Oct-12 10:02
memberryanb319-Oct-12 10:02 
GeneralRe: devenv Pin
DaveAuld9-Oct-12 10:23
mentorDaveAuld9-Oct-12 10:23 
AnswerRe: devenv Pin
DaveAuld9-Oct-12 10:14
mentorDaveAuld9-Oct-12 10:14 
GeneralRe: devenv Pin
Meysam Tolouee9-Oct-12 10:51
memberMeysam Tolouee9-Oct-12 10:51 
Questionhow to create an office doc factory c# Pin
ibradleyallen5-Oct-12 20:55
memberibradleyallen5-Oct-12 20:55 
QuestionVisual Studio 2012 Stability for Mission Critical WebApps Pin
ADSCNET4-Oct-12 20:45
memberADSCNET4-Oct-12 20:45 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
Member 8821727_GhostAnswer17-Oct-12 2:23
memberMember 8821727_GhostAnswer17-Oct-12 2:23 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
Member 770563516-Nov-12 23:22
memberMember 770563516-Nov-12 23:22 
AnswerRe: Visual Studio 2012 Stability for Mission Critical WebApps Pin
pip01021-Nov-12 22:21
memberpip01021-Nov-12 22:21 
QuestionHow to sell different level of the application in windows 8 Pin
wasimsharp2-Oct-12 6:51
memberwasimsharp2-Oct-12 6:51 
AnswerRe: How to sell different level of the application in windows 8 Pin
FrankLavigne6-Jan-13 16:55
memberFrankLavigne6-Jan-13 16:55 
QuestionTeam Foundation Server Pin
Majid Shahabfar27-Sep-12 6:42
memberMajid Shahabfar27-Sep-12 6:42 
AnswerRe: Team Foundation Server Pin
Sandeep Mewara4-Oct-12 20:57
mvpSandeep Mewara4-Oct-12 20:57 
GeneralRe: Team Foundation Server Pin
Majid Shahabfar19-Oct-12 4:51
memberMajid Shahabfar19-Oct-12 4:51 
AnswerRe: Team Foundation Server Pin
Sandeep Mewara19-Oct-12 5:57
mvpSandeep Mewara19-Oct-12 5:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.150804.2 | Last Updated 21 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid