error in Windows form - winforms

I am creating a windows form in C++ and I get an error " The designer could not be shown for this file because none of the classes within it can be designed." But still program is debugging giving output but I cannot see designer.I reinstall visual but there is no difference.Please help me.

Related

Visual Studio 2015 "stealing" the application's console

I'm developing a gcc application using Visual Studio 2015 as an IDE. The debugger is gdb.
The application creates it's own window. When I compile with a DEBUG switch, I need the application to also spawn a console window. It's used for debugging and outputing printf's from multiple threads. Thanks to the "-mwindows" switch, this works correctly when I execute the application from outside Visual Studio.
Unfortunately, when I run the application from within Visual Studio, it seem to steal the console window. No console is spawned, and the printf's output are redirected to the Output Debug window.
This wouldn't be much of a problem if the VS console actually printed the "\n" correctly instead of stripping them out of the ouput. Everything gets printed on the same line, and the output becomes unreadable. Try as I may, I couldn't get VS to insert a newline in the Output Debug window. I searched online a lot, and this problem seems to be well documented, but I couldn't find a satisfying answer.
At this point, either of these solutions would work for me :
Prevent Visual Studio from stealing the application's console window;
Add special characters to all my printf in order to make the Output Debug print line feeds and carriage returns.
EDIT :
Ideally, the solution should be cross-plateform, in a sense that it should not add dependency to WinAPI.
EDIT2 :
"\t" seems to work as intended. Why does "\n" doesn't work? I also tried "\r\n" to no avail.
I was contacted by a Senior PM Manager for Visual Studio at Microsoft regarding this issue. I posted it as a "feedback" inside Visual Studio, about four months ago (around the time I posted it here)..
He acknowledged the problem, and said they're gonna try to add support for external consoles with Update 3.

Visual Studio 2013 crashing when saving Windows Forms solution

I have been working on a particular solution for a few months now without any problems. The last thing of significance that I remember doing was refactoring the name of a custom control inheriting from RichTextBox. I don't know if that is related to the problem but it seemed to be when the problems started occurring. For some reason now when I show the main form in design view and save any changes I get the message "Visual Studio has stopped working blah blah" and it restarts.
I seem to be able to load and make changes to other solutions ok.
So far I've tried:
Deleting .sln and v12.sln files
Have tried uninstalling NuGet. (I don't have any extensions other than NuGet and Visual Studio Extensions for Windows Library for JavaScript)
I don't have resharper
I have tried to start in /SafeMode but I keep getting the error "'Visual Studio Component Model Host Package' package did not load correctly". I can't seem to load any solutions in SafeMode.
Repaired VS2013 installation twice
Restarted my computer many times
Tried writing a log file using /log switch but can't really understand how to interpret it.
Any pointers would be very welcome.

Where can I read the output of g_print while debugging a GTK+ 3.0 project in VS2013?

I have a GTK+3.0 project running in VS2013
I added to my linker command line options this argument:
/ENTRY:mainCRTStartup
I suspect that might be related to the fact that I have no output in VS that shows the messages printed with g_print
I also tried calling printf and see no output in VS2013's output window, nor the "immediate window"
Does anyone have experience building C projects in VS2013 that use GTK+ 3.0 that could maybe tell me where I can see the messages printed by g_print and/or printf, or perhaps can you suggest a different way to debug print?
More details about how I set up the project in VS2013:
How to configure gtk on Visual studio 2010
Error 3 error LNK1104: cannot open file 'gtk-3.lib'
Compiling a GTK3 program in Visual Studio 2012
To those who want to know..
I found the answer.
In my first link, the direction was to do the following:
While we are still in the view of the Project Properties, click on
Linker and then System. Look for SubSystem on the right and click the
drop down box. Select Windows /SUBSYSTEM:WINDOWS
If you omit this step, you get a GTK window and a console, where you can read the output of printf().

ReportViewers going crazy after adding new report

so after i add a couple of folders on my project and add a new .rdlc file when i try to rebuild my project i get this error on all my .rdlc files, even tho i havent touch them for months. The error is:
An unexpected error occurred while compiling expressions. Native compiler return value: ‘-1073741819’
Cant find anything on the internet related to this 1073741819 error value. Does anyone know what does that means?
i'm using visual studio 2010 with vb.net and wpf.
Thanks

Bunch of Could not find schema Information for element statements for xaml file

I'm writing an WPF application in Visual Studio 2010. My project compiles and runs correctly. But because of an unknown reason, from yesterday, the intellisense doesn't work for xaml files. And when a xaml file opens, a bunch of "could not find schema information for elements" statements appear in the error window. Could anyone tell me what causes this problem and how to solve it?
I think there is no way to fix this issue. I had this issue also in the past and after googling I ended up that it is a nown issue in Visual Studio 2010. The problem I also noticed was that in my application (with multiple projects) Visual Studio did not build a part of my projects any more. Only deleting the ouput files helped.
Therefore I switched to Sharp Develop. Until now I dont have any strange issues with XAML or references any more. But maybe also a switch to VS2012 will help.

Resources