I am trying to convert a visual studio 6 project to Visual studio 2010.
There is an activex control on the dialog box. it works fine in Studio 6.
However it fails in
BOOL COleControlContainer::FillListSitesOrWnds(_AFX_OCC_DIALOG_INFO* pOccDlgInfo)
If I try to create the control in OnInitDialog like below dynamically it returns 0
Any help is greatly appreciated.
BOOL m = m_obChartCtrl.Create(_T("test"),WS_CHILD |WS_VISIBLE,CRect (10,10,200,200),this,ID_FIRSTAXGC);
Related
Why did Microsoft develop Visual Studio and Blend for Visual Studio and yet Visual Studio itself is a complete tool?
Visual studio you code everything in the .xaml window in the solution, in blend it does the code for you and you just change the properties via the code or via the interface.
I am using Visual Studio 2013 Ultimate with Windows 7, and a C# / WinForms project. I have a problem that I cannot add any DLLs to the toolbox. I have already tried searching on Google for the answer, but none of the solutions work: rebuilding the project and re-installing Visual Studio both didn't work.
Even if I create a new project, I cannot drag the DLL to the toolbox or nuGet or use "Choose Item" from the toolbox. I want to use materialSkin, metroframework, and others like that.
Just in case it helps: I have installed Visual C# 2008 and Visual Studio 2010 previously; could that cause any problems with Visual Studio 2013?
Here is the error I see:
Can anyone help please?
I have gotten quite use to being able to use lambda throughout my c# projects and in Visual Studio 2015 preview I can now use my properties as so:
public ObservableCollection<WorkspaceViewModel> Workspaces => workspaces ?? (workspaces = new ObservableCollection<WorkspaceViewModel>());
or
public string Something => something;
However when switching between Visual Studio 2015 and 2013... 2013 doesn't like them :(
Is there a way I can force 2013 to read these expressions and compile them properly, I understand MSbuild is open source now, do I have to tell 2013 to use a new version of MSbuild?
Cheers.
This is a c# 6 feature, you can get it working in VS 2013 but it seems that is no longer updated and was just used for previews.
How can I add C# 6.0 to Visual Studio 2013?
From the Roslyn site it says
You can also try April's End User Preview, which installs on top of
Visual Studio 2013. (note: this VS 2013 preview is quite out of date,
and is no longer updated)
Who knows if it will come out in VS2013 again...
I want to restart Debugging session programmatically in Visual Studio "2013 Express".
I saw some examples that can do it with EnvDTE but they are only supporting VS2010 and previous versions.
I have tried following code with different version of DTE Interface.
DTE2 myDTE = (DTE2)Marshal.GetActiveObject("VisualStudio.DTE.9.0");
myDTE.ExecuteCommand("Debug.Start"); // or Debug.StartWithoutDebugging
Is there any limitation for Visual Studio 2013 Express?
Thanks.
Murat.
I found the solution.
GetActiveObject() should be called for Visual Studio 2013 Express ("WDExpress.DTE.12.0")
So, correct flow is ;
DTE2 myDTE = (DTE2)Marshal.GetActiveObject("WDExpress.DTE.12.0");
myDTE.ExecuteCommand("Debug.Start"); // or Debug.StartWithoutDebugging
Thanks.
For Silverlight 4 did TemplatedControl replace UserControl? Because when I goto add a new item in Visual Studio 2010 that is the only thing that closely resembles a user control in the dialog?
No, they should both be there, are you sure the silverlight tools for visual studio 2010 are installed correctly?