win7 WriteFile sectors error code :5
i want to realize a file shredder on windows. First, i call function DeviceIoControl with paramter FSCTL_GET_RETRIEVAL_POINTERS to get the position (described by sectors and clusters)of file on the...
View ArticleFor loop won't hit!
For loop keeping jumping over its self. void DrawBoard(){cout << " | 1 2 3 4 5 6 7 8 9" << endl;cout << "_ | _ _ _ _ _ _ _ _ _" << endl;for (int i = 0; i < width; i++){cout...
View Articlepointer to array of strings as procedure argument
Windows 7, C++, console appIs there a method of creating a pointer to a multi-dimensional array, as in:wchar_t my_strings[ COUNT_OF ][ SIZE_OF ];And pass that pointer to a procedure?Class new_class...
View Articlereading .wlk files in c++
i need c++ source code to read .wlk file from a weather station
View ArticleVisual C++ 2010 Express Class Library template, will it work for vbscript?
I was tasked to create a COM DLL for vbscript/jscript, or even VBA, so that people can use CreateObject function to use the objects exposed by the DLL. I have written some C/C++ programs but rarely...
View ArticleIPropertyPage::GetPageInfo call sets AfxGetApp()->m_pActiveWnd to NULL for...
I am using Stock Color property page provided by msstkprp.dll in my VC++ MFC application built using VS2008.When IPropertyPage::GetPageInfo call is made for the Stock color prop page...
View ArticleUsing .NET in native C++ DLL of PTC Pro/TOOLKIT
Hello!I have to write a synchrone application for PTC Pro/ENGINEER Wildfire 4.0 using Visual Studio 2005. Pro/TOOLKIT is an API in native C/C++. The DLL is loaded as plugin into Pro/ENGINEER.It is not...
View ArticleOpenFileDialog RestoreDirectory not working
Hi,I have read some posts and seen people asking how to keep opening the specified directory consistently. Luckily or unluckily, I do have this feature working in my program, but the problem is I do...
View ArticleCasting generic types created at runtime
I want to create a generic class created at runtime to convert generic types. The version below is supposed to convert a double to an integer once instantiated and display it. The casting throws an...
View ArticleHow to show an error pop up when the user is entering special characters in...
Hi,Is there any possible way in MFC to show an error pop up when the user enter's special character.For instance,when we press "Ctrl+G" (in visual studio )then we get a small dialog pop up which...
View ArticleConvert MFC Service to ATLService
I have a MTA COM Service application which is developed using Visual C++ 6. It is derived from CComModule class. This project is converted to VS2008 and it is working fine. The service can be started...
View ArticleLNK2001: unresolved external symbol when building for x64 platform
The project builds on Win32 platform, but not on x64. Full error message: dllentry.obj : error LNK2001: unresolved external symbol "class CFactoryTemplate * g_Templates"...
View ArticleHaving trouble rotating an IWICBitmap
I have read every resource I can find, and cannot make this work. I can read an image file into an IWICBitmap, convert it to an ID2D1Bitmap, and view it, all day long. But what I want to do is rotate...
View ArticleVsFlexGrid is an activex control, it 's loaded in design time in resource...
I upgrade my project from VC++ vs2008 to vs2013, I use VSFlexGrid7.ocx control, when I build the project every think ok, and I can run my application, and show all dialog not contain this ocx, when I...
View ArticleVS2010 vista/Windows7 OCX faillure
MFC Program developed in 2003 with VS2003. Converted to VS2008 in 2008 and now to VS2010The program worked just fine using VS2008 on XP, Vista, and Windows 7 machines. The program uses VSFlex7 Pro...
View Articledelete[] causing issues with heap for no reason
The basic code is doing like so:char* myString; //if some condition myString[someSize]; memset(myString,0,someSize); //Use myString without modifying it anywhere delete[] myString;// errors out here...
View ArticleTrouble with calculation
Howdy- I am trying to find the radius of a pool with only the amount of water in cubic feet as input. In a previous problem, I had to figure the volume of water (in cubic feet), but I already had the...
View ArticleWhy can I use string type without including the header file?
So I decided not to ask my initial question about iterators an I checked my code over myself.Here is the code that compiles:#include <vector> #include <string> #include "stdafx.h" #include...
View ArticleAlternative to SYSTEM_TIME_INFORMATION::liKeBootTime?
For quite a while I've determined system uptime with NtQuerySystemInformation(SystemTimeInformation,...). I have read that that function does not exist in 64-bit Windows. The docs warn of this and...
View ArticleProject references to non-C++ projects
I have a codebase primarily with Visual C++ projects (~300) and Fortran (~40). Some of the C++ projects are dependent upon the Fortran .dll's and .lib files. All of my linker settings work properly,...
View Article