My problem is fixed, environment issues. But, how do you like VS2017? I hear its about like 2015. I would love to hear your comments. Craig
inlandchris
Posts
-
Where is GetTickCount64()? -
Where is GetTickCount64()?REALLY!! I did not know this. I looked at this file "sysinfoapi.h" and it looks like the contents of the file Winbase.h in the WindowsSDK That is fantastic so if I compile for windows 8 or 10, I will include it. I re-downloaded 8.1 and refreshed it because mine was downloaded about 2 years ago and I had forgotten all about them, thanks for the memory jog...getting old.
-
Where is GetTickCount64()?Many thanks. The reason I wanted to know where the function resides is because I also saw the documentation of this function and I specified this kernel32 in my project to link with it but still didn't work. I do have more than one Kernel32 and tried them all. That is why I wanted to know where this function is defined. As it turns out, my environment variables were corrupted and my directory search for the compiler/linker didn't go beyond its own base directory. I manually put in the WindowsSDK lib and include and got it running. Still have minor issues but will get there. Thanks again for your patients. Craig
-
Where is GetTickCount64()?Yes, thank you. My environment variables were corrupted. Probably when installed the MSVC2015 while 2005 was active. I do have the latest WindowsSDK (v7.1A) and pointed to it inside MSVC2005 project, not options. It compiles and Links ok. I do have a warning message stating TmSchema.h is obsolete. Please include vssym32.h instead. However,not sure where its coming from so I have to search each file of 1,900 header files in the SDK to find a header that is pointing to it. It gets this message every-time it compiles a file because it does the stdafx.h first. So, I need to check each include in the stdafx.h too. Thanks for the help
-
Where is GetTickCount64()?Hi and thanks but I looked there and the Internet before I would post it here. I just need some extra help in locating this elusive function, GetTickCount64().
-
Where is GetTickCount64()?Hi and thank you for the help. The compiler is Microsoft visual Studio 2005 and 2015, (MSVC). I run the program on these OS's: Windows 7, 8, and 10. I search both compilers for any header file that contains GetTickCount64 but its not hear, Yes, I google the internet but nothing suggest where it is defined. Microsoft defines it in Winbase.h but not in my compilers from Microsoft. Most importantly, what is the LIB that has this function? Its also helpful if I can find the header file but really not that important, just want the LIB and maybe a file date of the LIB to make sure I have the right one.
-
Where is GetTickCount64()?Please help: I cannot find the header file for GetTickCount64() I am using GetTickCount() but that is only good for about 49 days and my program runs forever..maybe. Anyway, I am using C++ with MFC I even tried this: #if (_WIN32_WINNT >= 0x0600) WINBASEAPI ULONGLONG WINAPI GetTickCount64(void); #endif But that only declares it so the compiler doesn't complain and don't need the header file but its not in any library or DLL that I can find. I have tried searching everywhere on the computer and the internet, what am I doing wrong? I am using both MSVC2005 and MSVC2015 with very bad luck. Compilers parameters: Application (.exe) Use MFC in a Static Library Use of ATL: Static Link to ATL Use Multi-Byte Character Set No Common Language Runtime support and #define WINVER 0x0601 Thanks in advance Craig
-
CTreeView and CImagelistHere is a snippet of code I wrote last month. It makes a CTreeview with a list of icons (big size) on the left with a description on the right side (2nd column). Dont forget, icons have 2 sizes, small and big. See if you can understand what I wrote:
CImageList * m_pImageList; CImageList * m_pImageListSmall; // insert two columns (REPORT mode) and modify the new header items m_ctlDatabaseList.GetWindowRect(&rect); m_ctlDatabaseList.InsertColumn(0, strItem1, LVCFMT_LEFT, rect.Width() * 3/9, 0); //spaces them equally. This is a header of the CTree control m_ctlDatabaseList.InsertColumn(1, strItem2, LVCFMT_LEFT, rect.Width() * 1/3, 1); m_ctlDatabaseList.InsertColumn(2, strItem3, LVCFMT_LEFT, rect.Width() * 2/7, 2); ///create the icons CRect rect; CzScanApp *pApp; pApp = (CzScanApp*)AfxGetApp(); m_pImageList = new CImageList(); m_pImageListSmall = new CImageList(); ASSERT(m_pImageList != NULL && m_pImageListSmall != NULL);// serious allocation failure checking m_pImageList->Create(32, 32, TRUE, 4, 4); //This is a large icon m_pImageListSmall->Create(16, 16, TRUE,4, 4);//this is the small icon from the same file m_pImageList->Add(pApp->LoadIcon(IDI_ICON1)); //Icons have 2 sides to them, small size and large size //.....ADD AS MANY ICONS YOU WANT SO LONG AS YOU HAVE THE ICON FILES STORED TO USE m_pImageList->Add(pApp->LoadIcon(IDI_ICON50)); //Icons have 2 sides to them, small size and large size ///now add the icons to show for (iItem = 0; iItem < Limit; iItem++) // insert the items and subitems into the list view. { if(GROUP[iItem+1][0].NoOfDACs== 0) continue; for (iSubItem = 0; iSubItem < 3; iSubItem++) { if (iSubItem == 0) iIcon = ++a; // choose the icon and legend for the entry lvitem.mask = LVIF_TEXT | (iSubItem == 0? LVIF_IMAGE : 0); lvitem.iItem = (iSubItem == 0)? iItem : iActualItem; lvitem.iSubItem = iSubItem; // calculate the main and sub-item strings for the current item pStrTemp1= strIconShortDesc[iIcon].GetBuffer(strIconShortDesc[iIcon].GetLength()); pStrTemp2= strIconDesc[iIcon].GetBuffer(strIconDesc[iIcon].GetLength()); pStrTemp3= strIcon3rdCol[iIcon].GetBuffer(strIcon3rdCol[iIcon].GetLength()); //lvitem.pszText = iSubItem == 0? pStrTemp1 : pStrTemp2;//2; switch(iSubItem) { case 0: lvitem.pszText = pStrTemp1; break; case 1: lvite
-
Pinting in MFC, what is the best way.Hi Johan, Thank you for the support. I will be working on this problem this weekend. Sadly, printing is my weakest skills but this project will force me to be better. I guess I have put off printing long enough. Thnx again.
-
Pinting in MFC, what is the best way.Hi all, What is the best way to print inside MFC (Visual 2002). I have tried TextOut but that sucks because every printer is different. I am getting the idea that MFC can't do a very good job of printer because of limited functions? hopefully, its my limited knowledge.
-
Set network drives as full trustHi, WinXP: Try adding the IP address to the trusted sites (security tab) in the internet explorer options tab. Also, add the ip to the wins option in the properities of Network places. WinXP has an unusual amount of security that is good for home use but bad for business uses.
-
Why can't U Update dynamic in sort mode:)Maybe a simple question but when you open a database (SQL2000) in MFC CRecordset in mode dymanic and then sort the database by any column(s), why does the database (recordset) become "READ ONLY". It's open for read/write but as soon as you start sorting the database, you can't write/update anymore. I am trying a workaround with stored procedures but if that fails, I will have to give the sorts. Anybody out there can help me? Thanks, craig christensen