A 3d grid creation using stl libaries
Hi, Iam learning c++, I was interested to 3d in c++. So at the starting stage I would like to create a 3d grid( x axis : 1000points, y-axis : 500 points and z axis: 500 points) I need to create it so...
View Articledebugging library: CXX0017: Error: symbol "X" not found
I am debugging a library. I can step into the code however the watch window doesn't show the values of any variables. It will display a message in the value field: Code: m_pParent CXX0017:...
View ArticleRewriting a Win32 app using HINSTANCE to a Win32 console application
Hi Everyone, First let me that the last time I did a Vc++ small utility prg is back in 1995. Here is my situation: I have a win32 app that uses HINSTANCE and the main.cpp looks like:...
View Article0xC0000005 - Access violation (Each time from a different dll)
I have been given a task to debug a C++ project. I have not written a single line of code in this project!! This project executes for about 5 minutes without problem. Then it ends with an exception...
View ArticleIUnknown pointer error, exception
Hi, I need to read an XML file which holds input data for a Service into a DOM tree. The main process initilizes everything and sets the start data and a update thread need to check for changes in the...
View ArticleMDI "More Windows..." dialog
Hi, ALL, How do I implement my own "More Windows..." dialog? I need to know the standard ID that is being used by Windows... Thank you.
View ArticleVery Simple question about checking zero value ..
Dear All , To calculate line slope I am using formula , line_slope = (meanxy - (meanx * meany)) / (meanyy) - (meany * meany)); All the variables are floats. How to check whether the denominator .....
View ArticleBest Wishes ..
Dear All , I am very much thankful to this forum and whole CodeGuru Team for the valuable support , time to time. This boosted up me to write code very efficiently. I am at beginner level and wish to...
View ArticleCreateProcess
Hello! I am making an application that processes multiple files (typically > 500) through a command prompt call. The way I start the command prompt app is by looping using a call to CreateProcess...
View ArticleArrays
Hey everyone, I am using matlab R2o11 in which the programming medium is c++. I am having these variables= T=373 t0 376 V=0.09 to 1 P=T/V I just need a result showing First it should take T=373 and...
View ArticleHow to access argv strings?
I have: int _tmain(int argc, char* argv[]) { printf("drive name: %s\n", argv[1]); It displays only the first character of the first argument on the command line. Yet the following works as expected:...
View ArticleWhere to put #define _CRT_SECURE_NO_WARNINGS?
I routinely compile with #define _CRT_SECURE_NO_WARNINGS. When I put before the first #include in my main (and only) module, I get a compile-time warning or error. (I don't rememeber which.) But it...
View Article#include errors: how to avoid?
I get a slew of syntax errors starting in line 243 of <WinBase.h>. The compiler underscores such typedefs as ULONG_PTR, DWORD, PVOID and HANDLE among others. Presumably, <winbase.h> has a...
View ArticleHow to call sleep()?
I have two problems with the code below: 1. I cannot find a header file to #include that has the sleep function prototype. 2. When I add my own sleep function prototype, I get an unresolved external...
View ArticleHow to fork or create thread?
How can I implement the paradigm demonstrated by the code below to run on WinXP? I want to fork a process or create a thread that shares global variables with the parent process/thread. The child...
View ArticleIntermediate C++ Books
I took an Intro class to C++ and have been trying to build on it. Does anyone recommend any intermediate books?
View ArticleCSV file read
Hello, i have problem reading CSV file, i found many solutions but i still got one problem. I need to read CSV file and then these values show in List Control and here i have problem. Idk how to...
View ArticleOpening Documents with C++
OK. This is my first post on this site, and I consider myself quite a beginner in C++. I want to know how to open up a document using C++. Ive tried many times, but it just comes up with a blank...
View ArticleDirect Show Timer
Im coding a music player and I want the timer to stop when the music stops. I got a static text with the lenght of the song. (the static text shows the position of the song in seconds....like...
View Article