132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blackmagic01021

I have a class that has a text area. the code is as follows package view; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; …

Software Development apache java java-swing
Member Avatar for blackmagic01021
0
172
Member Avatar for Panathinaikos22

I have 2 files writen in java, if someone can please covert them in C# and give it. The problem is with type of variables and operators, many operators are not overloaded like in java, idk what to say... This one will not work in C# as integer result |= …

Software Development c# java
Member Avatar for wilen
0
280
Member Avatar for wilen

this is my csharp code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace MutlitableDatasetApp { public partial class MainForm : Form { //form wide dataset. private DataSet autoLotDS = new DataSet("AutoLot"); //Make use of command builders to …

Software Development dataset
Member Avatar for ChrisHunter
0
248
Member Avatar for MasterHacker110

i have tried to write this hexdump code for dumping the contents of a tex file. #include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { string line; string finline; char infile[100]; char ofile[100]; char chars[750]; cout<<"Enter input file: "; cin.ignore(); cin.getline(infile, 99); cout<<"Enter output file: "; cin.getline(ofile, …

Software Development c++
Member Avatar for MasterHacker110
0
728
Member Avatar for Majestics

Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already …

Software Development gui java
Member Avatar for CrazyDieter
0
347
Member Avatar for jarograv

I am getting a null pointer exception on line 36 of this code, I do not understand how any of my values are null because they should all be filled with data from the text document. What am I doing wrong? import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; public …

Software Development file-system java
Member Avatar for BumHunter
0
122
Member Avatar for memomk

well i have two questions: 1-hey i was wondering is there a library or namespace in c# for creating databases? like anydbm with python?or anyway to do it? 2-witch faster? getting data from huge database or getting it from like a huge database devided to multi database i mean witch …

Software Development c c# c++ ide
Member Avatar for faizan11
0
206
Member Avatar for cresenia1988

Inside the infile.txt, I'm suppose to convert into outfile.txt. Unforunately, I'm unable to get the correct aglinment for outfile. As you can see, France and Vietnam have an extra "\t". char ch; switch (n) { case 'F': stud.type = n; infile >> stud.st.fs.country; infile.get(ch); infile.getline(stud.st.fs.name, MAX); break; case 'S': stud.type …

Software Development c++
Member Avatar for muze
0
134
Member Avatar for roboxslt

|Input :::: <gtdt> <name>Construction 2012</name> <edition>120</edition> <ISSN>1473-0065</ISSN> <jurisdictions> <jurisdiction name="Albania"> <topics> <topic> <name>All Questions</name> <questions> <question> <number>1</number> <title>Joint ventures</title> <full>Must foreign designers or contractors enter into a joint venture with a local contractor to design, build and be paid for their work? Does the law require that the local contractor …

Software Development xml
Member Avatar for Mike Askew
0
102
Member Avatar for renzlo

Hi All, Why is Webbrowser PreviewKeyDown event is not firing if the page loaded is a java applet? Is there a workaround here? I need to fire up a keypress event in the textbox of the java applet. Hope there's a solution.

Software Development vb.net web-browser
Member Avatar for renzlo
0
177
Member Avatar for SillyNoob

I'm at an absolute complete loss with this. I'm a using a pointer-pointer to "remember" the last node of a linked list so a function in the loop can add another node and then return the address of that new node so it's known for the next loop. Sounds easy, …

Software Development c++ linked-list
Member Avatar for SillyNoob
0
93
Member Avatar for zachattack05

I'm working on a method that will save checkstates to a SQL server and something occured to me and I thought I would ask if there is a simpler way of doing this. If I have a single parameter, for example an initial checkstate, and an if...else statement is supposed …

Software Development
Member Avatar for zachattack05
0
176
Member Avatar for MasterHacker110

i have this c++ code and i wondered how ot would be in c #include <vector> // for vector #include <sstream> // for stringstream #include <iostream> #include <string> using namespace std; int main() { stringstream ss; string input, temp; vector<string> comand; cout << ">: "; getline(cin, input); ss << input; …

Software Development c c++
Member Avatar for MasterHacker110
0
172
Member Avatar for janet@123

I am trying to use the glib HashTable implementation for my code and facing some issues in memory allocations. The code I've written is: GHashTable *g_hash_table; g_hash_table = g_hash_table_new (g_direct_hash, g_direct_equal); gint *port, *src_value, *value; guint32 *dst_key, *key; . . . while(1) { key = g_malloc (sizeof *key); dst_key = …

Software Development algorithm c motherboards-cpu-ram
0
133
Member Avatar for arunkumars

Hi, the problem statement is that, i have written my code Process.GetCurrentProcess().Kill() to kill my process while the application exits, i know it happens automatically, but my application is a relly big application, there were scenarios where the application was not exitted properly and the only way to exit was …

Software Development
Member Avatar for arunkumars
0
187
Member Avatar for joankim

Hi there. Recently, i wrote a program that would return ridiculously high numbers as BigIntegers. The program is working at all, but when the BigIntegers get to a value that I have estimated to be around 2^329554, and takes up between 30-45 kilobytes, i get this error: Exception in thread …

Software Development java
Member Avatar for joankim
0
149
Member Avatar for memomk

hey i have this code when starting the Process to make database it freeze at all what should i do? # -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import sys try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: _fromUtf8 = lambda s: s class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, …

Software Development gui html-css python qt ubuntu
Member Avatar for memomk
0
2K
Member Avatar for SCass2010

Hi everyone, Again, I'm just trying stuff out to try and learn a bit more but here goes... I created a small Logger util - I included the pthread library and added a mutex lock in each of the "write*" functions, tested it by running a few instances of a …

Software Development c++
Member Avatar for varungandhi
0
2K
Member Avatar for kutuup

So I'm working on a Windows Phone app using XNA and I'm at my wit's end with it. Here is the code: using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.GamerServices; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Input.Touch; using Microsoft.Xna.Framework.Media; namespace WindowsPhoneGame1 { /// <summary> /// …

Software Development audio
Member Avatar for skatamatic
0
162
Member Avatar for lxXTaCoXxl

I realize I haven't released anything in a while so I figure I'll just type a basic set of things for you all to use or learn from. All of the following requires XNA Framework, but can be easily ported over to .NET Framework for use with forms applications. The …

Software Development
0
123
Member Avatar for <HHH>

i'm trying to read data from .csv file and it give me grabage so i will be pleased if someone help me thanks import java.io.*; public class ReadFile { public void File2 () throws FileNotFoundException, IOException{ FileInputStream fstream = new FileInputStream("C:/myfile.csv"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new …

Software Development java
Member Avatar for joankim
0
351
Member Avatar for bigzcoder

Hello, I am having trouble with my code. it does not seem to be comparing the two hands correctly I would really appreciate it if someone could take a look at it and tell me where i am going wrong. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define TOTAL_CARD_DECK …

Software Development c
Member Avatar for zeroliken
0
136
Member Avatar for FraidaL

I wrote this code to change all lowercase letters in a string to uppercase. That works, but I also want it to go the other way around and nothing I tried is working. #include<iostream> #include<string> #include<cctype> using namespace std; string change(); int main() { change(); return 0; } string change() …

Software Development c++
Member Avatar for triumphost
0
163
Member Avatar for c++bob1234

NEED help with this code, i need to put the code in place of(??????) The code is suppose to enter the car's information and it compares which car has best finance mileage and cost of car. #include<iostream> using namespace std; #include<string> #define INT_MAX 100000 #define INT_MIN 0 using namespace std; …

Software Development c++ finance
Member Avatar for thines01
0
246
Member Avatar for zachattack05

So if I have 3 stored procedures that act on a single table (or multiple tables for that matter), is it acceptable to combine them since they are related on some level and then using a switch or if statement to determine which "procedure" to actually run? As a simplistic …

Software Development
Member Avatar for zachattack05
0
138
Member Avatar for Panathinaikos22

Does try { } catch make program slower? I think only if code on try fail will take a little more timebecause will run catch also... idk what you say;

Software Development
Member Avatar for sknake
0
6K
Member Avatar for zachattack05

I have a checklistbox that I have been working on and I need to commit the changes made to those checkstates to a sql table, removing rows where the checkbox is not checked and adding rows where the checkbox is checked (assuming the checkstate actually changed). Instead of doing a …

Software Development sql
Member Avatar for zachattack05
0
208
Member Avatar for tadamagic63

#include <iostream> #include <iomanip> #include <string> using namespace std; // Constants const float RESLINEFEE = 22.42; const float RESperGALLONfirst10000 = 2.42; const float RESperGALLONnext13000 = 3.22; const float RESperGALLONover23000 = 4.03; const float COMLINEFEE = 22.09; const float COMperGALLON = 2.65; const float INDLINEFEE = 18.41; const float INDperGALLONfirst200000 = …

Software Development c++
Member Avatar for scudzilla
0
185
Member Avatar for james6754

Hello I have this problem..I realise I am trying to I am calling function like this...a reference to E is passed in? B = D.sum1(E); MatrixClass MatrixClass::sum1(const MatrixClass &rhs) const//function to add elements of one MatrixClass to { //another and return the new MatrixClass MatrixClass C; if(this->dataptr == rhs.dataptr) { …

Software Development c++
Member Avatar for StuXYZ
0
152
Member Avatar for sadzee

What are Locally caught Exceptions in Java? Whats the dofference between the ones that are caught locally and ones that are not caught locally??

Software Development java
Member Avatar for nbajordan
0
89
Member Avatar for Checkerboz

Hey! I got two classes here, one that does stuff with an image and one class utilizing the other class. So inside my picture class I have an Image object and in my other class I want to have a JFrame and I want to set the size of the …

Software Development image java
Member Avatar for Checkerboz
0
355
Member Avatar for Black Magic

[CODE]#include <iostream> using namespace std; int main() { char exit; cout << "Exit? Y / N " << endl; cin >> exit; if ( exit == 'Y' || exit == 'y' ) { } if ( exit == 'N' || exit == 'n' ) system("PAUSE>nul"); else { } } [/CODE] …

Software Development c++
Member Avatar for SamuelAdams
0
378
Member Avatar for memomk

sorry but i still cant understand what is different betweeen Thread and Process in c# what to use?

Software Development c c# c++
Member Avatar for memomk
0
108
Member Avatar for imperialguy

Platforms: Windows 7/Mac OS X ActiveState Python 2.7.2 Installed docx on Windows 7 at D:\Program Files (x86)\Python27\Lib\site-packages. Installed docx on OS X at /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages Following is the sample script (named as docx_example.py), which runs absolutely fine on the python interpreter: #!/usr/bin/env python ''' This file makes an docx (Office 2007) …

Software Development github os-x python
Member Avatar for memomk
0
631
Member Avatar for juster21

I am trying to program the last part of an application which needs to take data from an Excel sheet and add it to an Access table. I'm using Excel 2003 on XP. Any and ALL help is appreciated. The problem I'm running into seems to be on connecting to …

Member Avatar for Oxiegen
0
321
Member Avatar for Thermalnuke

having a problem with a program im working on with inheritance. suppose to output the area, perimeter, and area i think i have it all set up correctly but its not out putting correctly here is the the superclass that inherites to the client form. public class CIRCLE extends CLIENT …

Software Development java
Member Avatar for Thermalnuke
0
137
Member Avatar for Nole_diver

I know this is a simple question but i am having a problem with an IF statement: [CODE] START: #START GOTO command **CODE REMOVED TO SAVE SPACE** print "Continue? (lower case only) \n"; $choice = <>; if($choice eq "y" || $choice eq "yes") { goto CONTINUE; } else { goto …

Software Development perl
Member Avatar for 2teez
0
120
Member Avatar for nicewave

Could someone tell me how to go about this? I've a dataGrid and when a user right-click on one of the row's header I want a context menu pop-up with the menu choices "View Detail", "Cancel". Thanks in advance...

Software Development
Member Avatar for nicewave
0
168
Member Avatar for NyQii

Hey guys.... Just wondered if anyone can help me, I'm busy writing an application with a login form using SQL Server, if the user logs into the specific for i want a lable saying logged in as : .... But how do you code that part? Hope you understand thanks

Software Development
Member Avatar for SyncMaster170
0
160
Member Avatar for alanso

#include <iostream> #include <fstream> #include <string> using namespace std; int main () { string cosid1, cosid2; int no_cos=0, nostu1=0, nostu2=0; double score, total_1=0, total_2=0, avg_1=0, avg_2=0, avg_group1=0,avg_group2=0; ifstream group1, group2; ofstream outgroup; group1.open ("group1.txt"); group2.open ("group2.txt"); if (!group1 || !group2) { cout<<"Unable file"<<endl; cout<<"Programs terminates"<<endl; } outgroup.open("totalgroup.txt"); outgroup<<"Course ID"<<'\t'<<"Group No"<<'\t'<<"Course …

Software Development c c# c++
Member Avatar for nullptr
0
171
Member Avatar for Sahil89

What event trigers when we open file with our exe/program? How to do coding for that?

Software Development vb.net
Member Avatar for Sahil89
0
95
Member Avatar for Kulasangar

Actually what is an abstract data type?

Software Development c++
Member Avatar for mrnutty
0
140
Member Avatar for strongguy12345

Hello to all, haven't been on here in a while but recently been having major problems with trying to finish this second problem set my teacher has given me and the other students for the gr. 12 ics college coarse, currently im gr. 11 but this coarse had to be …

Software Development python
Member Avatar for strongguy12345
0
328
Member Avatar for jhamill

okay, i am trying to implement a program that cycles through a circularlly linked list to find different strings "assassins" and then eliminate the next person in the list. I believe that most of my code is correct with the exception of how I set up my linked list as …

Software Development java linked-list ruby
Member Avatar for jhamill
0
267
Member Avatar for lfmconsummates

Can I use the html <a href></a> tag as a python form submit input type?

Software Development html-css python
Member Avatar for LaxLoafer
0
273
Member Avatar for Andy90

Hi, I created an app. I want a splash screen to be displayed in the beginning for 3 sec whenever I execute my program. Suggest me a way!

Software Development display
Member Avatar for Mitja Bonca
0
160
Member Avatar for James19142

i'm making this function that replaces single slashes in a path with doubles slashes. It works for everything but slashes because I gotta use doubleslashes to specify a single slash so how do I refer to double slashes. QString AddDoubleSlashtoPath(QString Path){ QStringList splitup=Path.split("//") ;/*supposed to be a single slash*/ QString …

Software Development c++ qt
Member Avatar for triumphost
0
1K
Member Avatar for Wolxhound90

Hey guys, I'm just wondering if it's possibe to get the results from a query and then assign the results to a variable. So I will run a query which will return the names of the tables stored in the database, then I want them to be stored in a …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
2K
Member Avatar for lena1990

hi all i have applet that i want to connect to the server when i run the applet from the appletviewer the applet connect to the server ,but when i run the applet from web browser i have the following exception java.security.AccessControlException: access denied ("java.net.SocketPermission" "127.0.0.1:3000" "connect,resolve") even i give …

Software Development java web-browser
Member Avatar for Darryl.Burke
0
319
Member Avatar for Alicito

Hello, I just need some help with linkedlists in C#, linked-list in C++ is kinda easy with pointers but im facing some problems in C# I read the examples provided on http://msdn.microsoft.com but I couldn't figure out how to link two different linked lists the efficitent way seems to be …

Software Development algorithm apple linked-list
Member Avatar for Momerath
0
261

The End.