132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for anoop4real

Hi, I have a combo box with say 10 items and I have space in my screen to show that 10 items in one shot. Currently it is showing only 7 items in one shot and I have to scroll to access item 8,9 & 10. Is there any property …

Software Development
Member Avatar for saikatch
0
277
Member Avatar for harishjoy

Hi i am totally new to C and have a doubt on which one is correct below. LIBRARY PWHDENDT InitInstance DESCRIPTION 'PWS Endt Array Functions' ;DATA and CODEare not supported in windows ;DATA PRELOAD MULTIPLE NONSHARED ;CODE PRELOAD SHARED or LIBRARY PWHDENDT ;InitInstance DESCRIPTION 'PWS Endt Array Functions' ;DATA and …

Software Development c
Member Avatar for harishjoy
0
117
Member Avatar for Mbot

Hey, Im trying to write a chat program which should be able to run multiple clients using threads. But I seem to get this "java.io.StreamCorruptedException: invalid type code: 00" error the whole time. My server code: [CODE] import java.io.*; import java.net.*; public class Server{ ServerSocket serverSocket; Socket connection = null; …

Software Development client-server java
Member Avatar for Qiqa
0
582
Member Avatar for lscamaro

Now, before everyone says anything, I know that goto statements are never needed. Having said that, I was given an assignment to implement them into a sort of some type. I was assigned selection sort and figured that if I wrote the sort without go to's, it would be easier …

Software Development c
Member Avatar for Ancient Dragon
0
141
Member Avatar for yigit.hatipoglu

Hi everybody, I really tried to do my assignment but I am lost . Any helping is very helpful , Thanks Write a program that will generate a set of 50 random integers in the range -20 to + 20. The program should display the following: a) The number of …

Software Development java
Member Avatar for nmaillet
0
206
Member Avatar for sHoM

I am creating a network bridge that connects two ethernet cards on the same machine. One of the cards is connected to the LAN and the other is connected to a network device. It looks something like this, [Click Here](http://i.stack.imgur.com/BcoQI.png) I am sniffing packets on both the interfaces and then …

Software Development algorithm python
0
317
Member Avatar for iamcreasy

Hi, I used to solve ACM problems, but I used old scanf & printf for input and output.But now i want to use C++ style IO. So, i picked a simple problem, and tried to convert its old style IO to new style IO. The problem : [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996"]http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996[/URL] (in summery, …

Software Development c++
Member Avatar for iamcreasy
0
270
Member Avatar for ail swati

When I am trying to create a new directory in my WPF application i am getting the following error. " 'The invocation of the constructor on type 'NetworkApplication.Login' that matches the specified binding constraints threw an exception.' Line number '3' and line position '9'." this is my line of code …

Software Development
Member Avatar for ail swati
0
204
Member Avatar for muhammads

Hi All, I am not very good with Java and have a project in which i have to use this API ( http://code.google.com/p/jtexteditor/ ) to simply initiate/draw a TextEditor and fill it with the array of data i have. Unfortunatelly, there is no wiki/document/example with this API and i have …

Software Development api google-api java
Member Avatar for JamesCherrill
0
257
Member Avatar for asha12@gmail

what are arrays in c++ programming how to do or what is meant by swaping?

Software Development c++
Member Avatar for Agni
0
96
Member Avatar for Niketh

hi all, I am working on C++ coding of fault simulation algorithm of a digital circuit . The first step involves parsing of netlist files. The sample netlist looks like - # Only 2,3 input gates considered ... INPUT(1) INPUT(2) INPUT(3) INPUT(6) INPUT(7) OUTPUT(22) OUTPUT(23) # comment here 10 = …

Software Development c++ linked-list social-media
Member Avatar for hactor
0
573
Member Avatar for mahela

In my project I used a datagrid and Adodc.datasource of datagrid is Adodc.there in Adodc properties I select "use connection string".I used Microsoft jet 4.0 OLE DB provider and select the connection path to the database as "F:\project\super.mdb". Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\project\super.mdb the path sould be valid when runing the program in …

Software Development visual-basic
Member Avatar for AndreRet
0
464
Member Avatar for owenransen

I'm flumoxed, how do people normally handle CBaseClass::operator== and CDerivedClass::operator== What I have done is illustrated below, but is it good valid C++? I compare the base class members first (using base class ==) and then the derived class members (the rest of the implementation of the derived class ==). …

Software Development c++
Member Avatar for rubberman
0
127
Member Avatar for Crima

I am having some trouble figuring out how to Validate data on my robot project so that the robot stays in the range of say 100-150. Also my Go 10 button is only going 1 space even though I have it labled as private void Go10_Click(object sender, EventArgs e) { …

Software Development
Member Avatar for Momerath
0
175
Member Avatar for maniee

PREHIT/0.05 RETRACT/0.05 $$ NO,>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ,SEARCH FOR A SURFACE ASSIGN/V4=0 ASSIGN/V2=.32 ASSIGN/XOLD=0 ASSIGN/V1=0.01 ASSIGN/V3=0.001 SRCH01 =LABEL/ PNT7B1 =FEAT/POINT,CARTESIAN THEO/<2.739,3.395,V2>,<1,0,0> ACTL/<2.7395,3.399,0.2218>,<1,0,0> MEAS/POINT,1 HIT/BASIC,NORMAL,<2.739,3.395,V2>,<1,0,0>,<2.7395,3.399,0.2218>,USE THEO=YES ENDMEAS/ ASSIGN/V4=V4+1 IF/XOLD < PNT7B1.X ASSIGN/XOLD=PNT7B1.X ASSIGN/V5= PNT7B1.Z END_IF/ IF/XOLD < PNT7B1.X + V3 ASSIGN/V2=V2 - V1 GOTO/SRCH01 END_IF/ ASSIGN/V2=V5 + V1 ASSIGN/XOLD=XOLD-.001 IF/V1 == .01 ASSIGN/V1=0.003 ASSIGN/V3=0.00015 …

Software Development c++
Member Avatar for maniee
0
192
Member Avatar for marin.kvasina

I've been tryin to make a keylogger to see how C++ handles keystrokes and sends them. I've found some code online and modified it a bit but, this has limitations and isn't accurate enough (+ missing characters from non english keyboards). #include "stdafx.h" #include <iostream> #include <windows.h> #include <winuser.h> using …

Software Development c++
Member Avatar for BobS0327
0
240
Member Avatar for ncis_sg1

**I am having trouble understanding exactly what I am supposed to do with the following instructions.** a. Create a class named Pay that includes variables of type double that hold rate of pay per hour and withholding rate percent. Gross pay is computed as hours worked times rate of pay …

Software Development java
Member Avatar for ncis_sg1
0
208
Member Avatar for hwoarang69

i am make a 2d game in java. i have 3 class: Main.java, Player.java, Ground.java. problem i am having is how trying to make my player to jump. i want it so it jump fast, slow down at top, and come down fast on ground. so kind of like real …

Software Development java
Member Avatar for ObSys
0
293
Member Avatar for triumphost

I'm trying to flip an image which has its pixels stored in a vector. For some reason, when I try to flip it, the image gets distorted and gray/fuzzy. Any idea why? My code is as follows: void JNIData::FlipBytes(void*& Result, bool TopDown) { unsigned char* Pixels = &BufferPixels[0]; //vector of …

Software Development c++
Member Avatar for mike_2000_17
0
228
Member Avatar for Syrne

Hi there, I'm attemtping to write my own version of the java "headSet" function which steps through a given tree set and returns all elements that are less than the function argument. For example: headSet(30) called for a set such as: [2, 5, 7, 18, 22, 34, 50, 76] should …

Software Development java
Member Avatar for Syrne
0
254
Member Avatar for DelilahDemented

I am trying to change the color of individual cells in a datagridview based on values from the columns. If the CDRGvalue is not blank and the ALOSvalue is greater than the PLOSvalue then I need to change the individual cell back color for the ALOS column (colALOS) and the …

Software Development vb.net
Member Avatar for Reverend Jim
0
324
Member Avatar for dsotelo91

Hi there. I am trying to code a program to add or subtract two polynomials using linked lists. For ex. (+4x^2-2x^1) + (+2x^12-5x^5). So far I have a read function which takes in a string and uses substrings to take the coefficient and exponents and insert it to a node. …

Software Development c c# c++ linked-list
Member Avatar for dsotelo91
0
4K
Member Avatar for testie

Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == …

Software Development c++ linked-list queue
Member Avatar for dx9_programmer
0
762
Member Avatar for dancks

Ok. As the title says I tried many times to simply write a program that rewrites a file to remove null characters. I confirmed with a hex editor that the file in question has tons on null characters, on average about 1 of every 2 characters in null. So my …

Software Development c
Member Avatar for dancks
0
433
Member Avatar for bleedi

Hi, I've been searching all the internet for an answer for my problem, but none of the sites I've stumbled upon haven't given any results. So, I have a JList, held inside JSCrollPane, held inside JPanel inside JFrame. I have a MySQL database, and another block of code retrieves stuff …

Software Development java
Member Avatar for markzenz
0
2K
Member Avatar for jworld2

I don't want to save all of my python files in the default directory, but if I save them elsewhere, python can't find the path to any modules I might be using. How can I change this to work?

Software Development python
Member Avatar for vegaseat
0
5K
Member Avatar for rahul.ch

public class GenericDemo<E extends GenericDemo> { E innerE; public E doStuff(E e, GenericDemo<E> e2) { //insert code here } public E getE() { return innerE; } } The options are: 1. return e 2. return e2.getE() 3. return e2 4. return e.getE() Option (1) and (2) compile fine. Option (3) …

Software Development java
Member Avatar for ~s.o.s~
0
250
Member Avatar for rumanoid

I am making a program for school where the user has to choose a chapter to learn. when the user has choosen one i want to use a text file where all the words are in: for example In the program you choose chapter 5 then the program has to …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
366
Member Avatar for Allahwahid

How we can write a program to get out put given below in c?? 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1

Software Development c
Member Avatar for deceptikon
0
178
Member Avatar for praneeth_gunda

Hi EveryBody,This is the Code I have written for Simplified DES it is delivering the Cipher of 16-bit size actually it should deliver of size 8 Please help me in solving the Problem and even tell me how 2 reduce the Complexity [code] #include<string.h> char ep[8],p10[10],p8[8],ip[8],ip1[8],pr[10],key1[8],key2[8],p4[4]; int s0[4][4]={{1,0,3,2},{3,2,1,0},{0,2,1,3},{3,1,3,2}} ,s1[4][4]={{0,1,2,3},{2,0,1,3},{3,0,1,0},{2,1,0,3}}; void …

Software Development c
Member Avatar for elava
0
502
Member Avatar for alikhandro

hi all,hope anyone can describe for me what is happining in this code,its about NaryTrees and am new with trees. public class NaryTree extends AbstractTree { protected Object key ; protected int degree ; protected NaryTree[ ] subtree ; public NaryTree(int degree){ key = null ; this.degree = degree ; …

Software Development java
Member Avatar for JamesCherrill
0
107
Member Avatar for //Gonz

Good morning I have an event called "OptionChanged" that is triggered when one of many CheckBox's is changed. string cb = ((CheckBox)sender).Name.Remove(((CheckBox)sender).Name.Count() - 1); gets the name of the changed CheckBox, removes the last letter then copies it to a string. Now, i need to find the relevant bool (named …

Software Development seo
Member Avatar for //Gonz
0
250
Member Avatar for //Gonz

Afternoon (UTC +0) all I am having a slight problem with the FileSystemWatcher. The File watcher does exactly what i want it to do (as in throwing an event when needed). However, when this event is thrown the debugger stops with no exceptions. This has never happened to me before …

Software Development
Member Avatar for //Gonz
0
638
Member Avatar for mahela

I made a vb project and there i use a database as "super.mdb".My database is located at mydocuments. So i used the path(c:\mydocuments\super.mdb)in forms of my project to connect the database with my vb project. After making my project as a setup file, I installed it in my system and …

Software Development file-system visual-basic
Member Avatar for AndreRet
0
977
Member Avatar for hanvyj

Hi, I'm not sure if this is the right place for a WPF question... but you might be able to help me! I am using Visual Studio Express 2010 (Which I didn't know had an evaluation time, going to have to change to 2008!) and I'm developing a WPF application. …

Software Development c# visual-studio
Member Avatar for hanvyj
0
235
Member Avatar for RAPTOR88

Hey all. I'm fairly new to programming and I just have a little issue. I have a code that will read in a string of character and outut weather the character are alphabetical or not but i also need to use a counter to count how many time each character …

Software Development c
Member Avatar for Gonbe
0
152
Member Avatar for mahes_

I am supposed to pass up my lab work a few weeks back..but i dont seem to get it rite.Pls help me see what is wrong with my code.....this is the question Write a class PlaneSeat that has the following features. Each PlaneSeat object should hold a seat identification number …

Software Development java
Member Avatar for Taywin
0
926
Member Avatar for elbarto

Hello all, I have been searching for some time to find the most appropriate enviroment to draw lines and simple tri's / quads in three dimensional space. I have recently experiemented with the floatcanvas class in wxpython and I really like it for 2D work, but extending it into the …

Software Development image oop opengl python
Member Avatar for TrustyTony
0
2K
Member Avatar for GeKKeR

Good Afternoon all, I'm working on a project for school, and we have a part where we want a combobox filled with data from a mysql database, tabel = sport. We can work out how to fill a normal combobox just with strings, but we can't find out how to …

Software Development java mysql
Member Avatar for JamesCherrill
0
728
Member Avatar for alikhandro

public void enqueue(Object obj) { if(count == size) throw new ContainerFullException(); else { array[rear] = obj; rear = (rear + 1) % size; count++; } } this is a code that add and object to a circular array.at the start the array is empty,rear=front=0. when we add the first element …

Software Development java
Member Avatar for Taywin
0
107
Member Avatar for TIM_M_91

Ok well I have three LinkButtons that all work that execute when clicked, however what I want to do is instead of the LinkButtons being executed individually for them all to be executed within Button1_click. Therefore how do I do this? Code can be seen below: protected void Button1_Click(object sender, …

Software Development asp.net
Member Avatar for TIM_M_91
0
116
Member Avatar for cucubear

hi i want to write a program having three text box in each text box i wanna right a number and when i click a button i want to show in a message box the the smallest number first followed by the larger number and last the largest using the …

Software Development vb.net
Member Avatar for Nan0_Zor
0
108
Member Avatar for kiranrelent

I am Working on a project in VB.net and created an application for sending bulk sms to mobile phones through internet.I created a code and tried to send sms.But it dosen't work properly.When i tried it for a single sms, it is getting so much delay to receive the message.Is …

Software Development vb.net
Member Avatar for smsmailcom
0
1K
Member Avatar for psy.blast

Hello Daniweb Members, I am a beginner programmer and I have a problem, I am doing a PAT (Practical Assessment Task) for my school and I have come accross a huge problem, I'm trying to get a value from a selected combobox in Netbeans, (I am using the GUI builder), …

Software Development gui java java-netbeans
Member Avatar for JamesCherrill
0
244
Member Avatar for Delusional

Hello, I'm trying to pass a List object from view to controller. The program works by pressing the link "Add new line", this adds a new row to my web page, with a input box and i would like for that input box content, on submission, to be passed to …

Member Avatar for pritaeas
0
197
Member Avatar for ddanbe

Hi all, I know I can make a color lighter programatically, by augmenting some of the RGB values. But is there a standard way to do so or is it just trial and error? And why is a blue component needed to make orange lighter? Perhaps C# .NET has some …

Software Development
Member Avatar for pvladov
0
1K
Member Avatar for Crima

**I am working on a project:** For this project, you’ll create a form that lets the user move a simple robot a given direction and distance. You’ll also create a class that performs the robot movements. The robot is displayed as an arrow that points in the currently selected direction. …

Software Development
Member Avatar for Mike Askew
0
293
Member Avatar for judd

Hello Experts, I wanted to filter a data where when I click on a DataGrid in FormA, FormB with DataGrid will only show the corresponding data. The passing Key is CustomerID. To be more clear: Form Customer with DataGrid1(which display all Customer list in CustTbl) CustID CustName 1 ABC 2 …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
126
Member Avatar for yvrej17

Hello, Cab I ask some help for my project? I'm using datagridview to add, edit and search items in ms access table. I already fixed the search button to work and it displays the selected row when I enter the ID value on textbox. My problem now is how will …

Software Development vb.net
Member Avatar for artup
0
435
Member Avatar for Pyler

Suppose I have a class with a constructor that takes in two strings is it okay to write the constructor this way? public class box{ private String s1; private String s2; public box(**String str1,String str2**){ s1=str1; s2=str2; } } Or can I just say public box(String str1,str2)?

Software Development java
Member Avatar for JamesCherrill
0
134

The End.