Quantcast
Channel: Visual C forum
Viewing all 15302 articles
Browse latest View live

C++ Multiparamter Template works under Linux but not under Windows - Why?

$
0
0

HI!

The compilation under Linux (Fedora 23) with GCC run, but with VS2013 or 2015 I got a complier error.

ambiguous ....

Please try it and maybe someone knwos a solution!

First of all the code of the templates itself:

/* ############################################ */

#pragma one

#include <vector>
#include <iostream>
#include <functional>
#include <stdexcept>
#include <string>
#include <boost/any.hpp>

template <typename Ret, typename Func>
class InCppFunction
{
public:
    InCppFunction(Func func, std::string name, size_t paraNum) :
        m_function(func), m_name(name), m_paraNum(paraNum)
    {
    };

    ~InCppFunction()
    {
    };

    boost::any Call(std::vector<boost::any> param)
    {
        if (param.size() != m_paraNum)
        {
            throw std::runtime_error("InCppFunction::Call: wrong number of parameters");
        }
        
        m_adapt = Adaptfunc(m_function);
        return boost::any_cast<Ret>(m_adapt(param));
    };
protected:
    template <typename... Args>
    Ret CallFunc(std::function<Ret(Args...)> func, std::vector<boost::any> anyargs);

    Ret CallFunc (std::function<Ret()> func, std::vector<boost::any> anyargs)
    {
        if (anyargs.size() > 0)
        {
            throw std::runtime_error("oops, argument list too long");
        }
        return func();
    };

    template <typename Arg0, typename... Args>
    Ret CallFunc (std::function<Ret(Arg0, Args...)> func, std::vector<boost::any> anyargs)
    {
        if (anyargs.size() == 0)
        {
            throw std::runtime_error("oops, argument list too short");
        }
        Arg0 arg0 = boost::any_cast<Arg0>(anyargs[0]);
        anyargs.erase(anyargs.begin());
        std::function<Ret(Args... args)> lambda = ([=](Args... args) -> Ret
        {
             return func(arg0, args...);
        });
        return CallFunc(lambda, anyargs);
    }

    template <typename... Args>
    std::function<boost::any(std::vector<boost::any>)> Adaptfunc(Ret (*func)(Args...))
    {
        std::function<Ret(Args...)> stdfunc = func;
        std::function<boost::any(std::vector<boost::any>)> result = ([=](std::vector<boost::any> anyargs) -> boost::any
        {
             return boost::any(CallFunc(stdfunc, anyargs));
        });
        return result;
    }
private:
    Func m_function;
    std::function<boost::any(std::vector<boost::any>)> m_adapt;
    std::string m_name;
    size_t m_paraNum;
};

/* ############################################ */

Now some test functions:

/* ############################################ */

#pragma one

#include <iostream>

int func1 (int a)
{
    std::cout << "func1(" << a << ") = ";
    return 33;
};

int func2 (double a, std::string b)
{
    std::cout << "func2(" << a << ",\"" << b << "\") = ";
    return 7;
};

int func3 (std::string a, double b)
{
    std::cout << "func3(" << a << ",\"" << b << "\") = ";
    return 7;
};

int func4 (int a, int b)
{
    std::cout << "func4(" << a << "," << b << ") = ";
    return a+b;
};

/* ############################################ */

And now main:
/* ############################################ */

#include "TemplateClass.h"
#include "TestFunctions.h"

int main (int argc, char *argv[])
{
    auto funcTest1 = InCppFunction<int, int(*)(int)>(func1, "func1", 1);
    auto funcTest2 = InCppFunction<int, int(*)(double, std::string)>(func2, "func2", 2);
    auto funcTest3 = InCppFunction<int, int(*)(std::string, double)>(func3, "func3", 2);
    auto funcTest4 = InCppFunction<int, int(*)(int, int)>(func4, "func4", 2);
    
    std::cout << boost::any_cast<int>(funcTest1.Call({777})) << std::endl;
    std::cout << boost::any_cast<int>(funcTest2.Call({66.6, std::string("yeah right")})) << std::endl;
    std::cout << boost::any_cast<int>(funcTest3.Call({std::string("whatever"), 0.123})) << std::endl;
    std::cout << boost::any_cast<int>(funcTest4.Call({3, 2})) << std::endl;
}

/* ############################################ */


Making the Point structure a return type

$
0
0

I seem to be having an issue with VS recognizing the Point structure as a valid return type.

	ProfileCoordinates ^myprofileCoordinates;												//Object for holding coordinates
	myprofileCoordinates = ref new ProfileCoordinates;

	myLine->Point = myprofileCoordinates->firstPoint();										//Windows::Foundation::Point(firstdouble, firstdouble);

	//Clear the canvas
	myCanvas->Children->Clear();

	//Add the path & render
	myCanvas->Children->Append(myPath);


}

ref class ProfileCoordinates {

	Point firstPoint() {
		Point p;
		p.X =50;
		p.Y = 50;
		return p;
	}
};

I switched to return an integer type and it compiled. Is there an underlying issue I am not understanding when using the Point structure?

Unresolved allocations in VS2015 memory profiling

$
0
0

Hello!

I am having problems with fully utilizing memory profiling capabilities of Visual Studio 2015 in my C++ application (I am building the application with VS2015 (v140) platform toolset)

The memory profiling tool seems to have no problems with assigning types to objects allocated with the 'new' keyword (and with displaying this information in heap snapshots). However a lot of the old code in the application uses 'std::malloc' for heap memory allocations and these allocations are categorized as "Unresolved allocations" in heap snapshots.

According to this blog post"allocators in the CRT (new, malloc, …) and Windows SDK have been annotated at the source level so that their allocation data can be captured and mapped to the corresponding symbols", so there is some indication that memory profiler in theory should successfully assign type information to data allocated by 'malloc'. And indeed, if we look at the declaration of 'malloc' we will see

_Check_return_ _Ret_maybenull_ _Post_writable_byte_size_(_Size)
_ACRTIMP _CRTALLOCATOR _CRT_JIT_INTRINSIC _CRTRESTRICT
void* __cdecl malloc(
    _In_ _CRT_GUARDOVERFLOW size_t _Size
    );

The interesting thing here is '_CRTALLOCATOR' macro, which definition is

#if _MSC_VER >= 1900 && !defined __EDG__ && !defined _CORECRT_BUILD
    #define _CRTALLOCATOR __declspec(allocator)
#else
    #define _CRTALLOCATOR
#endif

So, in the same blog post that I've linked above there is a mention that to allow the memory profiler to gather information from custom allocators one should decorate them with '__declspec(allocator)' which can be seen in the first #if-#endif branch above. But IntelliSense shows that the second #if-#endif branch is actually used and the macro is defined as empty (which essentially means that there is no '__declspec(allocator)' decorating 'malloc'). So I'm guessing this is why all allocations end up in "Unresolved allocations" category. According to IntelliSense '_MSC_VER' == 1900, '_CORECRT_BUILD' is undefined but '__EDG__' == 1. So the fact that '__EDG__' macro is defined to 1 causes this unexpected (for me) behavior.

The question is - what should I do to make the '_CRTALLOCATOR' defined appropriately and allow the memory profiler to fully kick in? (I wasn't able to dig anything useful about the nature of '__EDG__' macro except that it may be related to Edison Design Group, which product is apparently used in some part of IntelliSense).


Atomicity in X86 platforms

$
0
0
#if !(defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64)))
    #if defined(_M_IX86)
        typedef long sInt;
        typedef unsigned long uInt;
        #define ATOMIC_WRITE(X, Val) _InterlockedExchange((volatile sInt *)&X, Val)
    #elif defined(_M_AMD64)
        typedef long long sInt;
        typedef unsigned long long uInt;
        #define ATOMIC_WRITE(X, Val) _InterlockedExchange64((volatile sInt *)&X, Val)
    #endif
    typedef sInt _sInt;
    #define ATOMIC_READ(X) (*(volatile sInt*)&X)
    #define INCREMENT(X) (++X) // No need for further atomicity as only one thread is writing.
    #define DECREMENT(X) (--X) // No need for further atomicity as only one thread is writing.
    #define ALIGNED __declspec(align(64))
#else
    #include <atomic>
    typedef std::atomic<ptrdiff_t> sInt;
    typedef ptrdiff_t _sInt;
    typedef size_t uInt;
    #define ATOMIC_READ(X) ((X).load(std::memory_order::memory_order_acquire))
    #define ATOMIC_WRITE(X, Val) ((X).store(Val, std::memory_order::memory_order_release))
    #define INCREMENT(X) ((X).fetch_add(1, std::memory_order::memory_order_release))
    #define DECREMENT(X) ((X).fetch_add(-1, std::memory_order::memory_order_release))
    #define ALIGNED
#endif

Hello,

I've made a program which manages thread_local values (C++11).

Thread-local values are incremented or decremented (using the macros) solely by their own thread, and when needed, the Manager traverses a list of pointers to these values to compute their sum using ATOMIC_READ() operations.

I'm 99% sure my program works well with the "atomic" macros. 

However, is my X86/AMD64 optimization correct ? ATOMIC_WRITE uses the intrinsic _InterlockedExchange, which seems to have same constraints as std::memory_order_seq_cst (tell me if I'm mistaken), but does 

(volatile sInt *)&X

have some ordering constraints (like a release) ? Or at least atomicity ?

I found that :

"With Visual Studio 2005, the compiler also uses acquire semantics for read operations on volatile variables"

But does this apply to volatile pointers which are dereferenced ? 

Thanks !


How can I capture the touch pressure in my c++ application?

$
0
0

Hi there,

I'd like to add functionality to my c++ application to work with the pressure sensitivity of the stylus pen and touch screens. The more pressure that is applied, the thicker the line being drawn would appear.

Is there a way to capture the pressure information somehow?

how to create Visual C++ item template?

$
0
0

Hi

I would like to create a template for Visual C++ ... I don't know what it is I have to create. What I'd like to have is this -> in the "add item" menu, I'd like to have a "my cool thing"-element. When I add this to my project, I'd like to have a dialog/wizard asking me how I want to name it and after that it should create a .h file a .cpp file and maybe change some other stuff in an other file (e.g. add an #include somewhere) ...

I tryed to find a good tutorial for this, but... I didn't. And the samples I was looking at didn't work in the end... maybe I made some mistakes. Does someone have a good tutorial/website/sample that shows me how to do this??

I tryed to copy an existing template and change the name of this copy... but it doesn't show up in Visual Studio (not in C++ and not in C#). So, I guess, if not even this simple task is working, I'm missing something completely. It must be me... maybe I'm too stupid to read what I have to do... I know. But... sorry, I don't get it...

Rudolf


Can I put pre-compiled headers in a non-standard location?

$
0
0

I created a following project structure that looks like this:

|-root_directory|-source_files <--- all .cpp,.h, resource files go in here|-workspaces|-vs2015_solution_files <-- VS2015 .suo solution files|-project1_files   <---.vcxproj|-projcet2_files   <---.vcxproj|-workspaces <---for other IDEs

This makes my project clean but I can't get the pre-compiled headers to work with this setup. Is it possible to have use them in that case?

I am doing this for Visual C++ but I'll need to use them with other compilers too.

Edit: Some more information. I get the following errors:

warning C4627:'#include "stdafx.h"': skipped when looking for precompiled header useAdd directive to stdafx.h' or rebuild precompiled header
fatal error C1010: unexpected end of file while looking for precompiled header.Did you forget to add '#include stdafx.h"' to your source?

So I have basic idea and also read about precompiled headers so I think I know how to use and set them but I cannot get them to work when I the source files are below the project files in the directory tree.

I basically have one cpp file and I have included stdafx.h in it. The precompiled header is created too.

WMI programming on WP10

$
0
0

Hi All,

Trying to use WMI to get device temperature on windows mobile 10.  So Could anybody tell us,

Is Windows phone 10 support WMI or not ?

We are refer http://stackoverflow.com/questions/5327203/how-to-access-cpus-heat-sensors 

this link to get temperature by using WMI in c++, but it

always fail on CoCreateInstance(...)     call. 

Please share any info for WMI in c++ or any reference on the same.

Thanks in Advanced,

Globe_mac


Visual Studio 2015 Update 1 _CSTRING_DISABLE_NARROW_WIDE_CONVERSION and CArchive::operator>> error C2440

$
0
0

Hello, I get a compiler C2440 error when _CSTRING_DISABLE_NARROW_WIDE_CONVERSION is defined in a Visual Studio 2015 Update 1 console application that uses MFC:

CFile file(L"dummy", CFile::modeRead);
CArchive ar(&file, CArchive::load);
CString str;
ar >> str;

The result is:
c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afx.inl(53): error C2440: '<function-style-cast>': cannot convert from 'initializer list' to 'ATL::CStringT<wchar_t,StrTraitMFC_DLL<wchar_t,ATL::ChTraitsCRT<wchar_t>>>'
  c:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afx.inl(53): note: No constructor could take the source type, or constructor overload resolution was ambiguous

....

Thanks for the help,


Andreas

How can I create manifest file in 'Release' folder ?

$
0
0

Hi All,

I wish to create manifest file in 'Release' folder; it must be updated on the basis of build or re-build...etc. And right now my test application contains only ".exe" and ".pdb" files in the 'Release' folder. I am using visual studio 2012 with Visual C++. Attached the screenshot of project properties:

Anyone please help me to create the manifest file.

R-VR

Restful Web serveic and web application

$
0
0

Hi

I have  to do an assignment . Need to create web service and web application.

I should use Visual studio any version, Mongo Db  abd Casablana C++ SKD

I have visual studio community 2015 installed in my  system. How should i proceed. I have not used casablanca before not create web service. Please guide me

Do i need to create WFC wer service in vs 2015 to create a restful web service.  Let me know how to make use of casablaca c++.

Method to identify physical keyboard in C++

$
0
0

Hi

I have MFC (C++) 32-bit desktop application which is running on different platform like windows 7, 8 and tablet PC.

I would like to pop up the virtual keyboard in Tablet PC when edit control got the focus and keyboard is not attached. If keyboard is attached then it is not required to show virtual keyboard. Laptop with touch feature has a keyboard attached to it hence virtual keyboard is not needed.

GetSystemMetrics(SM_TABLETPC) API will be used to know whether touch services is running or not. 

I would like to know the win32 API to determine if there is a physical keyboard exists or not. Please help me to solve this problem. Thanks.



Need to understand..

$
0
0

Hi

I have  to do an assignment . Need to create web service and web application.

I should use Visual studio any version, Mongo Db  abd Casablana C++ SKD

I have visual studio community 2015 installed in my  system. How should i proceed. I have not used casablanca before not create web service. Please guide me

Which header has declaration of ComPtr

$
0
0

Guys, I'm trying to create WIC Factory, example taken from:

https://msdn.microsoft.com/en-us/library/windows/desktop/ff973956.aspx

HRESULT Direct2DUtility::GetWICFactory(IWICImagingFactory** factory)
{
   static ComPtr<IWICImagingFactory> m_pWICFactory;//<<<==========HERE I'm getting error saying that ComPtr isn't a type
   HRESULT hr = S_OK;

   if (nullptr == m_pWICFactory)
   {
      hr = CoCreateInstance(
            CLSID_WICImagingFactory, nullptr,
            CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&m_pWICFactory) );
   }

   if (SUCCEEDED(hr))
   {
      hr = AssignToOutputPointer(factory, m_pWICFactory);
   }

   return hr;
}

So where is the header which declared ComPtr type?

Thank you.

Error LNK2011: precompiled object not linked in; image may not run

$
0
0

Hello!

I have been fighting a build issue for a few months now, and I cannot seem to wrap my head around it. It is also a "Only On Your Machine" issue in that none of my coworkers see this problem. The issue is that I have about 20 Visual C++ projects that regularly generate a "error LNK2011: precompiled object not linked in; image may not run" followed by a "fatal error LNK1120: 1 unresolved externals." This is in a large solution Visual C++ 330 projects), Intel Visual Fortran (20 projects), and VBA (1 project).

I'm asking for advice on how I can proceed to diagnose and fix this issue. I've tried tracking reads through ProcMon, Verbose Logging, and have begun looking at the dependency tree between all of the problematic projects to see if there's a common issue.

We're using Visual Studio 2013 and Intel Visual Fortran 2013. The Fortran part of this doesn't seem to be causing any problems, as all of the offending projects are C++ and have no Fortran dependencies.

In my investigation of the dependencies, they all have several other DLLs that are linked in using Project References. A few have some third party DLLs that link in. My first thought was that there might be some combination of project references that cause the failure; this does not seem to be the case (very little overlap between the offending projects) and none of the projects have one common dependency. 

Oddly, it is the same ~20 projects every single time. The issue primarily comes when I change from building in Visual Studio to building in the Command Line. Lastly, if I clean+rebuild the offending projects one at a time, everything builds fine again for a while. 

Other bits of information that may help:

  • I have Visual Studio 2015 installed on my machine, and have used the previews for 2015 in the past
  • Similarly, I have used the VS2013 Update pre-releases to test compatibility for the rest of the software team
  • We use Windows 7 x64
  • I've got multiple Windows SDKs installed on my machine - not sure if that will affect anything

I'm not expecting to find a solution right out of the box (but if someone has seen this and solved it before, that would make my day). I'm mainly just trying to get additional ideas, tips, or recommendations on how to proceed. Thank you!


IE attachEvent on object tag causes memory corruption

$
0
0

I've an ActiveX Control (embedded with <object/>) within an embedded IE7/8 HTML page. The <object/> has the following dispinterface event:  [id(1)] HRESULT MessageReceived([in] BSTR id, [in] BSTR json);.

On Windows the event is registered with OCX.attachEvent("MessageReceived", onMessageReceivedFunc).

 

function onMessageReceivedFunc(id, json) {
 alert("messageReceived id=" + id + ", json=" + json);
}


Following code fires the event in the HTML page.

 

HRESULT Fire_MessageReceived(BSTR id, BSTR json)
 {
 CComVariant varResult;
 T* pT = static_cast<T*>(this);
 int nConnectionIndex;
 CComVariant* pvars = new CComVariant[2];
 int nConnections = m_vec.GetSize();
 for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
 {
 pT->Lock();
 CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
 pT->Unlock();
 IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
 if (pDispatch != NULL)
 {
 VariantClear(&varResult);

 pvars[1] = id;
 pvars[0] = json;

 DISPPARAMS disp = { pvars, NULL, 2, 0 };
 pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
 }
 }
 delete[] pvars; // -> Memory Corruption here!
 return varResult.scode;
 }

After I enabled gflags.exe with application verifier, the following strange behaviour occur:
After Invoke() that is executing the JavaScript callback, the BSTR from pvars[1] is copied to pvars[0] for some unknown reason!? The delete[] of pvars causes a double free of the same string then which ends in a heap corruption.

Does anybody has an idea whats going on here? Is this a IE bug or is there a trick within the OCX Implementation that I'm missing?

If I use the <script/> tag like:
<script for="OCX" event="MessageReceived(id, json)" language="JavaScript" type="text/javascript">
 window.onMessageReceivedFunc(windowId, json);</script>

... the strange copy operation does not occur.

The following code also seem to be ok due to the fact that the caller of Fire_MessageReceived() is responsible for freeing the BSTRs.

 
 HRESULT Fire_MessageReceived(BSTR srcWindowId, BSTR json)
 {
 CComVariant varResult;
 T* pT = static_cast<T*>(this);
 int nConnectionIndex;
 VARIANT pvars[2];
 int nConnections = m_vec.GetSize();
 for (nConnectionIndex = 0; nConnectionIndex < nConnections; nConnectionIndex++)
 {
 pT->Lock();
 CComPtr<IUnknown> sp = m_vec.GetAt(nConnectionIndex);
 pT->Unlock();
 IDispatch* pDispatch = reinterpret_cast<IDispatch*>(sp.p);
 if (pDispatch != NULL)
 {
 VariantClear(&varResult);

 pvars[1].vt = VT_BSTR;
 pvars[1].bstrVal = srcWindowId;
 pvars[0].vt = VT_BSTR;
 pvars[0].bstrVal = json;

 DISPPARAMS disp = { pvars, NULL, 2, 0 };
 pDispatch->Invoke(0x1, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, &varResult, NULL, NULL);
 }
 }
 return varResult.scode;
 }

Thanks!

LNK error 2019 with crthandlerssettler

$
0
0

Hi,

Can anyone please help me in resolving this linked errors.

error LNK2019: unresolved external symbol "extern "C" int __cdecl _CrtSetReportMode(int,int)" (?_CrtSetReportMode@@$$J0YAHHH@Z) referenced in function "public: __thiscall Microsoft::VisualStudio::CppUnitTestFramework::TestClassImpl::CrtHandlersSetter::CrtHandlersSetter(void)" (??0CrtHandlersSetter@TestClassImpl@CppUnitTestFramework@VisualStudio@Microsoft@@$$FQAE@XZ)

error LNK2019: unresolved external symbol "extern "C" void * __cdecl _CrtSetReportFile(int,void *)" (?_CrtSetReportFile@@$$J0YAPAXHPAX@Z) referenced in function "public: __thiscall Microsoft::VisualStudio::CppUnitTestFramework::TestClassImpl::CrtHandlersSetter::CrtHandlersSetter(void)" (??0CrtHandlersSetter@TestClassImpl@CppUnitTestFramework@VisualStudio@Microsoft@@$$FQAE@XZ)

Thanks for the help...

Regards,

Ravi Raj Nukala


Cheers, Ravi.N.Raj

VC++ 2015 ATL, DllRegisterServer fails with 0Xc0000005 on Windows 2003

$
0
0

I ran into a problem with VC++ 2015 ATL.

This is an in-proc COM DLL server built as follows:
Platform toolset: Visual Studio 2015 – Windows XP (V140_xp)
Runtime Library: statically linked (/MT)
Build Platform:    Win32

Code is extremely simple. Just what the project wizard generates plus a COM object with an empty method.

PROBLEM
The COM registration fails on Windows 2003 but succeeds on later platforms. I tested:
Windows 2003 (x86) – FAIL 0Xc0000005
Windows 2003 (x64) – FAIL 0Xc0000005
Windows 2008 (x64) - SUCCESS
Windows 2012 R2 (x64) - SUCCESS
Windows 8.1 (x64) - SUCCESS
Windows 10 (x64) – SUCCESS

I also installed VC++ 2015 on a second machine (that already had VS 2012), built a new ATL object from scratch and had the same results when using the platform toolset:
Visual Studio 2015 – Windows XP (V140_xp)

However on this machine I also built the same DLL using the toolset:
Visual Studio 2012 – Windows XP (V110_xp)

With the 2012 toolset the DLL installed fine on all platforms.
So the problem clearly concerns the VS2015 Windows XP toolset.


Developer for WinDeveloper IMF Tune extending Exchange 2003/2007/2010/2013 Content Filter - http://www.windeveloper.com/imftune/

Clean install of VS2013 fails to build C++ project. Error: Could not find WindowsSDKDir variable from the registry.

$
0
0

I initially installed Visual Studio 2013 Professional on an internet-connected computer and had no problems. Recently, I have had to move to an offline system (still running Windows 7) and had to install everything from scratch.

Now I am getting the dreaded "Could not find WindowsSdkDir variable from the registry. TargetFrameworkVersion or Platform Toolset may be set to an invalid version number" warning, followed by errors along the lines of "Cannot open 'windows.h': No such file or directory".

I have spent all day trawling the internet for a solution and it seems that this is quite a common problem, but with no definite fix.

Following the suggestion here <links not allowed>, I have updated to the latest version (VS2013.5). This made no difference.

I have tried countless tweaks to the project settings and to Windows registry keys as suggested, for example, here <links not allowed> and here <links not allowed> and here <links not allowed>. However, none of these have worked.

Looking at the macros in my VS2013 project settings, I can see that $(WindowsSdkDir) does indeed have a blank value, but I simply cannot see how to fix it.

Any help would be greatly appreciated, as I'm really tearing my hair out over this...

Catastrophic failures in ClassWizard VS2015, Update 2

$
0
0

Using class wizard this morning I'm starting to get catastrophic failures after adding a number of functions to a class.  It seems to happen after using the add event option in the ribbon editor, which is painfully slow particularly adding a number of member functions for a number of buttons.  Class wizard is also slow (~20 seconds to add a member function) but better at adding more than one member at a time.

Is there any way of cleaning up the class wizard files to speed things up and makes them more reliable?  The .sdf file associated with my project is 246mb and I also see a .VC.DB file of 172mb.  Back in the early days of Visual C++ class wizard data was held in a .CLW text file which could be edited easily enough.  VS version details and crash screen below.

Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Professional

Visual Basic 2015   00325-60000-80195-AA437
Microsoft Visual Basic 2015

Visual C# 2015   00325-60000-80195-AA437
Microsoft Visual C# 2015

Visual C++ 2015   00325-60000-80195-AA437
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   5.2.60328.3
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11106.0
ASP.NET and Web Tools 2015.1 (Beta8)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

InstallShield Limited Edition   
InstallShield. For more information visit the Flexera Software website at <http://www.FlexeraSoftware.com>. Copyright © 2015 Flexera Software LLC. All Rights Reserved.

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.60311.1
Microsoft SQL Server Data Tools

TypeScript   1.8.30.0
TypeScript tools for Visual Studio

Visual Assist   
For more information about Visual Assist, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2016 Whole Tomato Software, Inc.

Visual Commander   2.3
For more information about Visual Commander, see the website at https://vlasovstudio.com/visual-commander/.
Copyright (c) 2013-2015 Vlasov Studio.

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Catastrophic failure

Viewing all 15302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>