43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for TaoNinja

Hi Guys, Im completely new to this website and quite new to programming, Currently im doing Programming at college, Due to some unforeseen circumstances i had to miss a few weeks at college, Could someone please help me with a problem? I have been trying to figure it out on …

Software Development c++
Member Avatar for frogboy77
0
448
Member Avatar for m1234ike

Hello Daniweb, I am writing a program to execute the command prompt command "getmac /v >> MACLIST.txt" using a Visual Basic form, including: 2 buttons(getmac and filter the text file) , 2 textboxes (alternate text file name and user name), and two radiobuttons (default text file name or custom name). …

Software Development regex vb.net visual-basic
Member Avatar for m1234ike
0
412
Member Avatar for nchy13

i dont know whats wrong with this program...the compiler compiles the program but when i run it it shows: j[B]ohnrambo@ubuntu:~/Desktop$ java lora Exception in thread "main" java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:443) at lunda.l2read(lora.java:24) at lora.main(lora.java:124)[/B] [CODE] class lunda{ String[] la=new String[2048]; String[] lb=new String[2048]; int[] lvalid_a=new int[2048]; int[] lvalid_b=new int[2048]; int[] …

Software Development java ubuntu
Member Avatar for leodash
0
155
Member Avatar for nchy13

can anybody help me what is wrong in syntax of following [CODE]ihex=Integer.parseInt(s5,16); String bin=Integer.toBinaryString(ihex); System.out.println(bin); if(bin.length()-10 > 0) String orgpc=bin.substring(bin.length()-10); else String orgpc=new String(bin);[/CODE] this is what compiler shows [B]nchy@ubuntu:~/Desktop$ javac bpbc.java bpbc.java:61: error: Syntax error on token "orgpc", delete this token String orgpc=bin.substring(bin.length()-10); ^^^^^ bpbc.java:63: error: Syntax error, insert …

Software Development java ubuntu
Member Avatar for nchy13
0
217
Member Avatar for AdampskiB

Hello there, Currently doing some work for my coursework. I've noticed the "\n" is obviously the new line function or whatever you guys call it, but would you understand what I mean when I say it creates too much of a new line? For example, I want the newline to …

Software Development python
Member Avatar for AdampskiB
0
120
Member Avatar for gahhon

[CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class ClientProgram implements ActionListener{ //static FilmCollection collection = new FilmCollection(); static boolean condition = true; static int memberPassword = 123; static JButton button1, button2, button3; public static void main(String[] args){ int mPassword; JFrame myFrame = new JFrame("Member Login"); //window's title myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//perform exit when …

Software Development java java-swing
Member Avatar for thines01
0
276
Member Avatar for Danielhuo

I am writing a Java program, a MP3 Manager, but I have problems to work with buttons, TextFields, and TextArea. Here are the problem descriptions. Create a class MP3 with instance variables for: artist, song, album, track length (in seconds). Provide a constructor, get/set methods, and a toString. method. The …

Software Development gui java java-swing
Member Avatar for Danielhuo
0
1K
Member Avatar for james6754

[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { oneclass.hello(); return 0; } class one { private: int num; public: void hello(); }oneclass; void one::hello() { num++; cout << num; } [/CODE] Could anybody please please tell me what is wrong with this code. I think …

Software Development c++ visual-studio
Member Avatar for ravenous
0
109
Member Avatar for bilal_fazlani

I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it …

Software Development display multithreading vb.net
Member Avatar for TechSupportGeek
0
367
Member Avatar for th3b3n

I know this is an OLD thread, but i"m having the same problem. a Runtime error when trying to "OPEN" a file. [CODE]public void actionPerformed( ActionEvent evt) { //filterMap.put(evt.getActionCommand(), ((JCheckBox)evt.getSource()).isSelected()); if(evt.getActionCommand().equals("export")){ String file2Read; file2Read = fileIN.getText(); //file2Read = "NotConverted2.xls"; new BPSepcExporter().BPSReader(file2Read); } //If to check if Open button was hit …

Software Development file-system gui java
Member Avatar for th3b3n
0
292
Member Avatar for Vasthor

what I mean by undefined error is because I don't know what the error is about. :P, actually it's because the error not from the code itself, but it's about a compiler that can't defined some sort of file... btw, as title said, the error is from the code in …

Software Development algorithm c++ ios
Member Avatar for gusano79
0
238
Member Avatar for DasJott

As you may have noticed, you can't use this property for any element you created yourself. Here's a workaround: [CODE]string sId = "Id of the element you want to change the property of"; string sInnerHtml = "The new InnerHtml string you want to set"; string sScript = @" var oElem …

Software Development html-css
Member Avatar for thines01
0
96
Member Avatar for deep1

i have a project ,and i don't know how to run it in netbean ide - i am a begineer in java2e - i got a project in which some notepad like screen is there when running -jar exe file - and a option is there for compile and running …

Software Development ide java
Member Avatar for stultuske
0
99
Member Avatar for java.util

Can anyone see what's wrong with this piece of code? When I try to compile I get an error on the first line (line 3) "cannot find symbol, symbol : method split(char)" I have the delimiter btw as a public static final char in the same class. [CODE]private static boolean …

Software Development java
Member Avatar for java.util
0
2K
Member Avatar for pro_learner

Guys i wanted to connect Java Application with MySql database.I have written a Java Programme.I have already created the database also.But it doesn't connect with the Database.This is my code.[CODE]import java.sql.*; public class check { public static void main (String[] args) { Connection conn = null; try { String userName …

Software Development java mysql
Member Avatar for harinath_2007
0
167
Member Avatar for stereomatching

I want to parse XML and change the contents of the XML Which one should I choose? boost::spirit or boost::serialization Thanks a lot

Software Development c++
Member Avatar for stereomatching
0
348
Member Avatar for bombay1982

My question is about looping skill overall. I am having problems with loops. Is there any book/tutorial/website about this particular skill in java programming to help me learn how to loop in correct/effective way ? I know how to write simple loops, I know structures of loops too. When I …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for netwebguru99

I have used the Process.start function to open an Excel file as shown in the code Process.Start("report.xlsx") and it works perfectly well. My question is can this function be used to open a particular worksheet called Report1 in the report.xlsx file. If so what would the code be. I have …

Software Development vb.net
Member Avatar for netwebguru99
0
259
Member Avatar for geekman89

Hello I want to make a GUI, and for it I need to use absolute positioning, since I want each element to have a precise position within my frame. I am making each element that makes up the frame by extending JPanels, so I'm building each block within the window …

Software Development gui java
Member Avatar for geekman89
0
276
Member Avatar for nchy13

i have two array of chars of size 12 each having only 0's or 1's. what i am trying to do is that in for loop [CODE]for(i=0;i<12;i++) { int a=1starray[i]; int b=2ndarray[i]; int c=a^b }[/CODE] but every time c gets 0 only. iam not getting it why. can anybody help …

Software Development java
Member Avatar for nchy13
0
2K
Member Avatar for Stazloz

Having issues creating table using chain hashing (linked nodes). The program compiles, but is crashing during execution. I admit I don't really know what I'm doing since I havent really used inked lists in forever. A lot of this code I do not expect to work right away, such as …

Software Development c++ linked-list
Member Avatar for Stazloz
0
805
Member Avatar for kothaisaravan

Hi, Am using Visual studio 2005 with MS Access. I have a Datagridview with a date column in format 11/23/2011(Month/Date/Year). Now i want to know how 'search criteria based on particular month and date'. For Example if select 'Nov' as a month from combobox and click on search button, only …

Software Development vb.net visual-studio
Member Avatar for kothaisaravan
0
137
Member Avatar for arindam31

Hi Guys, I am trying to make a text box that will accept a password from user.The password should be masked while typing. [CODE]def MyFunc2(self,event): box2=wx.TextEntryDialog(None,"Enter Password","PASSWORD","Waiting",style=wx.TE_PASSWORD) if box2.ShowModal()==wx.ID_OK: global pwd1 pwd1=box2.GetValue()[/CODE] The code is a piece of a program . The above code when run , shows the text …

Software Development gui python
Member Avatar for arindam31
0
235
Member Avatar for pankaj.garg

Hi, I am developing a VB net application with lots of TextBox. I need to call a module everytime any of the textbox gets focus. I dont want to write code in every textbox gotfocus event, but a generic code which will call the module everytime any textbox gets focus. …

Software Development vb.net
Member Avatar for pankaj.garg
0
383
Member Avatar for shravani1

[CODE]Module Module1 Sub Main() System.Console.Writeline{"this is my program"} System.Console.ReadLine{} End Sub End Module[/CODE] this is my code am getting an error saying that Error 1 Expression expected. Error 2 Method arguments must be enclosed in parentheses. Error 3 Expression expected. Error 4 Method arguments must be enclosed in parentheses.

Software Development vb.net
Member Avatar for shravani1
0
266
Member Avatar for BDan

I have my two JTextFields identified in a GridLayout, but when I try to reformat them the stay as large as their positioning allows. I have tried to specify the size of the field but it never changes on the final product. Could this be because the GridLayout or something …

Software Development java java-swing
Member Avatar for BDan
0
172
Member Avatar for Jesi523

I have this method that gets me groups from AD: [CODE]public ArrayList GetUserGroups(string sUserName) { ArrayList myItems = new ArrayList(); UserPrincipal oUserPrincipal = GetUser(sUserName); PrincipalSearchResult<Principal> oPrincipalSearchResult = oUserPrincipal.GetGroups(); foreach (Principal oResult in oPrincipalSearchResult) { myItems.Add(oResult.Name); } return myItems; }[/CODE] But when I go to use it: [CODE]protected void AuthenticateAndLoadUserProfile() { …

Software Development
Member Avatar for Jesi523
0
618
Member Avatar for dejanc

Hello, I would like to get message, or true result when DataSet get new record (new row). But, I always get message as "no". Button1 is add new record [CODE]Me.Table1BindingSource.AddNew() [/CODE] Button2 is save a record [CODE] Me.Validate() Me.Table1BindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.TestDataSet) [/CODE] Button3 should return "Yes" as new record has been …

Software Development dataset vb.net visual-studio
Member Avatar for dejanc
0
2K
Member Avatar for applejax77

Here I am again! I am working on the program below that is calculating payroll but am kind of lost on how to program the reset button after the net pay has been calculated. Any and all help would be greatly appreciated. Thanks. [CODE]import java.io.*; import java.util.*; import javax.swing.*; import …

Software Development file-stream gui java java-swing
Member Avatar for applejax77
0
9K
Member Avatar for carlucho

Hi, This is the first time ever I post something about any programming language. Im just starting this semester with C language, so Im really new on this. This C code is a project we have for the class. We have to supply definitions for different functions. I have gone …

Software Development c
Member Avatar for thines01
0
312
Member Avatar for skran

I would like to give me your help please.. I have connected my sql db with vb and I m trying to make a UI. My question is that when I write code in order to create datatables and I fill them with the results of queries I've created, where …

Software Development dataset vb.net
Member Avatar for thines01
0
158
Member Avatar for cool_zephyr

Hello everyone..I'm trying to access the methods of a WCF service from a pocket pc emulator..I added a Web Reference to the service and tried to access the method like this [code] WebReferenceService1.Service1 client = new WebReferenceService1.Service1(); MessageBox.Show(client.GetData(10,true)); [/code] ..but everytime i call the method..i get System.Net.WebException error saying "Unable …

Software Development client-server web-browser
Member Avatar for cool_zephyr
0
166
Member Avatar for asif49

.contains seems to return true for most things, even if one or two chars match. Is there a way to make it more restrictive?

Software Development java
Member Avatar for asif49
0
417
Member Avatar for HITMANOF44th

im new to java so if im doing some thing the wrong way please let me know this is the class that connects to data base and grabs all the info from colum 1 and colum 2 that part works now when i try to either make it a useable …

Software Development java mysql
Member Avatar for HITMANOF44th
0
174
Member Avatar for PapaGeek

I’m trying to initialize a combo box with the content of an INI file. Each line of the file contains a name for a website and the path to that site, tab delimited. I’m trying to read the file into a list so I can sort it etc. Visual studio …

Software Development c++ visual-studio
Member Avatar for PapaGeek
0
192
Member Avatar for Muhammad Anas

Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have …

Software Development c++
Member Avatar for Muhammad Anas
0
3K
Member Avatar for SeniorAlexandro

Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants.

Software Development visual-basic
Member Avatar for SeniorAlexandro
0
997
Member Avatar for walid86

i have two textbox's... these textbox's can have formatting applied etc, but they lose focus when a button is pressed, and the wrong textbox has formatting applied.. is there a way to track the last textbox to have control?. some kind of for each control f type textbox, if mouse.click, …

Software Development
Member Avatar for walid86
0
148
Member Avatar for bettybarnes

hi guys just ask what is the code for allowing null values to appear on the textbox [CODE] Dim i As Integer dg1.DataSource = bs i = dg1.CurrentRow.Index Patient_Profile.Txtpatient_id.Text = dg1.Item(0, i).Value [/CODE]

Software Development vb.net
Member Avatar for kothaisaravan
0
117
Member Avatar for nchy13

i am quite new to java i used to code in c++ but now we have to program in java which has not been taught. i browsed net but casn't get enough information this is my first code which i managed to get from net [B]i am using GNU java …

Software Development java ubuntu
Member Avatar for nchy13
0
407
Member Avatar for stereomatching

OS : win7 64bits compiler : visual C++ 2005 boost version : boost_1_44_0 [code] #include <gtest/gtest.h> #include <tchar.h> #include <boost/signal.hpp> #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/mem_fn.hpp> class Slot : public boost::signals::trackable { public: void Update(int) { ::printf("Signaled!!\n"); } }; int _tmain(int argc, _TCHAR* argv[]) { boost::signal<void (int)> s; Slot *slot …

Software Development c++
0
66
Member Avatar for bhagawatshinde

Anybody have any idea about how to change the font of the string. Suppose [CODE] Dim strFind as string="Answer" [/CODE] I want to change the font of the string as "Verdana" Purpose behind that, I have an richtextbox1 contains the questions and richtextbox2 contain the answer so while concating i …

Software Development vb.net
Member Avatar for bhagawatshinde
0
1K
Member Avatar for markthien

Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark

Software Development c c# c++
Member Avatar for toyumail
1
4K
Member Avatar for jtodd

Hey guys. I have written a program to create, edit and delete record in MS Access using a visual studio program. I am keeping the program and database divided into a front end and a back end to allow concurrent users. I am going to place the back end on …

Software Development vb.net visual-studio
Member Avatar for kingsonprisonic
0
162
Member Avatar for maggoteer

Hey guys, I've got a theoretical question. I've tried to work out how some of the code would work in my head, and I always stump myself. Maybe it's my lack of knowledge - who knows! I am trying to create an online forum inside of my application. Yes, I …

Software Development php vb.net
Member Avatar for kingsonprisonic
0
215
Member Avatar for Vasthor

these one code, from line [63-71] of the original code [CODE] // for adding more students cout << endl << "Want to add more student?(yes/no): "; string add_student; cin >> add_student; if(add_student == "yes") { student_counter = 0; } [/CODE] the program seems "doesn't detect" the cin code above, it …

Software Development c++ ios
Member Avatar for Vasthor
0
252
Member Avatar for violette

I have five sheets named 'Yearly,Q1,Q2,Q3,Q4'. currently my code only update one worksheet at one time into the mySql database. i want it to get all worksheets to be done at one go. i've tried to implement 'For loop' but it just run on the active worksheet only. is there …

Software Development visual-basic
Member Avatar for violette
0
410
Member Avatar for dennysimon

Hello all Does Caret Event only for one component only ? I tried to find example for more than one TextField which added with CaretListener,but cannot find one. Anybody know website or has example like I need ? I need to know how to detect which component arise the CaretEvent …

Software Development java
Member Avatar for dennysimon
0
134
Member Avatar for Muna Oman

Hello folk i am a new member n i need Ur help to do my course project for developing Sudoku game i already have my codes but i need a code for generating random numbers in the grid this is basically my code [code]import javax.swing.*; import java.awt.*; import java.util.*; /* …

Software Development java java-swing
Member Avatar for NormR1
0
658
Member Avatar for skylinepkr

I have an assignment to make a paint program using java but i am kind of stuck at a roadblock. I have a pencil tool and i used the mouseDragged, mousePressed, and mouseReleased methods of mouse(motion)listener to draw my path using general paths (lineTo and moveTo). My question is, is …

Software Development java
Member Avatar for Ezzaral
0
118

The End.