8,298 Topics

Member Avatar for
Member Avatar for TurkAlush

Hey I have been trying to make a chatmachine, and i wanted to make it play music when the user asked for it, but the problem is how can i make the music stop again? Without closing the player, but by closing with the program.. I used this code [CODE]System.Diagnostics.Process.Start("C:Moves …

Member Avatar for nick.crane
0
867
Member Avatar for Jared1337

I've messed with this program for awhile, i can't figure out how to make any of the other triangular shapes beyond the first one i have. Also there's a diamond that i am supposed to make, and a triangle with spaces in the problem. Can anyone help me re-construct my …

Member Avatar for Jared1337
0
150
Member Avatar for jigglymig

need some help with the friend function that overloads the << operator heres my code thus far.... [CODE]#ifndef PRODUCT #define PRODUCT #include <iostream> using namespace std; class CProduct { private: int productID; // 5-digit product ID number int manufactureID; // 4-digit manufacturer's ID double price; // wholesale price double markup; …

Member Avatar for jigglymig
0
239
Member Avatar for thommahh
Member Avatar for robdb

the program must read a text file, encrypt the content and then rewrite everything to a text file. compile ok, it crashes while running and still produces an empty output. how can I fix this? vigenere.h [CODE] #include <string> using namespace std; class Vigenere{ private: string key; string text; static …

Member Avatar for robdb
0
378
Member Avatar for hdan

Hello! I want to make a trainer (just for that not because I need to cheat at a game). I have an application made by me (Untitled1.exe......ftw!) when I press any key it makes the number from x to x++... Another program I need is when I run it to …

Member Avatar for chochang262
0
901
Member Avatar for meli123

[CODE]#include <iostream> using namespace std; int main() { char a, b, c, d, e, f, max; cout << "enter a b c: "; cin >> a >> b >> c >> d >> e >> f; max = a; if(b>max) max = b; if (c>max) max = c; if (d>max) …

Member Avatar for murnesty
0
211
Member Avatar for SteveyD

I'm encountering some problems with converting Delpi7 pascal to C#, maybe a fresh set of eyes will see what I can't. Pascal [CODE] procedure TForm1.Button5Click(Sender: TObject); var Data: TData; i: integer; s: string; begin if not (CheckBox1.Checked) then begin StatusBar1.SimpleText:='Bidirectional operation not allowed'; exit; end; for i:=0 to 255 do …

Member Avatar for SteveyD
0
1K
Member Avatar for lianpiau

I want write a text file event log. but when i want add second record(from datagridview) to text file, it will replace 1 record. [CODE]private void btnAddGoods_Click(object sender, EventArgs e) { SqlCommand cmdCheckID; SqlDataReader dtrCheckID; foreach (DataGridViewRow r in dataGridView1.SelectedRows) { string PONO = r.Cells[0].Value.ToString(); string DeliveryDate = r.Cells[1].Value.ToString(); string …

Member Avatar for nick.crane
0
282
Member Avatar for Khyati Patel

When I click the Submit Button in a form it should check whether 6-7 textboxes,2-3 pictureboxes nd combobox which resides in that form should not be empty..? How it is possible in Short to provide this validation..???

Member Avatar for Mitja Bonca
0
97
Member Avatar for neelpulse

Hello all, I was trying this problem of checking if the input integers can be ordered using the STL implementation of the stack. The program reads from a file named "input.txt" which in its first line has the number of integers that follow in the second line. The second line …

0
166
Member Avatar for tyu1996

Hello there! I just start to learn the basic of C++ in/output functions. I wrote a program: [CODE]#include<iostream> using namespace std; int main() { int ptype; char options; char finops; do{ cout<<"Select a printer type: "; cout<<"\n1. HP printer"; cout<<"\n2. Dell printer"; cout<<"\n3. Brother printer"; cout<<"\nYour choice : "; cin>>ptype; …

Member Avatar for Ancient Dragon
0
154
Member Avatar for existence19

SORRY I TRIED TO INDENT THE CODE BUT IT DIDNT WORK OUT I am trying to make a binary tree for conversion of postfix to infix. the binary trees class is as follows WHAT I HAVE TO DO AND WHAT I AN HAVING TROUBLE WITH 1) READ A POSTFIX EXPRESSION …

0
67
Member Avatar for Dave.Rich

Hello, I am working on a program where I need to be able to send a file over the network to another computer. I would like to have a sort of system setup where each computer that is running my program will show up in an "address book" of sorts, …

Member Avatar for Dave.Rich
0
128
Member Avatar for shravya
Member Avatar for ddanbe
0
66
Member Avatar for sofia24

Hi, I'm writing a C++ script and part of it is to connect to an SQL Server. C++ is new to me so I'm still working my way around. Any help would be greatly appreciated. Many Thanks

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for buvanarajamani

i need a sample program to implement synchronization concept for a website... i have an application connected with oracle database. i have to open the same application simultaneously in two visual studio ide to perform the same operation or different operation accessing the same database in a synchronized manner using …

Member Avatar for kvprajapati
0
108
Member Avatar for kalpana17
Member Avatar for coolsasuke

Well, I recently got a program from csharp . But im not familiar with c# . I only got codes from vb.net . Is it possible if you guys help me to translate these following codes to C# ? First set of codes, it will download the file from the …

Member Avatar for skatamatic
0
628
Member Avatar for mcconnell_34

Hey, I need to know what identifier i can use instead of string that will output all of the words that you type in the program. For example: if i was to use string ans1; cout <<"How are you?: "; cin >>ans1; and for my answer i typed "very good"...it …

Member Avatar for Narue
0
181
Member Avatar for sheejacr

please help me to get the URL from the address bar using c# windows application. Example when i write [url]www.google.com[/url] in my address bar my application in c# return the value of URL that is [url]www.google.com[/url] please help me to write this code.

Member Avatar for bhagawatshinde
0
31
Member Avatar for falconmick

Ok... I know that this is probably a stupid question.. but does VS2010 have a built in C# dev enviroment... I looked and looked, then googled and googled and I can't find if it does or not.... btw I'm using the free profesion student edition from [url]https://www.dreamspark.com/[/url] if that's any …

Member Avatar for ddanbe
0
168
Member Avatar for coolsasuke

Hi, i would like to enquire if there is a tool out there which will convert c# project to a vb.net source? I think it is possible , but i do not know which tool to use.. Thanks in advance . :)

Member Avatar for MartinPlatt
0
272
Member Avatar for kahaas

Hi guys. I'm in a beginning C# class and I' having trouble with an assignment. I need to make a windows forms application that takes English text from a text box, converts it to Pig Latin, and then returns it to a second text box. The specifications are: If a …

Member Avatar for Momerath
0
655
Member Avatar for tawboiid

I have a C# App with a form which has a groupbox containing many controls. I have the groupbox anchored Top/Bottom/Left/Right to ensure that it sizes appropriately to the users screen resolution. This app was developed on a machine running Windows XP and it has been working flawlessly for over …

Member Avatar for tawboiid
0
494
Member Avatar for gihanbw

hi, i wrote the following piece code to create a new bitmap file with random RGB values. I wanted to copy the header from the input file. the problem is it adds two additional bytes to 3rd and 4th (just after the magic number). i can't figure out why. // …

Member Avatar for gihanbw
0
474
Member Avatar for bhagawatshinde

Hi, i am creating a windows application in c# while making an exe i want to add setup of sqlexpress. how i can add this so it will install when package is install. I have add prerequisties in properties to add windows installer,.net framework,sqlserver but it seems to be not …

Member Avatar for bhagawatshinde
0
328
Member Avatar for juliusham

hi pros am new at C# and under graduate student. am stuck several hours. i have latitude,Longitude values from a server or gps device, they appear in textboxes and stored in mysql at the same time. i want to use the same latest values to map directly to google earth. …

Member Avatar for MartinPlatt
0
115
Member Avatar for XodoX

Let's say I have a string with 1+5*9+4 etc.. whatever it may be. How do I use C++ do calculate this? I know recursive functions work here, but how? I figured I could loop ..searching for the * first ( higher precedence ) and then the +. No idea. Would …

Member Avatar for Taywin
0
165
Member Avatar for sparkey

Hey guys, I am pretty new to c# and have just developed a login client/server application. I am coming from PHP programming environment and my question is now. Is there any similar function in c# as the SESSION variables in php? Say i am logged out in my c# application …

Member Avatar for sparkey
0
153
Member Avatar for zack_falcon

Hi there! I'm an IT student, doing a final project of some sort for my college, a board game called "Game of the Generals" (something similar to Stratego). I've done some work in C# using Visual Studio 2005, but my experience told me C# is a rather poor language to …

0
89
Member Avatar for bennetk2

Assignment You are to write a program that will convert any base 10 number a to any base b. Input two values, the first in base 10 and the second value is the base that is to be converted into. Bases only between 2 and 9, and flag invalid input. …

Member Avatar for bennetk2
0
2K
Member Avatar for emekapa

I've searched around and didn't find anything useful! :( What i want is to have my C# app doing a command to a running process. This running process is a console application and i just need to enter the command "restart".. my try was: [CODE] Process[] processes= Process.GetProcessesByName("OpenSim.32BitLaunch"); foreach (Process …

Member Avatar for Momerath
0
817
Member Avatar for chandnigandhi

how to use video files in c#???in which format we can use video files in c#???which control we can use for video files in c#???

Member Avatar for shrutipopat
0
2K
Member Avatar for mehmedean

Let's think about a small program that has a form and two panels. There is a menu strip at the top and under the "File" menu there are 2 options: "New Form" and "Admin" (and "Quit"). There are 60 fields in different groupboxes in panel1 (a detailed registration form). A …

Member Avatar for mehmedean
0
1K
Member Avatar for walid86

hi there, i'm creating an app in C# which allows users to select an image by double clicking the "pictureBox1", from there it selects the image, creates a new Graphics object and passes the Bitmap to it. Once the picture has been loaded the user should be able to move …

Member Avatar for walid86
0
1K
Member Avatar for shandoosheri

Hi need to shut down my computer using c# and i have tried this code : [CODE]Process.Start("shutdown","/s");[/CODE] but the problem is that this code forces all running application to close like if i am having an opened document in notepad this code will close the notepad without saving and i …

Member Avatar for Ketsuekiame
0
193
Member Avatar for Johnrocks

Hello, I get this error when I try to run my code "Cross-thread operation not valid:Control 'dataGridView1'accesses from a thread other than the thread it was created on" File Name Form.cs I have method call FillDataGrid() [code] FillDataGrid(string msg) { string[] data = msg.split(';'); string Name = data[0]; string LastName …

Member Avatar for Momerath
0
259
Member Avatar for rotten69

Hey everyone, I looked around if anyone has the same error. there are people who have had this error, but I couldn't really get to the point that what causes this error to occur. I thought the data types in my table are the reason and I changed them. But, …

Member Avatar for hericles
0
107
Member Avatar for Jared1337

I'm having trouble getting this program to work for roman numeral conversion. I hope it says that i have one error, which is C2110: cannot add two pointers. here's what i have so far... ANY help would be great, thanks a bunch! :) [CODE]#include <iostream> using namespace std; int main() …

Member Avatar for raptr_dflo
0
4K
Member Avatar for rainbow9

I want to draw a editable TextBox on top of picture box and the user is allowed to enter text into this box.After entering text the text box should disappear and the text entered should be painted to the picture in the picture box.Please help me on this,I'am doing this …

Member Avatar for rainbow9
0
2K
Member Avatar for shandoosheri

Hi i have a directory containg about 300 files with different extensions like : .txt, .php, .html,etc.. and i have tried this code but it displays a files list instead of only thier extentions [CODE]string[] filePaths = Directory.GetFiles(@"c:\tmp]");[/CODE] so what i need to do is to display all the files …

Member Avatar for shandoosheri
0
246
Member Avatar for susees

[CODE]#include<stdio.h> #include<conio.h> #include<string.h> #include<ctype.h> int main() { char org[50],r[50],m[50],a; int i,j,c=0,length=0,h=0,g=0,z; char token [3] [20] = { "void", "main", "int"}; printf("\nenter a line:"); gets(org); for(i=0;org[i]!='\0';i++) { length++; } for(h=0;h<3;h++) { for(g=0;g<length;g++) { z=strcmp(org[g],token [h]); if(z==0) printf("Keyword:%s\n\n",m); else printf("NO_Keyword:%s\n\n",m); } } printf("\n"); system("pause"); return 0; }[/CODE] it is showin this warning....[Warning] …

Member Avatar for raptr_dflo
0
1K
Member Avatar for nasgaillean

Ok, I've been trying to research this, but have had no real luck for my level of understanding. I've been programming C++ for a while and have decided to learn DB programming (just because I want to). Anyhoo, I am unable to figure this one out: I have a simple …

Member Avatar for raptr_dflo
0
209
Member Avatar for Alokkumar11
Member Avatar for C_Hickman

im making a C++ web browser, i have the basic design all i want now is it to be an anonymous browser, similar to a proxy site. is there a code you can give my to do this. im doing this for a friend who likes to play games in …

Member Avatar for pseudorandom21
0
301
Member Avatar for yousafc#

Hello Hi when I deploy my project using set up wizard the error show and my deployment set up stopped,Please Help for this Immediately. The Error Is [COLOR="Red"]The following files may have dependencies that cannot be determined automatically, Please confirm that all dependencies have been added to the project C:\windows\system32\wmp.dll …

Member Avatar for Momerath
0
117
Member Avatar for AltF4me

Hello, I'm making a networked client/server program (with a reverse connection, i.e. server connects to the client). I'm wanting to take a screenshot(server side) and transfer this file over to the client so that it can be saved. Now before I go any further, the code I'm about to disclose …

Member Avatar for AltF4me
0
3K
Member Avatar for robdb

I have to write an application which uses the Vigenere cipher with the Italian alphabet (only 21 characters, excluded J,K,W,X,Y). After a day of trying this is the code that I wrote [CODE] #include "vigenere.h" #include <string> using namespace std; Vigenere::Vigenere(string str){ key = str; key = StringToUpper(key); for(int cnt …

Member Avatar for raptr_dflo
0
429
Member Avatar for shandoosheri

hi ihave many files like File.txt anotherfile.txt Log.txt . Etc... And i want to rename these files into something like this File1.txt File2.txt File3.txt . Etc So how can i do this in c# Thank you for your help

Member Avatar for shandoosheri
0
308

The End.