132,728 Archived Topics
Remove Filter ![]() | |
anybody know how to save picture in picture box after upload and set picture witdh+heigh size. i want same picture in picturebox after i relaunch application .. i use this code to upload picture into picturebox....please anybody [code] Dim OpenFileDialog1 As New OpenFileDialog With OpenFileDialog1 .CheckFileExists = True .ShowReadOnly = … Software Development vb.net | |
Hi, I am working on a piece of OOP which needs to be ran entirely by classes, by that meaning the main function should only create the first class and the rest of the program ran by member functions of various classes. Part of this task requires me to keep … | |
Hello, I have a problem using the MySQLdb library. I'm trying to insert values into my table but MySQL isn't showing them. What's more strange is the primary key is changing when I manually insert values using command prompt. Here's an example: [CODE] '786', '2011-02-16 14:52:38', NULL '787', '2011-02-16 14:52:52', … | |
Hello everyone, I am new to this forum and programming in general and had a quick question. In the code below, I was wondering why it was necessary to initialize the variables. I understand the general purpose of initialization(no garbage data) but I don't see what the point is here … Software Development c | |
Hy, i'm working on a application and i'm using a datagridview for displaying 2 columns:example: name of product and quantity. when i select a product and a quantity , pressing an ADD button this datagridview should displaying them...i've tried in this way private void adaugareGrid() { dataGridView1.Refresh(); index = this.dataGridView1.Rows.Count; … Software Development | |
import java.util.Scanner;// Import and use scanner import java.util.Arrays; public class Inventory3 { //begins execution of program public static void main(String[] args) { //create new object CD mycd = new CD(); //create and intialize array of CDs CD[] cdArray = new CD[3]; cdArray[0] = new CD("Rolling Stones",100,25,14.99); cdArray[1] = new CD("Pearl … | |
Hey all, I've posted a few other threads and all the help has been so helpful... I have another assignment and I need some more help. For 9, I'm thinking that I should use a for loop and just do i-- for each time it runs through? After that just … Software Development java | |
I m work'n on a project to control the cursor with my finger. I've used openCV in VC++ to track my finger but have no idea how to link the mouse with my finger i.e control the mouse motion with finger. can someone please....!! tell me how do you control … Software Development c++ | |
I have two programs which gives a same output.....But they uses different logics.... So I want to compare their compilation and run time so I can understand which one is better.... The program gives an output like.....If u enter a number=789 then output=890 means each input digit got increament of … Software Development c | |
Hi guys, I'll try to keep it as short as possible. Basically, I love the webcomic [URL="http://www.xkcd.com"]xkcd[/URL]. And recently, I've been browsing around for a downloader, and have found one written in Perl that works great. It even grabs the Alt-Text (text that pops up when you hover your mouse … Software Development open-source operating-system perl ubuntu | |
Hi, I wanna ask.. suppose I have an array and a constant called threshold in my data segments [CODE]array db 1,2,3,4,5,6 threshold equ 5 [/CODE] I want to compare my array elements with the constant, and only display/print the number which is less that the threshold, if there are none, … Software Development assembly | |
Hi there, i am desperately trying to compile the MySQL++ library header & cpp files in order to create the actual lib. I do follow the exact instructions given in the ReadMe for MinGW. [ICODE]Prerequisite: MySQL C API DLL Import Library ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Before you can build MySQL++ with MinGW, you … | |
Hi, I've got a basic javax.swing.Timer that I use to repeat itself to darken an image over and over again. This should give a fade out effect for the image however the delay on this is set to 0010 which should be so quick however it takes half a second. … Software Development java java-swing | |
I am trying to use an exported function from a C++ dll with the below signature, from within my C# program. [CODE=C]extern "C" __declspec(dllexport) BOOL S_USB_Memsize(unsigned char *buffer)[/CODE] In my C# code , I am declaring the use of this function with: [CODE=C][DllImport("RSTUSBIF.dll",CallingConvention = CallingConvention.Cdecl)] public static extern int S_USB_Memsize(IntPtr … Software Development c++ | |
I have the following xml code; [CODE]<item> <title>CBS News' Logan victim of 'brutal' Egypt attack</title> <description> <![CDATA[<p><a href="http://today.msnbc.msn.com/id/41607923/ns/today-entertainment/"><img align="left" border="0" src="http://msnbcmedia.msn.com/j/MSNBC/Components/Photo/_new/110215-lara-logan-egypt.thumb.jpg" alt="CBS Correspondent Lara Logan is pictured in Cairo's Tahrir Square moments before she was assaulted in this photograph taken on Friday, Feb. 11." style="margin:0 5px 5px 0" /></a>The correspondent … Software Development xml | |
Hello, first I want to say I'm a total noob to C++ and Visual Studio and MFC. Before this I studied Java in school. Anyway I'm required to learn MFC for work and I've been going through a reference book my supervisor has and I've run into an error that … Software Development c++ visual-studio | |
heres the problem i made a code for sine(X) to calculate the taylor series but i need to change sine(x) for sine(x+1) but i dont know how to do it, heres the code i made [code] from math import sin as senopy def factorial(numero): factorial = 1 while (numero > … Software Development python | |
I have an application that contains a textbox wherein my database could only accept an int value, which is the contact number. The contact number field is only optional, so an empty field couldn't be accepted because it's still a character and not a number. How could I fix this? … Software Development | |
I am working on a little USPS tracking class, very simple calls web api returns xml, parses the xml to an object, passes that object back via an event. for some reason I can't seem to get the XML to parse correctly. I there are an unknown amount of a … | |
Hi, I want to learn mfc, but as I read in wiki mfc is not included in visual express editions, IS THE ONLY WAY TO LEARN MFC is buying visual studio software? are there any other solutions? Software Development c++ visual-studio | |
Hi folks, I am working in linix and i have a little bit confusion that whether i can access the PCB of current process or not? if yes then what content of it we can print it using it process id (getpid())..... thanks for answering ..... Software Development c | |
The assignment I am doing is almost complete but the while loop doesn't exit. package lessons; import java.util.Scanner; public class Chp4417 { public void determineMileage() { Scanner input = new Scanner(System.in); int miles, gallons; //read in the inputs. int counter = 0; // counter int totalGallons = 0; //calculate total … Software Development java | |
If I want "3x²" to be output in my program, and I have a variable holding the "3" as float coeff and one holding the "2" as int expn, how do I go about displaying the polynomial using cout? Do I need #include<cmath> as well? thanks in advance. Jess | |
I don't have any code for this yet (I have no idea on how to start), but I was planning to make this game (RPG), where one of the special features is a 'language' selection thing. I experimented using a static class to show the different dialogue lines (to keep … Software Development | |
hi masters.. How to code the Copy, Cut and Paste functionality in VB 6.0 ? Software Development visual-basic | |
can any one help me about my project.... how to code data from excel export to access.. Software Development visual-basic | |
im having a problem in connecting data access with vb 6 enterprise edition i dont know how to connect trough ADO Software Development visual-basic | |
I have chat application which am using webbrowser to display the chat session. I want to give the user the chance to save the chat session so i used the codes below which is working fine but i have realised is that when the webbrowser contain smiley or emotions it … Software Development image session visual-basic | |
I have been using Pascal for around 3-5 months now. I still haven't figured out how to return random answers. for instance there are 5 integers: var a,b,c,d,e : integer; and now the computer will tell you a random integer like: writeln(c); this is just an example of course because … Software Development pascal | |
Ok, I'm very bad at java and I was wondering if anyone could explain to me how I would begin to approach this? This problem involves a system which processes medical insurance forms. The forms have a three byte code which starts with a first character alpha code of a … Software Development java | |
[CODE] #include <iostream> #include <iomanip> using namespace std; int c0=0,c1=0,c2=0,c3=0,c4=0,c5=0,c6=0,c7=0,c8=0,c9=0; class array{ private: int arr[10]; public: friend istream& operator >> (istream& in, array& a) { cout<<"Enter 10 value in the array!\n\n"; for (int i=0; i<10; i++) { cout<<"Enter the value at ["<<i<<"]: "; in>>a.arr[i]; } } void check_count (void) { … Software Development c++ | |
I would like to convert a C++ string that the user inputs to a c string. The problem is I have no idea how long the c++ string will be and i know the c string has to have one extra space for \n. Is there a way to apply … | |
Can I declare an array variable as "int a[]", as in an array with no specified amount of elements to hold initially (to be determined later with a index variable)? I am writing a program that relies on a file whose contents are read into the array, but the file's … Software Development c++ | |
i am very beginner to java getting error in below code [CODE]class forloop{ public static void main(string args[]){ int x; for(x=0;x<10;x=x+1) system.out.println("this is x:"+x); } }[/CODE] error : cannot read :forloop.java i error please help me Software Development java | |
hi, i think there is a problem with my code below....it insert the data more than 1 record (data redundancy) in the server database....i think there is a problem at the place i highlight with red.... can any1 assist me on this.... [CODE] If Not Update_ServerPOS() Then Update_TempPOS() End If[/CODE] … Software Development vb.net | |
I am beginning C++ programmer, I have been taking my c++ class for about 5 months now and this is the first time I have been completely stumped and I know for a fact it wont be the last. My professor assigned an assignment for us to find the mean, … Software Development c++ | |
i try to create an application that can sent the value from vb.net to SQL database.. the problem is i dont know how....i created the interface, just a simple one like inserting name, D.O.B, hobbies & phone nmber(all this using text area)...and a submit button... pleaseeeeee........... help me :'( -im … | |
hi all, am just curious to know...which is the better or more efficient way of these two? Note: tblOD is a DataTable [CODE] For dtrows As Long = 0 To tblOD.Rows.Count - 1 dgv1.Rows.Add(tblOD(dtrows)(0), tblOD(dtrows)(1), _ tblOD(dtrows)(2), _ tblOD(dtrows)(3), tblOD(dtrows)(4), _ tblOD(dtrows)(5), tblOD(dtrows)(6), _ tblOD(dtrows)(7)) Next dtrows [/CODE] OR [CODE] … Software Development vb.net | |
hi everyone now icheck if program is running or not using this code Process[] pname = Process.GetProcessesByName("AIM"); if (pname.Length == 0) MessageBox.Show("nothing"); else MessageBox.Show("run") all that i need is to be sure that the program is closed before taking my action and shows for the user that the program AIM … Software Development | |
hey guys. i have a very simple programming assignment. i have a little experience in c++ but the code that im using is not working. the assignment is to use an array to enter 10 numbers and then print them out in reverse order. the following code that i am … Software Development c++ | |
Ok. i have a python program launch in the windows command prompt window after you log in to increase security. (its simple, it asks three questions and if you answer all of them right the program ends) is there anyway to make it so that you cant just hit the … | |
If I have an internal class that implements an interface, the interface method must be public. Is that interface method visible to other assemblies or does the internal class that implements the interface prevent it from being visible? Software Development | |
Basically I need to writed a program that asks for a double and if the user inputs something keep going, but if the user just presses enter then the program should end. The problem is i can't get it to do anything after the person presses inter eg double value; … Software Development c++ | |
Hi. I was wondering if someone could help me out with a project. The assignment says to call a void function called InsertIntoArray passing the array, the entry the user entered and place the positive integer into the correct element of the array so that the array is always in … Software Development c++ | |
Hey All, Just wanted to know how to correctly use the OUT instruction for the x86 instruction set I'd like to output some data on the serial port which for me is 3F8h IRQ4. So I set up a test program as follows: [CODE] .386 .model flat,stdcall .code main PROC … Software Development assembly | |
am new to c++, and am having trouble with if else statement for this code i am writing a program that makes the computer guess a number you the user has choosen my program works fine, but when i get in trouble is when my range gets down to zero … | |
beginning in c++, i have a question of a recent program for this program i am trying to create a game where the computer try's to guess a number 1-100 that the user has chosen and i have it running good. but where i have a problem is at the … Software Development c++ | |
Im trying to make a C++ program to calculate the resistance in a parallel electric circuit. The formula is Total = 1 / (1/resistor1)+ (1/resistor2).... + (1/resistorN) I have made the program however when I compile it it has the "linker error" Can you please help me spot the mistake … Software Development c++ |
The End.