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

msb8011 failed to register

$
0
0

Hi,

I encounter problem to register components (DMO Direct Show filter) build with VS2015CE.

The projects are compiled and linked without errors, but if i try to register the output i get the error: "MSB8011: Failed to register the output.....".

The strange thing is that i get this error only with new projects (created with VS2015CE).

For instance, if i update a solution/project created with older IDE (VS2008), il have no error. If i create a new project as a copy of the old, building the dll runs fine, but registering the output generates MSB8011 error. Even if i try to register with regsvr32, i get an error, but 0x80070716.

Thanks in advance for helping me.

Pascal


DirectX shared_ptr vs. CComPtr

$
0
0

Hi, since DirectX is implemented in C++, I have this question:

What's the difference between CCFomPtr and shared_ptr? Example:

CComPtr<IDXGIFactory4> dxgiFactory_COMPTR;
shared_ptr<IDXGIFactory4> dxgiFactory_SHAREDPTR;

CreateDXGIFactory2(0, IID_PPV_ARGS(&dxgiFactory_COMPTR)); // Works!
CreateDXGIFactory2(0, __uuidof(IDXGIFactory4), reinterpret_cast<void**>(dxgiFactory_SHAREDPTR.get())); // Doesn't work!

Some old VC dlls didn't have digital signature

$
0
0

Hello,

As I know, we can usually install VC dependencies by VC redistributable packages.  Now I want to include those dlls directly in the installer of our application to make our installer simpler and lighter. Unfortunately I find some old VC dlls(e.g. 'mfc42.dll', 'mfc42u.dll', 'msvcrt.dll' etc.) weren't be signed. So some anti-virus application would report security warnings when users install our application.

My question is how I can get those dlls signed?


Marshal Tu

how to use c++ and CLR codes in one project

$
0
0

Hello every body,

In my research i need to write stereo vision codes in c++ and pass data with serial port,so should i use CLR for data passing. While i can't c++ and CLR codes in an unit project to send data with serial port. please help me.

Thanks 

WM_SETREDRAW

$
0
0

Hi

How to can detect the window redraw flag is set or not (How to get WM_SETREDRAW value for a window)?

camera calibration errors

$
0
0

hello every body,

I'm writing "stereo camera calibration" codes in opencv but it has very syntax errors such below errors, that it is not correct. what do I do?please help me.

Thanks

error C2143: syntax error : missing ';' before '<<'

error C2143: syntax error : missing ';' before '{'

Multi window application

$
0
0

Hi there. Can anyone tell me how do I handle multiple windows in my application ? so far I know how to create window and hook directX 11 to it, but now I'm in need of two windows, I want to develop tile map editor app witch will have two windows, one will render the tile map texture, and the other will render the editable tile map, but I don't really know where to start. I don't understand how should I create second window, should I just copy the main window creation code, change class name and window name, create separated "WndProc" and set it as second window wcex.lpfnWndProc ? or there is a different way to do this ? Can you please point me to resource or tutorial. I will want to use both windows with directX 11 as the tile map and sprite system is based on DirectXTK, and the app is for win32 platform in c++ 

Regards.


VS 2015 C++ compile error: 'extra text after expected end of number'

$
0
0

Hello,

I opened a VS 6.0 C++ program in VS 2015.  It converted everything, but when I compile the program, I get this error: "extra text after expected end of number" on the highlighted lines in the following code:

BEGIN_MESSAGE_MAP(CExcerptView, CListViewEx)
	//{{AFX_MSG_MAP(CExcerptView)
	ON_UPDATE_COMMAND_UI( ID_VIEW_REPORT, OnUpdateViewReport )
	ON_UPDATE_COMMAND_UI( ID_VIEW_SMALLICON, OnUpdateViewDisable )
	ON_COMMAND( ID_VIEW_REPORT, OnViewReport )
	ON_COMMAND( ID_EDIT_SELECT_ALL, OnEditSelectAll )
	ON_UPDATE_COMMAND_UI( ID_EDIT_SELECT_ALL, OnUpdateEditSelectAll )	ON_NOTIFY_REFLECT( LVN_COLUMNCLICK, OnColumnclick )
	ON_NOTIFY_REFLECT( NM_RCLICK, OnRclick )	ON_COMMAND( ID_EDIT_PROPERTIES, OnEditProperties )
	ON_UPDATE_COMMAND_UI( ID_QUICK_VIEW, OnUpdateIfSelectedCount )
	ON_COMMAND( ID_VIEW_REFRESH, OnViewRefresh )
	ON_UPDATE_COMMAND_UI( ID_VIEW_REFRESH, OnUpdateViewRefresh )
	ON_COMMAND( ID_QUICK_DELETE, OnQuickDelete )
	ON_COMMAND( ID_QUICK_VIEW, OnQuickView )
	ON_COMMAND( ID_QUICK_REPLY, OnQuickReply )	ON_NOTIFY_REFLECT( NM_DBLCLK, OnDblclk )	ON_WM_DESTROY()
	ON_COMMAND(ID_STOP_CHECKING, OnStopChecking)
	ON_UPDATE_COMMAND_UI(ID_STOP_CHECKING, OnUpdateStopChecking)	ON_NOTIFY_REFLECT(LVN_KEYDOWN, OnKeydown)	ON_COMMAND(ID_LOAD, OnLoad)
	ON_COMMAND(ID_QUICKTEXT, OnQuicktext)
	ON_COMMAND(ID_TEXT_PREVIEW, OnTextPreview)
	ON_WM_MOUSEMOVE()
	ON_COMMAND(IDC_ALL_READ, OnAllRead)
	ON_COMMAND(ID_FILE_APPLYFILTERS, OnFileApplyfilters)
	ON_COMMAND(ID_ADD_FRIEND, OnAddFriend)
	ON_COMMAND(ID_DOMAIN_ADD, OnDomainAdd)
	ON_COMMAND(ID_KILL_SPAM, OnKillSpam)
	ON_UPDATE_COMMAND_UI(ID_KILL_SPAM, OnUpdateKillSpam)
	ON_WM_MOUSEWHEEL()
	ON_COMMAND(ID_TOGGLE_SPAM, OnToggleSpam)
	ON_UPDATE_COMMAND_UI(ID_TOGGLE_SPAM, OnUpdateToggleSpam)
	ON_COMMAND(ID_SEL_REVERT, OnSelRevert)
	ON_COMMAND(ID_SEL_NOT_FRIENDS, OnSelNotFriends)
	ON_COMMAND( ID_EDIT_DELETE, OnQuickDelete )
	ON_UPDATE_COMMAND_UI( ID_VIEW_LIST, OnUpdateViewDisable )
	ON_UPDATE_COMMAND_UI( ID_VIEW_ICON, OnUpdateViewDisable )
	ON_UPDATE_COMMAND_UI( ID_QUICK_REPLY, OnUpdateIfSelectedCount )
	ON_UPDATE_COMMAND_UI( ID_EDIT_PROPERTIES, OnUpdateIfSelectedCount )
	ON_UPDATE_COMMAND_UI( ID_QUICK_DELETE, OnUpdateIfSelectedCount )
	ON_UPDATE_COMMAND_UI( ID_EDIT_DELETE, OnUpdateIfSelectedCount )
	ON_UPDATE_COMMAND_UI( ID_LOAD, OnUpdateIfSelectedCount)
	ON_UPDATE_COMMAND_UI( ID_QUICKTEXT, OnUpdateIfSelectedCount)
	ON_UPDATE_COMMAND_UI( ID_TEXT_PREVIEW, OnUpdateIfSelectedCount)
	ON_COMMAND(ID_PROTECT, OnProtect)
	ON_UPDATE_COMMAND_UI(ID_PROTECT, OnUpdateProtect)
	ON_COMMAND(ID_UNPROTECT, OnUnprotect)
	ON_UPDATE_COMMAND_UI(ID_UNPROTECT, OnUpdateUnprotect)
	//}}AFX_MSG_MAP
	ON_UPDATE_COMMAND_UI( ID_INDICATOR_OBJECTS, OnUpdateIndicatorObjects )
	ON_UPDATE_COMMAND_UI( ID_INDICATOR_CONTENTS, OnUpdateIndicatorContents )
	ON_UPDATE_COMMAND_UI( IDC_MAIL_READ, OnUpdateIfSelectedCount)
	ON_UPDATE_COMMAND_UI( IDC_MAIL_UNREAD, OnUpdateIfSelectedCount)
	ON_COMMAND(IDC_MAIL_READ, OnMarkRead)
	ON_COMMAND(IDC_MAIL_UNREAD, OnMarkNew)
	ON_COMMAND(ID_MARK_SPAM, OnMarkSpam)
	ON_COMMAND(ID_MARK_NOSPAM, OnMarkGood)
	ON_MESSAGE(VM_LANGUAGE, OnLanguage)
	ON_NOTIFY(HDN_ENDDRAG, 0, OnHeaderEndDrag)
	ON_COMMAND_RANGE(ID_LIST_MIN, ID_LIST_MAX, OnListCommand)

END_MESSAGE_MAP()



If I hover over the first highlighted error, right click and select Go to definition, it shows this from the afxmsh_.h file:

#define ON_NOTIFY_REFLECT(wNotifyCode, memberFxn) \
	{ WM_NOTIFY+WM_REFLECT_BASE, (WORD)(int)wNotifyCode, 0, 0, AfxSigNotify_v, \
		(AFX_PMSG) \
		(static_cast<void (AFX_MSG_CALL CCmdTarget::*)(NMHDR*, LRESULT*) > \
		(memberFxn)) },


I tried to research this error using Google, but can't figure out how to fix it.

Any help that anyone can provide to fix these errors would be gratefully appreciated.

Thanks,
Tony


Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.


Error_C2065_'i': undeclared identifier

$
0
0

Hello,

When I compile my C++ program in Visual Studio 6.0, it compiles without error.

When I compile the same program in Visual Studio 2015, it gives this error: "Error C2065 'i': undeclared identifier" at this location:

void CMailbox::OrderAssignedToID( int order, const char *str )
{
	TCHAR *szID = new TCHAR [ strlen( str ) + 1 ];
	OemToChar( str, szID );

	// search for this id
	for( int i = m_arrayExcerpt.GetSize(); i; --i )
	{
		if( !m_arrayExcerpt[i-1]->m_strID.Compare( szID ) ||
		    ( m_arrayExcerpt[i-1]->m_intOrder == order ) ) break;
	}if( i && m_arrayExcerpt[i-1]->m_intOrder == 0 ) // excerpt with this id exists	{
		m_arrayExcerpt[i-1]->m_intOrder = order;
	}
	else // create a new one
	{
		Change( COLUMN_MAIL );
		CExcerpt *xrpt = new CExcerpt( this );
		xrpt->m_intOrder = order;
		xrpt->m_strID = szID;
		m_arrayExcerpt.Add( xrpt );
	}

	delete szID;
}


It gives the error on the highlighted 'if' line.

If it's OK in VS 6.0, why is it not OK in VS 2015?

Is the correct way to fix it, to put this line in the beginning of the method? "int i;".

Any help would be gratefully appreciated.

Thanks,
Tony


Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.


Retrieve vertices of geometry after applying transforms in DirectX

$
0
0

I have a ID2D1TransformedGeometry that was created by transforming (via scale, translate, and rotate matrices) a ID2D1RectangleGeometry.

How can I get back the vertices of the ID2D1TransformedGeometry after the transformation of the rectangle done?

Float (or detach) the tabbed CMDIChildWndEx window from CMDIFrameWndEx,any idea?

$
0
0
In visual studio,all opened editor windows are tabbed in the workspace.when you right click one,there is a "float" option in the menu.if you float a window,the window is detached from the tab and you can drag it anywhere and after all you can dock it back to the tab.

i created a test mdi project,it's not a default behavior.

i overrided the ID_FILE_NEW command and followed the OpenDocumentFile routine,never found out where the framework add the newly created child frame window to the tab.

in the OpenDocumentFile routine,i bumped into a CMFCTabCtrl class and there is a AddTab function.

now the AddTab function:
    virtual void AddTab(
       CWnd* pTabWnd,
       LPCTSTR lpszTabLabel,
       UINT uiImageId = (UINT)-1,,
       BOOL bDetachable = TRUE
    );

    virtual void AddTab(
       CWnd* pTabWnd,
       UINT uiResTabLabel,
       UINT uiImageId = (UINT)-1,
       BOOL bDetachable = TRUE
    );
the Remarks:

If pTabWnd points to an object that is not derived from the CDockablePane Class and

if bDetachable is TRUE, the framework automatically creates a wrapper for the pTabWnd object.

The wrapper makes the pTabWnd object detachable.

By default, the wrapper is an instance of the CDockablePaneAdapter Class.

If the functionality offered by the default wrapper is unacceptable,

use the CMFCBaseTabCtrl::SetDockingBarWrapperRTC method to specify a different wrapper.

still no luck.

i did try to on the fly create a CView and attach it to the CDocument and put that CView in a CDockablePane.so i could switch the old tabbed one to the new dockable one. it's not working yet.

any thoughts?

ATL COM code will not compile on upgrade to VS2015

$
0
0

Folks

I am in the process up upgrading a legacy application from VS2008 to VS2015. It is extremely dependent on ATL and COM. I have noticed a change in _ATL_COM_MODULE70 in atlbase.h that is causing issues.

In ...\9.0\VC\atlmfc\include\atlbase.h it is defined as:

struct _ATL_COM_MODULE70{
  UINT cbSize;
  HINSTANCE m_hInstTypeLib;
  _ATL_OBJMAP_ENTRY** m_ppAutoObjMapFirst;
  _ATL_OBJMAP_ENTRY** m_ppAutoObjMapLast;CComCriticalSection m_csObjMap;};

However in ...\14.0\VC\atlmfc\include\atlcom.h it is defined as:

struct _ATL_COM_MODULE70{
    UINT cbSize;
    HINSTANCE m_hInstTypeLib;
    _ATL_OBJMAP_ENTRY_EX** m_ppAutoObjMapFirst;
    _ATL_OBJMAP_ENTRY_EX** m_ppAutoObjMapLast;CComCriticalSection m_csObjMap;};

This causes the following code not to compile:

HRESULT FreeThreadSingletons(void){for(_ATL_OBJMAP_ENTRY** ppEntry =_AtlComModule.m_ppAutoObjMapFirst; ppEntry <_AtlComModule.m_ppAutoObjMapLast; ppEntry++){if(*ppEntry != NULL){
            _ATL_OBJMAP_ENTRY* pEntry =*ppEntry;CComClassFactoryThreadSingleton*pThread;if((pThread =dynamic_cast<CComClassFactoryThreadSingleton*>(pEntry->pCF))!= NULL){
                pThread->ReleaseAllObjects();}}}return S_OK;}

The reason is because m_ppAutoObjMapFirst is of type _ATL_OBJMAP_ENTRY_EX in VC14 and _ATL_OBJMAP_ENTRY in VC9.

Microsoft's documentation for VS2015 says that the struct should be the same in VC14 as in VC9.

Now for the question. Has anyone seen this issue in the past and is there a workaround that does not involve rewriting everything to the _ATL_OBJMAP_ENTRY_EX interface?

Need to resolve errors of migrated VS 6.0 C++ program to VS 2015

$
0
0

Hello,

I opened a VS 6.0 C++ program in VS 2015.  It converted everything, but when I compile the program, I get 19 errors and I would like to start resolving them.

The first error I get is:

MSB3073	The command "copy C:\Users\Tony\Documents\Visual Studio 2015\Projects\magic-294b19-src\About\.\..\Release\About.dll  ..\Distrib\
..\BIN\upx ..\Distrib\About.dll
:VCEnd" exited with code 1.


The Output from the compile shows this:

1>------ Rebuild All started: Project: About, Configuration: Release Win32 ------
1>cl : Command line warning D9002: ignoring unknown option '/Qoption,cpp,--no_user_defined_literals'
1>  StdAfx.cpp
1>  _WIN32_WINNT not defined. Defaulting to _WIN32_WINNT_MAXVER (see WinSDKVer.h)
1>cl : Command line warning D9002: ignoring unknown option '/Qoption,cpp,--no_user_defined_literals'
1>  About.cpp
1>c:\users\tony\documents\visual studio 2015\projects\magic-294b19-src\about\resource.h(12): warning C4005: 'IDC_HAND': macro redefinition
1>  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.h(10085): note: see previous definition of 'IDC_HAND'
1>  AuthorPage.cpp
1>c:\users\tony\documents\visual studio 2015\projects\magic-294b19-src\about\resource.h(12): warning C4005: 'IDC_HAND': macro redefinition
1>  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.h(10085): note: see previous definition of 'IDC_HAND'
1>  GuestbookPage.cpp
1>c:\users\tony\documents\visual studio 2015\projects\magic-294b19-src\about\resource.h(12): warning C4005: 'IDC_HAND': macro redefinition
1>  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.h(10085): note: see previous definition of 'IDC_HAND'
1>  SFPage.cpp
1>c:\users\tony\documents\visual studio 2015\projects\magic-294b19-src\about\resource.h(12): warning C4005: 'IDC_HAND': macro redefinition
1>  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.h(10085): note: see previous definition of 'IDC_HAND'
1>  StatLink.cpp
1>  VersionPage.cpp
1>c:\users\tony\documents\visual studio 2015\projects\magic-294b19-src\about\resource.h(12): warning C4005: 'IDC_HAND': macro redefinition
1>  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winuser.h(10085): note: see previous definition of 'IDC_HAND'
1>  Generating Code...
1>.\About.def(4): warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
1>     Creating library .\..\Release\About.lib and object .\..\Release\About.exp
1>  About.vcxproj -> C:\Users\Tony\Documents\Visual Studio 2015\Projects\magic-294b19-src\About\.\..\Release\About.dll
1>  About.vcxproj -> .\..\Release\About.pdb (Full PDB)
1>          1 file(s) copied.
1>                       Ultimate Packer for eXecutables
1>           Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
1>  UPX 1.23w        Markus F.X.J. Oberhumer & Laszlo Molnar         Sep 5th 2002
1>
1>          File size         Ratio      Format      Name
1>     --------------------   ------   -----------   -----------
1>  upx: ..\Distrib\About.dll: CantPackException: unexpected value in PE header (try --force)
1>
1>  Packed 1 file: 0 ok, 1 error.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: The command "copy "C:\Users\Tony\Documents\Visual Studio 2015\Projects\magic-294b19-src\About\.\..\Release\About.dll"  ..\Distrib\
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: ..\BIN\upx ..\Distrib\About.dll
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(133,5): error MSB3073: :VCEnd" exited with code 1.
2>------ Rebuild All started: Project: Magic, Configuration: Release Win32 ------

I had this problem when I was attempting to compile it in VS 6.0 and fixed it by following the answer at the end of this forum post:https://social.msdn.microsoft.com/Forums/en-US/72744191-90fe-4996-b12d-d2d145f3f049/visual-studio-60c-questions?forum=vcgeneral

I tried that in this version, but it did not fix the problem.

Any help that anyone can provide to fix this error would be gratefully appreciated.

Thanks,
Tony


Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.

Noticable fade using ImageFormat::Png and ImageFormat::Tiff with the Image::Save() method

$
0
0
I'm using the Image class in the System.Drawing namespace to output image files from a program in C++. Jpeg and Bmp filetypes work just fine, but for some reason Png's and Tiff's produce faded images. Does anyone have an explanation for this? Or better yet, a solution?

How to Debug/View Source of HTML opened in IWebBrowser2?

$
0
0

Hello,

I am trying to load the response (a JSP) of a url in a dialog box, using the api

IWebBrowser2::Navigate2()

The url I am hitting is not opening in the dialog box (showing blank screen) due to some reason. But I am able to load the same url in the desktop browser.

When I do 'Right click -> View Source' in the IWebBrowser window, nothing happens. I want to know if there is any way to debug the source getting loaded by IWebBrowser or atleast see the actual source which is getting loaded.

Thanks.


Auto search through txt file for specific characters then copy to separate txt file

$
0
0

hi there, i have a html saved in plain text that i want to auto macro to search for certain characters then highlight X amount to the right and copy to a separate text file for example

<body>

<link>http://example.com/ "->html1.gif"

<content>wwwww xxxxxx yyyyy http:// ......

i want it to start from the first letter of the text document then scan throughout the whole txt file for a certain word (http://), then highlight X amount to the right then copy to a separate txt file to the find the next one and so on ?

Any help would be appreciated

COM: where is the Proxy/Stub dll ??

$
0
0

Environment: Win10 Pro En 64bit, Visual Studio2013

My Question: I'm reading [ATL Developer's Guide] 2nd Edition  by Tom Armstrong Ron Patton

                     It's saying MIDL would generate ProjectNamePS.mk, ProjectName.h, ProjectName_p.c, ProjectName_i.c, DLLData.c

.But don't see any *.mk in my Project and NO Proxy/Stub files are generated !!!Any one can tell what's wrong ?

My 1st try:

            1. create a ATL project generating DLL file

           (2.) in Project property=>MIDL=>Output

                 Generate Client Stub Files : Stub(/client stub)

                Generate Server Stub Files : Stub(/server stub)  

                 Client Stub File : ClientStub

                 Server Stub File : ServerStub

My 2nd try:

            1. create a ATL project generating exe file

            (2.) as same as above step2

Compile both project , no stub/proxy files are generated !!!!

           


Marcus

Delete GDI+ Objects

$
0
0

Hi,

My program stops (or showing a panel "Out of Memory") after drawing some graphics.  Am I creating a leak in the following code?

Gdiplus::Graphics graphics( hDC );

Gdiplus::Color color; //  (255, 0, 0, 0);
Gdiplus::Pen pen(color, 1);


Gdiplus::Bitmap bmp (100, 100, PixelFormat32bppARGB);
Gdiplus::Graphics g (&bmp);

g.DrawLine(&pen, 40, 0, 10, 30);
g.DrawLine(&pen, 40, 0, 60, 100);

Gdiplus::TextureBrush myBrush ( &bmp );

myBrush.RotateTransform ((Gdiplus::REAL) 30.0, MatrixOrder::MatrixOrderAppend );

graphics.FillPolygon ( &myBrush, PointArray, noPts, Gdiplus::FillModeAlternate );

access violation fro a CtreeCtrl TagText = GetItemText(hTag);

$
0
0

I have a CTreeCtrl that works perfectly with Windows 7 but with Windows 10 it gets an access violation.

the code is below and the problem is the this line:

TagText  =GetItemText(hTag);

This eventually calls DefWindowProc through comctl32.dll which is where it gets an access violation.

As I say with no code changes Windows 7 works. Any ideas to help please

void

CViewTree::OnNMClick(NMHDR*pNMHDR,LRESULT*pResult)

{

LPNMTREEVIEWpNMTreeView =reinterpret_cast<LPNMTREEVIEW>(pNMHDR);

// TODO: Add your control notification handler code here


CStringTagText;

HTREEITEMhTag, hChild;

TVITEMitem;

item

=pNMTreeView->itemNew;

// If state == 0 then we have clicked to the expander/colapser in

// the tree. We only want to act on the actual tree elements.


if(item.state != 0)

{

hTag = item.hItem;

TagText

=GetItemText(hTag);

hChild = GetChildItem(hTag);

CMainFrame*pParent =STATIC_DOWNCAST(CMainFrame, AfxGetMainWnd());

ASSERT_VALID(pParent);

if(hChild ==NULL&& TagText!=L"")

{

CFODrawShape*pData = (CFODrawShape*)GetItemData(hTag);

CGEMSaffireView*pView = (CGEMSaffireView*)FOGetActiveView();

if(pView !=NULL)

{

pView->SelectShape(pData);

pView->DoAnimateMove(pData->GetSnapRect(),

FALSE);

}

}

}

*

pResult= 0;

}

VS2015 LNK2019 Error in NAFXISD.lib (isapi.obj) when upgrading a project to VS2015

$
0
0

Hi,

I have got the below link error when I tried to upgrade a MFC static library project from VS2010 to VS2015.

LNK2019    unresolved external symbol "public: __thiscall std::exception::exception(char const * const &,int)" (??0exception@std@@QAE@ABQBDH@Z) referenced in function "public: __thiscall std::bad_alloc::bad_alloc(void)" (??0bad_alloc@std@@QAE@XZ)    \NAFXISD.lib(isapi.obj)

I've not been able to find any references to this library.  How do I fix this error?

I did try some of the recommendations to project settings but no help so far. Any help would be greatly appreciated.

Thank you in advance,

Kumar

Viewing all 15302 articles
Browse latest View live


Latest Images

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