199,114 Archived Topics
Remove Filter ![]() | |
Hi, I am running Ubuntu in my machine and I tried this code: [CODE] import java.io.InputStream; import java.io.IOException; import java.applet.Applet; import java.awt.*; public class execute extends Applet{ String output=""; public void init(){ try { // Execute command String command = "ls"; Process child = Runtime.getRuntime().exec(command); // Get the input stream … | |
can you help me to solve an assignment in data structure using C++ ? | |
I have stated to make a program called virtual Tv, I have been having troubles with variabels and I need the variable: state to be able to be change and accessed outside the class and inside, but I think that state is a local variable at the moment. [CODE]import random … | |
Looking at examples online, all of them seem to have: [CODE=C#]int read = s.EndReceive(ar); if (read > 0) {//Some code}[/CODE] The question I have is...why? Why bother with the [ICODE]if (read > 0)[/ICODE] when the MSDN says that EndReceive blocks until data is received? If you call [ICODE]int read = … | |
![]() | Hi me again! =) if you didn't already know i am making a simple HTTP Server using TCP/IP sockets for a project. i have a method to get an image and send it over to the browser but i am having problems doing so, i have tried doing it different … |
Is there an easy way to schedule a webservice that was created in vb.net. Would I need to create a .asmx file or do I create an executable in vb that calls a webservice? Or....I have created a webservice using SOAPUI 3.6.1. would it be easier to schedule that instead … | |
[COLOR="Green"][I]CAN YOU HELP ME TO SOLVE THIS Assignment.... PLEASE....[/I][/COLOR] [COLOR="red"][B][U]THIS IS THE QUESTION : [/U][/B][/COLOR]Implement the linkedPriorityQueue class as defined below. Note the following: Each node in linkedPriorityQueue represents a customer. A customer can be regular or with a high priority. High-priority customers have their high_priority variable set to … | |
Hey Guys Plzzzzzzzzzzzzz I need The Source Code To Print A bill In vb 2008 and It is urgentttttttt thank youuuuuu | |
I need help understanding the for statements. This segment of code repeats itself as so 1 22 333 4444 However, i need understanding in how it repeats itself. Thanks [CODE]#include <stdio.h> int main () { int i,j; for(i=1;i<5;i++) { for(j=1;j<=i;j++) printf("%d",i); printf("\n"); } }[/CODE] | |
Hi Frendz, I have a latitude and longitude points of particular place namely X. Now I want to check the given latitude and longitude point of a place namely Y is within a circumstance of a particular radius from that point X. How to check that? i'm using google map. | |
Hi, I am a little bit troubled. I want to call a function in a separate file on a windows form. Here is my header file: [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String ^OriginalText; String ^ConvertedText; OriginalText = this->textBox1->Text; ConvertedText = ParseBBCode(OriginalText); this->textBox2->Text = ConvertedText; }[/CODE] This means that … | |
#include <iostream> #include <fstream> #include <string> using namespace std; int main () { float calculateAverage(int[]); char Grade(float); char line[100]; int marks[100]; ifstream input; ofstream output; clrscr(); input.open("k:\\input.txt"); output.open("k:\\OUTPUT.txt"); if(!output) cout<<"Output file error"; if (input) { while (!input.eof() ) { input>>line; cout << line <<endl; output<<line; for(int i=1;i<=5;i++) { int num; … | |
Hi, I'm new to this forum and C#. I try to make an array that each is the sum of the value of each row in sims array. It gives me nothing but zero. Please help. TIA. [CODE]public double[] ave_S(int M, int N, double S, double sig, double dt, double[,] … | |
Hi im in a bit of a pickle :S this is probably a lot easier than i imagine. i am a undergrad working on robotics and the robot im working on takes pictures in RGB565 which is 16 bit. but i dont know how that works :/ i understrand 24 … | |
can i make idle system for my application...so when user login system & idle for 30 minutes, system automaticly logoff... i only hve code in c#...anyone help me.. | |
Hi. I am using TinyMCE editor in my web but when I submit the form the text is save in the database without format. Could you tell me please How I can submit formatted text with JSP?? NOTE: *i am using netbeans 6.9 *the form is "multipart/form-data" *the tinymce version … | |
Hey! So i just started reading through some Database tuts, because i needed it for a project that i am making. I am using the HomeandLearn tutorial. So i have a database called "AdressBook" and then this code. [CODE]Public Class Form1 Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As … | |
![]() | Hi guys! How you doing? Well I'm having a little headache...here is it :D [CODE]$emaillist=mysql_result($checkemail, 0); print_r ($pieces = explode(",", $emaillist)); //printing values for debugging $useremail_array=mysql_fetch_array($useremail_query); extract($useremail_array); print_r ($user_em); //for debugging if(in_array('$user_em',$pieces)) { ?> <div class="discussposttext"> <form action="more.php?id=<?php echo $id; ?>" method="post" id="jstest"> In reply to ID:<input type="text" name="inreplyto" /> … ![]() |
Hi, i am still stuck in SQL query about how to retrieve data from two tables. I have two database tables- Forecast [CODE=text]------------------------------------------------------------------- TimeStamp | Temperature | Rainfall | Wind | City_Code ---------------------|-------------|---------|-------|------------- 2011-03-13 10:00:00 |22.2 (degC) | 0 | 7 | 1 2011-03-13 11:00:00 |23.1 (degC) | 0 | … | |
right now my program asks for 5 candidates but i want to make the user input as many candidates as they want to. how would i go about doing that?? #include <iomanip> #include <string> using namespace std; int sumVotes(int list[], int size); int winnerIndex(int list[], int size); int main() { … | |
It is showing error about foreach loop. Error is: Warning: Invalid argument supplied for foreach() in D:\wamp\www\greenmusic\admin\sec.php on line 408[code]<form id="adminsform" name="adminsform" method="post" action=""> <input type="checkbox" name="master" onClick="checkedAll('adminsform')" value=""/> <?php while($row=mysql_fetch_array($result)) { ?> <input type="checkbox" name="musicid[]" value="<?=$row['id']?>" /> <?=$row['song']?> <?=$row['singername']?> <?=$row['songtype']?> <td width="15%"><?=$row['songtypeav']?></td> <?php if($row['songtypeav']=="Audio Song") { ?> <a href="sec.php?id=<?=$row['id']?>&act=play">Play</a><?=" … | |
Hi All!, here's my problem. i'm working with Visual basic 6 and microsoft Access 2003 database. I use ADO objects for connection and manipulation of the database. In my database there are 3 tables .2 tables(Customers and Events) are the parent tables and 1 table(Orders) is a child table.The order … | |
hi guys, im having some trouble here and cant figure out what im doing wrong. i have a vb6 program linked to a ms database and im running queries and returing the results in a listbox on the same form. here is what i have: [CODE]Private Sub cmdSearchauthor_Click() Dim strSearchFor … | |
i have a prob wit this code...it says variable letter is being used without being initialized...can anione tell me how n where should i initialize it...plz...m desperately in need of help...i m blank...m jst a beginner in c++... the c++ code is... #include <iostream> #include <iomanip> #include <fstream> #include <string> … | |
Please guys i need help in log in form, i'm newbie at php and tomorrow is the submission of our case study. can somebody help me in log in form. i'll post a code below and tell me if this is correct, if no please provide the right answer, and … | |
Is this a correctly made JOIN: [CODE] // Build SUBJECT navigation and gather SUBJECT data here-------------------------------- $sqlCommand = "SELECT id, linklabel, pos FROM subjects INNER JOIN pages on id = pages.subjectid ORDER BY pos ASC"; $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); [/CODE] ? Klemme | |
Hi All, I am trying to update my form once the delete button is clicked. There are several fields like Name, Date, Date of Birth and so on. Once I delete a record I want the form to automatically load with new / updated data. This form fetches data from … | |
Does anyone know how to handle errors? I want that, when errors happen such as the errors in datagrid, invalidcastexceptions or others, there should be some pop ups to show instead of the JIT dialog box. Please help me with this, this is the last part of my program (the … | |
I have recently started a new unit in college called Event Driven Programming, I eventually changed campus and not many teachers here know alot about Visual Basic. I can create simple programs and I am getting my head around the syntax but some questions in the assignment are quite confusing … | |
Hi, I have a few questions which I need answering please. I have a ListView and I need to get the text in the cell which is clicked. At the moment i have this but it only works for the first cell which is clicked and throws an ArgumentOutOfRangeException if … | |
Hello, I am a university student and I have very few courses this term so I have a lot of free time. In this term I want to improve myself and gain experience on C++ with algorithms and data structures. But I don't know how to do that... I have … | |
Hi I have a project whichs hould be achieved in a very short time I need others to work with me in DFD and DRD , my initial dfd is posted as al ink at the end of this topic. ONLINE POST – OFFICE MANAGEMENT SYSTEM Introduction : – TARS … | |
just have those questions about those code sinppets from the C++ GUI Programming with Qt 4 book: GoToCellDialog::GoToCellDialog(QWidget *parent):QDialog(parent) Does that mean we are inheriting QDialog(parent)? Or, what exactly does this mean? setupUi(this); Here, this code snippet is part of the gotocelldialog.cpp file, which is the implementation of gotocelldialog.h header … | |
hello programmers is it possible to extract some part of 2D array and make a new 1D array? for example from this array String[][] twoDarray= { {"s", "y", "r"}, {"s", "n", "r"}, {"w", "y", "r"}, {"r", "y", "p"}}; take first column of twoDarray[0] and make this `arrayString[] newArray = {"s","s","w","r"};` … | |
change password program in c # aspx please?????????? | |
![]() | Hi all, I'm new and I currently am developing a website on fishing fred's fishing. The site is an experiment for a portfolio ect. There is a feature, the guestbook. The Guestbook is managed by a MySQL database and the PHP is responsible for creating and echoing the data. I … ![]() |
Hi everyone, I'm working on a small project and have run into some problems. Briefly described, what I'm attempting to do is: I've a rather large text file with a different sentence and I need to find all the words in each sentence and add them to some sort of … | |
Hi I am trying to convert the outbuff from WinHttpQueryHeaders to string but its not working properly... my code [CODE] if( GetLastError( ) == ERROR_INSUFFICIENT_BUFFER ) { lpOutBuffer = new WCHAR[dwSize/sizeof(WCHAR)]; // Now, use WinHttpQueryHeaders to retrieve the header. bResults = WinHttpQueryHeaders( hRequest, WINHTTP_QUERY_RAW_HEADERS_CRLF, WINHTTP_HEADER_NAME_BY_INDEX, lpOutBuffer, &dwSize, WINHTTP_NO_HEADER_INDEX); } } … | |
can u please tell me how to make a graph or say what is a logic behind designing graph in jsp | |
I'm trying to learn how to sort arrays. I tried to learn select sort, but I couldn't code it right... so I tried the easiest, bubble sorting and kind of got the hang of it! But with a few problems and questions. I'm trying to print an array with random … | |
I created an open file dialog to open an image from my computer and than display the picture in the picture box and it's path in a textbox.. The problem is that it is not getting the whole path in the text box example if teh path is: [COLOR="Green"]C:\Users\Anna Marie\Desktop\Software … | |
hello, can somebody please help me. I need to create a clear button to delete all the data from my form. I don't know how to do this. can some body give an idea how to do this, I am using vb.net 2003. | |
Hey C# people, Sorry for my topic title, I honestly didn't know what else to call it. I'm a Java developer and I'm looking into learning C#. I've read up a bit on it but I'm rather confuzed (as expected)... 1) Firstly, in java you can choose to use an … | |
I want to limit the size of a list control box. Let us take the following code: [code] import wx class Students(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(380, 230)) hbox = wx.BoxSizer(wx.HORIZONTAL) panel = wx.Panel(self, -1) self.list = wx.ListCtrl(panel, -1, style=wx.LC_REPORT) self.list.InsertColumn(0, 'name') self.list.InsertColumn(1, 'age') hbox.Add(self.list, … | |
Hi, I have a combobox which gets data from a dataset called cmbItemType, now i would like to let the user add another item type in the combo boc withot haveing to create another form. can u help me pls? | |
Hi Frendz, i received this error "Fatal error: Call to undefined function curl_init() in ....../xxxx.php But its working fine in other system. | |
I have fields UserID, Status and etc. The status of the user will be either active or inactive. I want to count how many UserID of Active users only. I have a code here but it's not working..It says "Invalid or Unqualified reference". Can you please help me check this … | |
Hey all, I need some help with Editing a Table in a Database using php/ Can someone point me in the right way to do this. Thanks in advance, :) | |
2 Days Ago different datatable update i have a big problem yet ihave to present this project on monday my database which i have to present next week. i have tried to play with the codes but still it has failed to retrive and update data. i need a code … | |
The End.