Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ dll in C# code
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01599867
Message ID:
01599922
Views:
137
>>The developer of that C++ library is having the same problem as me. He can only debug in Visual Studio 2010 and in 2012 he is getting the same error. So, for now I don't have another choice than to mock that part.
>
>If you don't want to try to debug the actual C++ DLL, at least grab the function signature from the source code for it (ex. the line that says function xxx Invoke1 in the cpp file) and post it here.

This is main.cpp file of that project (I see lots of files in that project, so I don't know which one actually implements everything):
// main.cpp : Implementation of Cmain
#include "stdafx.h"
#include "Ww.h"
#include "main.h"
#include "mainengine.h"

/////////////////////////////////////////////////////////////////////////////
// Cmain


STDMETHODIMP Cmain::invoke(BSTR query, BSTR *result)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState())
	try
	{
		pMainEngine->InvokeCall(&query, result);
	}
	catch(...)
	{
		RecordExceptionInfo();
	}
	
	return S_OK;
}
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform