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

How to run a macro vba Excel using automation from C++

$
0
0

Hello Friends,

I need a little help

I'm develop a dll that connect with Excel, for this I use a AutoWrap funtion (https://docs.microsoft.com/en-us/office/troubleshoot/office-developer/automate-excel-from-c). I can already open the excel file and write data into the cells, but now i need run a macro. I'm using the next code:

VARIANT res;
VariantInit(&res);	
VARIANT methodName;
VariantInit(&methodName);
methodName.bstrVal = CharToBSTR("All_combined");//CharToBSTR function it's mine
hr = AutoWrap(DISPATCH_METHOD, &res, pXlApp, L"Run", 1,methodName);

BSTR CharToBSTR(char* cadena) {
   int wslen = MultiByteToWideChar(CP_ACP, 0, cadena, strlen(cadena), 0, 0);
   BSTR bstr = SysAllocStringLen(0, wslen);
   MultiByteToWideChar(CP_ACP, 0, cadena, strlen(cadena), bstr, wslen);
   return bstr;
}

Now, this code does not throw an error, but neither run the macro!

I don't know where are my error

Thank you for your replies,


compile error

$
0
0

I have a C++ Win32 application that also uses some MFC code.(eg:AfxBeginThread()). Now when I compile the application , I am gtting the error "ErrorC1189#error:  WINDOWS.H already included.  MFC apps must not #include <Windows.h>". The error is indicated in files afxNow, how can I solve this error while keeping the MFC code.

 

MSB 8020 Platform build tool V142 cannot be found

$
0
0
Hi, VS 2013 been debugging this program for couple of years now, all of a sudden it's throwing the MSB 8020 issue.  I've checked the previous messages and they lead me nowhere.  Can,t find anyplace to get V142.  The reason I'm using 2013 is because @019 is throwing a different crippling error for which Microsoft is not ready to release a fix.  Seems if your going to have all your versions down at one time is bad form.  Am I the only affected user?

default guard page?

$
0
0

Is there a default guard page in a windows process? E.g. the one starting at 0? to raise exceptions when a NULL pointer access occurs? Or do I have to build my own one always, when I need one?

Is this possible to "using static" in Visual C++ CLI/CLR

$
0
0

Since C# 6.0, C# programmers and developers can 

using static

in their code, so static methods can be invoked directly and immediately without explicitly repeating the name of the class that provides these static methods in the code and for examples this is used to invoke the static methods of the Console, Math and String classes without repeating their names at all.

using static

is indeed a very productive and useful thing that was added to the C# programming language.

But if I need native code in addition to managed code, I need to program in C++ CLI/CLR, although I can mess up with unsafe code in C#, but still I want to benefit from the upcoming classes, functions and features in C++20 too, that in C# this will be difficult to benefit from these via P/Invoke and DllImport and unsafe code.

Is this possible to

using static

also in C++ CLI/CLR too?

I know that in C++ CLI/CLR I can use #define in a way to simulate using static.

for example:

#define Sqrt Math::Sqrt

And then in the main function I can do for example:

cout << Sqrt(2) << endl;

instead of:

cout << Math::Sqrt(2) << endl;

But I dislike this solution, because I will have to use the #define preprocessor on every static method that the managed class provides.

using static

is much shorter and readable code than the #define solution.

I will be glad if

using static

is also possible in C++ CLI/CLR.

Is this possible to #using dll in C#?

$
0
0

In C++ CLI/CLR this is possible to #using any dll file and use all the managed classes within this dll file in the code.

In C# you have to Add Reference and browse for the dll file.

I want to #using the dll file in C# instead of selecting it in a browser like you can do in C++ CLI/CLR.

Is this possible?


Running a process as admin

$
0
0

I am aware that since Windows services run in session 0, in order to launch user mode exes from services, we need to elevate the service to current user privilege level by getting usertoken and launch the process(CreateProcessAsUser). But it is seen that when logged in administrator and launched the user process using same API, the exe is not run as administrator.  Since the currently logged in user is admin, shouldn't the exe be run with admin privilege?  

My investigation is based on the lnk https://www.codeproject.com/KB/vista-security/VistaSessions.aspx?msg=3198293

CArray with CToolTipCtrl cpp MFC

$
0
0

Hello

   I 'm french. Context: visual studio 2017 and cpp.

   i want to create a Array of  CToolTipCtrl with the class CArray.

   i write in a function

{

  CArray<CToolTipCtrl ,CToolTipCtrl > ptArray;

  CToolTipCtrl  Local;

   Local.AddTool(Pt_CWin_Control, _Text);

    and so on .....

   ptArray.Add(Local);  ==> error during compilation can't not convert HWND  with REG_ARG

}

Just like that

{

// https://docs.microsoft.com/en-nz/cpp/mfc/reference/carray-class?view=vs-2019

// example for CArray::Add

CArray<CPoint,CPoint> ptArray;


CPoint pt(10,20);

}

 I don't undestand....  why it's a problem?

 G3D


Using a C dll function which passes back a handle to an "Object"

$
0
0

I am trying to use a dll written in C.

I load the dll with LoadLibrary (DllPath), then call function with GetProcAddress; but when I want to start a "conversation", the function called passes back a handle to an "object" (as described in the limited documentation).I have tried receiving it into a long or Int32. But failed.

This qusetion has been asked by Stephen R Hill with the same topic ten years ago, and solved by Peter Ritchie.  It is a pity that I can not get access to Stephen R Hill for no email or anyother imformation left by him.

Does anyone have any idea how I progress with this? If I need to clarify further please let me know!

Many thanks,


Weird math problem with VS2015

$
0
0

Hello , So i will just get to it .

I was trying to do this 

DWORD Value1 =7cb1d74f ;

Value1 = Value1  *-1 ;

the answer should be 834e28b0 , But in debugger its showing result as 834e28b1 .

Is there something im not getting ?  

I tried using singed int , no change .

error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'

$
0
0

HI guys does anyone come across these sort of compile error before? if you have how do one goes about fixing them  doyou know? by the way I am using visual C++  2008 express edition platform

main.cpp
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objbase.h(368) : error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objbase.h(368) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objbase.h(369) : error C2371: 'IRpcChannelBuffer' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\rpcndr.h(937) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objbase.h(369) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(42) : error C2146: syntax error : missing ';' before identifier 'IUnknown'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(42) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(48) : error C2146: syntax error : missing ';' before identifier 'IClassFactory'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(48) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(106) : error C2371: 'IUnknown' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(42) : see declaration of 'IUnknown'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(234) : error C2371: 'IClassFactory' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\unknwn.h(48) : see declaration of 'IClassFactory'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(42) : error C2146: syntax error : missing ';' before identifier 'IMarshal'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(42) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(48) : error C2146: syntax error : missing ';' before identifier 'IMalloc'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(48) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(54) : error C2146: syntax error : missing ';' before identifier 'IMallocSpy'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(54) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(60) : error C2146: syntax error : missing ';' before identifier 'IStdMarshalInfo'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(60) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(66) : error C2146: syntax error : missing ';' before identifier 'IExternalConnection'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(66) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(72) : error C2146: syntax error : missing ';' before identifier 'IMultiQI'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(72) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(78) : error C2146: syntax error : missing ';' before identifier 'IEnumUnknown'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(78) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(84) : error C2146: syntax error : missing ';' before identifier 'IBindCtx'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(84) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(90) : error C2146: syntax error : missing ';' before identifier 'IEnumMoniker'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(90) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(96) : error C2146: syntax error : missing ';' before identifier 'IRunnableObject'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(96) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(102) : error C2146: syntax error : missing ';' before identifier 'IRunningObjectTable'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(102) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(108) : error C2146: syntax error : missing ';' before identifier 'IPersist'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(108) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(114) : error C2146: syntax error : missing ';' before identifier 'IPersistStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(114) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(120) : error C2146: syntax error : missing ';' before identifier 'IMoniker'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(120) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(126) : error C2146: syntax error : missing ';' before identifier 'IROTData'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(126) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(132) : error C2146: syntax error : missing ';' before identifier 'IEnumString'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(132) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(138) : error C2146: syntax error : missing ';' before identifier 'ISequentialStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(138) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(144) : error C2146: syntax error : missing ';' before identifier 'IStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(144) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(150) : error C2146: syntax error : missing ';' before identifier 'IEnumSTATSTG'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(150) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(156) : error C2146: syntax error : missing ';' before identifier 'IStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(156) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(162) : error C2146: syntax error : missing ';' before identifier 'IPersistFile'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(162) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(168) : error C2146: syntax error : missing ';' before identifier 'IPersistStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(168) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(174) : error C2146: syntax error : missing ';' before identifier 'ILockBytes'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(174) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(180) : error C2146: syntax error : missing ';' before identifier 'IEnumFORMATETC'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(180) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(186) : error C2146: syntax error : missing ';' before identifier 'IEnumSTATDATA'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(186) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(192) : error C2146: syntax error : missing ';' before identifier 'IRootStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(192) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(198) : error C2146: syntax error : missing ';' before identifier 'IAdviseSink'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(198) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(204) : error C2146: syntax error : missing ';' before identifier 'IAdviseSink2'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(204) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(210) : error C2146: syntax error : missing ';' before identifier 'IDataObject'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(210) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(216) : error C2146: syntax error : missing ';' before identifier 'IDataAdviseHolder'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(216) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(222) : error C2146: syntax error : missing ';' before identifier 'IMessageFilter'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(222) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(228) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(228) : error C2371: 'IRpcChannelBuffer' : redefinition; different basic types
        c:\program files\microsoft visual studio 9.0\vc\include\rpcndr.h(937) : see declaration of 'IRpcChannelBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(234) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer2'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(234) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(240) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer3'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(240) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(246) : error C2146: syntax error : missing ';' before identifier 'IRpcProxyBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(246) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(252) : error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(252) : error C2371: 'IRpcStubBuffer' : redefinition; different basic types
        c:\program files\microsoft visual studio 9.0\vc\include\rpcndr.h(2534) : see declaration of 'IRpcStubBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(258) : error C2146: syntax error : missing ';' before identifier 'IPSFactoryBuffer'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(258) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(264) : error C2146: syntax error : missing ';' before identifier 'IChannelHook'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(264) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(270) : error C2146: syntax error : missing ';' before identifier 'IPropertyStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(270) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(276) : error C2146: syntax error : missing ';' before identifier 'IPropertySetStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(276) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(282) : error C2146: syntax error : missing ';' before identifier 'IEnumSTATPROPSTG'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(282) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(288) : error C2146: syntax error : missing ';' before identifier 'IEnumSTATPROPSETSTG'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(288) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(294) : error C2146: syntax error : missing ';' before identifier 'IClientSecurity'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(294) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(300) : error C2146: syntax error : missing ';' before identifier 'IServerSecurity'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(300) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(306) : error C2146: syntax error : missing ';' before identifier 'IClassActivator'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(306) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(312) : error C2146: syntax error : missing ';' before identifier 'IRpcOptions'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(312) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(318) : error C2146: syntax error : missing ';' before identifier 'IComBinding'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(318) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(324) : error C2146: syntax error : missing ';' before identifier 'IFillLockBytes'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(324) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(330) : error C2146: syntax error : missing ';' before identifier 'IProgressNotify'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(330) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(336) : error C2146: syntax error : missing ';' before identifier 'ILayoutStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(336) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(342) : error C2146: syntax error : missing ';' before identifier 'ISurrogate'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(342) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(348) : error C2146: syntax error : missing ';' before identifier 'IGlobalInterfaceTable'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(348) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(354) : error C2146: syntax error : missing ';' before identifier 'IDirectWriterLock'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(354) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(360) : error C2146: syntax error : missing ';' before identifier 'ISynchronize'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(360) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(366) : error C2146: syntax error : missing ';' before identifier 'ISynchronizeMutex'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(366) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(372) : error C2146: syntax error : missing ';' before identifier 'IAsyncSetup'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(372) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(378) : error C2146: syntax error : missing ';' before identifier 'ICancelMethodCalls'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(378) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(384) : error C2146: syntax error : missing ';' before identifier 'IAsyncManager'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(384) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(390) : error C2146: syntax error : missing ';' before identifier 'IWaitMultiple'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(390) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(396) : error C2146: syntax error : missing ';' before identifier 'ISynchronizeEvent'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(396) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(402) : error C2146: syntax error : missing ';' before identifier 'IUrlMon'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(402) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(408) : error C2146: syntax error : missing ';' before identifier 'IClassAccess'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(408) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(414) : error C2146: syntax error : missing ';' before identifier 'IClassRefresh'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(414) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(420) : error C2146: syntax error : missing ';' before identifier 'IEnumPackage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(420) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(426) : error C2146: syntax error : missing ';' before identifier 'IEnumClass'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(426) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(432) : error C2146: syntax error : missing ';' before identifier 'IClassAdmin'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(432) : warning C4091: '' : ignored on left of 'interface' when no variable is declared
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(520) : error C2371: 'IMarshal' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(42) : see declaration of 'IMarshal'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(778) : error C2371: 'IMalloc' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(48) : see declaration of 'IMalloc'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(985) : error C2371: 'IMallocSpy' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(54) : see declaration of 'IMallocSpy'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(1348) : error C2371: 'IStdMarshalInfo' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(60) : see declaration of 'IStdMarshalInfo'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(1458) : error C2371: 'IExternalConnection' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(66) : see declaration of 'IExternalConnection'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(1593) : error C2371: 'IMultiQI' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(72) : see declaration of 'IMultiQI'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(1693) : error C2371: 'IEnumUnknown' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(78) : see declaration of 'IEnumUnknown'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(1900) : error C2371: 'IBindCtx' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(84) : see declaration of 'IBindCtx'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(2198) : error C2371: 'IEnumMoniker' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(90) : see declaration of 'IEnumMoniker'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(2364) : error C2371: 'IRunnableObject' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(96) : see declaration of 'IRunnableObject'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(2549) : error C2371: 'IRunningObjectTable' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(102) : see declaration of 'IRunningObjectTable'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(2796) : error C2371: 'IPersist' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(108) : see declaration of 'IPersist'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(2893) : error C2371: 'IPersistStream' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(114) : see declaration of 'IPersistStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(3083) : error C2371: 'IMoniker' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(120) : see declaration of 'IMoniker'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(3595) : error C2371: 'IROTData' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(126) : see declaration of 'IROTData'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(3698) : error C2371: 'IEnumString' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(132) : see declaration of 'IEnumString'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(3862) : error C2371: 'ISequentialStream' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(138) : see declaration of 'ISequentialStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(4049) : error C2371: 'IStream' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(144) : see declaration of 'IStream'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(4368) : error C2371: 'IEnumSTATSTG' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(150) : see declaration of 'IEnumSTATSTG'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(4545) : error C2371: 'IStorage' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(156) : see declaration of 'IStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(5045) : error C2371: 'IPersistFile' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(162) : see declaration of 'IPersistFile'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(5241) : error C2371: 'IPersistStorage' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(168) : see declaration of 'IPersistStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(5453) : error C2371: 'ILockBytes' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(174) : see declaration of 'ILockBytes'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(5735) : error C2371: 'IEnumFORMATETC' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(180) : see declaration of 'IEnumFORMATETC'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(5922) : error C2371: 'IEnumSTATDATA' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(186) : see declaration of 'IEnumSTATDATA'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(6088) : error C2371: 'IRootStorage' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(192) : see declaration of 'IRootStorage'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(6303) : error C2371: 'IAdviseSink' : redefinition; different basic types
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(198) : see declaration of 'IAdviseSink'
C:\Program Files\Microsoft Visual Studio 9.0\VC\include\objidl.h(6303) : fatal error C1003: error count exceeds 100; stopping compilation
Build log was saved at "file://c:\Documents and Settings\Femi\My Documents\Visual Studio 2008\Part 7\part7\Debug\BuildLog.htm"
part7 - 104 error(s), 66 warning(s)

C1083 Cannot open include: 'AtlHttp.h': No such file or directory. I'm getting this error in Visual Studio in 2017.

$
0
0

I'm migrating my project is from visual studio 2010 to 2017 and I'm getting from this error. 

Why altHttp.h is not included in visual studio 2017? 

Is is depreciated now ? if yes, then what is its replacement? 

Linker error with static template member

$
0
0

I have encountered a DLL/Linker problem for which I have not been able to find a solution.

Imagine I have a DLL a.dll with the following header:

// a.h 

#pragma once

#ifdef BUILDDLL
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif

template <typename T>
class A {
public:
	static int ID;
};

class DLLEXPORT B : public A<int> { };

By my understanding, this implicitly marks the A<int> instance as dllexport.

Additionally, there is a file that defines the contents of a.dll:

// a.cpp

#define BUILDDLL

#include "A.h"

template <typename T>
int A<T>::ID = 0;

template class DLLEXPORT A<int>;

When I check the exports of the generated a.dll, I find that A<int>::ID is part of the exports: 

 5    4 0001C160 ?ID@?$A@H@@2HA = ?ID@?$A@H@@2HA (public: static int A<int>::ID)

Now for the use part:

// main.cpp

#include "A.h"

int main()
{
	std::cout << B::ID;
}


Now when I try and use a.h and link with a.dll, I nevertheless get a linker error:

2>DllClient.obj : error LNK2001: unresolved external symbol "public: static int A<int>::ID" (?ID@?$A@H@@2HA)

Notice that the symbol is identical, but the linker complains regardless.

Any help or pointer would be greatly appreciated!

Thanks!

SubItemHitTest fails to get iSubItem number when on third monitor

$
0
0
We have code (attached snippet) that checks which column in a CListCtrl a user has double clicked in. It works correctly unless the user has the dialog open on a third monitor and the third monitor is configured to be to the far left of the first monitor.  (In Windows the monitors will be listed as 3,2,1 left to right) The only way we have found to fix it is to change the order of the monitors in Windows and then physically rearrange them. Is there something else we can do to make this work programmaticly?

** CODE SNIPPET

void SEQUENCE_DLG::OnNMDblclkSequenceList1(NMHDR *pNMHDR, LRESULT *pResult)
{
  LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR);
  DWORD dwPos;
  //Get were the pick is in the list
  dwPos = GetMessagePos();
  //Set the screen points
  POINT PopupMenuClientPoint;
  PopupMenuClientPoint.x = LOWORD(dwPos);
  PopupMenuClientPoint.y = HIWORD(dwPos);
  // Convert the point from screen to client coordinates,
  // relative to the listview
  m_SEQUENCE_LIST1.ScreenToClient(&PopupMenuClientPoint);

  LVHITTESTINFO hitinfo = { 0 };
  hitinfo.pt = PopupMenuClientPoint;
  m_SEQUENCE_LIST1.SubItemHitTest(&hitinfo);
....



After this code is ran, the hitinfo.iSubItem member will be -1, but only on the third monitor. If I drag the dialog to any other monitor or rearrange them, then it correctly returns the column number.

fatal error C1083: Cannot open type library file: 'C:\windows\system32\winhttp.dll': Error loading type library/DLL.

$
0
0

Hi all,

I am building this CPP project of mine, it is getting build in my other machine, having windows 10, but when I am trying to build the same solution in Windows Server 2016 it is giving me the error mentioned in subject.

The file 'winhttp.dll' exists at the location, I have tried with 'SysWOW64' location as well but still facing the same issue. When i visit my 'stdafx.h' file and hover on the import statement I can see the following error:

"Error cannot open source file "C:/Program Files(x86)/Jenkins/workspace/<job-name>/<SVN-repository>/x64/ServiceBuild/winhttp.tlh"

As far as i know, the TLH file never exists instead it gets created when the project is building/rebuilding.

P.S. - both the machines uses same version of VS 2015.

Thanks in advance for all your help.



std::ofstream open causes deadlock

$
0
0

I have a C++ application which has multiple threads which runs the code in different dlls. These two threads create and manipulate different physical files using std::ofstream.

But after i compiled the same old project with visual studio 2017, there is a strange dead lock that is happening on the ofstream object creation. Here is the stack trace taken from windbg

  13  Id: 15c4.c18 Suspend: 0 Teb: 00007ff7`2be60000 Unfrozen
 # Child-SP          RetAddr           Call Site
00 0000007d`b890f578 00007fff`5424de39 ntdll!NtWaitForSingleObject+0xa
01 0000007d`b890f580 00007fff`5424b7e4 ntdll!RtlpWaitOnCriticalSection+0xe1
02 0000007d`b890f650 00007fff`4c1161e0 ntdll!RtlpEnterCriticalSectionContended+0xa4
03 0000007d`b890f690 00007fff`4c1160d5 ucrtbase!__acrt_stdio_allocate_stream+0x130
04 0000007d`b890f6d0 00007fff`4c112578 ucrtbase!__acrt_stdio_allocate_stream+0x25
05 0000007d`b890f700 00007fff`4c331660 ucrtbase!fsopen+0x58
06 (Inline Function) --------`-------- msvcp140!std::_Xfsopen+0x14 [d:\agent\_work\2\s\src\vctools\crt\crtw32\stdcpp\fiopen.cpp @ 17] 
07 0000007d`b890f750 00007fff`449bb373 msvcp140!std::_Xfiopen<char>+0xe0 [d:\agent\_work\2\s\src\vctools\crt\crtw32\stdcpp\fiopen.cpp @ 90] 
08 0000007d`b890f780 00007fff`449bc86c jsonout_plugin!genint::lib::rotatable_ofstream::do_open+0x83
09 0000007d`b890f800 00007fff`449bd99b jsonout_plugin!genint::lib::rotatable_ofstream::rotate+0xb7c
0a 0000007d`b890fae0 00007fff`449bd464 jsonout_plugin!genint::lib::rotatable_ofstream::update+0x1db
0b 0000007d`b890fb50 00007fff`4c331ed3 jsonout_plugin!genint::lib::rotatable_ofstream::observable_filebuf::sync+0x64
0c (Inline Function) --------`-------- msvcp140!std::basic_streambuf<char,std::char_traits<char> >::pubsync+0xd [d:\agent\_work\2\s\src\vctools\crt\crtw32\stdhpp\streambuf @ 143] 
0d 0000007d`b890fb80 00007fff`449a65eb msvcp140!std::basic_ostream<char,std::char_traits<char> >::flush+0x53 [d:\agent\_work\2\s\src\vctools\crt\crtw32\stdhpp\ostream @ 591] 
0e 0000007d`b890fc00 00007fff`449a1c00 jsonout_plugin!std::endl<char,std::char_traits<char> >+0x43
0f 0000007d`b890fc30 00007ff7`2c93dbc5 jsonout_plugin!genint::jsonout_plugin::json_sink_node::execute+0x13c
10 0000007d`b890fd50 00007ff7`2c90f10c genintd!genint::pipeline::node_lifecycle_impl<1>::execute+0x2d
11 0000007d`b890fd80 00007ff7`2c9139eb genintd!genint::pipeline::node::thread_run+0x100
12 0000007d`b890fe80 00007ff7`2c914a36 genintd!boost::_bi::bind_t<void,std::mem_fun_t<void,genint::pipeline::node>,boost::_bi::list1<boost::_bi::value<genint::pipeline::node * __ptr64> > >::operator()+0x23
13 0000007d`b890fec0 00007ff7`2c95ebc3 genintd!boost::detail::thread_data<boost::_bi::bind_t<void,std::mem_fun_t<void,genint::pipeline::node>,boost::_bi::list1<boost::_bi::value<genint::pipeline::node * __ptr64> > > >::run+0x1a
14 0000007d`b890fef0 00007fff`4c12cd70 genintd!boost::system::system_category+0x53
15 0000007d`b890ff30 00007fff`520e13d2 ucrtbase!o__realloc_base+0x60
16 0000007d`b890ff60 00007fff`542254f4 kernel32!BaseThreadInitThunk+0x22
17 0000007d`b890ff90 00000000`00000000 ntdll!RtlUserThreadStart+0x34

do_open() is my function where i call this function 

std::filebuf open().

ANybody has any idea why this kind of critical section deadlock can happen just while creating a filebuf

Same happens for this code as well..

std::fstream open("filename", std::ios::binary | std::ios::in | std::ios::out);

 # Child-SP          RetAddr           Call Site
00 000000d4`02bfdc78 00007ffb`8a6057ff ntdll!NtWaitForAlertByThreadId+0x14
01 000000d4`02bfdc80 00007ffb`8a605706 ntdll!RtlpWaitOnAddressWithTimeout+0x43
02 000000d4`02bfdcb0 00007ffb`8a605597 ntdll!RtlpWaitOnAddress+0xb2
03 000000d4`02bfdd20 00007ffb`8a5c4bf4 ntdll!RtlpWaitOnCriticalSection+0xdb
04 000000d4`02bfddf0 00007ffb`8a5c4b20 ntdll!RtlpEnterCriticalSectionContended+0xcc
05 000000d4`02bfde20 00007ffb`875061e0 ntdll!RtlEnterCriticalSection+0x40
06 000000d4`02bfde50 00007ffb`875060d5 ucrtbase!find_or_allocate_unused_stream_nolock+0xc4
07 000000d4`02bfde90 00007ffb`87502578 ucrtbase!__acrt_stdio_allocate_stream+0x25
08 000000d4`02bfdec0 00007ffb`7d3c1660 ucrtbase!common_fsopen<char>+0x4c
*** WARNING: Unable to verify checksum for ws-plugin.dll
09 (Inline Function) --------`-------- msvcp140!std::_Xfsopen+0x14 [d:\agent\_work\3\s\src\vctools\crt\crtw32\stdcpp\fiopen.cpp @ 17] 
0a 000000d4`02bfdf10 00007ffb`61c4fc6f msvcp140!std::_Xfiopen<char>+0xe0 [d:\agent\_work\3\s\src\vctools\crt\crtw32\stdcpp\fiopen.cpp @ 90] 
0b 000000d4`02bfdf40 00007ffb`61c4fd18 ws_plugin!std::basic_filebuf<char,std::char_traits<char> >::open+0x43
0c 000000d4`02bfdfa0 00007ffb`61c4e1ed ws_plugin!std::basic_fstream<char,std::char_traits<char> >::open+0x38
0d 000000d4`02bfdfd0 00007ffb`61c4e0fb ws_plugin!genint::persistence::handle::do_open+0xe1

Has someone come across such problem ?

How to add a command to each icon in the gallery on the ribbon

$
0
0

I can create a gallery with either CMFCRibbonGallery or using gallery button in the toolbox. The icons can be displayed in the gallery.

Could you please let me know how to add a command to each icon in the gallery so that clicking each icon can trigger an event handler like clicking a button?

Thanks in advance.

Can I have 2 rows of items on the ribbon?

$
0
0

In default feature, a ribbon can contain 3 rows of items with small icons 16x16 and 1 row of items with large icons 32x32.

Is it possible to add 2 rows of items on the ribbon? If it is, how can I make items on 2 rows on the ribbon?

Thanks in advance.

Application Error - Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385

$
0
0

Hi,

we have one Visual C++ application and this application also using few external dlls. while exiting from application, getting following error. This is happened in Windows 7.

Please help us to resolve this issue.

 

Log Name:     Application

Source:       Application Error

Date:         28/07/2010 11:44:16 AM

Event ID:     1000

Task Category: (100)

Level:        Error

Keywords:     Classic

User:         N/A

Computer:     CRIWKS12.crillylaw.local

Description:

Faulting application name: WinTest.exe, version: 2.7.1.0, time stamp: 0x4b78d5b8

Faulting module name: KERNELBASE.dll, version: 6.1.7600.16385, time stamp: 0x4a5bdaae

Exception code: 0x0eedfade

Fault offset: 0x00009617

Faulting process id: 0x10b8

Faulting application start time: 0x01cb2df647dfd847

Faulting application path: C:\Program Files\xxx\xxx\xxx\ WinTest.exe

Faulting module path: C:\Windows\system32\KERNELBASE.dll

Report Id: a17377fd-99e9-11df-8941-90fba60d7539

Event Xml:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">

 <System>

   <Provider Name="Application Error" />

   <EventID Qualifiers="0">1000</EventID>

   <Level>2</Level>

   <Task>100</Task>

   <Keywords>0x80000000000000</Keywords>

   <TimeCreated SystemTime="2010-07-28T01:44:16.000000000Z" />

   <EventRecordID>3773</EventRecordID>

   <Channel>Application</Channel>

   <Computer>CRIWKS12.crillylaw.local</Computer>

   <Security />

 </System>

 <EventData>

   <Data> WinTest.exe</Data>

   <Data>2.7.1.0</Data>

   <Data>4b78d5b8</Data>

   <Data>KERNELBASE.dll</Data>

   <Data>6.1.7600.16385</Data>

   <Data>4a5bdaae</Data>

   <Data>0eedfade</Data>

   <Data>00009617</Data>

   <Data>10b8</Data>

   <Data>01cb2df647dfd847</Data>

   <Data>C:\Program Files\xxx\xxx\xxx\ WinTest.exe</Data>

   <Data>C:\Windows\system32\KERNELBASE.dll</Data>

   <Data>a17377fd-99e9-11df-8941-90fba60d7539</Data>

 </EventData>

</Event>

 

 

PS. I apologise for not being able to provide the application's name.

 

Crash in mshtml!COmWindowProxy::PrivateAddRef+0x67

$
0
0
Application is crashing while clicking a button in a page in a web browser control.  The top frame in the crash dump call stack is mshtml!COmWindowProxy::PrivateAddRef+0x67. Could you please let us know if there is any hotfix available for this callstack.

The call stack is :

00 00000012`118ceee0 00007fff`caaf0510 mshtml!COmWindowProxy::PrivateAddRef+0x67
01 00000012`118cef10 00007fff`caaf04a3 mshtml!CEventPathBuilder::SetProxy+0x20
02 00000012`118cef40 00007fff`cab8921b mshtml!CEventPathBuilder::AppendWindowTarget+0x43
03 00000012`118cef70 00007fff`caaed039 mshtml!CWindow::BuildEventPath+0x1b
04 00000012`118cefa0 00007fff`cafc7766 mshtml!CEventMgr::Dispatch+0xed
05 00000012`118cf250 00007fff`cb891c9c mshtml!CMessagePort::HandlePostMessage+0x1ba
06 00000012`118cf2c0 00007fff`caaf80b2 mshtml!CMessageDispatcher::ProcessNotification+0xdc
07 00000012`118cf310 00007fff`cabab02f mshtml!GlobalWndOnPaintPriorityMethodCall+0x242
08 00000012`118cf3e0 00007fff`cab86359 mshtml!CGwndPaintRequest::OnWatchdogTimer+0x1f
09 00000012`118cf410 00007fff`caaf966f mshtml!FormsOnTimer+0xc5
0a 00000012`118cf480 00007ff8`00d31c84 mshtml!GlobalWndProc+0x13f
0b 00000012`118cf510 00007ff8`00d315cc user32!UserCallWinProcCheckWow+0x274
0c 00000012`118cf670 00007fff`f3e53812 user32!DispatchMessageWorker+0x1ac
0d 00000012`118cf6f0 00007fff`f3e54253 mfc140!AfxInternalPumpMessage(void)+0x52 [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 183]
0e 00000012`118cf720 00007fff`f3e5373c mfc140!CWinThread::Run(void)+0x83 [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 629]
0f 00000012`118cf770 00007ff8`0030cd70 mfc140!_AfxThreadEntry(void * pParam = 0x00000012`744fec50)+0x13c [f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp @ 122]
10 00000012`118cf8b0 00007ff8`010984d4 ucrtbase!thread_start<unsigned int +0x40
11 00000012`118cf8e0 00007ff8`0319e851 kernel32!BaseThreadInitThunk+0x14
12 00000012`118cf910 00000000`00000000 ntdll!RtlUserThreadStart+0x21
Viewing all 15302 articles
Browse latest View live


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