49,761 Topics
| |
I'm using VC++ 2008 with Window XP Professional. I'm trying to make a custom assert function, which presents a dialog box asking what the user wants to do about the assert. When I call DialogBox, it shows my dialog properly, but every subsequent call to that function appears to do … | |
I have heard there is a C++ split function, but I have not yet found anything to help me work with what I have. I have the following: [CODE]001E3897 1024 HV regread set [rootPos: 0001CBE7, offset 1862832 ][/CODE] I need to be able to take this and split it into … | |
Any idea how to check if a text file is still being opened by another program?? I wanted to write to the file after the other program had finished its task and closed the text file. As i know two programs cant open the same file at the same time. | |
Okay, so I have pretty much changed my entire program around to be strictly C++, and this last question I have is a very simple one. [CODE]Generic::IEnumerable<Item^> ^Items;[/CODE] What is a good equivalent for this? Just a simple vector? Ty :D | |
SO i have a function that returns a call to another function which returns a class, and I am getting a compiler error... AoE2Wide.cpp(179): error C3073: 'AoE2Wide::Patch' : ref class does not have a user-defined copy constructor [CODE]return FindPatchForExe(fileSize, exeMd5, exeFilename);[/CODE] Here is the definition i made for the class … | |
I'm not positive this is the right place to post this. We're starting analysis for converting to UTF-8 on our application. During testing, all of our test data is displayed incorrectly in visual studio - our two-bye UTF-8 characters are being displayed as two one-byte ASCII characters. Is there a … | |
Hi, i am new to this forum and i am just learning c++. Can somebody help me with sorting numbers. I have: I have 3 ints(int1,int2,int3), each spanning from 5 to 17, now i want to compare int1 and int2 and type out all numbers from lowest to highest(5,6,7,8...), than … | |
can somebody explain me about parameters in initgraph in c++ graphics??? | |
Is there a way to pre-specify a specific string buffer size for the underlying buffer to which repeated concatenations are going to be made in a loop with the purpose of eliminating time wasting re-allocations and block movements of characters from one buffer to another? I have tried the string::reserve() … | |
Hi, I've been thinking about this for a while. What is the best way to design a program? What I don't understand is how people think of which classes etc. they will use and what they are called. For example, in a program which simulates the card game BlackJack. How/why … | |
Hi guys, Long time no see. Anyways, need help like always. Actually since the past two years i have been simply neglecting C++ due to my pressing commitments with ASP.Net and suddenly i feel like doing programming in C++ all over again. What i need is a startup project (Intermediate … | |
how to multiplication large number using mpi? | |
Hello, When I was getting the basics of C++ these forums were very helpful so maybe I can find some help on this subject. I want to organize a template project (think there is a better name for this) so when I create a new project in Visual Studio 2010 … | |
I'm trying to compile the linux source code release of Axis2/C on MacOS but I'm getting errors at building axutil.h. I've tried to apply different patches without success, and I even found a website that explained the necessary modifications in the code and I made them but they still didn't … | |
Hello, I want to add a vertical progress bar in to my c++ windows forms project and tried different ways to implement it. But couldn't find any method to do that. Please help me. Thank you ! | |
1. how is c++ structure different from array? 2.how to define syntax,create,use and store data in struct variable?.. 3. how to create an array of structure?.. i need some refenrences or brief answers..tnx... | |
Hi, For the purpose of creating a very simple mp3 player i would like to have a listview that allows a user to click on a listed file and play an audio file. I figure that to solve this the program should display the contents of a directory containing the … | |
Hi all, I have a file with data 300 lines. (in.txt) I want to make a program that seperates the file in two others (out1.txt, out2.txt). But I would like to do it with percentage. For example, Percentage (%): 50 and seperate the in.txt file in the middle but with … | |
Hi All, I have been assigned a task to read other application data installed in our client's computer running windows 2000 and then send it to serial port. The application has a tab control in the main dialog that contains two sub dialogs, one contains a combo box, selecting each … | |
If you want your program to startup automatically when the user logs in, just paste this code into it. To add as a HKLM (For all users) startup item instead of HKCU (Current User), change HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE. I'm posting this because I had a hard time figuring this out … | |
I'm looking for help with an assignment in C++ in which change must made for an entered item cost, and the number of each monetary denomination from $20 bills down to one cent coins is to be shown (ie: Twenties - 2, tens - 0, fives - 1, ones - … | |
[CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int odd(int nValue) { nValue= nValue -1; return nValue; } int main() { int nValue; cout << "Enter a Positive Number: "; cin >> nValue; while ((nValue>2) && (nValue % 2 == 0)) { nValue = nValue -2; cout << … | |
how can i return cases 1,2,3 and default in to the main function? when i press 1 as key to return to the main function.. the prompt will appear "press any key to continue" how can i return it to the main menu? [CODE]#include <iostream> #include <cstdlib> using namespace std; … | |
Hi. I was wondering about how you might go about executing a file as you log in to your account. For instance, I want to run a file that prompts the user of the date, and any other information as you log-in. Might I need a registry entry or such? … | |
How do I comunicate with an API? I'd like to create a thing that would comunicate with other people through another server (say Gmail) Thanx, JT | |
hi avery one i need this help ? i want to do a program to read ome nubers from the file and print only the negative odd nubers in another file ??? | |
My original question stated: 1. Write a function named "digits" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.[B][U] No newline character should be sent to the screen following the digit name.[/U][/B] The … | |
for removing the last element from a chain in my linked list? [code] Action *temp = head; //Action is my node while(temp != 0) { if(temp->link == tail) //tail is my last node { delete last; tail = temp; tail->link = 0; return; } temp = temp->link; } [/code] I … | |
[CODE]#include <iostream> #include<cstdlib> #include<iomanip> using namespace std; int* userInput(int mat); void multiply(int mat, int* array); void print(int **mult, int **divides, int mat, int row, int col); //Main method, calls IO and handles the case for only 1 matrix. int main() { int mat = 0,i,j; int arrayA[mat][mat]; cout << "Enter … | |
I want to extract .cab files using C++ when extraction finishes i want the extract .exe to run how can i do this? |
The End.