8,298 Topics
![]() | |
![]() | I want to make a c++ program that can open an image that is in any of the major formats (jpg, gif, bmp, png) and has any size and I want to resize it to a specific size (no, I don't care if it looks stretched) and save it to … ![]() |
I wrote a program that converts Celsius to Fahrenheit and vice versa. when converting Celsius to Fahrenheit I used the formula (9/5) * Celsius + 32. but that didn't work, I discovered that 9/5 was returning 1 rather than 1.8 and I'm not sure why that is. I fixed the … | |
This is part of a cinema project code that my friend did. I understand most of the other parts, but when I came to this part, I am completely lost. Can someone please explain this to me line by line please. Thank You. If you need the complete code to … | |
I wanted to connect mysql with C# But I was faced with the following error error text:connection unexpectedly terminated Please help me | |
I want to develop a [B]web application[/B] using asp.net(C#) that can take an image from a scanner (Microtek: scanmaker 1000XL). when a "Scan" button is clicked then the application will capture the image from the scanner. The scanner is Twain compatible. Can I get any sample codes for this web … | |
Hey guys, I need a really simple code for chatting across consoles. I have looked up many tutorials on how to do this, yet they all seem to fail. All I want is a VERY simple chat that sends data from the client to a file, and then receives the … | |
We have a Timestamp site on our network that uses an older version of IE to render the page, every time you visit the page in IE8 you cannot interact with it, what shows is an infinite image of the hour glass next to the mouse. We have been using … | |
Hi everyone. I have a web server that I wrote in C#, and it serves HTML documents pretty fine. The code is a bit messy, and I'm going to clean it up, but my main question is how to handle POST when submit buttons are used in HTML? Thanks! This … | |
Hi all, I am a newbie to C# and need help bad. I am to use looping (do,for, while or any combination).The program will accept a letter 'A' example and then end. What am i doing wrong. Three salespeople work at Sunshine Hot Tubs-Andrea, Brittany, and Eric. Write a program … | |
Hi Guys, Can Anybody tell me where i am wrong. The event can't be fired on clicking button6[CODE] private void button6_Click(object sender, EventArgs e) { this .button7.Click +=new EventHandler(button7_Click); } private void button7_Click(object sender,EventArgs e) { MessageBox.Show("Button7 Clicked when ur pressing button6"); }[/CODE] | |
hi, i am making a program that kills a process [CODE]system("taskkill /im explorer.exe");[/CODE] and i need to restart the process using CreateProcess. [CODE]CreateProcess(NULL,("C:\\WINDOWS\\explorer.exe"), NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, &siStartupInfo, &piProcessInfo);[/CODE] but i keep getting these errors: 27 `siStartupInfo' undeclared (first use this function) and 27 `piProcessInfo' undeclared (first use … | |
I have developed c# application which is not having any database.I have saved the application with data in rich textboxes in my custom file format.When i click on the saved application,I can open my application but,i was unable to open with the data saved in it. How to load the … | |
Hi, I wanted to write a C program which searches for text files in a directory(assuming the directory and files are not write protected),list them and open each one of them(files) write a letter A in them.Can anyone give me a sample code. I believe it can be done with … | |
I am trying to rebuild my code for my final project due in 2 hours... I am getting a stray \147 and 148 error, along with various other errors. What am I doing wrong???? I am not very good at this C++ stuff, so any help would be appreciated :) … | |
Hi all, I want to create code to delete row in datagridview based on checkBox selection. I've managed added the checkBox Button using code below: private void FormTampil_Load(object sender, EventArgs e) { DataGridViewCheckBoxColumn checkboxColumn = new DataGridViewCheckBoxColumn(); checkboxColumn.Width = 30; checkboxColumn.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; dataGridView1.Columns.Insert(0, checkboxColumn); // add checkbox header Rectangle … | |
I am having an issue with my decryption out.txt file. I have gotten the program to open the input file in note pad and encrypt. to an output text file but when I try to decryp to an out text file it doesn't do anything. I figure I am missing … | |
Hey guys, I just wanted to ask why this error kept on showing up, i looked at everything, but i couldn't find anything, so maybe one of your eyes will catch something. Here's my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FarenheitToCelsius (float); int main() { … | |
I want to insert data from the textBox to MySQL Database. Here is the code snipped that I have created. [CODE]private void button6_Click(object sender, EventArgs e) { string connectionSQL = "server=localhost;database=db_junisman_kulit;uid=root;password=;"; MySqlConnection conn = new MySqlConnection(); double no_simpan = 0; try { conn.Open(); MySqlCommand cmd = new MySqlCommand("INSERT INTO tb_backorder … | |
I'm a mid-level web developer (4 years of experience) with most of my programming background in PHP and MySQL. Recently I have gotten interested in C# to expand my knowledge and I have grown fond of it. but I'm encountering a problem in looking for an appropriate job that reflects … | |
[COLOR="Green"]i wanna ask u if there are new fine and good controls in c# 2010 ???[/COLOR] | |
ahmm. let me ask, how do you make a program that saves a data that has been inputted by the user? and when you go back to that same menu, youll be able to review the datas you inputted .thanks alot for thos who'll reply. | |
Hello everyone! I'm new to this forum and I wanted to know if there's a book to learn C++ on windows form! If so then please give it's name to me! Thank you! | |
What code will i use in c++, if i input 6 numbers and then i will get the 3rd, 5th, and 6th number? Example: Enter number :123456 3rd, 5th and 6th number : 356 | |
Hey guys... I have this code and i need to make the temperature part work with a function but i don't know how. So Any help is appreciated. Thanks *edit* Also, if there is any way to make this simpler, then please tell. [CODE] #include <iostream> #include <time.h> #include <string> … | |
I've been working on compression and decompression between Java and C#, using deflate and inflate. Everything else I tried produced varying results which were never able to be compressed/decompressed flawlessly between Java and C#. I tested out using DeflateStream (C#) to compress data, and InflaterInputStream (Java) to decompress the data, … | |
hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << … | |
What do you call those statements highlighted in red? [CODE] using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program {[COLOR="Red"] static void Main()[/COLOR] { int choice; Console.WriteLine("Please select below"); Console.WriteLine(); Console.WriteLine("1. Area of a Circle"); Console.WriteLine("2. Area of a Rectangle"); Console.WriteLine("3. Area of a Cylinder"); Console.WriteLine(); choice = … | |
hi, I am trying to make a calculator and I need the stringstream function to convert a a certain part of a string.[CODE]string n1 = "243+79"; int n2 = 0; stringstream(n1[0-2]) >> n2; // this converts the 243 from n1 to an int[/CODE] Any solutions? | |
I am a newbie in Visual Studio (C#). I want to store a text read from a text file and display it on a TextBlock control, but just for a specified row. How can I do that? I've try to search on the internet, and most of them just show … | |
Hi guys, I need to make a c++ project for my camp and i'm stumped and don't know what to do. I only know the very basics and i don't want to make any card games like black jack or RPG's cause people are already doing that in my camp, … | |
hi, i am creatnig an windows desktop application. and in the main form i have a menu stript. what i want to do is attached one user control to eacn menu stript. each user control has a different design. how can i do this??? any tutorial | |
Hi Guys, I'm kinda new at this..but I need help cause I keep on getting this error and I don't know what's wrong with it. So Please Help Me. Thanks. Here's My Code: [CODE]#include <iostream> using namespace std; int addition (int,int,int,int,int, int); int addition (int a, int b, int j, … | |
:D Hello everyone, I am making a program where the user types in a string and then the string is saved to the clipboard, but I am not quite sure how. I have had a look at [url]http://www.cplusplus.com/forum/beginner/33250/[/url] but I am not quite sure how to implement this. I would … | |
Hi, I am trying to call a simple fortran subroutine from a C++ interface and in turn call this C++ function from a C# application. Here is the fortran subroutine : [CODE]program hello_world2 implicit none c call hello call hello end subroutine hello !DEC$ ATTRIBUTES DLLEXPORT :: hello implicit none … | |
I want let exe detect new version of exe. Then it will update itself. my program is develop in Microsoft Visual Studio 2008 C# windows form application. | |
every body how can ı add a report from access to c# for showing the all of things | |
does anybody know library for c/c++ to catch presses of keys like ctrl+shift+foo or fn+f7 etc. ? | |
:) Hello, I am making a C++ console application where the user can encrypt and decrypt text. So far, I have successfully made the encryption part, but am not quite sure how to make the decryption part. For example: abcb -> 128.70.88.70. but I can't make it go back to … | |
As we learn all, C dont supprot Inheretic, Polymorphism, Function Overloading... And Few Other Things... My Question is: What is this one? [URL=http://imageshack.us/photo/my-images/705/wico.png/][IMG]http://img705.imageshack.us/img705/5661/wico.png[/IMG][/URL] [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Example { public partial class WForm : Form { … | |
Hi, I'm trying to send an email using a lotus notes account and c# which is working fine. It is a two part mail which consistes of an HTML formatted message and attachment/s. The problem i'm encountering is when I have multiple attachments in different file formats. For example when … | |
Im having some problems identifying where my error is. I've read through the post on this topic and applied the responses to my code but it's still giving me a warning. I am trying to use an array to compute the average of 10 numbers. [CODE]#include <iostream> using namespace std; … | |
Hi All, I have a problem I have a MySQL Table, one of the columns' Data Type is TinyInt(1) When I use this line of code it gives an error int newNumber = int.Parse(string.Format("{0}", reader["someField"])); I think the reader is reading a bool value however MySQL Table has row values … | |
Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and … | |
I have a winform with 3 textboxes; 1 for Day, 2 for Month & 3 for Year plus a button when clicked opens a new form which has the reportViewer1 control there to display the report. I have no problem with just adding a dataset and adding fill & get … | |
hello I want create game server in my City which can many people play at the same time, but not only one game, there can n games running. i want to create 2 programs: [LIST=1] [*]for Clients (players) [*]for server (game server) [/LIST] So when someone would like to start … | |
I saw a thread lately on this site to rotate an integer. Seemed like a fun project to do. There are probably more efficient solutions out there but this is mine, and indeed it was fun! It is mostly a demo on how you could use the less known shift … | |
Hi I have just started C# (again) and written a small program. I have installed Microsoft Visual C# 2008 Express Edition. Now I want to compile and run my program but "start debugging (F5)" option is faded. Also I can't find any csc.exe file in the main directory where Visual … | |
[B]HI . from where i can have complete c# tutorials ???[/B] | |
I need to create a exam system. i have to give 20 question in a list. it should display 10 question randomly in a form. how can i do this in c#.dotnet? please anyone help me | |
hi, i am trying to make a weight watchers program and heres my code: [CODE]#include<iostream> #include<fstream> #include<conio.h> #include<cstdio> #include<windows.h> using namespace std; int main (char argc) { for(;;) { system("cls"); ifstream r; r.open("cdaily.txt"); double r1; r >> r1; r.close(); ifstream r2; r2.open("cweekly.txt"); double r3; r2 >> r3; r2.close(); cout << … |
The End.