49,761 Topics

Member Avatar for
Member Avatar for tomtetlaw

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 …

0
70
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
2K
Member Avatar for integer*09

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.

Member Avatar for enriquezrene_ap
0
148
Member Avatar for MasterGberry

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

0
41
Member Avatar for MasterGberry

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 …

Member Avatar for MasterGberry
0
1,000
Member Avatar for Duki

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 …

Member Avatar for Ancient Dragon
0
102
Member Avatar for folwea

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 …

Member Avatar for mrnutty
0
128
Member Avatar for Arbus

can somebody explain me about parameters in initgraph in c++ graphics???

Member Avatar for mrnutty
0
61
Member Avatar for Frederick2

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() …

Member Avatar for Frederick2
0
349
Member Avatar for Akill10

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 …

Member Avatar for Akill10
0
119
Member Avatar for bala24

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 …

Member Avatar for a900nasaslam
0
180
Member Avatar for mehdi_nikdel
Member Avatar for ChaseRLewis

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 …

Member Avatar for deanus
0
131
Member Avatar for Cosmin871

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 …

0
57
Member Avatar for chethakau

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 !

Member Avatar for jonsca
0
235
Member Avatar for demigodz24

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...

Member Avatar for vinayakgarg
-1
95
Member Avatar for mrectek

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 …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for bufospro

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 …

Member Avatar for bufospro
0
151
Member Avatar for Masood_786

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 …

0
64
Member Avatar for hahanottelling

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 …

Member Avatar for WaltP
0
2K
Member Avatar for pxd1055

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 - …

Member Avatar for jonsca
0
336
Member Avatar for alonewolf23

[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 << …

Member Avatar for Red Goose
0
135
Member Avatar for exekiel101

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; …

Member Avatar for Clinton Portis
0
182
Member Avatar for cosmos22

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? …

Member Avatar for WaltP
0
319
Member Avatar for jackmaverick1

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

Member Avatar for jonsca
0
96
Member Avatar for jabir889

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 ???

Member Avatar for JSPMA1988
-1
130
Member Avatar for alonewolf23

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 …

Member Avatar for alonewolf23
0
909
Member Avatar for LevyDee

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 …

Member Avatar for LevyDee
0
107
Member Avatar for remo25

[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 …

Member Avatar for ravenous
0
591
Member Avatar for emreozpalamutcu

I want to extract .cab files using C++ when extraction finishes i want the extract .exe to run how can i do this?

Member Avatar for emreozpalamutcu
0
768

The End.