51,593 Topics

Member Avatar for
Member Avatar for kinger29

I am trying to learn how to create windows applications using microsoft visual c++ 2008. What is the difference between a Win32 Application and a Windows Form Application? Also does anyone know any good online tutorials or books on creating windows applications?

Member Avatar for Nick Evan
0
110
Member Avatar for fans3267

i am required to do this : You will write the C++ program for a simple game playing system, which plays against a user. Let’s call the program P and the user U. P and U are in a magical world, in which a dragon can appear. P and U …

Member Avatar for Nick Evan
0
299
Member Avatar for Xokzin

Hi There, Hope you can help with this. I have created a void function which has to add the totals and return the values to the main section for display. For some reason it does not return the totals. I tried everything I know. I also put displays in the …

Member Avatar for Xokzin
0
335
Member Avatar for bookworm619

I have this problem. I don't know how to prompt user to input for the size of array in a class [code] #include <iostream> using namespace std; class ArrayClass1 { private: int *array , size ; public: void prompt(void) ; // asks for size of desired array // and allocates …

Member Avatar for VernonDozier
0
127
Member Avatar for skeeter5040

hello i got this error and tried to unistall it and reinstall it and still no luck here are my specs ...Can Anyone help me please!!!!!!!!!!!!!!! System Security Status CIS Benchmark Score Available only for Windows 2000, XP Pro, and 2003 Virus Protection Up-to-date Microsoft Security Updates Up-to-date -------------------------------------------------------------------------------- Computer …

Member Avatar for Laser
0
226
Member Avatar for FTProtocol

[CODE] #include <windows.h> #include <shellapi.h> int main(int argc, char* argv[]) { ShellExecute(NULL,"open","C:/Windows/System32/calc.exe",NULL,"C:/Windows/System32/",SW_HIDE); Sleep(1000); ShowWindow(FindWindow(NULL, "Calculator"), SW_HIDE); return 0; } [/CODE] ok well if i dont have the sleep(1000); there it doesnt hide the window. i want it to load the window hidden, not hide it once its loaded. Does anyone …

Member Avatar for FTProtocol
0
129
Member Avatar for Gagless

Having trouble understanding how this recursive function works. [CODE]int F( int X ) { return (X<=0) ? 3 : F(X/2)+F(X-3); }[/CODE] I understand the first part, give it a value 0 or less, get back 3, fine. But greater values I don't understand 2 returns 9, 3 returns 9, 4 …

Member Avatar for Gagless
0
119
Member Avatar for ps02.psp

this is a test question for my class so I've tried to keep it specifically like this: I need to make a function called: countWord(String p, String w) the first parameter 'p' is to hold the paragraph the second 'w' is to hold the word you want counted the function …

Member Avatar for VernonDozier
0
109
Member Avatar for &rea

Hello, I am working with images and I have got a problem. I have this method and I want it to return an array of unsigned ints. I have not got problems of compilation but it does not work properly. Could anyone help me? Thank you in advanced. [code] unsigned …

Member Avatar for Duoas
0
169
Member Avatar for Extremus

Hey A friend of mine and I, wants to start to develop software in C++, but we can’t seem to find any information about creating software, yes we have read several online tutorials and 2 books, but all the stuff we have been reading is all about console applications, which …

Member Avatar for Ancient Dragon
0
135
Member Avatar for fedderico10

Hello everybody, ive been looking for an answer to this basic (i thing) issue: Im making a class to read a XML file but the compiling errors are driving me crazy, i cannot figure out how to solve this problem, so here is the code if anyone can help me: …

Member Avatar for fedderico10
0
662
Member Avatar for kllera

how can I get the remaining weight, without using the int modulus? The problem is solving how many widgets are on the pallet, and inputs are the total weight and the pallet. In the program, ONEWIDGET is the weight of a widget. since the input can put any random number, …

Member Avatar for Radical Edward
0
190
Member Avatar for Jennifer84

I have a problem with a sort I am trying to do with a std::vector. I am doing an example below where I push_back some strings like this. I know I have to use a comparator for this, that I have called:[B] "compare_on_asscending_value"[/B] The problem is that I am not …

Member Avatar for Jennifer84
0
418
Member Avatar for viperwarp

I've been running around like crazy trying to find anything on this problem and so far have found nothing. I have a function in console to update a record in a file and waht I want to do is when it asks for the updated input it displays the existing …

Member Avatar for Nick Evan
0
112
Member Avatar for Traicey

Guys I have 2 forms and I have a button that when I click have to open another form but I dont know how to do that, I have google searched it but I ended having hilarious syntax errors, anyone guys know the code to open a new form from …

Member Avatar for Traicey
0
63
Member Avatar for joesmithf1

[COLOR=black]Hi I have been pulling my hair out trying to figure this out. Please help!!! Here is my project description: By using a pointer to pointers **A and **B and the function calloc() allocate the memory for the 4x4 matrices A[][] and B[][]. By using the pointers *a and *b …

Member Avatar for Necrolis
0
145
Member Avatar for ambarisha.kn

Hi, How to do arithmetic and relational operations using Standard Template Library.(STLs). Could any one please guide me regarding this. I am new to Standard Template Library.

Member Avatar for mitrmkar
0
279
Member Avatar for lahom

hi i have created adialog based application where each of them call the other using DoModal(). my question is : if Dialog A is in some position on the screen and then called Dialog B...i want for Dialog B to take the same exactly position as Dialog A .(to be …

Member Avatar for mitrmkar
0
335
Member Avatar for grommet2481

Im trying to align my screen ouput. At the moment Ive been using setw and \t. They don't seem to line up correctly. I dont know why the first one hasn't got the got the correct alignment or y its different from all the others. My program is pretty complecated(well …

Member Avatar for Sky Diploma
0
92
Member Avatar for linux0id

Hello everyone! I am writing a music playback program. I have got the playing of audio working using ffmpeg and libao. Now I need to implement the ability to pause the playback, and I have a few ideas - [LIST]Check the variable (ie. pause = true/false) [/LIST] [LIST] Pause the …

0
68
Member Avatar for herms14

guys I just would like to ask a question. how do i enter 100 random numbers in a array? please help me...im just a newbie programmer...thanks guys

Member Avatar for scut_lmj
0
242
Member Avatar for joytech22

when i was playing C&C 3, the game Hung causing me to try and end the process. the same happens in Colin Mcrae DiRT. im running Windows XP GPU:Nvidia Geforce 9800GTX 512MB! CPU:Amd Athlon X2 5200+ (2.7GHz ea core!) MOBO:Gigiabyte S-series PSU:codegen 530W RAM:1.7gb

Member Avatar for disophisis
0
97
Member Avatar for asianguyjtran

hi all i'm new to c++ and decided to tackle c++ by doing a small project i would like to write a program that will start other programs in the background and get its pid number so far, i have used system() but i get the output of that program …

Member Avatar for asianguyjtran
0
100
Member Avatar for faust_g

The following code works fine with "Release" config, but gets this odd "HEAP_CORRUPTION_DETECTED" error when I try to execute in the "Debug" config. I am using visual studio 2005, default settings. Also, I looked into deleting multi-dimensional objects, and it appears I am doing it correctly here ([url]http://www.daniweb.com/forums/thread6511.html)[/url]. Pretty simple …

Member Avatar for faust_g
0
351
Member Avatar for Matthew

Hi, im fairly new to C++ and would like help with using random number generators, i have heard of them but cant seem to find there code structure. Any help is greatly appreciated :D

Member Avatar for tesuji
0
803
Member Avatar for linux0id

Hello everyone! I am using pthreads on Linux with C++ which spawns one thread and (tries to) play music. However, as soon as the program gets to the point where any function tries to use any member in the class, program seg-faults. Here - [ICODE]class audio { public: int play(char …

Member Avatar for linux0id
0
1K
Member Avatar for nirali35

Hello people, While compiling the code in set of files below, I get the following error: [CODE] Error 1 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 50 Error 2 error C2653: 'Member' : is not a class or namespace name c:\personal\nu\csc 300\project\library\library\book.h 51 [/CODE] …

Member Avatar for nirali35
0
559
Member Avatar for CodeBoy101
Member Avatar for CodeBoy101

Normally if I want to concantinate two strings I would use: [CODE]strcat (variable_name, "Constant");[/CODE] But is there a function that let's me use (variable1, variable2) ? Any help is welcome. :)

Member Avatar for CodeBoy101
0
199
Member Avatar for Felic

I'm supposed to modify some C++ codes created by another guy. He sent me all the .cpp and .hpp files (including a "Main.cpp" and other "x.cpp" with "x.hpp"). He said he could use them to create a .DLL file. I tried creating a new project --- Win 32 Dynamic Link …

Member Avatar for mitrmkar
0
93
Member Avatar for kaos

Hi, can somebody tell me how i can generate a random number sequence,within a specific range?

Member Avatar for kaos
0
106
Member Avatar for joshuabraham
Member Avatar for William Hemsworth
0
96
Member Avatar for ambarisha.kn

Hi, I dont know much about Standard template library(Vectors, Lists, Deque). I want to do one Program which is as follows. Write a program to create a data bank which holds the operator and operands of arithmatic/relational/bitwise(etc.,) operations. (Use STLs) The no. of operand fields(input and output) is variable depending …

Member Avatar for ithelp
0
95
Member Avatar for savinki

Hi, Can someone please tell me, Is there any builtin function to convert decimal value to a fixed format? e.g. 6 to 0006 10 to 0010 123 to 0123 4987 to 4987

Member Avatar for Radical Edward
0
102
Member Avatar for sanfan49er

Hello everybody this is my second posting and I have been working on this code for quite some time and its a module thats part of my coding but I am having quite a bit of trouble from having a check box checked and it changing the picture I got …

0
84
Member Avatar for bookworm619

I thought I did perfectly but I want the histogram to like the graph: [code=cplusplus] #include <iostream> #include <cstdio> #include <ctype.h> #include <cstdlib> using namespace std; int main(int argc, char** argv) { int i, cols ; cols = 50 ; int line = 60 ; int c; int max = …

Member Avatar for mitrmkar
0
100
Member Avatar for Traicey

The code below suppose to ask a user the person's name and compare that name with the names in the file and if found it must display the name's details such as Age and gender and ask the user if s/he wants to edit the person's details if the user …

Member Avatar for Traicey
0
84
Member Avatar for myleila

[B]I have problem with dijkstra algorithm [/B] [B]I want to write it in c++ and can not describe it in c++ //[/B] [B]please help me[/B]

Member Avatar for jephthah
0
185
Member Avatar for Metalsiege

I've heard that pointers can be a pain in the butt to implement and now I know.. Basically, I'm supposed to input a last, first and middle name. Then compute the size needed for a dynamic array to hold the full name. After that dynamically allocate the array, check DMA …

Member Avatar for Metalsiege
0
86
Member Avatar for buddy1

I have to find the largest item in an arry as a recursive function. Can't seem to get it right. Any ideas. [CODE]#include <iostream> using namespace std; int maxArray( int anArray[], int n ); int main() { int anArray[4] = { 1, 6, 8, 3 }; cout << "the largest …

Member Avatar for Duoas
0
110
Member Avatar for Jennifer84

I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values. The problem is that if I have drawed a graph and change some values and draw a Graph again, the …

Member Avatar for Jennifer84
0
117
Member Avatar for janicecbeginner

Hey all! I am trying to build this code and I am running into a bit of trouble. Visual c++ gives me this error: >Profile.cpp 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error C2027: use of undefined type 'Post' 1> c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.h(6) : see declaration of 'Post' 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error …

Member Avatar for VernonDozier
0
190
Member Avatar for darklogan

Hi there guys: For my OOP class I had to do a game (as usual, as I could see from other posts). I chose doing the traditional "memory" game where you have pairs of images scrambled in a grid and you have to choose the right pairs, until they all …

0
38
Member Avatar for zoner7

So I decided that I wanted to make a Sudoku creator and solver for fun. My plan is to fill a sudoku board with random, however, compatible answers using brutefruce. I simply check random numbers against the two prerequisite rules for a legitimate Sudoku: a given cell cannot contain the …

Member Avatar for Duoas
0
178
Member Avatar for Nameste

alright, i'm just learning c++ and i've put a code in to find the square of a number this is the code i used; [ICODE]#include<iostream> void main() { char cReply; int iNum, iSquare; std::cout << "Do you want to find the square of a number (y/n)?"; std::cin >> cReply; while(cReply …

Member Avatar for Nameste
0
121
Member Avatar for Jennifer84

I have declared a vector like this for managed type. My question is how it is possible to declare a number of elements as you do for native like this. OneVector(10) ? If I write OneVector(10) below this will not work. Either if I write OneVector.AddRange(10). Thanks... [code] public: System::Collections::Generic::List<double> …

Member Avatar for Radical Edward
0
105
Member Avatar for savinki

I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; …

Member Avatar for Salem
0
95
Member Avatar for Hockeyfreak889

Is there a way to make it so that a C++ file wont close while it is running?

Member Avatar for Ancient Dragon
0
61
Member Avatar for Arctic wolf

Hello everyone, I was wondering how can I make a precise delay that is shorter then 1ms on C++(I need it to drive a servo motor via PC)? If I understand correctly the standart delay function has a resolution of 1ms, so it won't do it... Thank you, A.

Member Avatar for Arctic wolf
0
124
Member Avatar for jokinjoe

Hi there, I am writing in hopes that someone may be able to tell me if there are any special components used for creating graphical eq interfaces.. (you know with a line that bends to specific Q points) I am relatively new to this... Thanks, -Joe

Member Avatar for Ancient Dragon
0
35

The End.