43,549 Solved Topics
Remove Filter ![]() | |
I am not really sure where my syntax error is. I have gone over it several times and it appears everything is right and I dont think I am using any reserved words. Any help would be greatly appreciated. Every box is TEXT in access for now even fields that … | |
Dear friends...I want to design an application that can open file of certain extensions For ex.There is a software called ARJ32 which can open file with extensions .a00 ,.a01...................,.a19. also there is application called apk emulator which can open .apk files So eve i want to design an application that … Software Development vb.net | |
I was trying the following TSR which is supposed to capture interrupt no.8 and change screen color every 10 seconds. But either the linker shows a "not enough memory" error, or, nothing appears to happen. Also the program does not seem to be entering the function our(). Please help... [CODE]#include … Software Development c | |
[CODE]print "creating a text file" text_file = open("write_it.txt", "a") score = 5 name = raw_input("What's your name?: ") score = (score, name) text_file.write(score) text_file.close()[/CODE] getting TypeError: expected a character buffer object Please help. Thanks Software Development python | |
why this code is not working?, error: non-static variable jTextField1 cannot be referenced from a static context [CODE]try{ Connection con = DriverManager.getConnection("jdbc:mysql://localhost/sample", "", ""); Statement stmt = con.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM testtable"); while (rs.next()){ String n = rs.getString("name"); jTextField1.setText(n); } stmt.close(); con.close(); }catch(Exception e){ [/CODE] Software Development java | |
I've done some research and it appears that Windows 7 is about tied with Windows XP users as far as current popularity (Vista seems to be a flop). My MSDN subscription includes access to multiple builds of various operating systems for "free" for development purposes. If my project is developed, … Software Development operating-system windows-vista | |
![]() | Hi there! I am busy creating a desktop application with Windows.Forms to display Twitter XML data inside a textbox on a form. The XML structure looks like this: [CODE] <statusses> <status> <text>...</text> <user> <name>...</name> </user> </status> <status> <text>...</text> <user> <name>...</name> </user> </status> </statusses> [/CODE] The problem is that with my … Software Development data-structure xml |
I want to find the average score of a LinkedList. My code is [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bowlinggame; import java.util.LinkedList; import java.util.TreeSet; public class BowlingGame { public static void main(String[] args) { TreeSet <String>PlayerNames … Software Development java mathematics | |
Hi all, im trying to separate words in a string using whitespace " ". but it gives ArgumentOutOfRangeExeception : Index and length must refer to a location within the string. Parameter name: length it points to this line : if (textBox3.Text.Substring(i,c)==" ") [CODE] if (textBox3.Text != null) { ArrayList arrayKeyword … Software Development | |
I was watching a tutorial that says that we first need to check if any direction key was pressed, and only then we check which key was pressed, like this: [CODE]while( running == true ) { while( SDL_PollEvent(&event) ) { if ( event.type == SDL_KEYDOWN ) //checking if any key … Software Development c++ | |
Hello, I'm currently trying to figure out how I can get the information in ASE file and put it in my own arrays. Heres an example of ASCII scene export: [CODE]*3DSMAX_ASCIIEXPORT 200 *COMMENT "AsciiExport Version 2,00 - Fri Aug 26 13:58:27 2011" *SCENE { *SCENE_FILENAME "" *SCENE_FIRSTFRAME 0 *SCENE_LASTFRAME 100 … | |
hi. i have a main form and log-in form. when i try to log-in and entered a wrong user or password it gives me error and i dont understand why the error is in the main form??? heres my code in my login form.. [CODE] private void Lgbtn_Click(object sender, EventArgs … Software Development microsoft-access open-source visual-studio | |
[ICODE] I would like to ask assistance how I can retrieve all the scores every game. And how to add the points by not incrementing game 1 and game 2 and so on.. THank you... [/ICODE] [CODE] /* * To change this template, choose Tools | Templates * and open … Software Development java | |
I am in situation like I have a class which have two different subclasses. [CODE]public class SuperClass{ String st; public String getSt(){ return st; } } class A extends SuperClass{ } class B extends SuperClass{ } [/CODE] Now I have another method that want to access the getSt inherited method … | |
hi guys just want to ask a simple question about listview im making a POS program.. when i click Enter button the items on textbox and comboboxes should be placed inside my listview here is my screenshot [URL="http://i43.photobucket.com/albums/e355/bettybarnes/pos.jpg"]http://i43.photobucket.com/albums/e355/bettybarnes/pos.jpg[/URL] my problem is i dont know how to put the correct codes … | |
In version 3.0 of my address book I'm utilizing tkinter. The only problem thus far I'm having is that I have a very ugly display on a child window that shows the search result for a query. I'm getting {['Email: [email]Shoiukamp0@gmail.com[/email], Phone: (111)555-2222, Address: 122 C---- Ct., Essex, VT']} The … | |
Dear experts, Please kindly advise me in how i should write the column operation: The following is the full codes: [CODE]import java.util.*; public class Matrix { public static void main(String[] args) { // declare the necessary variables int N, M; String operator; int index; int sum; int [][]matrix = new … Software Development java | |
Hi Guys, I want to set background image for the MDI form at the runtime (form load) i tried this, [CODE] this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\Images\\OTS_mockup_slice.jpeg"); [/CODE] but its not working.... any idea Thanks in advance. | |
Im trying to scp including password in one line... seems not working. [code] echo "pass" | scp --stdin source destination [/code] However this does work though [code]echo "newpass" | passwd --stdin user [/code] same concept, diff result. Any suggestion would be great. Thanks Software Development shell-scripting | |
I have a very stupid question. I use a JToggleButton. now I want to know if the setSelected is true or false. thus an if function, but how to write one because I get errors. thank for your support [CODE]if(Btn2.setSelected() = true){ }[/CODE] Software Development java | |
Hi I am using the following to get the system sound question but it doesn't populate ? [CODE] Public Class SystemSoundItem Dim sound As SystemSound, soundName As String End Class Public Property SoundToPlay As SystemSound Set(ByVal value As SystemSound) End Set Get SoundToPlay = SystemSounds.Question End Get End Property[/CODE] Software Development vb.net | |
Hi friends, I wrote a simple code to write in different files but I don't know where I made mistake. The function is writing the first file and after writing everything in the second file, not in the next files 3,4, 5. Can anyone help me please? Thanks a lot! … Software Development c++ | |
Hi All, First time asking so go easy :-) I am doing c++ a few weeks now, i am doing questions in Project Euler to hopefully improve my coding, But as you will prob see below i am still very new and "Nieve"... Question is: The prime factors of 13195 … | |
Ok i have made a picture ;) That will explain it a lil better. I just need to add that certain code ***|*** to textbox2.text but * can be 1 2 3 4 5 6 7 8 9 button2_click: if textbox1.text.contains("***|***") then ... Picture: [URL="http://imageshack.us/photo/my-images/43/naamlooses.jpg/"]http://imageshack.us/photo/my-images/43/naamlooses.jpg/[/URL] Software Development vb.net | |
Hey guys! I hope what I'm about to do is not frowned upon :) I just would like some input/critics/heads up on my class definition and implementation I did for my project. I am by no means a trained programmer and I doubt my coding style is very good so … Software Development c++ | |
Hello. i have this problem with a program im coding in python. heres the code: [CODE]#! /usr/bin/python from Tkinter import * list=[".", ".", ".", ".", ".", ".", ".", ".", "."] root=Tk() def p(lol): list[0]=1 lol["text"] = list[0] def plade(): ###### ROW=0 a1=Button(root, text=list[0], command=p(a1)) a1.grid(row=0) a2=Button(root, text=list[1], command=p(a2)) a2.grid(row=0, column=1) … | |
I seem to have broken something I get this error Unable to cast object of type 'System.EventArgs' to type 'System.Windows.Forms.KeyPressEventArgs'. my code: [CODE] Private Sub ListControl_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListControl.SelectedIndexChanged Dim connString As String = My.Settings.strConn Dim conn As New SqlConnection(connString) If ListControl.SelectedIndex > -1 … Software Development vb.net | |
Why almost always capital letters are used when defining macros or variables like [CODE]#define SOMETHING 432[/CODE] instead of [CODE]#define something 3243[/CODE] Also, why in macro definition x is used for example [CODE]#define macro(x) (x*x)[/CODE] Does the letter matter, and can longer variable names be used like [CODE]#define MACROSQUARE(variable) variable*variable[/CODE] Software Development c++ | |
I have written a small client server program using tcp sockets, and i ran into trouble in retrieving the data brought in by the receive function. Like down below. [CODE] char *rec; int buff=1024; recv(a,rec,buff,0); [/CODE] You need a char buffer to get the data, but after that i wanted … Software Development c++ client-server | |
Hi, Actually I don't know if my question belongs in this topic or in the mysql topic. But I'm making a VB.net application with a mysql database and i have to make a trigger but I don't know where I have to use or implement it in my application. I … | |
I have this code: [CODE]import java.sql.*; import java.util.ArrayList; public class Car { private int id; private String model; private String color; private Double price; public void setId(int id) { this.id = id; } public int getId() { return this.id; } public void setModel(String model) { this.model = model; } public … Software Development java | |
Greetings expert programmers, Can someone guide me on how i will connect my vb.net 2008 to ms sql 2008 r2? I already installed mssql 2008 r2, and when i try to add the connection it says i need to call the administator something like that even though i checked all … | |
As the title stated i want to show tooltip when the user press up and down keys in combo box, Please any hint ..... Regarding to problem Software Development java | |
Hi I am having trouble at finding a way to iterate through a string of alphabets until a digit is reached. e.g. iterating through [CODE] //Using a scanner, I can use scanner.getNext() to get the first word. //There may be more than one word; there is no way to tell; … | |
I am at my wit's end with this thing. I just can't figure out, why I cannot set the WNDCLASSEX.lpfnWndProc equal to my class's function. Can someone help? Here's my code: system.h [code] #ifndef SYSTEM_H #define SYSTEM_H #include "stdinc.h" class System { private: void initD3D (void); void cleanD3D (void); LRESULT … Software Development c++ | |
I'm working on learning GUI development, I'm attempting to utilize the GUI for a user to search the dictionary: my code so far is[CODE]from tkinter import * class Interface(Frame): def __init__(self, master): super(Interface, self).__init__(master) self.grid() self.create_widget() def create_widget(self): self.pwrd= Label(self, text='Address Book') self.pwrd.grid(row=0, column=2) self.searchlbl= Label(self, text='Enter Search Query:') self.searchlbl.grid(row=2, … | |
Here's what I'm trying to do. I'm making a program that uses an array to store a deck of cards. I have other code written that converts a number between 1 and 52 into numbers and suits. My only issue is that my code to randomly put numbers into the … Software Development c | |
is it possible to use the Fkeys, i.e. F1, F2,...F12, as input in any way? Software Development python | |
I wrote the following code for inserting the value in table company_db & database is Company_DB but the value are not inserted into the table table shows null values the code is below: [CODE]Imports System.Data.OleDb Imports System.Data.OleDb.OleDbConnection Imports System.Data.OleDb.OleDbCommand Public Class Newcompany Inherits System.Windows.Forms.Form Private Sub Button1_Click(ByVal sender As System.Object, … Software Development open-source vb.net | |
Hi all, I really need your help on this as I am just learning Java. I do have an error message which says "cannot find symbol on line 23. Many thanks. [CODE] import javax.swing.JOptionPane; public class averageRainfall { public static void main(String[] args) { //declare variables String[] Month = new … Software Development java java-swing | |
This is what i've made so far. [CODE]#include <iostream> #include <conio.h> using namespace std; int main() { int b=1; for (int i=1; i<=5; i++) { for (int k=1; k<=i; k++) { cout<<b; b++; } cout<<endl; } getch(); return 0; } [/CODE] The output is as below 1 23 456 78910 … Software Development c++ | |
In one of the books I'm using to study Python I keep seeing things like: [CODE] class Application(Frame): super(Application, self).__init__(master): self.grid() self.bttn_clicks=0 self.create_widget"""which is another function in the class"""[/CODE] Why is the super necessary for the class if the class it's calling is itself? | |
Look at this program compiled using [I]Turbo c++ 3.0 compiler[/I] Aim is [B]to calculate the factorial of a no[/B]. [COde]#include<iostream.h> #include<conio.h> long double factorial(int); void main() //main function { int inp; clrscr(); cout<<"Enter a positive no. "; cin>>inp; cout<<"factorial is :"<<factorial(inp);//displays factorial getch(); } long double factorial(int a) { long … Software Development c++ | |
Hi all, and thanks in advance for your help. I am trying to write a Linq to XML query that will test attribute values in multiple elements and return the possibly multiple qualifying entries from a main element. The XML I'm looking at is basically like this: [CODE]<ContentList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" … | |
can you help me to code a vb.net program.. i want to have a button that if i click it will add a table in the sql server database.. tnx :)) i really really need this code i only have 1 week to finish dis project :)) Software Development vb.net | |
hi all, i am trying to do a mini project in java which is totally console based. please suggest me few topics for it... Software Development java | |
is it possible? i would like create Q&A game with a countdown-timer. if timer=0 then stop the game. how can i do this? Thank you Software Development pascal | |
Hello everyone, i write mostly in java but have recently started picking up c and c++, and i was wondering if there was an equivalent to the java date class in c++ or c? I've searched for a date.h and came up empty. |
The End.