Code worked in VS6 but not in VS2017
The following code worked before with VS6 VC++. But it does not complete the compiling with VS2017 VC++ (Link error is shown below). The complete template is in a .h file. What was changed in VS2017?...
View ArticleIs it possible to get a screen capture on windows 7 without capturing its own...
If I use GetDesktopWindow(), it includes the window which starts the capturing, I don't want to include that window. Just everything except the firing program. how can I achieve this? thanks Jack
View ArticleHow do I teach myself C++?
Hi, I found that after graduating college, I've had a lot of trouble teaching myself new skills. My guess is I'm not knowledgeable enough to know what information I need to find to learn the subject,...
View ArticleTrack database changes
Hi, ALL, I'm trying to implement the solution explained in this. However trying to call "SQLExecDirect();" on the very first query "IF NOT EXISTS(SELECT..." returns SQL_DATA_AT_EXEC. I don't understand...
View ArticleSmart pointers
Hi, I was told that my code will be greatly simplified if I start using smart pointers available in C++11. However, it is kind of hard for me to get the syntax. In the old way I simply write: Code:...
View ArticleSQLSetPos failure
Hi, I am trying to do follwing: Execute a query on the database and grab just some fields results. Then call SQLSetPos( stmt, 0, SQL_POSITION, SQL_LOCK_NO_CHANGE ); and then process the complete data...
View Article[RESOLVED] std::vector iterators
I'm compiling a header file which contains the following function... Code: PamPort * find_port (const std::string& port_name) const { for...
View ArticleWhy is C++ STL implementation is written like this
Why they use some kind of crazy naming convension and lot of underscores? Code: // constructors vector_impl(_Mytype_t% _Right) { // construct by copying _Right...
View ArticleConvert console into SDI
Hi all of you. I came here because I get always help here, and I am stuck into relative simple issue: to convert a console program, into a real life SDI MFC app, an program that embed OpenCV library. I...
View ArticleCPPUNIT_ASSERT (macro ?)
While debugging someone else's code yesterday I came across various statements like CPPUNIT_ASSERT() / CPPUNIT_ASSERT_EQUAL() etc - but i can't seem to find them defined anywhere. Are they just "known"...
View Articleaccess violation reading location 0x00000000
hello.. i am running a thread.but when i try to print anything edit box using the line aa.Format("%d",i); ts->_this->GetDlgItem(IDC_EDIT3)->SetWindowText(aa);//run time error occurs here. my...
View ArticleHow to use C++ concept I have learned with Visual Studio... visually?
I am learning C++. It is going really well. It is making other stuff I have done in programming really make sense. I was interested in getting started programming with C++ visually. I want to make a...
View Articleedit box problem
how do i read the contents of the edit box when the thread is getting executed.i am not able to use the member variable of the edit box which i have created,its popping an error. plz help
View ArticleBookmarks in VS 2015
In Visual Studio 2008, there is an option to move to the previous or next bookmark in the *current document.* This was replaced in Visual Studio 2015 with move to the previous or next bookmark in the...
View ArticleNo data returned
Hi, I've been on this couple of hours but can't figure out why am I not getting the data. I think I just need a fresh pair of eyes. Thank you. Code: --------- ret = SQLPrepare( m_hstmt, qry, SQL_NTS );...
View ArticleHow do I report a problem to MS?
Hi, This past weekend my Windows 8.1 picked up updates. Unfortunately they (or one of them) broke my SQL Server 2005, that came with the machine - turns out I can't query any of the table in the "sys"...
View Articlemathematical equation implmentation in c++
Hello, I need to implement the following math conversion in the c++. I am looking for simple function. Could you help me with this., I am not much aware of the maths functionalities available in c++ 1....
View ArticleHow to get displayed size of mouse cursor on Windows 10 in program
I need to know the displayed size of mouse cursor in my C++ Windows 10 program. On Windows 10, I make the pointer larger, say 5x than the original. Then, in my C++/MFC program, I tried these: int...
View ArticleBolding a Font of Groupbox heading/label in CDialog
How to bold a font of groupbox heading/label in CDialog.I tried below code but it didn't worked. Code: CWnd * pwnd = GetDlgItem(IDC_GROUPBOX); CFont * pfont = pwnd->GetFont(); LOGFONT lf;...
View ArticleFinding Miracast devices using WifiDirect api (c++)
I am trying to find all Miracast devices/wireless display (like smart TV that supports Miracast). How i can do that from windows desktop c++ software (not app)? I would like to do that from win7 and...
View Article