8,298 Topics
![]() | |
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 … | |
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 … | |
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; … | |
how Save, Update, Delete Data using C#.Net and SQL Server 2005 | |
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 … | |
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 … | |
[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) … | |
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 … | |
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 … | |
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..??? | |
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 … | |
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; … | |
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 … | |
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, … | |
which is the website for learning c# program.in need of help | |
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 | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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 . :) | |
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 … | |
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 … | |
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. // … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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#??? | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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() … | |
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 … | |
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 … | |
[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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 |
The End.