132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bymak87

I had to write 10 objects of cars into an array and now my problem now is writing the array into a text file. I am able to get the correct output in the console, but when I open the text file I get part of the desired output, as …

Software Development file-system java
Member Avatar for JamesCherrill
0
231
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 tennis
Member Avatar for Sagar14

Hi, I'm at present working on extracting data from various online news sites, and then analyzing it. The code is given below. But when I'm writing this last code, the following error is coming: >>> import newsfeatures >>> allw,artw,artt= newsfeatures.getarticlewords( ) >>> wordmatrix,wordvec= newsfeatures.makematrix(allw,artw) Error: Traceback (most recent call last): …

Software Development python xml
Member Avatar for Sagar14
0
147
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 ecostas

Hi. I'm still learning how to use dbExpress, after using Zeos and Delphi 5 for many years. I wrote a small program to import data from a MySQL database to another MySQL database totally different in terms of layout. It worked all right, though I'm afraid some of my clients …

Software Development delphi pascal
Member Avatar for Sagar14
0
238
Member Avatar for iXmerof

Hi, I am using Visual Studio 2008 and I am writing an MFC Dialog Based Application. I have two trobules - the program uses brushes to draw the lines throw the points from the CPoint table - but the density of points may be vary every time. So my idea …

Software Development c++ visual-studio
Member Avatar for iXmerof
0
99
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 theguy126

I tried renaming my .py file to .pyw. But compiling with py2exe does not make a difference. I tried using root.withdraw() but all it does is freeze the application, prevent the initial canvas from popping up, and fail to remove the command prompt window anyways. Does anyone have a solution? …

Software Development microsoft python tkinter
Member Avatar for vegaseat
0
1K
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 zuve_fox

Hi... file with extension vb(*.vb) can compile to exe using vb.net coding. could everyone help me how to compile to exe using vb.net coding if use own extension(not *.vb) ? thanx

Software Development vb.net
Member Avatar for Teme64
0
306
Member Avatar for madlan

Is there a method for checking which roles a user has in SQL using SMO? I can add a role via: [CODE]user.AddToRole("Administrators")[/CODE] But cannot see an obvious method to progmatically list them.

Software Development sql vb.net
Member Avatar for madlan
0
143
Member Avatar for adaku

Please can one help me with a better way of Converting Date( in Hour and Minutes) in to Double or Integers. I want to use it for arithmetic purpose e.g, if the Date Input is 6 hrs:30min, then i want it converted in to 6.5, ....or 12 hrs: 15 min …

Software Development java
Member Avatar for JamesCherrill
0
87
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 Sumaiah

3. Write a program to convert a number between 0 and 20000 (exclusive) into words. The program must use functions, and switch/case. Here is a sample run: This program will convert a number to words. Enter a number less than 20,000 : 18975 Number:18975 in Words: eighteen thousand nine hundred …

Software Development c++
Member Avatar for iamthwee
0
108
Member Avatar for trpsjt2008

Hello, I Have a Lag Problem With my Code My Snake Game It Will Move With Timer Tick 100 interval And Each Timer It Move It Will Use A Lot Of Code In Procedure It LAGGY My Touch Code Use This [CODE] Function Touched(ByVal obj1 As String, ByVal obj2 As …

Software Development vb.net
Member Avatar for trpsjt2008
0
88
Member Avatar for Justin88

Hello, I have a Windows form I made in Visual Studio 2008. It has ten text boxes that allows the user to enter the proper information. I have a database setup that is empty that needs to be filled by this form. When I click submit, how do I make …

Software Development visual-studio
Member Avatar for finito
0
60
Member Avatar for Justin88

Hey everyone, I am completely new to this forum business so I apologize if I post something wrong or something. Anyways, I am writing this program for this class and I have a Start_Screen which allows the user to select their level of security (Administrator, Project Manager, Employee). Once they …

Software Development
Member Avatar for finito
0
2K
Member Avatar for anshuli30

Well I am doing Computer engineering.. and doing a project on web crawler I am familiar with C and C++ only.. i need to make a program on how to search from my hard disk..can any one help..?

Software Development c++ engineering
Member Avatar for anshuli30
0
75
Member Avatar for bobyx

Hello,everybody.Would you please describe me about the differences between the(|=) ,(^= ) operators?Is it possible to use(&=)instead of the above two assignments and how? Thanks,[code]Assignment,compound operators;[ |=,^= and &=][/code]

Software Development c
Member Avatar for bobyx
0
142
Member Avatar for wlalth

Hi. I need to get unique information of runnig programs. I dont want to get ProcessName or MainWindowTitle. Because im working on anti-cheat program. Im tried lot of method of GetProcess() but any of them give me the uniq. information. So is it possible to get uniq data of running …

Software Development
Member Avatar for wlalth
0
365
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 lstensland

I have a twill script that I am trying to use to get the html code from a web page and output to a text file. The problem I have is that all the code does not show up in my text file. The actual parts I need are left …

Software Development html-css python
Member Avatar for TrustyTony
0
361
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 Prasad Bhujbal

Please, Tell me that how to make software or games using c, c++

Software Development c++
Member Avatar for packetpirate
0
91
Member Avatar for Ryan61343

what would be a good way to go about summing the digits of an int for example say i put in 3456 the sum of thos would be 18 but i have no idea how to get the numbers to sum from a single integer

Software Development c++
Member Avatar for Ryan61343
0
77
Member Avatar for cokaznsyco72

Does anyone know how to do file input and output with spreadsheets? Specifically I'm going to be using the open office spreadsheet. thanks

Software Development c file-system
Member Avatar for cokaznsyco72
0
109
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 Muhammad Anas

Hello Friends, I am an absolutely beginner in the world of computer programming. I started my voyage in this world yesterday by starting learning Python. I am reading an e-book on python [URL="http://openbookproject.net/thinkcs/python/english2e/"]here[/URL]. That book has been written with examples from Linux platform. So, I felt this problem while going …

Member Avatar for snippsat
0
437
Member Avatar for tennis
Member Avatar for roachae

I'm creating a Windows app and have a form where the user can fill out his/her name and email address, a subject line, and a message, then clicking a Send button to send an email to me about any question or issues they may be experiencing using my app. I'm …

Software Development email
Member Avatar for pabloh007
0
731
Member Avatar for kerek2

Hi... I have one problem regarding how to check whether the record already have or not then do insert or update...I'm using firebird database....i want to pull all record from one table to other database . Here my coding but i'm get stuck to do insert or update...hope anyone can …

Software Development vb.net
Member Avatar for finito
0
132
Member Avatar for mitch9654

Hello, I am having trouble writing to a file from an applet (in a local directory) without totally demolishing the file and erasing it's contents (okay, maybe I am exaggerating on the [I]destroying[/I] part :P, but it does erase it!). Also, I just can't make the applet [I]write[/I] to the …

Software Development java
Member Avatar for mitch9654
0
146
Member Avatar for Martje

How do i load a text file to a windows clr textbox? and how do i save the lines of the textbox to a file?

Software Development c++
Member Avatar for Martje
0
128
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 mimis

Hi, I am trying to write a program that will read an integer as a string and it will add 1 to this integer. For example if it read 234, it will return 235. My attempt is this: [CODE] #include <fstream> #include <string> using namespace std; void addone(string& num){ int …

Software Development c++
Member Avatar for iamthwee
0
142
Member Avatar for mcodesmart

Hello, Please see the code below. it combines 2 strings into one. [code=c] #include<stdio.h> #include <string.h> int main() { char a[10], b[10], *p = NULL, *combine(char *s, char *t); strcpy(a, "horse"); strcpy(b, "fly"); p = combine(a,b); printf("%s\n",a); printf("%s\n",b); printf("%s",p); } char *combine(char *s, char *t) { int x,y; char r[50]; …

Software Development c
Member Avatar for Bluefox815
0
197
Member Avatar for galrave

Hello, i want to populate a treeview with the directorys from my pc, how i do that?

Software Development
Member Avatar for galrave
0
90
Member Avatar for icewolf

Hello. I'm trying to find out how to make it so only certain applications I have given authorisation to can use a C DLL I have created so that when I release it with a .Net application it cannot be used by others. I found out how to check what …

Software Development c
Member Avatar for Bluefox815
0
187
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 neti1987

hi! I add code example. when I run that, I get exceptions: [CODE] /******************************************************************************* * Copyright (c) 2000, 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this …

Software Development api java legal open-source windows-api
Member Avatar for neti1987
0
285
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 abrou

Hello, I have come across a compile error, which should have a very simple solution, but I cannot figure it out. I am fairly new to programming and am still getting used to OOP. I am trying to call a function from another class. The class seems to work but …

Software Development c++ oop qt visual-studio
Member Avatar for deepavj
0
4K
Member Avatar for epicasian

First off, sorry if this is the wrong section, but sense I'm working with graphics, I thought it would be more appropriate for the game dev topic. Okay, whenever I start debugging from VC++, I segfault. But when I run my program outside of VC++, it runs perfectly fine. If …

Software Development c++ visual-studio
Member Avatar for Rajesh R Subram
0
474
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 Kesarion

Hi, How can I send keystrokes(like Ctrl + V) to a minimised Notepad ? To send some text I use something like this: [CODE] HWND ahwnd; char text[100] = "it works !"; ahwnd = FindWindow("Notepad",NULL) SendMessage(FindWindowEx(ahwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text); [/CODE] Give me an example please.

Software Development c++
Member Avatar for Kesarion
0
2K

The End.