199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for onus

I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I have experimented many things but I am unable to catch the …

Member Avatar for N1GHTS
0
201
Member Avatar for ziggystarman

Hello I'm looking to extract jpeg image data from a mjpeg stream, but I'm not sure how to do this in c++ . The code snippet below does the job of connecting to the remote ip camera server & receives the mjpeg stream via tempBuffer variable. [CODE] // Loop and …

Member Avatar for ziggystarman
0
2K
Member Avatar for suncica2222

can I use fopen,and fwrite with ShellExecute? to take file in buffer,drop it in directory and run it with ShellExecute I did this way but I just get cmd window and file is corupted do I have to use some API to take file in buffer?

Member Avatar for suncica2222
0
166
Member Avatar for diyes05

How can i make a program that will accept a series of inputs named as inserts and arrange them in the form of binary search trees. Do you have any source codes what I can use as reference? Your help is very much appreciated! Thanks for the reply

Member Avatar for brandonrunyon
0
151
Member Avatar for darkdai

hey everyone, i was interested in trying to develop a very simple chat application for mobile phones. can you please tell me what do i need to know before i start?

Member Avatar for nbaztec
0
152
Member Avatar for cmccully

Hi all, I have a page that modifies (using AJAX) a list of animal characteristics stored in a database. The page uses a PHP file to control the actual access to the database. Everything works except when a duplicate entry is entered. The PHP file prevents the duplicate entry from …

Member Avatar for cmccully
0
401
Member Avatar for kekekerush

Hi everyone, I'm just wondering in Java, if there was a way to just check once for a number in an array? [CODE]for (int i = 0; i < array.length; i++) { if (array[i]>0){ count++; } } [/CODE] This code will check for all positive numbers. Is there a way …

Member Avatar for stultuske
0
83
Member Avatar for reemhatim

I've taken a course in c# and started practicing by getting questions from books or sites to be good at programming but I think I'm not getting to the right track and I want to be professional in c# language so what is your advice to me ?? thank you …

Member Avatar for reemhatim
0
107
Member Avatar for NewOrder

2 things that i dont understand: [CODE]class BTree{ private Node head; public void add(int info){ Node node=new Node(info); if(head==null){ head=node; return; } Node current=head; while (true) { // what does this mean? where is the true value derived from? if(info<current.info){// to what number does the current.info refers to? if (current.left==null) …

Member Avatar for NewOrder
0
119
Member Avatar for jcfans

i wan create a datatable complex like tis 1!any1 can teach me how to do it? The datatable consist 5 datacolumn(col1,col2,col3,col4 and col5) the data of row of col1,col3 and col5 is fix("A","Book","100") and tis same data will insert into 30 row (when the ds.Tables(0) got 30 row) the data …

Member Avatar for scias23
0
96
Member Avatar for keyboardcliff

Hi: I'm new to this forum. First, a little about me. I'm an advanced beginner/hobbyist (oxymoron?) who has managed to learn VB by downloading, studying books and writing programs in the Express editions of VB2005 and, more recently, VB2008. Moreover I have learned to use MS SQLSever express editions as …

Member Avatar for keyboardcliff
0
85
Member Avatar for sss33

How to make a program in python to do this? 20% of the score comes from the average of 8 Quizzes (each has maximum of 10 points) 20% of the score comes from the average of 2 exams (each has maximum of 100 points) 40% of the score comes from …

Member Avatar for vegaseat
0
136
Member Avatar for AienTech

hi, i want to connect to a site and use data in it, like a program that connects to [url]www.imdb.com[/url], search for a movie and returns information, i want to do that with [url]www.cheatserver.com[/url], or [url]www.cheathappens.com[/url] i want to write a game name in a textbox, and when i press …

Member Avatar for silwar
0
216
Member Avatar for javanewb101

So I'm making a smiley face. It' compiles just fine, and at the run time it says "process completed" but the applet doesn't pop up. I have absolutely no idea what's going on!! Here is the error message: java.lang.NoSuchMethodError: main Exception in thread "main" Process completed. Here is the beginning …

Member Avatar for javanewb101
0
237
Member Avatar for Retsel_ter

guys i am having some trouble here, please help me. I need it badly. What happens is when i ckick on the log in button, the button must first verify the date, then the password and username, if the date doesnt exist on the user's database, he should be logged …

Member Avatar for fourty
0
147
Member Avatar for burcin erek

[CODE]#include <iostream> #include <conio.h> using namespace std; main() { int a,b; b=50; cout<<"enter a value less than 50: "; cin>>a; do { cout<<"A number: "<<a<<endl; a++; Sleep(100); } while (a<=b); getch(); return 0; } [/CODE]

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for Ultralisk

Is there a way to sort an empty list of strings as you add more values to the list? I cannot find a decent example of this anywhere and struggling with this. The insertion sort seemed like the logical plan, but I cannot for the life of me find anything …

Member Avatar for vegaseat
0
2K
Member Avatar for loveu
Member Avatar for JamesCherrill
0
91
Member Avatar for cretaros

if (source == loginbtn ) { JFrame frame = new JFrame ("AdministratorLogin"); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.getContentPane().add (new AdministratorLogin()); frame.pack(); frame.setLocationRelativeTo(null); frame.toFront(); frame.setVisible (true); frame.setResizable(false); //the commented dispose code will give me an error of cannot find symbol // dispose(); }

Member Avatar for JamesCherrill
0
107
Member Avatar for lewashby

[CODE]import wx # create window app = wx.App() win = wx.Frame(None, title = "Simple Editor", size = (410, 335)) win.Show() # create buttons loadButton = wx.Button(win, label = 'Open', pos = (225, 5), size = (80, 25)) saveButton = wx.Button(win, label = 'Save', pos = (315, 5), size = (80, …

Member Avatar for vegaseat
0
113
Member Avatar for Steve_Jones

I want to create a left mouse click. All i can find anywhere is having to do if the user clicks, i want to create a left mouse click automatically.

Member Avatar for Steve_Jones
0
309
Member Avatar for saransh60

I did'nt understand here in this code i was reading a book and then const char *q="Hello"; //string is fixed pointer is not *q='M'// error q="bye"; //works char * const t="Hello"; //string is fixed pointer is not *t='M'// works t="bye"; //error so my question is in first if string is …

Member Avatar for nbaztec
0
100
Member Avatar for gheorghe gardu

Hi, I have a problem with a java application which should use ArrayLists, and I would like to ask if you can help me. I have created a Person class, and 2 subclasses, Student and Employee. Data attributes common are Name, SSN (social security number), and Age. A student has …

Member Avatar for JamesCherrill
0
104
Member Avatar for benhowdle89

Hi i've been set this assignment to design a Craps game for Java, i know this has been done lots before but i seem to be going round and round with this code....very frustrating! This is the code i've written so far: [CODE] public class CrapsGame { public static void …

Member Avatar for benhowdle89
0
149
Member Avatar for lukename

Hello guys. How can i get my file path? I konw my program's name but i don't know where it will be put. How can i get file path during program's execution? Thank you

Member Avatar for William Hemsworth
0
165
Member Avatar for kchyn

Hey guys, I have a question. I'm writing a script in c++ and want to have the script copy a file whose name was previously determined by the script to a output file who's name is determined through functions and procedures within the script. The whole script is looped until …

Member Avatar for nbaztec
0
196
Member Avatar for charqus

Hello guys. Let's say i have a unidimensional array: string[] names = {"John","Merlin","XMan","Kelvin",...,"Flash"}; How can i see how much elements i have ? I tryed with sizeof(names) but it doesn't works ... Next Question: I have a RichTextBox, and i select a text ... i change it's color, but when …

Member Avatar for charqus
0
143
Member Avatar for Luckychap
Member Avatar for burcin erek
0
1K
Member Avatar for sgw

Something that puzzles me in the following simple program: [CODE] #include <iostream> using namespace std; int main() { int row; cout << "enter row: "; cin >> row; int K[row], m[row][5]; cout << "Enter all the " << row << " K values:\n"; for (int i=0;i<row;i++) cin >> K[i]; cin.ignore(10,'\n'); …

Member Avatar for burcin erek
0
179
Member Avatar for pruthvikumar

Hello sir/madam, I am facing some difficulty in designing a project related to database. Project is related to designing of a website of daily deals of products and maintaining a database of all the products. I am using php . mysql and xhtml for design and my query is how …

Member Avatar for pruthvikumar
0
122
Member Avatar for swathys

hi, I have problem with my application. when i run the application it gives an error [COLOR="Red"]"there is no source code available for the current location"[/COLOR]. Even i try to debug using f8 and msgbox in all forms, It doesn go thru it.I dont know what goes wrong with my …

Member Avatar for swathys
0
70
Member Avatar for marketingmaniac

K,, ive tried and tried now for 3 weeks,, googled everything i can think of,, im going to you guys now for help,, what im trying to do is programaticly click the unfollow button in a twitter profile i use to be able to do this easily but not it …

Member Avatar for marketingmaniac
0
281
Member Avatar for jcfans

i got a data like tis 1([COLOR="red"]0-AGF-MYR-100101[/COLOR]), i wan split to 4 part([COLOR="Red"]0 , AGF, MYR ,100101[/COLOR]) and after tis i nid to add 4 new columns to a datatable to display the value! how nid i do??? [CODE] Dim writer As StreamWriter = File.CreateText("D:\ IMS.csv") For i As Integer …

Member Avatar for marketingmaniac
0
2K
Member Avatar for mangesh5588

Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click frmUpdate.Show() ' What this does is when the User selects a record in the DataGridView ' it will populate the textbox on the other form with the corresponding ' Cell Value. frmUpdate.txtFirst.Text = dgv1.CurrentRow.Cells(0).Value.ToString frmUpdate.txtLast.Text = dgv1.CurrentRow.Cells(1).Value.ToString frmUpdate.txtAddress.Text …

Member Avatar for GeekByChoiCe
0
600
Member Avatar for ayooshkasmth

I've been on this for so long and cant seem to get it working. I am trying to display teh value of a dropdown in a text box and i've tried so many things but it just wont work: [CODE] <?php $query3 = "SELECT contaminant, gac_value FROM gac_ea WHERE land_use …

Member Avatar for ayooshkasmth
0
110
Member Avatar for mmmm1118

How can i make a data base using C give an example and also give list of software required

Member Avatar for N1GHTS
0
191
Member Avatar for mmiikkee12

Any idea how to implement a FIFO queue of chars in C? It doesn't need to be too fancy, just a fixed size (say 256 chars) and can't use any library functions (this is for a hobby OS kernel I'm writing, and there's not a lot of functions available for …

Member Avatar for kiranxxx
0
2K
Member Avatar for Ray007

Any idea for this an example question..? Consider the following Student class specification: public Student() //CONSTRUCTOR Initialized the attributes public String name () This Student’s name public String address() This Student’s address public String matric () This Student’s matric number public int creditHours () Number of credit hours this Student …

Member Avatar for Ray007
0
110
Member Avatar for Bri426

I'm writing a program that asks the user how many numbers they would like to input, then proceeds to ask the user to enter the said amount of numbers. At the end, the program computes the sum, average, largest number and smallest number. I've got the entire program figured out, …

Member Avatar for gju
0
1K
Member Avatar for lse123

I want to check if in a email textbox form field, [B]email has correct syntax, but for Mobile Browsers[/B], in desktop I used below, this will work foe Mobile Devices too? or better check this on server side(PHP)...(check second snippet)? [CODE]function checkFormtemplate() // javascript used success desktop browsers { if …

Member Avatar for Taywin
0
156
Member Avatar for amitkamra

I want to list all log files from log directory of previuos month. suppose currnt month is december, i want to list all log siles of november. if its april, it should list all files of march. Please suggets.

Member Avatar for retheesh1
0
182
Member Avatar for Jake2025

Can somebody help me, i want to save the output of this program in a .csv file but i don't know how. please i need help. import java.io.*; public class TestEmployee { public static void main(String args[]) throws IOException { Employee staff[] = new Employee[args.length]; // populating the array of …

Member Avatar for Jake2025
0
119
Member Avatar for sophisticated19

Hi I 'm trying to develop a database whereby all information input via vb 2008 will be saved into a microsoft access database. I've tried to populate a few information. The data was saved at that point, but when i reopen my system the next day, all the rows are …

Member Avatar for marketingmaniac
0
175
Member Avatar for qazplm114477

It might seem appropriate to post this in the MySql section but I guess this is also a PHP question. Which is the more efficient way for adding new fields? I haven't written the code yet because I want to get the database structure right before coding. Here's my logic. …

Member Avatar for qazplm114477
0
121
Member Avatar for ccube921

Line 34 and 35 won't execute unless I insert them into the for loop. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; ) { cin>> intege; cin.ignore(); cout<<"Please enter it again."; cin>> integ; …

Member Avatar for ccube921
0
290
Member Avatar for arctushar

Is there any way to convert microsoft access database to mysql data. Please help me

Member Avatar for appnub
0
255
Member Avatar for ccube921

When I press enter after the execution of the code, it doesn't terminate and tell me the process time etc. it just skips a line. [CODE]#include <iostream> using namespace std; int main() { cout<<"Please enter an integer.\n"; int intege; int integ; for ( int inte = 1; inte = 1; …

Member Avatar for ccube921
0
209
Member Avatar for AntonyLini

Hello All, I am here with the same Query but with a different look I want to apply the culture change to my program. I created a class library for culture change. and applied it . It is only working with the form name, i did it with two different …

Member Avatar for AntonyLini
0
381
Member Avatar for blaxarbush911

I have created a program that is based off the guess the number. But what ive added is a menu with four options 1 - 1 player 2 - 2 player 3 - high scores 4 - end game. Now I have the two combined at which im sure it …

Member Avatar for blaxarbush911
0
135
Member Avatar for d87c

Just a little homework I have to do. Using OOP approach. Retrieve a data pass it to array then sort it(bubble sort) and then display in the right order like the follow. But im stuck on the bubble sorting part. Can anyone help? following code is right below Thanks so …

Member Avatar for mshauny
0
110

The End.