43,549 Solved Topics
Remove Filter ![]() | |
Hi all, I am trying to make a simple application, where when a user press a button, there will be 2 consecutive images shown inside the window with delay. Below is the source code [CODE] private void btnAddMore_Click(object sender, RoutedEventArgs e) { //first show image1 in window FunctImage(); //put a … Software Development image | |
So, a single user application, all data is local, no remote access .... If a go with an Access file (DB), from the user's perspective, they simply install the app and they are good to go. Is it the same if I go with a SQL DB, or do they … Software Development c# database-design microsoft-access sql | |
Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible. [CODE=python]import wx class Example(wx.Frame): … | |
I was wondering if it is possible to subtract 30 from 4ah? i thought so i can convert the ascii character 'C' to hexadecimal '43', i will just subtract 30h from 43h, then add 30 so it will become 43 again and i will be able to perfrom arithmetic on … Software Development assembly | |
From python.org official website: [URL="http://python.org/download/releases/2.7/"]Python 2.7[/URL] [B][I]Python 2.7 was released on July 3rd, 2010[/I].[/B] Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1. … | |
I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i … Software Development c++ objective-c | |
Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" … Software Development file-system python | |
Is there a problem with my code? i'm trying to refresh a few form checkboxes based on text typed into machinetxt.text with what is currently stored in the database. i put this into the refresh button click event. here is my code: [CODE]Private Sub machinerefreshbutton_click(ByVal sender As System.Object, ByVal e … Software Development dataset open-source vb.net | |
I'm working on a code that enables the user to input a string , compare it to some text in a file then send the approriate data ( from another file) using serial communication or TCP/IP. I ahve implemented the serial communication part but the TCP/IP..I've looked around but have … Software Development c visual-studio | |
hi there, i've one requirement i am using a button in three different rows [CODE] for example ( <tr id="tr1"> <td/> <tr id ="tr2"> <td/> <tr id="tr3> <td/>) [/CODE] here i am using one button control (instead of 3 buttons) in 3 different rows now in button onclick event, how … Software Development | |
Sorry I can't think of a better Title, I have an Invoice Table, Where The Structure is: [B]InvoiceID, ProductID, Qty, Sum, Location, etc[/B] Primary Key is InvoiceID + ProductID A single Invoice can have more than one Row so a single invoice will look like this: [CODE=Table]InvoiceID | ProductID | … Software Development sql | |
Hi guys, I created a Library 3 years ago and it is built around interfaces and generics. Now I needed to extend one of my application to support WCF. On my test scenario I can load it up on my application as part of different application domain. My problem now … Software Development | |
Hi there, I am currently doing a bioinformatics project on dynamic programming. I need to read a text file, and extract the information in it and use the information in it for my dynamic programming java codes(both java codes must be together). May I know how to extract the information? … Software Development file-system java | |
Hello friends, I never ever use a class destructor, and now I want to try to using destructor, but I have a small problem. My code is: [CODE] using System; using System.Text; namespace ConstTest { class test { public test() { Console.WriteLine("Start..."); } ~test() { Console.WriteLine("End..."); } } class Program … Software Development | |
Hi everyone, I think I nearly have this program running right except for printing the adjacency matrix. Here's the code I have: [CODE]#include <iostream> #include <string> #include <memory.h> using namespace std; class Graph { public: static const int MAX_ROWS = 6; static const int MAX_COLS = 6; Graph(); ~Graph() { … Software Development c++ | |
Hello, could someone be so kind as to give me a short tutorial on how to use a function that accepts multiples values and parameters using references. I need to create a function that accepts an int and a double and squares both values by using references. I'm not sure … Software Development c++ | |
hey guys ...i m making a project of "CHESS GAME"..... in which to identify any pieces of chess board ,i had used described mechanism....(see code of array) ... but it actually not working...it takes garbage value...it is working only for the "Rook"... i can't understand this behavior...so plz help me … | |
I kinda use this: [CODE]while 1: [body] [/CODE] a lot... But I've also read that it's not a good idea to be doing so even if you put add some way to break from the loop within the body... Any alternatives, please? Software Development python | |
My Python has started to imagine that square root of -1 is 1, so be careful with ** and unary -. [CODE]print (-1**0.5) ## ** binds stronger than unary minus! i=-1 print "Square root of %i is %f" (i,i**0.5) # gives proper error """ Output: -1.0 Traceback (most recent call … Software Development python | |
![]() | I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am … Software Development c++ file-stream file-system ios ![]() |
I need to make report there in crystal report there in crystal report. Let me make it clear to you. Listen I have a table called result ok? When user creates result for Tom it saves data in the table like that - ID - Name - Subject - Oral … Software Development vb.net | |
I am new to C++. I have a problem regarding access specified elements from a text File. I have two File containg the random sorted integert values. and an Array with some size. For exapmle if array contain 10 elements and files will contain random number upto 10 with no … Software Development c++ file-system | |
Static fields and methods are allocated memory once only, when they are first referenced, irrespective of the no. of objects u later create. But, memory is allocated for its data members each time an object is created. But what about the non-static methods, they don't change for each object. So … Software Development java | |
Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end; Software Development assembly | |
Write a program in PC assembly language to execute the following code: b := 0; a := 0; read c (c must be between 5 and 9) while ( (a+b) < c ) do begin b := b+a; a := a+1; end; I wrote the followng but something is wrong … Software Development assembly | |
Hi, As there is almost no documentation for this, I would like to know hot to properly use in VB NET 2008 the keep alive socket option. Tried this: [CODE]myTcpClient.Client.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.KeepAlive, 1)[/CODE] but then the TCP does not connect any more, and how do I know when the connection brakes … Software Development vb.net | |
Hello, I am a newbie with vb 2010 but some experience with vb6 My problem is relatively simple but i cant find the answer to it I have a form with a textbox and a button on it when i press the button i have code that starts a sub … Software Development vb.net | |
Hi, I'm just a little confused as to what to we call a reference. [CODE]A ob=new B();[/CODE] Here B is a subclass of A. Should we say "ob is a reference of A which has been assigned an object of B" or "ob is a variable of A which has … Software Development java | |
I have started to follow the Beginner tutorial's so the first one is Hello World, so I have followed what was shown and it has failed this was created in Console application template then added the main.cpp file to the source folder. this is the below error message, can someone … Software Development c++ visual-studio | |
I have been using the code below to edit SQL database fields from the data stored in a dataset. Problem is I have to repeat this long code for each database field to be edited....I find this very tiring...IS THERE A SHORTER WAY OF EDITING SQL Database FIELDS. (Am using … | |
Hi, Even though there are many examples of Invoke operations, I can't find something that works for me. (I'm using VS 2008, and working in VB) Here is what i have: A main module with functions (thread 1) that starts a BeginRead for a TCPClient. When the callback function executes … Software Development vb.net | |
I cannot get shutil to copy one folder to another. This code results in the error below. What am I doing wrong? [CODE]if os.path.exists(backup + "\\Safety Backup"): pass else: print "Backing up original music. . ." os.mkdir(backup + "\\Safety Backup") for folder in musicFolders: shutil.copy2("C:\ABCD123", backup + "\\Safety Backup") print … Software Development python | |
Well i have the following program where i need to swap students(dynamically created structure array) . Just cant seem to get the swap right. Main problem's here : [code=c] struct student *stemp; stemp=(struct student *)malloc(sizeof(student)); *stemp.name=s[i].name; s[i].name=s[j].name; s[j].name=stemp->name; [/code] Other info : [code=c] where s[i] belongs to a dynamically created … Software Development c | |
Hi I'm new to C# and need help. i want my listbox updated when it collect as many logs. The application at the background is still working but the GUI is not as responsive. I tried it with the thread also but got the error "Cross-thread operation not valid: Control … Software Development gui | |
How do I make a calendar show a date that I fetch from another control? The fetched date is 'date' and will be different every time. To show the current date I do this: [code=c] CalendarMyMeetings.SelectedDate = System.DateTime.Today; [/code] ...so I'm guessing I need to replace 'Today' with 'date', but … Software Development | |
A friend and I are working on our first game engine in C++. We're both new to C++, but not to programming in general. Our current method of handling objects (things within the game, such as a player object) works fine, and is pretty fast! But I'm not sure if … Software Development c++ | |
Hey, I'm working through Objects First with Java and using bluej. I've just gotten to where I call other classes and methods, and sometimes I can get it to work. Other times, like the example below, I'm completely suck. I've tried every combination I can think of to get the … Software Development java | |
First of all Hello to all of you. I am new to programming(about a week since I started learning it), a little young(12 years old) and totally interedtes in its thrill. Second of all I would like to clear the [I]superstition[/I] that students join this forum as they want you … Software Development c | |
[CODE]/*a program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers*/ #include <iostream> using namespace std; int main() { int firstNum, secondNum, thirdNum, sum, product,average, largest, smallest; cout<<"Enter three integers: "; cin>>firstNum; cin>>secondNum; cin>>thirdNum; sum = firstNum+secondNum+thirdNum; product = firstNum*secondNum*thirdNum; … | |
Hi all , i'm having a solution which includes a setup project too. when the user installs my program, it asks him t oinstall wamp server too. I want to have the path in which they installed the wamp server, so that i could run the MySQL files from my … Software Development | |
Hi, I'm working with the VB6 for my project and it's about membership in a club. Everything is near done but there are something I want to ask Database : D-Club.mdb Field that hold the DOB : member_dob ex: '(dd/MM/yyyy) Field that hold the member value : member_value ex: '(16 … Software Development flash visual-basic | |
I have a datagridview which contains 4 records. I want to insert these records into access table.This access table already have records. Datagridview's columns & access table's columns are same (datatype & columnname) How can i insert these 4 records in access table??? Plz anybody help me.............. Thanks in advance... Software Development vb.net | |
I need to create a SOAP wrapper of the form [CODE=xml] <SOAP-ENV:Envelope xmnls=........><SOAP-ENV:Body></SOAP-ENV:Body></SOAP-ENV:Envelope> [/CODE] My C# code to do this is as follows [CODE=C#] XmlElement soapEnvelope = document.CreateElement("SOAPENV", "Envelope", "http://schemas.xmlsoap.org/soap/envelope"); XmlElement soapBody = document.CreateElement("SOAPENV", "Body", "http://schemas.xmlsoap.org/soap/envelope"); [/CODE] This works fine for the Envelope part but then adds a spurious xmnls … | |
hey there, I have the following code: [CODE] String[][] candidates = new String[4][3]; for(int i = 0; i!=4; i++){ for(int j = 0; j!=3; j++){ switch (j){ case 0: {candidates[i][j] = JOptionPane.showInputDialog("Give name of candidate " + i);} case 1: {candidates[i][j] = JOptionPane.showInputDialog("Give address of candidate " + i);} case … Software Development java | |
Hello again, i ran into some trouble with Visual C++ 2008 when i tried to use a template function. I only get this error when i try to use the function from main(). I used another template function succesfully earlier, but i can not figure out what is wrong with … Software Development c++ | |
Hi, I am having a problem with using file input/output streams in this program. [CODE] #include <fstream> using std::ifstream; using std::ofstream; using std::endl; int main() { ifstream inStream; ofstream outStream; inStream.open("infile.txt"); outStream.open("outfile.txt"); int first, second, third; inStream >> first >> second >> third; outStream << "The sum of the first3\n" … Software Development c c# c++ file-system | |
I have a spreadsheet (roughly 200x200 in size) that is a matrix of 0's and 1's that define rules. These rules cannot be expressed in procedural logic because they need to be easily accessible for change by a user for modification. The first row are header value strings and the … Software Development dataset microsoft-office | |
Hi all, In one RTOS, i'm debugging one issue which is, program is crashing one point always when it send a 8-bit value (Lets call it 'Int8 rogue_int')to a function (lets call it 'Infected( Int16 )' ) whose definition is taking that variable as 16-bit variable. Before entering to that … Software Development c++ | |
Hi, im trying to find a way to repeat this code with out losing the count of 1,2,3 and 4, when the user enters a number different from 1,2,3 or 4. Because in line 26 I call for main() again but when I do that it loses count of everything. … Software Development python |
The End.