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

How to establish connection between visual C++ and MS SQLDB

$
0
0

Hi guys,

I am trying to write a Windows Form Application in Visual Studio 2017 regarding a database. I have created a local database file and also added a SQL query file which intent to add one row in this database. I have experience with C++ before, so the Windows form part is not so difficult to me.

But now, I don't know how to establish the Connection between the C++ program and the database. There are some examples in Internet but only in C# or VB which doesn't help so much. Can anyone help me a bit or give me a hint which direction should i go..

I have tried to transfer one C# code into C++ as following

 private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
  try
  {
   String^ str = "Data Source=(local); Database=mydata;";
   String^ query = "select * from data";
   SqlConnection^ con = gcnew SqlConnection(str);
   SqlCommand^ cmd = gcnew SqlCommand(query, con);
   con->Open();
   DataSet^ ds = gcnew DataSet();
   MessageBox::Show("connect with sql server");
   con->Close();
  }
  catch (Exception^)
  {
   MessageBox::Show("Error!");
  }

 }

But when I click this button, it still shows Error Message. Can anyone help?

Thanks in Advance!


How to add a control to display a bitmap in a CTreeCtrl window

$
0
0

I have a property sheet derived from CPropertySheet, which has a tree control (CTreeCtrl) on the left and CPropertyPageEx page on the left, different pages can be displayed when clicking items in the tree control.

I would like to display a bitmap on the bottom of the tree control window (under the tree view), to explain the functionalities when clicking different controls in the CPropertyPageEx pages. The reason to put the image under the tree view in the tree control window is that the property pages are very crowded and struggling space, and I want to display the image in the same place for each page. Could you please let me know how to add the image in the tree control window?

Thanks in advance.

trouble with strtok_s

$
0
0

I have a project I converted from VC 6.0 to VS 2010. After changing all strtok calls to strtok_s, the program built without errors. Now I'm creating an MFC app from scratch. The same code as in the converted project is now giving a compile error. The code is this:

CString Instr;

Token = strtok_s(Instr.GetBuffer(0), Separators, &NextToken);

The compiler doesn't like Instr.GetBuffer(0).  The error is:

error C2664: 'strtok_s' : cannot convert parameter 1 from 'wchar_t *' to 'char *'

Why would this statement with strtok_s compile in the converted project but not in the new project?  The types and syntax are identical.

CompositionAlphaMode missing

Dialog focus is not on checked RadioButton,but on the first RadioButton of a RadioButton Group?

$
0
0

Hello,

I have a dialog with a groupradio. The groupradio has 3 radio buttons(definit by Class CButton)
===================================
A,B,C is a group, the first RadioButton is A
CButton A;  CButton B;  CButton C;
===================================

Do following step:
①Button C is clicked(Check on) in this dialog(A)

② [OK] Button is clicked in the dialog(A), then other dialog(B) goes to open.

③[Back] Button is clicked in other dialog(B),then the dialog(A) is returned and re-displayed .

After run ③、the focus is on first RadioButton(CButton A) in the dialog(A), and Button C is checked on .

Refer to below info,it is MS spec. ↓

https://social.msdn.microsoft.com/Forums/vstudio/en-US/116377e1-9eb3-4638-a609-92ed07d81671/bnclicked-sent-for-focused-but-unchecked-radio-button-when-activatingdeactivating-window?forum=vcgeneral

But if I use xxx.setcheck(0) before use xxx.setcheck(1),this phenomenon is avoided.
I want to know Why xxx.setcheck(0) need before xxx.setcheck(1)?
Any ideas what might cause this?

Source Example:

BOOL CRadioButtonTest::OnInitDialog()
{
 // Set Radiobutton 
 kSetCheck( m_dwSelectBtnID );

  return TRUE;

}

void CRadioButtonTest::kSetCheck(
 const DWORD dwBtnID     // The ID for checked RadioButton Status
)
{
       //A.SetCheck(0);
       //B.SetCheck(0);
       //C.SetCheck(0);

     switch( dwBtnID )
       {
          case 1: //A check on status
                 A.SetCheck(1); 
                 break;
          case 2: //B check on status
                 B.SetCheck(1);
                 break;
          case 3:  //C check on status
                 C.SetCheck(1);
                 break;

         default:
                  XXX
         break;
         }
}






AlwaysCreate -> unsuccessfulbuild

$
0
0

It says: Creating ".\Debug\XCC Library.unsuccessfulbuild" because "AlwaysCreate" was specified.

Where does AlwaysCreate come from?

Getting crash when calling CallWindowProc() function in Migration from VS6.0 to VS2015

$
0
0

Hi,

I am working on migrating Win32 application from VC++6.0 to VS2015. The code compiled properly. But getting crash when we are pressing button at client machine but not in developer machines. I analysed the crash dump through WinDbg and seen the crash is happening below code at CallWindowProc().Here seems we are setting User define window processor to controls instead of default window processors through below code.

extern   FARPROC     lpfnOldTimeEditProc ;        
extern   FARPROC     lpfnTimeEditProc ;              
lpfnTimeEditProc = MakeProcInstance ((FARPROCTimeEditProc , hInst) ;
lpfnOldTimeEditProc = (FARPROCGetWindowLong ( sTaskInfo [ IDC_TIME_EDIT_ID ].hWnd ,                                                           GWL_WNDPROC) ;
SetWindowLong (sTaskInfo [ IDC_TIME_EDIT_ID ].hWnd ,
                           GWL_WNDPROC ,
                           (LONG) lpfnTimeEditProc) ;
return (CallWindowProc ((WNDPROC)lpfnOldTimeEditProc,
                            hWnd,
                            message,
                            wParam,
                            lParam));

Please let me know if any one faced crash issue for the above code.

Analysed the above issue in WinDBG below is the call stack. Please see it.


Microsoft (R) Windows Debugger Version 6.11.0001.404 X86
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [E:\NTNSECM\NEATCMCrash_1531401461.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

WARNING: Minidump contains unknown stream type 0x15
WARNING: Minidump contains unknown stream type 0x16
Symbol search path is: SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols;E:\NTNSECM
Executable search path is: 
Windows 7 Version 16299 MP (4 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Thu Jul 12 18:47:42.000 2018 (GMT+5)
System Uptime: not available
Process Uptime: 0 days 0:00:10.000
................................................................
.......
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(2b38.3e0c): Access violation - code c0000005 (first/second chance not available)
eax=00000000 ebx=0db01008 ecx=0000f5c4 edx=00000001 esi=000002cc edi=0db00ff8
eip=77cff62c esp=0535d264 ebp=0535d270 iopl=0         nv up ei pl nz na po nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202
ntdll!ZwGetContextThread+0xc:
77cff62c c20800          ret     8
0:000> !analyze -v
*******************************************************************************
*                                                                            *
*                        Exception Analysis                                   *
*                                                                            *
*******************************************************************************

*** WARNING: Unable to verify checksum for trader.exe
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for diCrPKI_3_5_0_0_seclore.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for diCryptoSys_2_1_0_0_seclore.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for xerces-c_2_8_0_vc8_0_seclore.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmtfs-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmrdm-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmbase-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmpsp-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for RDMHA-12.DLL - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmhttp-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmenc-12.dll - 
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for rdmtransport-12.dll - 
*** ERROR: Module load completed but symbols could not be loaded for QIPCAP.dll
*** ERROR: Module load completed but symbols could not be loaded for FSDCCommon.dll
Failed calling InternetOpenUrl, GLE=12002

FAULTING_IP: 
user32!EditWndProc+317
74a8e677 8901            mov     dword ptr [ecx],eax

EXCEPTION_RECORD:  ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 74a8e677 (user32!EditWndProc+0x00000317)
   ExceptionCode: c0000005 (Access violation)
  ExceptionFlags: 00000000
NumberParameters: 2
   Parameter[0]: 00000001
   Parameter[1]: 0000f5c4
Attempt to write to address 0000f5c4

DEFAULT_BUCKET_ID:  INVALID_POINTER_READ

PROCESS_NAME:  trader.exe

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_PARAMETER1:  00000001

EXCEPTION_PARAMETER2:  0000f5c4

WRITE_ADDRESS:  0000f5c4 

FOLLOWUP_IP: 
trader!TimeEditProc+a60 [e:\ws_rkeerthi\neat\cm\tws-cws\cm_fe_tcs\tws\code\sources\timeedit.c @ 892]
01189400 eb04            jmp     trader!TimeEditProc+0xa66 (01189406)

FAULTING_THREAD:  00003e0c

PRIMARY_PROBLEM_CLASS:  INVALID_POINTER_READ

BUGCHECK_STR:  APPLICATION_FAULT_INVALID_POINTER_READ_INVALID_POINTER_WRITE

LAST_CONTROL_TRANSFER:  from 74a9a617 to 74a8e677

STACK_TEXT:  
0535f18c 74a9a617 07e9a650 00000000 000000b0 user32!EditWndProc+0x317
0535f1c0 74abc366 07e9a650 00000000 000000b0 user32!EditWndProcWorker+0x77
0535f1f4 74a9e0bb 0016203c 000000b0 0000f5c4 user32!EditWndProcA+0x56
0535f220 74aa8849 77d19310 0016203c 000000b0 user32!_InternalCallWinProc+0x2b
0535f244 74aab145 000000b0 0000f5c4 0535f5c0 user32!InternalCallWinProc+0x20
0535f314 74aa833a 77d19310 00000000 000000b0 user32!UserCallWinProcCheckWow+0x1be
0535f35c 74a8f38b 000000b0 0000f5c4 0535f5c0 user32!CallWindowProcAorW+0xd4
0535f374 01189400 77d19310 0016203c 000000b0 user32!CallWindowProcA+0x1b
0535f3ec 74a9e0bb 0016203c 000000b0 0535f5c4 trader!TimeEditProc+0xa60 [e:\ws_rkeerthi\neat\cm\tws-cws\cm_fe_tcs\tws\code\sources\timeedit.c @ 892]
0535f418 74aa8849 00f7d7d6 0016203c 000000b0 user32!_InternalCallWinProc+0x2b
0535f43c 74aab145 000000b0 0535f5c4 0535f5c0 user32!InternalCallWinProc+0x20
0535f50c 74aaa89c 00f7d7d6 00000000 000000b0 user32!UserCallWinProcCheckWow+0x1be
0535f578 74a8b95b 07e9a650 00000000 0535f5c0 user32!SendMessageWorker+0x6ff
0535f5a0 772c0ff2 0016203c 000000b0 0535f5c4 user32!SendMessageW+0x5b
0535f5cc 772c087a 076ada54 0766a210 076ada10 msctf!CBackingStoreWin32::_GetTextState+0x52
0535f5f4 772bfacb 0535f678 772b116c 07664778 msctf!CBackingStore::Create+0x7a
0535f614 77305007 0766a210 772ba440 0535f650 msctf!CBStoreHolderWin32::QueryInterface+0x14b
0535f65c 77304e20 0535f678 07662958 00000000 msctf!CInputContext::_GetBackingStoreContext+0xab
0535f684 772e7940 00000001 00000000 68a31fb6 msctf!CInputContext::OnFocusChange+0x52
0535f738 772e8767 07647ca0 00000001 00000001 msctf!CThreadInputMgr::_SetFocus+0x510
0535fc58 772ec175 80000002 0016203c 80000002 msctf!CThreadInputMgr::OnInputFocusEvent+0x2d7
0535fcb4 74a9a91c 09bc0689 80000002 0016203c msctf!WinEventProc+0x135
0535fcf8 77d00bcd 0535fd14 00000020 0535fe5c user32!__ClientCallWinEventProc+0x4c
0535fd30 74db29ec 74ae0c2f 0535fe04 00000000 ntdll!KiUserCallbackDispatcher+0x4d
0535fd34 74ae0c2f 0535fe04 00000000 00000000 win32u!NtUserPeekMessage+0xc
0535fd64 74a89719 00000000 00000000 00000000 user32!_PeekMessage+0xcf
0535fd94 00fdfde8 0535fe04 00000000 00000000 user32!PeekMessageA+0x219
0535fe20 011e74ab 00e10000 00000000 075f3f40 trader!WinMain+0x88 [e:\ws_rkeerthi\neat\cm\tws-cws\cm_fe_tcs\tws\code\sources\crack.c @ 897]
0535fe6c 77bd8654 0516f000 77bd8630 dc219e9c trader!__scrt_common_main_seh+0xfd [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl @ 264]
0535fe80 77cf4a77 0516f000 54ec06e4 00000000 kernel32!BaseThreadInitThunk+0x24
0535fec8 77cf4a47 ffffffff 77d19f28 00000000 ntdll!__RtlUserThreadStart+0x2f
0535fed8 00000000 00f7c61a 0516f000 00000000 ntdll!_RtlUserThreadStart+0x1b


STACK_COMMAND:  ~0s; .ecxr ; kb

FAULTING_SOURCE_CODE:  
   888:             }
   889:     }
   890:  //   return (CallWindowProc (lpfnOldTimeEditProc,//abira changed for vs_migration15 artf587193 for warning removal
   891: if(lpfnOldTimeEditProc != NULL)
>  892: return (CallWindowProc (lpfnOldTimeEditProc,
   893:                             hWnd,
   894:                             message,
   895:                             wParam,
   896:                             lParam));
   897: else


SYMBOL_STACK_INDEX:  8

SYMBOL_NAME:  trader!TimeEditProc+a60

FOLLOWUP_NAME:  MachineOwner

MODULE_NAME: trader

IMAGE_NAME:  trader.exe

DEBUG_FLR_IMAGE_TIMESTAMP:  5b4753e9

FAILURE_BUCKET_ID:  INVALID_POINTER_READ_c0000005_trader.exe!TimeEditProc

BUCKET_ID:  APPLICATION_FAULT_INVALID_POINTER_READ_INVALID_POINTER_WRITE_trader!TimeEditProc+a60

WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/trader_exe/0_0_0_0/5b4753e9/user32_dll/6_2_16299_125/b8f77b3a/c0000005/0000e677.htm?Retriage=1

Followup: MachineOwner
---------

Regards,
RKeerthi.

How do I pass an IUnknown** pointer from C++ COM to C#

$
0
0
Hi,

I need to pass an IUnknown** pointer to a C# module through COM interop. I can add a method in an interface to on the C# side to handle this. The question is how do I handle it on the C# side

For example, from the C++ COM side I have access to the C# module through some interface, say m_pMyInterface:

Also, this IUnknown interface pointer is actually some other interface which derives from IUnknown, say IProgInterace.

IUnknown** pUnknown = <some_value>;

m_pMyInterface->MyMethod(pUnknown);

How do I handle this parameter in C#? Should it be an IntPtr, and if so how do I convert it back to the desired interface (IProgInterface) to call its methods?

TIA,

Jy

mouse click and capture(focus) issue

$
0
0

Hi! I tried to make a bot program by simulate mouse click to other program using SendMessage function.

SendMessage(hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y)); 

Sleep(200);

SendMessage(hwnd, WM_LBUTTONUP, 0, 0);

it works fine, but the problem is that all mouse move events are picked up by the process even if the mouse is outside of its clien area, so lbuttonup happens in wrong pos.

somehow figured out lbuttondown activates mouse capture to pick up all messages until lbuttonup is posted.

so maybe it should be like this.

SendMessage(hwnd, WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(x, y)); 

ReleaseCapture();

Sleep(200);

SendMessage(hwnd, WM_LBUTTONUP, 0, 0);

but cant find way to triger ReleaseCapture() in the target program.

also tried SendMessage(hwnd, CaptureChanged, ...) to triger ReleaseCapture(), but didnt work.

even without Sleep(200); command, the slight delay between down and up messages causes same problem.

plus, I found similar issue at C# forum, but couldn't understand the code.(social.msdn.microsoft.com/Forums/vstudio/en-US/8e85eb78-77f2-485f-9bd3-3eaa44233a8a/mousedown-and-mousemove-events?forum=csharpgeneral)

any methods to simulate the mouse click event correctly independent to current mouse move would be fine.

any good idea?



SQLite Not working - Cannot compile C file "sqlite3.c" with CLR.

$
0
0
I am trying to start a database and be able to work n it with C++, but I am not able to compile anything because first "sqlite3.h" was not being recognized and when I finally linked the file "dqlite3.c" it would recognize the header file but would not compile the .c file. What should I do? What do I link and how do I do it so that I can make this work? Thank you. 

CPUID SDK good alternatives

$
0
0

Hello I contacted CPUID support for CPUID SDK and they said 2500 USD, well thats quite a lot, is there cheaper or free alternatives to CPU-Z? Thank you

Or can anyone give idea how CPU-Z works how do they access data that windows it self cannot see and where to begin?

P.S.: I hope i posted in correct section

Signature for EXE & DLL

$
0
0

Hi,

I need a quick way of getting some reasonably unique signatures of some DLL and EXE files. Obviously, the entire content of a file can be hashed to form a unique signature. But, that's too processing heavy for my purpose. I am thinking of just taking the leading X bytes or kbytes of the file for this purpose. Could anyone please tell me how many leading bytes I should use for hashing into a good signature?

Thanks.


MFC exceptions

$
0
0
What exceptions are thrown by MFC library functions and, in each case, why?   These should be documented so developers can catch and handle them properly.

JSilverston nhswinc.com

'IInspectable': ambiguous symbol & 'iUnknown': ambiguous symbol

$
0
0

Hi,

I have these errors when looking at my Dx11Graphics.cpp file, these errors occur in File : client.h, line 69 & 76 ...

C2872 'IInspectable': ambiguous symbol
C2872 'IUnknown': ambiguous symbol

And I have these errors when looking at my App.cpp file ..



There are no other errors,

Here's my App.cpp includes and namespaces ..

#include "pch.h"
#include <winrt/Windows.Graphics.Imaging.h>
#include <winrt/Windows.Graphics.Display.h>
#include <Windows.UI.Composition.Interop.h>
#include <MemoryBuffer.h>
#include <Unknwn.h>
#include "Dx11Graphics.cpp"
#include "DeviceLostHelper.cpp"
//#include "DeviceLostEventArgs.cpp"
//using namespace Windows::Foundation;
//using namespace winrt;
using namespace winrt::Windows;
using namespace winrt::Windows::ApplicationModel::Core;
using namespace winrt::Windows::Foundation;
using namespace winrt::Windows::Foundation::Numerics;
using namespace winrt::Windows::UI;
using namespace winrt::Windows::UI::Core;
using namespace winrt::Windows::UI::Composition;
using namespace winrt::Windows::Graphics::Imaging;
using namespace winrt::Windows::Graphics::DirectX;
using namespace winrt::Windows::Graphics::Display;
//namespace CompNS = winrt::Windows::UI::Composition;
namespace ABI_NS
{
 using namespace ABI::Windows::Foundation;
 using namespace ABI::Windows::Graphics::DirectX;
 using namespace ABI::Windows::UI::Composition;
}
Here's my Dx11Graphics.cpp includes and namespaces …
#include "pch.h"
#include <d2d1_3.h>
#include <d3d11.h>
#include <wrl.h>
#include <dxgi1_3.h>

using namespace winrt::Windows::Graphics::DirectX;
using namespace Microsoft::WRL;
And here's my pch.h file …
//
// pch.h
// Header for platform projection include files
//

#pragma once

#define NOMINMAX

#include "winrt/Windows.ApplicationModel.Core.h"
#include "winrt/Windows.UI.Core.h"
#include "winrt/Windows.UI.Composition.h"
#include "winrt/Windows.UI.Input.h"
Edit : More info : Here's DeviceLostHelper.cpp …
#include "pch.h"
#include <dxgi.h>
#include <d3d11_4.h>
#include <winrt/Windows.Graphics.DirectX.Direct3D11.h>
#include <windows.graphics.directx.direct3d11.interop.h>

using namespace winrt::Windows::Graphics::DirectX::Direct3D11;





VariantToStringArray() and VariantToStringArrayAlloc(): What is the allocation method?

$
0
0

These two functions take a VARIANT that holds a safearray and returns an allocated array of strings.

In the Alloc() API the array and elements appear to be alloc'd.  The non-Alloc() API appears to still alloc the individual string elements.  At first I thought they might be merely referencing the BSTRs in the safearray I'm converting from however the converted string addresses are different and obviously changing a character in the safearray does not change it in the converted array.  So, it seems clear that these API do indeed alloc new arrays and/or elements and that's great.

The big problem is that they still can't be used without knowing how to delete the memory!

In order to use these we need to know how to free the memory allocated by the API.  MSDN is no help here and Googling pulls up nothing from anyone who has ever used them.  Can someone ping the win32prg DL and find out how these things are allocated so we can pair them with the appropriate delete/free please?

Thanks,
Stratcat


How to include DLL as file only?

$
0
0

Can't find the MS reference to do this.

Assuming I want to import DLL only.

Are there any changes to the codes here? https://msdn.microsoft.com/en-us/library/ms235636.aspx?f=255&MSPPError=-2147217396

How to import the dll only in the application project? This above tutorial is not applicable because it assumes that the user has the project.

Trace a code flow in Visual Studio

$
0
0

We have our C++ project codebase developed in VC++ IDE. I can compile and run the same.

The executable covers a lot of use cases and hence many flow executions paths. Is there a way by which during a flow execution the VC++ Studio can tell us which are the methods in the flow are called or trace the flow.

Assume that 3 functions are called out of 10 during a flow execution. Can we get a trace stating the 3 functions entered during execution in order?

I am aware of debugging tools in VC but tracing is different. Say I am working on a flow enhancement on a codebase that is spread across thousands of line - if I can trace the flow I would be 100 times faster during development and analyzing the codebase than to start debugging from main(). Further since there are threads and asynchronous events debugging such a flow will quiet be a challenge.

I am using Visual Studio Professional 2017 Version 15.5.1

Check for hooks/DLL injection

$
0
0

Hello

Can anyone give me some guidelines/snippets on how can i check if my process has been hooked/injected?

-Mrutyunjaya

Getting crash when calling CallWindowProc() function in Migration from VS6.0 to VS2015

$
0
0

Hi,

I am working on migrating Win32 application from VC++6.0 to VS2015. The code compiled properly. But getting crash when we are pressing button at client machine but not in developer machines. I analysed the crash dump through WinDbg and seen the crash is happening below code at CallWindowProc().Here seems we are setting User define window processor to controls instead of default window processors through below code.

extern   FARPROC     lpfnOldTimeEditProc ;        
extern   FARPROC     lpfnTimeEditProc ;              
lpfnTimeEditProc = MakeProcInstance ((FARPROC)TimeEditProc , hInst) ;
lpfnOldTimeEditProc = (FARPROC)GetWindowLong ( sTaskInfo [IDC_TIME_EDIT_ID ].hWnd ,                                                           GWL_WNDPROC) ;
SetWindowLong (sTaskInfo [IDC_TIME_EDIT_ID ].hWnd ,
                           GWL_WNDPROC ,
                           (LONG) lpfnTimeEditProc) ;
return (CallWindowProc ((WNDPROC)lpfnOldTimeEditProc,
                            hWnd,
                            message,
                            wParam,
                            lParam));

Please let me know if any one faced crash issue for the above code.

Regards,
RKeerthi.

Another awful bug in VS2017 version 15.7.4

$
0
0
struct S {
	const S() : i(1) {}
	const S(int i) : i(i){}
	int i;
};

S s;
S t(1);

int main() {}
It compiles !!!
Viewing all 15302 articles
Browse latest View live


Latest Images

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