43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jalandoonk

I'm trying to set the selected value from a combo box that is populated from my database, i cant seem to find a way to do that. I'm using this to populate my combo box: [I]Private Sub PopulateCountry() Dim country As New Client Dim contryList As OdbcDataReader = country.mpopulateCountry() Dim …

Software Development sql vb.net
Member Avatar for venu_dw
0
138
Member Avatar for grisha83

Hello, I wrote an add method but for some reason it does not add more than 3 values. Could anyone tell me why? here is my method: [ICODE] public void addValue(int value) { IntNode cur = head; IntNode prev = cur; IntNode t = new IntNode(value); if (value <= cur.data){ …

Software Development java linked-list
Member Avatar for grisha83
0
67
Member Avatar for Nad42

Hi im trying to get a sort function working in a program im writing, basically ive got an array of structures of [code=c] struct person { char name[20]; char address[20]; char address2[20]; char tphneno[12]; char email[30]; }; [/code] and i want a function to sort them alphabetically by name in …

Software Development c
Member Avatar for Nad42
0
149
Member Avatar for Clockowl

Hey guys, Below code isn't working as I expect it to do. I expect it to read all params when 6 are given, buuuuuuuuuuuut it only reads one, the rest remains zero. It does enter the case, but the stringstream buf seems empty. What am I doing wrong? [code=cpp] #include …

Software Development c++ ios
Member Avatar for Clockowl
0
167
Member Avatar for Zandermander

Hey guys, I'm writing a small client/server application. I've got it almost completely working, other than the fact that once the user disconeccts from the server using TcpClient.close he can not reconnect without restarting the app because clientSocket is disposed. Declaration: [CODE] Dim clientSocket As New System.Net.Sockets.TcpClient() [/CODE] Connect: [CODE] …

Software Development client-server vb.net
Member Avatar for Zandermander
0
1K
Member Avatar for billymcguffin

i need some help writing a GUI for the program i'm making. it is a simple text-based number-guessing game and i would like to have the prompts displayed in a nice window. i would also like to have the "number_guesses" and the "guess_list" variables displayed off to the right of …

Software Development gui python
Member Avatar for billymcguffin
0
359
Member Avatar for serkan sendur

do you guys know a complete setup project for windows mobile application that i can run and examine on my local computer and pocket pc? thanks.

Software Development
Member Avatar for serkan sendur
0
81
Member Avatar for serkan sendur

hi guys, i try to create setup application for cab file, when i run app manager from the code, i cant see my cab file on add/remove program list. do you have any idea why is this happening? thanks

Software Development
Member Avatar for serkan sendur
0
100
Member Avatar for mostermand

I have been testing a C++ based SDK and now i have a few questions for you that i hope you will answer . 1. When passing objects between each other is it preffered to use references if not what then? 2. Is it good or bad to make a …

Software Development c c# c++
Member Avatar for mostermand
0
145
Member Avatar for tehbrozor

Hello, I am trying to label the axes of an array of subplots. The units of each plot are the same so I would like to just label each axis once. The array is of in determinate size. For odd numbered rows/cols I just use ylabel/xlabel on the middle row …

Software Development python
Member Avatar for tehbrozor
0
81
Member Avatar for dmanw100

Hello, I am having problems using an ObjectInputStream to read from a file. My program uses a File to check whether or not a specific file exists. If it exists my program will attempt to create a FileInputStream for the file and associate an ObjectInputStream with it. It should first …

Software Development java
Member Avatar for dmanw100
0
121
Member Avatar for hunterm

So I am trying to add a graphical element to my game. And it draws a circle for white or black pegs. However, the list that contains "Black" and "White" isn't acting quite like I want. The list prints like this: B l a c k B l a c …

Software Development python
Member Avatar for scru
0
184
Member Avatar for FaMu

Hi I have the following function which read ASCII characters(separated by space) from a file and I want to print it out to the screen contents of the data.txt file are like this 70 97 104 97 100 [code=c++] void decode() { string str; string instr; ifstream inFile; cout<<endl; inFile.open("data.txt"); …

Software Development c++
Member Avatar for FaMu
0
167
Member Avatar for mindis

Firstly I don't understand english very well, so there may be a lot of mistakes. I use python-2.6.2, wxPython2.8-win32-unicode-2.8.10.1-py26 and numpy-1.3.0-win32-superpack-python2.6 in this example. So I would like to hnow, how to get variable elements form one class into another. I use wxPython, and i don't hnow how get value …

Software Development python
Member Avatar for Ene Uran
0
227
Member Avatar for kylcrow

Here is some code that I am trying to use. Why wouldn't this work the way I am assuming it should? here is a sample of vector<string> mine: *** *2* *1* so mine[1][1] = 2. [CODE=C++] // In a function that has passed in vector<string> &mine int dist[2000][100]; cout << …

Software Development c++
Member Avatar for kylcrow
0
137
Member Avatar for Saravanan07

Hello, I'm currently creating an application in VB.Net. I have used the IsNumeric function for registering the name but the function only work if I enter only Numeric. If I enter Char + Numeric it doesn't provide any error message. For example if I key in James007, the data are …

Software Development vb.net
Member Avatar for kvprajapati
0
220
Member Avatar for n3r3d

[CODE]void slova(string datoteka){ ifstream coban; coban.open(datoteka.c_str()); string polje[200]; string linija; int brojac=0; while(!coban.eof()){ getline(coban,linija); polje[brojac]=linija; brojac++; } string rec=polje[1]; int brojac2=0; for(int i=0;i<rec.length();i++){brojac2++;} cout<<brojac2<<endl; if(rec[0]==rec[brojac2]){cout<<"same letters"<<endl;} else{cout<<"letters are not same"<<endl;} }[/CODE] This is my code, it should test if 1st and last letter in string are same, but i can't …

Software Development c++
Member Avatar for n3r3d
0
96
Member Avatar for Diamonddrake

I have written a flashy custom context menu using a new form with layeredwindows for my application, I want the context menu form to close when the mouse leaves the form, or when its deactivated. But I can't seem to get it to happen. I have tried the Close() method …

Software Development
Member Avatar for ddanbe
0
275
Member Avatar for Brandon515

hey guys umm this might seem really stupid but for reasons i would rather leave unsaid i want to make an encryption program and by this i mean a program that will turn a string into numbers and funnel into a file then when selected take the contents of the …

Software Development c++ encryption
Member Avatar for Brandon515
0
115
Member Avatar for real_castilla

hi all, I have a binary file, then I try to read them and show the value to the screen, but what I got is always -13108. I don't know why. Here is my code [code] #include <iostream> #include <fstream> using namespace std; void main() { std::fstream f_in, f_out; short …

Software Development c++ ios
Member Avatar for real_castilla
0
135
Member Avatar for ihatehippies

I've googled this quite a bit and can't find a way to tell if a file is currently being accessed or at least written to. Anyone dealt with this before? If one app if writing to a file another can be reading it before the first is finished writing..

Software Development python
Member Avatar for woooee
0
78
Member Avatar for frank.zappa

Hey everybody, I'd like to write a python script which renames a file on my desktop to a number which is 1 less than what it was before. If you're wondering, the number tells me how many days left 'till I finish high school, lol, but I've also got other …

Software Development os-x python
Member Avatar for frank.zappa
0
400
Member Avatar for lardshow

i may already have asked a similar question to this but my brain is so fried with this problem. i have to read two csv files, entering the data contained into a map and a list. the first method readInTasks() works fine, reads the file and enters the data into …

Software Development file-stream java
Member Avatar for lardshow
0
149
Member Avatar for lolwtf

I wanted to create a form where a user can create an account, have it loaded in SQL, and be able to retrieve the information and validate it. I've reached a mental block on the validation code and need some advice. Here is my code so far: [code]Public Class main …

Software Development vb.net
Member Avatar for lolwtf
0
149
Member Avatar for FaMu

Hi I have the following code which is my project I completed section 1 and 2 but it doesn't work could you help figuring why? [CODE=c++] #include<iostream> #include<string> using namespace std; void count(); void reverse(); void encode(); void decode(); int selection; int main() { cout<<"******************"<<endl; cout<<"Welcome To Project"<<endl; cout<<"******************"<<endl; cout<<endl; …

Software Development c++
Member Avatar for FaMu
0
255
Member Avatar for shuda009

Heres a snippet of my code: [code=cplusplus] int main(); { string cmd1; int cmd2; cout << "Command: " << flush; cin >> cmd1; if (cmd1 == "playlist") { cin >> cmd2; if (cmd2==XXXXXX) { cout << "Illegal command: " << cmd1 << endl; } else cmdPlaylist(cmd2); } return 0; } …

Software Development c c# c++
Member Avatar for shuda009
0
453
Member Avatar for jbisono

Hi, Guys. I have a issue reading a word document, well i can actually read the document but i need some how split some data into array, now the data that i want to split is into a table in word, is there an easy way to split that data …

Software Development data-structure
Member Avatar for jbisono
0
470
Member Avatar for headacheinC

Hi everyone, I get stuck with this homework. May be someone here can help me. I must combine two txt file, line by line. My first datafile contain 1 column, contain float numbers and the other contain many columns, also float numbers (Here i attached both the txt files). For …

Software Development c file-system
Member Avatar for headacheinC
0
590
Member Avatar for mini person

[B][COLOR="red"] hi every body .. in this link : [url]http://www.2shared.com/file/5935975/1e5b926d/client_with_pass.html[/url] i wrote program in c# in this program .. i wanna [ if txtname == txtpassword ] Show ( FrmClient ) ,, by click on button Login .. == BUT .. in this code .. it shows ( a new …

Software Development
Member Avatar for mini person
0
133
Member Avatar for vs.vaidyanathan

can anyone please help me with converting from image to world coordinates? Once i get the world coordinates how do i make use of the Z coordinate to show the 3d? thanks in advance:)

Software Development c++ image
Member Avatar for vs.vaidyanathan
0
291
Member Avatar for SEOKRU

Hi , I have this problem, where I want the query to find slimier results, Like '%BandName%' for a static query it's easy, but when I use a string from a textBox I am not sure what should be the syntax. [code] public static DataRow SearchByBandName(string bandToFind) { return DbUtils.SelectDataRow("SELECT …

Software Development
Member Avatar for SEOKRU
0
80
Member Avatar for shuda009

I'm writing a program where I have a variety of input commands. Lets say here are my three commands: info playlist # quit info - gives me information quit - terminates the program The problem: playlist # - The command playlist # means I need to cout a number of …

Software Development c c# c++
Member Avatar for jencas
0
106
Member Avatar for brandongood

Hello, I am working on a java program that finds perfect numbers. I need to make it run more efficiently by touching up the computation I have in my factorSum method. Heres what I have so far: [CODE] public static int factorSum(int testNum) { //Initialize local variable accumulator to zero. …

Software Development java
Member Avatar for brandongood
0
192
Member Avatar for sgsawant

When I tried to compile my HelloWorldApp.java file using the following command: javac HelloWorldApp.java it worked (for being able to do this simple thing I had to change a lot of variables). But then when I tried to Run the program using: java HelloWorldApp it gave me the error: Exception …

Software Development java
Member Avatar for sgsawant
0
393
Member Avatar for dinilkarun

Hi All, I have the following string: "AND Category 07|Spec 01|ABC 01 AND Category 07|Spec 02|XYZ 02 AND Category 07|Spec 03|PQR 03 " It is stored in a string variable. I want to remove only the "ABC 01", "XYZ 02", "PQR 03", etc from the original string. The new string …

Software Development python
Member Avatar for dinilkarun
0
150
Member Avatar for shuda009

Hi, I'm new to the C++ community hope you guys can give me some guidance. The program I'm making is suppose to read information from a file called music.txt Inside this file there is information about songs in the following format: Bandname, Songname, Duration of the Song, Here a partial …

Software Development c c# c++
Member Avatar for Stinomus
0
1K
Member Avatar for love_dude1984

Hi. with reference to my previous posts, im able to write a text file with a specific values from excel sheet. i just wanted to knw how to get rid of the prompt of " there is an existing file, do you want to overwrite it ?" i tried Application.Displayalerts=false …

Software Development visual-basic
Member Avatar for love_dude1984
0
92
Member Avatar for DarthPJB

Hello, my first post here, mostly due to every question I placed on google the answer is here (normally answered by a fellow Anime fan called Narue, someone's got their thinking cap on ^_^) Anyhow the problem is as follows, I'm writing a 2D game engine using DirectX9 (not relivent …

Software Development c++
Member Avatar for Stinomus
0
774
Member Avatar for Beauti

Hello Once again I must seek help from those who know what it is that they are doing and I am not... Right now we are usng Visual Studio 2005 for VB and C++ and my visual studio is defaulting to C++ upon opening the program. How do I stop …

Software Development c visual-basic visual-studio
0
55
Member Avatar for LegendaryXM90

I'm making a game for a project due this Tuesday. You're in a dungeon with rows and columns, and for each coordinate there is a cell and there are 3 trap cells that you instantly die from if you walk into them. Also, you die if you hit 3 walls. …

Software Development java
Member Avatar for LegendaryXM90
0
140
Member Avatar for lardshow

i've had a pretty good day today up to now.... i have a method calcFinalOCAS() which should take an average of a list, replace the lowest value (if its lower than the substitution score), do the average again. now this works but when its compiled and i run it but …

Software Development java
Member Avatar for lardshow
0
85
Member Avatar for Majestics

[code] import javax.swing.*; import java.awt.*; public class keyboard { public static void main(String args[]) { String s[] = {"esc","F1","F2","F3","F4","F5", "F6","F7","F8","F9","F10","F11","F12", "psc","slk","pau"}; JButton j[] = new JButton[s.length]; for(int i=0;i<s.length;i++) j[i].setText(s[i]); JFrame f = new JFrame(); for(int i=0;i<s.length;i++) f.add(j[i],JFrame.LEFT_ALIGNMENT); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setVisible(true); } } [/code] I need Instant Help!. Code is giving me …

Software Development java java-swing
Member Avatar for Majestics
0
111
Member Avatar for u8sand

Hello everyone. This is not really a coding problem as it is more of a compiler problem. I am making an MFC application in Visual Studio 2005. When i open up the icon, i can edit it right there in that editor. But when i do, it works fine in …

Software Development c++ visual-studio
Member Avatar for GadiK
0
139
Member Avatar for rinaldinho

Hi, i want to manage 2 type of Exception lightblue._obexcommon.OBEXError 1) lightblue._obexcommon.OBEXError: (111, 'Connection refused') 2) lightblue._obexcommon.OBEXError: (11, 'Resource temporarily unavailable') how i can do it? example: [CODE] try: lightblue.obex.sendfile(device.getAddr(), c[1],"advertisement.jpg") except lightblue._obexcommon.OBEXError????????????: print "Connection refused!" except lightblue._obexcommon.OBEXError????????????: print "Resource temporarily unavailable!" [/CODE]

Software Development python
Member Avatar for scru
0
195
Member Avatar for serkan sendur

hi guys, in the setup project i added checkboxes dialog to user interface section. i have two checkboxes to install two products accordingly. if the user unchecks the both of the checkboxes, i want the next button to be disabled. do you know how to do that? thanks

Software Development user-interface
Member Avatar for serkan sendur
0
105
Member Avatar for phoenix911

all i can do is get each line at a time.... how can i read it to only read till the space.... plz help.... heres my lil bit of code [CODE] while (getline(iofile,line)) { cout << line << endl; }[/CODE] plz i know i can use this aswell for line …

Software Development c++
Member Avatar for Ancient Dragon
0
122
Member Avatar for toolmanx

I spent a lot of time trying to find out why "Message Box' made my program act like it crashed. Originally I had to bring up the Task Manager every time I allowed "Message Box' to run to shut down the program. After much experimentation I found that if I …

Software Development c++
Member Avatar for toolmanx
0
110
Member Avatar for lardshow

hello all i am now about ready to pull my hair out and/or possibly worse! i have to read a .csv file, split the 3 elements into variables and then put two of the variables into a map. i can read the file fine, i can display the variables in …

Software Development file-stream java
Member Avatar for lardshow
0
101
Member Avatar for tomtetlaw

Is there a pygame constant that checks when no buttons are being pressed?

Software Development python
Member Avatar for tomtetlaw
0
454
Member Avatar for Qousio

Hello! I'm currently making <<The game of life>> in TP7. Actually, I have already finished everything. The only thing I would like to add is mouse input, so the user could draw the 'cells' by clicking a mousebutton. So, for example a mouseclick on coordinates (50,20) would change grid[50,20] to …

Software Development ide pascal
Member Avatar for FlamingClaw
0
240

The End.