Storing char * Function Arguments
Is it valid to store character string pointers passed as arguments when initializing data?The following example illustrates what I am doing. It appears to work but I am a bit apprehensive.class Info{...
View ArticleMFC C++ XML Parse - Using MSXML.
Good day,I got stuck to this part of the feature I am designing can you please help?Here is my XML Code:<tables><table name="Stamps.0409"><row index="1" ><column>1st Class...
View ArticleHRESULT_hr = direct3D9->GetAdapterIdentifier(i, 0, &adapterIdentifier);
For some reason when I call this using a constant 0 for the adapter number this works fineusing the variable i seems to be a problem, when more than one adapter is installedstd::string...
View Articlea bit urgent...
What is the final value of x after this code fragment is over..? We're nt looking at the lines before or after this code because that is independent and doesn't matter. long x=3; for (long i = 0; i...
View Articlecmath or System::Math
Hi,It is a Windows Application project that uses .NET framework.C++ always allow to use either cmath library or System::Math class.What is recommended to use?The same question for cstring and...
View ArticleMouse cursor briefly appears in the wrong position on the desktop (upper left...
Our company produces an IDE that allows users to use a 4GL that wraps win32 api calls. The platform in question is Windows 7.One of things we allow is changing the mouse cursor to a custom cursor when...
View ArticleWin32 API app not working on XP an Win7 Please Help
I have made an win32 API application in C++ in visual studio 2010. I have Windows 8 installed and when I try to run the app on XP or even Windows 7, the app runs but its window is not shown. In my app...
View ArticleVisual Studio 2010 linker crashes
First the project was created in 2004,and it's the source code from the book:http://www.amazon.co...ine programmingI use Visual Studio 2010.When I try to compile with incremental linking on:1>------...
View ArticleArray Help! Windows Form Application
Hi, I am trying to have an array of 16 in my code, but I am getting errors. Not really sure how to go about doing this. I am using it with chart control.One of the errors I am getting is: error C2109:...
View ArticleAny alternatives to system("PAUSE")?
I just read an article that clearly explained why system("") commands are bad to use. The command system("PAUSE") is a very useful command in my eyes, so are there any alternatives to this command that...
View ArticleHelp with my Win32 Application
Hi,I would like to know how to create a win32 application with some textboxs and buttons in the main Application window.I think it is something to do with WM_PAINT.case WM_PAINT: hdc = BeginPaint(hWnd,...
View Articleglew.h and glew.lib
I now have a new project containing glew.h and lib so I was thinking, should I make a SDK out of it?Need to install 3 headers, and 2 libs, 32-bit and 64-bit, if needed even ARM is a posssibilityCorsair...
View ArticlePIctureBox to display images one after the other
my program is supposed to load a picture from a third party application, display it as it is in a PictureBox. Then modify the image through some image processing algorithm and display the resulting...
View ArticleHow does class member create a shared_ptr to itself?
How can a member function pass its this pointer to a standalone function that accepts a shared_ptr that points to the same thing as this?It is like the object identified by this is itself already...
View ArticleFindNextFile gives out only first letters of files in a directory
#include <windows.h> #include <stdio.h> #include <iostream> using namespace std; void main() { HANDLE hFile; int u; LPCWSTR path = L"C:\\Program Files\\Driver Detective\\*";...
View ArticleChanging a MFC ListBox background color
Is there a simple way (without using owner draw style) to change MFC ListBox background color?
View ArticleHow do I find OLE Libraries updates for Windows 7?
I woke up this morning and had a message that I needed to update my OLE libraries. I am using Windows 7. Can you help me?
View ArticleHooking process winsock and to use its functions send()
how can i control process's winsock module and force it to send data? Please share a sample for me so that i can learn how it works, since i had read this...
View ArticleHow to Convert TextBox->Text to Double/Long/Integer/Short in C++
I don't know how to convert text in a textbox to a numeric variable. Also, what type of C++ variables support decimals to the hundredth place?
View ArticleHow to make a antivirus for (Windows) family
Hi I want to make a antivirus for the Windows family ... !How to do this?What programming language should I learn?What skills should I have? What should I do?Please help me ...
View Article