43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ar31an

i am using database with table RESUME and column PageIndex in it which type is number in database but when i want to store this PageIndex value to an integer i get exception error **Specified cast is not valid.** here is the code [CODE] string sql; string conString = "Provider=Microsoft.ACE.OLEDB.12.0; …

Software Development dataset sql
Member Avatar for finito
0
89
Member Avatar for pankaj.garg

Hello, I am making a program, where cycles of a process are running and i have to save a report every 10th cycle. The report should get saved automatically, without human interference and should be saved in a non-editable format (say PDF, JPG etc). I have tried a couple of …

Software Development pdf visual-basic
Member Avatar for pankaj.garg
0
198
Member Avatar for RoyMicro

I have a USB device and a C# application communicating with it. Presently I am using a connect button to connect with the device from my application. This is a HID device and on Connect I will register for change notifications and from then onwards my application can display 'DEVICE …

Software Development
Member Avatar for RoyMicro
0
1K
Member Avatar for Duki

Hey Guys, I'm creating an application that will require specific privileges. Users will eventually be add/removed from this group; I was wondering if there's a way I can tie in an Active Directory group to the software? Something that would let me say "if you're part of this group you …

Software Development
Member Avatar for Duki
0
263
Member Avatar for adams161

hi, I'm having a bit of a problem. I"m simply trying to read active directory now with system.directoryservices. I have a LDAP path i think its called and i get the children and for each child i for each through and so on for like 5 for each loops. OK …

Software Development caching
Member Avatar for adams161
0
159
Member Avatar for ttboy04

Hello, My ouput is showing as... "1 2 3 (10)(23)(29)" when it should be... "1(10) 2(23) 3(29)" I don't think I am too far off. Here's the code and thanks in advance. // int[] Groups = {10, 23, 29}; in the constructor public String toString() { String tempStringB = ""; …

Software Development java
Member Avatar for ttboy04
0
107
Member Avatar for Aenonar

Hey everyone! I've been trying to set up a more fool proof time trial thing for my windows application rather than checking the users computer for the time (that can easily be altered). I'm not that experienced with more advanced coding, and I just can't find any code that can …

Software Development web-server
Member Avatar for bbman
0
113
Member Avatar for epicasian

I'm looking for a good introductory book for 2D OpenGL Game Programming. The only books on OpenGL I've seen were on 3D. Does anyone know of a good 2D OpenGL Book? Thanks in advance, EpicAsian

Software Development c++ gaming opengl
Member Avatar for epicasian
0
201
Member Avatar for catalyst491

Hello, I'm not too experienced with C++ (I know C# pretty well), and I can't figure this out. I've got two files, Form1.h and Utility.h. Form1.h is initialized when the program starts, and when the user clicks a button, it should call some functions in Utility.h. Now the problem I …

Software Development c++ oop
Member Avatar for daviddoria
0
207
Member Avatar for dzhugashvili

Hello. A while back I wrote a program called 'divvy' ([URL="http://www.cerberusgate.com/divvy.zip"]http://www.cerberusgate.com/divvy.zip[/URL]) in C++. It works fine on my system, but I have received several complaints that it does not work on other systems. This is the error: [QUOTE]Error: The Side-by-Side configuration information for "C:\DIVVY.EXE" contains errors. This application has failed …

Software Development c++
Member Avatar for dzhugashvili
0
222
Member Avatar for Fasola

First how do you use Dynamic and Static Memory Allocation? and why is supposed to be so popular in use?

Software Development c
Member Avatar for umair100
1
143
Member Avatar for miturian

So, in the course of a bigger project, I need to generate normally distributed random numbers. I've decided to try to use the GSL rng library. From [URL="http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Generator-Examples.html"] the gsl webpage[/URL] I got an example code, just to get an idea of how the interface works. The program looks like: …

Software Development c++ perl
Member Avatar for miturian
0
2K
Member Avatar for sasTReSS

Hi everybody, i want to compare between 2 vector that stored char value. I've made 2 vector: [code] vector <char*> className; vector <vector<char*> > Item; [/code] first i stored the class data in each vector, the name of class in vector className. after that i get data from the other …

Software Development c++
Member Avatar for sasTReSS
0
79
Member Avatar for P00dle

Is it possible to have a client/server service that doesn't use sockets?

Software Development client-server java socket-programming
Member Avatar for masijade
0
147
Member Avatar for MrBlack

Hi i m new to java, i want to make a simple application with netbeans ,(To Learn) i want to learn how to get data from a data base(mysql database) and display to textBoxes, and also want to learn how insert delete update database, Are there any tutorials or ebooks.plz …

Software Development java java-netbeans
Member Avatar for MrBlack
0
115
Member Avatar for oluscoa

pls i need the different betwwen Vb.net and PHP looking in the are i listed Area Visual Basic .Net PHP (1)Variable definitions (2)Loops (3)Conditions (4)File handling

Software Development php vb.net visual-basic
Member Avatar for oluscoa
-2
178
Member Avatar for achieve_goals

Hi, I am confused in making circular linked list. This is what I have. CircularLinkedList.h [CODE]#ifndef CircularLinkedList_H #define CircularLinkedList_H class CircularLinkedList { public: void remove(); void set_number_people(int); void print(); }; #endif[/CODE] CircularLinkedList.cpp [CODE]#include "CircularLinkedList.h" #include "Node.h" #include <stdio.h> void CircularLinkedList::set_number_people(int num_people) //This is where I am confused { Node *head …

Software Development c++ linked-list
Member Avatar for ctaylo21
0
130
Member Avatar for BuhRock

I have to write a program that creates a GUI and asks the user to select from a group of buttons which time of the day they made the call, and input in a text field how many minutes the call was. for the day time, it's supposed to be …

Software Development gui java java-swing
Member Avatar for NormR1
0
765
Member Avatar for mjoshi

I have a code which throws "segmentation fault" after some computation. I was looking for some help with efficient memory management. My program does the following: I have a grid with min. i,j,k coordinates -52, -34, -35 and max. i,j,k coordinates 53, 37, 33. (In i, j, k loop). I …

Software Development c
Member Avatar for arld101
0
136
Member Avatar for Alex_

I'm trying to make a html editor. I need to set different colors for different words... I managed to the change text's background color, but not it's foreground. Can some one help me? this is my code [code=java] public class HEditorView extends FrameView { public HEditorView(SingleFrameApplication app) { super(app); initComponents(); …

Software Development java java-swing
Member Avatar for Alex_
0
328
Member Avatar for G_S

Hi I'm using python 3.1 and Windows. My program writes xml code to a text file, the problem is that windows needs to know that this file's encoding is utf-8. Right now it does write the proper code, but other programs (firefox, for instance) fail to read it because it …

Software Development python xml
Member Avatar for Gribouillis
0
187
Member Avatar for MrBlack

There is an error , it is cannot find Symbol [CODE] import java.sql.*; public class Main { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String connectionUrl = "jdbc:mysql://localhost/mytestdb?" + "user=root&password=PHP"; Connection con = DriverManager.getConnection(connectionUrl); } catch (SQLException e) { System.out.println("SQL Exception: "+ e.toString()); } catch (ClassNotFoundException cE) { …

Software Development java
Member Avatar for MrBlack
0
4K
Member Avatar for G_S

Hello, I am making a file comparing program, and I want it to display line numbers permanently, like any normal text editor does. Is it possible to do this with tkinter? thanks

Software Development display python tkinter
Member Avatar for G_S
0
2K
Member Avatar for niehaoma

Answered my own question. Wish I could figure out how to delete this post.

Software Development python
Member Avatar for niehaoma
0
106
Member Avatar for akssps011

I am having problem in using a virtual function across several files. I have this code: myPlugin.h [CODE] #include "myprojPluginInterface.h" #include "myproj_export.h" class MYPROJ_EXPORT myProjPlugin : public myprojPluginInterface { public: virtual ~myProjPlugin(); virtual myProjPlugin * newInstance() const = 0; virtual int speed() const; virtual int direction() const; protected: PositionProviderPlugin(); }; …

Software Development c++
Member Avatar for akssps011
0
96
Member Avatar for MrBlack

this is my simple application , i try to updata ,but it is not working, in this example it shows only first reocrd and, try to update first record(i want to know the method of updating, so i can updates other records too) data base has only two fields id,name …

Software Development dataset
Member Avatar for MrBlack
0
111
Member Avatar for intes77

Hello im having problems with my code. i wanted to make a program that would let me enter anything and then place each one of them inside the array. [CODE]import java.util.*; class charAt { public static void main(String[]args) { Scanner input=new Scanner(System.in); String[]sample=new String[52]; String enter; int x; System.out.println("Enter something"); …

Software Development java
Member Avatar for intes77
0
6K
Member Avatar for intes77

i am having problems in reading the contents of my .dat file. the contents of my .dat file are the following: 10.20 60.20 70.20 25.25 1.1 2.2 3.3 4.4 my expected output should look like this: --------- --------- --------- --------- 10.20 60.20 70.20 25.25 1.10 2.20 3.30 4.40 but when …

Software Development java
Member Avatar for intes77
0
151
Member Avatar for daudiam

java class files are not loaded into memory till the time they are referenced. If this is true, then the use of import statement is just to save a bit of typing. Is it the case ?

Software Development java
Member Avatar for JamesCherrill
0
131
Member Avatar for revski

Hi i am looking to use a totally custom built UI with a piece of software i am writing in delphi. i have ofc seen this done many times in programs like itunes and windows media player etc, where the standard windows aero frame is not used... i have never …

Software Development delphi pascal
Member Avatar for revski
0
176
Member Avatar for leiger

I'm trying to list a bunch of buttons vertically, but am having problems even getting that much done. I'm pretty sure I have the scroll pane working (it just isn't being used yet so I can't test it). This is part of an assignment so I'd prefer not to post …

Software Development java
Member Avatar for leiger
0
2K
Member Avatar for RingmasterTJ

Hey everyone, So, for my C++ course I am implementing a Binary Search Tree. In this Binary Search Tree we are to create a function to copy the values of a passed array into a Balanced Binary Search Tree that will render a correct inorder traversal. I.E. an array of …

Software Development c++
Member Avatar for wieczorek1990
0
252
Member Avatar for kdcorp87

i find this code in a forum [CODE]using System.ComponentModel; using System.Drawing; using System.Windows.Forms; static class Program { static void Main() { string pointText = "11, 19", rightToLeftText = "Inherit"; Point point = Parse<Point>(pointText); RightToLeft rtl = Parse<RightToLeft>(rightToLeftText); } static T Parse<T>(string text) { // might need ConvertFromString // (rather than …

Software Development
Member Avatar for kdcorp87
0
337
Member Avatar for Bluefox815

I was writing a program and wanted to write a struct that's used to match an input string and print a corresponding output. However, I ran into a very unexpected problem. This code gave me the compile error below. [code] #ifndef MATCH_H #define MATCH_H #define TOTAL_WORD_PAIRS 2 typedef struct { …

Software Development c
Member Avatar for Bluefox815
0
305
Member Avatar for adams161

Hi, I have a list of a few thousand names. I actually have last name, first name, phone number, etc and more info. I'm going to make a class to contain the data. so I'll have like a people object with for example a last name field. I'm going to …

Software Development data-structure vb.net
Member Avatar for adams161
0
125
Member Avatar for white feather

I get this error when i write to my C drive using an ObjectOutputStream [CODE] List<String> strings = new ArrayList<String>(); strings.add("test1"); strings.add("test2"); strings.add("test3"); IO.IO.writeListToFile("C:\\Users\\coconnor\\Documents\\Java\\ToolKit\\", strings); [/CODE] [CODE] public static void writeListToFile(String location, List<?> list) { ObjectOutputStream p = null; File f = new File(location); try { p = new ObjectOutputStream(new …

Software Development java
Member Avatar for white feather
0
5K
Member Avatar for HappyTron

Hello Guys, I am trying to read lines from .xml file using a C program. Basically what program does is read the date, and if the current system date is in the range of the date range given, it fetches some data from the next lines in the date. However,my …

Software Development c ubuntu xml
Member Avatar for Bluefox815
0
155
Member Avatar for muddy900

Hi guys, I'm trying to read a file which contains text in arabic. The file text is aligned from right to left. But when I read it, the output is from left to right. Is there any way to align it from right to left? I'm trying to display the …

Software Development java
Member Avatar for muddy900
0
93
Member Avatar for ceyesuma

I can't seem to find the correct way to add an alias in a select statement. Is there a way to do this using an embedded Apache derby database? The usual way will not work. ex: [icode] SELECT uid AS User,fName AS First,lName AS Last FROM table[/icode]

Software Development apache java
Member Avatar for ceyesuma
0
718
Member Avatar for Nitin Daphale

In my desktop application am using following .net functions [CODE][COLOR="Green"]GC.Collect(); GC.WaitForPendingFinalizers();[/COLOR][/CODE] [COLOR="Red"]I just want to know that, is there possibility that WaitForPendingFinalizers() will wait for indifinite time ? If so ,what is the way to get out of it so that my application can proceed further.[/COLOR][QUOTE][/QUOTE]

Software Development
Member Avatar for Jorge65100
0
1K
Member Avatar for ceyesuma

Hello: I have created a Desktop that interacts with a embedded db. I also have crated a flash program that opens and runs itself in any web browser. My inquiring is to find out if I can create a button to launch this flash program from my Java app? Also …

Software Development flash java web-browser
Member Avatar for NormR1
0
330
Member Avatar for lewashby

[CODE]import sqlite3 def find_details(id2find): db = sqlite3.connect("surfersDB.sdb") # grap surfer data from database db.row_factory = sqlite3.Row cursor = db.cursor() cursor.execute("select * from surfers") rows = cursor.fetchall()[/CODE] In the code snippet above from "Head First Programming", the syntax for the database code is poorly explained. Is row_factory a call, method, or …

Software Development python
Member Avatar for lewashby
0
140
Member Avatar for ErlendHL

Hi. I make a new array, p: [CODE]p=[[x]+[0]*(y)]*z[/CODE] then if x=1, y=2 and z=3, the array is: [CODE][[1, 0, 0], [1, 0, 0], [1, 0, 0]][/CODE] But now, the problem steps in. If I now say that p[0][0]=2, then the array is: [CODE][[2, 0, 0], [2, 0, 0], [2, 0, …

Software Development python
Member Avatar for ErlendHL
0
94
Member Avatar for himit

Hi, I have an XML: [CODE] <A> <B> <C>a</C> </B> <B> <C>b</C> </B> <B> <C>c</C> </B> </A> [/CODE] and I need the output as [CODE] <X name="a"> <Y name="b"> <Z name ="c"/> </Y> </X> [/CODE] i don't know how to write the XSL for it, tried few things but couldn't …

Software Development xml
Member Avatar for fpmurphy
0
123
Member Avatar for Nitin Daphale

[COLOR="Green"]Table Name => PropDocument Column1 => propertyid ( foreign key from Property table ) Column2 => documentid ( foreign key from Document table ) The error ( in the attached image ) comes when I try to delete the record. This error comes often when there are 2 records with …

Software Development client-server sql
Member Avatar for Nitin Daphale
0
95
Member Avatar for Ebisu

Hey i have so far set up a form to save data into a database and i am using: [code] con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0.;" & _ "Data Source = F:\Database1.mdb" con.Open() [/code] I tried saving the database as i did with images in the resource folder and used my.resources but this …

Software Development open-source vb.net
Member Avatar for Teme64
0
2K
Member Avatar for Feanorith

Hello, I have to make a very basic paintlike program for school, and I've ran into a problem I have no clue how to solve. I hope one of you friendly forum-goers can help me out. Here's the problem: I have a class called Figuur (shape in Dutch) and * …

Software Development
Member Avatar for Feanorith
0
148
Member Avatar for Ebisu

Hi, i have a access database with two tables, one for customer and one for booking. I then have a form application i made in VS 2008 which lets a user enter details such as their name phone number ect into text boxes. All of the information the person enters …

Software Development vb.net
Member Avatar for finito
0
232
Member Avatar for tomtetlaw

When I run my code, I get "Run-Time Check Failure #2 - Stack around the variable 'string' was corrupted." I have looked everywhere in my code for a source of this error, and I can't find one, I've also looked where a buffer overrun could occur. The variable string is …

Software Development c
Member Avatar for tomtetlaw
0
163
Member Avatar for Nitin Daphale

My project is simple desktop application. I want to transfer(upload) a file from my desktop to the another machine which is server of my machine.(One machine to another ) There is nothing to do with web service. Can anybody send me help ? Thanks in advance.

Software Development web-server
Member Avatar for Nitin Daphale
0
317

The End.