43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sonu_1

hi i have problem , i want to modify a file without copy to another file so any one can give how to do it ? I tried following method to modify a given location or pointer in file but did not work . ofstream outfile; outfile.open ("test.txt"); outfile.seekp (3,ios::beg); …

Software Development c++ ios
Member Avatar for deceptikon
0
333
Member Avatar for pars99

I have been playing around with C++ for awhile now and was wondering: what's the differnce between the [instance].[function] and [instance]->[function]? Does the dot notation just run the value and the arrow notation store value inside the instance?

Software Development c++
Member Avatar for deceptikon
0
157
Member Avatar for ganges

Hi friends, i am using older version of hibernate jar files. I have little bit confusion between the older version and new version of jar files can you provide me the list of latest version of hibernate jar files thanks for your time

Software Development java
Member Avatar for jwenting
0
119
Member Avatar for sammygreat1234

Hi, Any Help, I need guide/way on how to get Image from JLabel and set it to JTextArea in netbeans when a button is clicked. I have 3 Object: (1) Jlabel(with an imported picture in it) (2) JTextArea(to store the picture when Button is clicked) (3)A button I tried using …

Software Development image java
Member Avatar for sammygreat1234
0
2K
Member Avatar for MasterHacker110

If I am right, your web browser sends a request to the server, the server in turn loads the page and send it to you. But the server can also request other information of your computer without you knowing it, like the type of browser you are running, your time, …

Software Development web-browser
0
97
Member Avatar for mikewyatt

I would like to take an image file on disk and display it to fit the size of a jlabel (preserve aspect ratio) the image can vary in size from 100x100 to 1600x1200 and the size of the jlabel is 256x192 (can change it only slightly if need be.) I …

Software Development image java
Member Avatar for JamesCherrill
0
194
Member Avatar for thecreator232

hi guys !!! i want to make an web browser in python , as my college project . what i'm looking for is guidance , on how to make it and which module's shall i use . currently i'm planning to use webkit and gtk+ to obtain my goal. secondly …

Software Development python web-browser
Member Avatar for slate
0
468
Member Avatar for tricket_7

I have an input file with integers, I am obviously doing something wrong here, When I try to print the elements from the array, the integers are printing as 0's, and not even for the same amount. In the file there are 20 integers. mport java.io.*; import java.util.Scanner; import java.util.Arrays; …

Software Development java
Member Avatar for stultuske
0
256
Member Avatar for Ahmed.C

Hey guys, I've been working on this program and basically I've debugged everything and it all works fine on my computer BUT! I tried to take it to another computer to run it and it says "Program has stopped working". I don't get it. I've got all the fiels in …

Software Development vb.net
Member Avatar for Ahmed.C
0
232
Member Avatar for eiallen

hey anybody know how to filter contents in ReportViewer during 'run-time'? somebody told me to read this [U][url]http://msdn.microsoft.com/en-us/library/ms252125%28v=vs.80%29.aspx[/url][/U] but this doesn't help at all because it filters contents in design time. What I need is to filter contents in 'run-time'. thanks in advance :?:

Software Development vb.net
Member Avatar for rhiyan.tale
0
1K
Member Avatar for Andrees92

Hi, this is my first post, and I'm in need of some help making an application that saves the data from a textbox to an access database. This is my code, it gives no errors, but when I use it, ie, I input the text in the textbox and click …

Software Development microsoft-access open-source vb.net
Member Avatar for Andrees92
0
319
Member Avatar for Nawaf15

Hi everyone, I am trying to write and application that will display a smiley face with a gray background and yellow face. This is what I have so far but it won't run. Can you please help me and show me how to get the application running? Thank you in …

Software Development java
Member Avatar for Nawaf15
0
264
Member Avatar for DM Galaxy

I require some help. I want to resize my form from the Corner (Right corner) in the boderless form. I know the coding as for resize it with the four different direction but unknown with the Corners. Codes I used to resize the Form from four different direction (up,down,right,left): Private …

Software Development vb.net
Member Avatar for tinstaafl
0
3K
Member Avatar for adadziwa

Hi Am working on a project and this time i want the use to choose whether or not to show the splash screen. If the user choose NOT to show a NO is registered in a hidden XML file which tell the program not to show the splash screen when …

Software Development vb.net
Member Avatar for adadziwa
0
140
Member Avatar for totalwar235

I am attempting to recompile a C program i programmed on linux. These are the errors i recieve: c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2275: 'FILE' : illegal use of this type as an expression c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(66) : see declaration of 'FILE' c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(28): error C2065: 'sy' : undeclared identifier c:\users\dsu\dropbox\codes\c\gamereedtucker\main.c(29): error …

Software Development c c++ microsoft visual-studio
Member Avatar for totalwar235
0
485
Member Avatar for bishop_kv

Hi, I have a little problem with reading data from text file which has more than 5000 words. To make long story short, I need to make english to serbian translator.It has to have 2 text boxes,one for english word and one translation; one button for translating. I tried almost …

Software Development vb.net
Member Avatar for bishop_kv
0
181
Member Avatar for eldiablo1121

Hello, I have this calculator program that compiles and runs just fine, but my loop will not break as intendend too, when I hit 5 it it still runs the options to enter a number, here is my code: import java.util.Scanner; public class calculator { public static void main(String[] args) …

Software Development java
Member Avatar for eldiablo1121
0
360
Member Avatar for G_Waddell

Hi, Getting some strange behaviour when using Interop to create a Word document from a template. I'm using word to generate a nicely formatted and printable Receipt from Sage 200 based on a Word Template. The code should open Word then create a new document based on the template I …

Software Development vb.net
Member Avatar for G_Waddell
0
257
Member Avatar for LetGoFool

Hey guys, I don't really understand the usage of the get/Set/return keywords. get-Read Only set-Write Only(eh) return-Returns value to calling method Those are the definitions I have but can I have a small explanation on when to use these and how to use the get/set thank you very much.

Software Development c c# c++
Member Avatar for LetGoFool
0
305
Member Avatar for Varunkrishna

Hi everyone I am learning python, I came across a sample program which checks whether the given number is prime number or is not a prime number using **for loop** and **range()** function. I can't understand that program, can someone please help me understand it? Here is the program and …

Software Development python
Member Avatar for lucpet
0
949
Member Avatar for GeekPlease

Good day folks, Can anyone tell me why my code only accept the first word of the input. E.g., I input Ana mae.. The output will only consider Ana as my input hence it will produce like Hello, Ana! #include <iostream> #include <string> using namespace std; int main() { string …

Software Development c c# c++
Member Avatar for GeekPlease
0
189
Member Avatar for YumnaZia

This is my program for a notepad! I am getting error at the part where I'm trying to extract the text from another .txt file!! I used the method realLine() but it only reads one line!! I want to know what other methods can I use here to extract the …

Software Development java java-swing
Member Avatar for YumnaZia
0
337
Member Avatar for eldiablo1121

Hello, I'm attempting a calculator program, but I keep getting cannot find symbol errors, I believe I called everything I needed and initialized the variables, I do not know what's wrong. Here is the code: import java.util.Scanner; import java.io.*; public class Calculator { public static void main(String[] args) { do …

Software Development java
Member Avatar for eldiablo1121
0
441
Member Avatar for lostC#

I run this program but it does not assign the value of or 3 to s, instead before running it gave the sintax error unassigned local variable 's' private void button1_Click(object sender, EventArgs e) { int i, y, s; i = 8; y = 6; if (i == 6) { …

Software Development
Member Avatar for lostC#
0
167
Member Avatar for somjit{}

Since the underlying data-structure used here is an array , which is itself iterable via `for-each()` , i'm wondering how much benefit implementing `Iterable` will provide here. I would appreciate if someone could review my code and suggest any further improvements. **Code:** import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class ResizingCircularArray<E> …

Software Development data-structure java queue
Member Avatar for somjit{}
0
1K
Member Avatar for lewashby

In the following small c++ program I'm trying to add '0' (zero characters) until the number of characters in the users input can be evenly divided by 3. I'v got it working except that it doesn't work when only on character is feed to the program. input -> 123 -> …

Software Development c++
Member Avatar for vijayan121
0
182
Member Avatar for Jacklittle01

I am trying to make a save feature in a game so that a player could save, then quit the game, then open the window again to select proflie and play from when they left off. Thanks!!

Software Development python
Member Avatar for james.lu.75491856
0
432
Member Avatar for anto_nee

hi frnds here i found many solutions for vb thanx for all your help and now i came with a new problem i have a file (doc,xls,txt, jpg or whtever it is) here i have to open that file from vb i have the filename i cant imagine i have …

Software Development visual-basic
Member Avatar for Md Saiful
0
224
Member Avatar for mbatipen

I'm a novice in c++ and intend to carryout a project on automatic control of an egg incubator. This project is to be used as an end of course defence. Soebody should kindly give me a c++ code for a temerature and humidity sensors. This will be used to programme …

Software Development c++
Member Avatar for mbatipen
0
218
Member Avatar for Rebecca_2

Hi, I am very new to programming but am hoping it will be able to speed a few things up for me. However I am struggling to work out how to write a Python3 script that does the following and am wondering if you could help me out. I have …

Software Development file-system python
Member Avatar for Gribouillis
0
332
Member Avatar for Thundermax

Hello guys, I need to make a program that counts the number of times a particular word appears in a text file on a line. For example, the User chooses the word "test" to be told at the end of each line of txt should show how many times that …

Software Development c
Member Avatar for Adak
0
153
Member Avatar for TechSupportGeek

BACKGROUND: ----------- **1 Button** **1 File** That Needs To Be Written To **1 TextBox** **1 NumericUpDown** So, in my application I need to write to a file that will contain several lines. Input is taken from a TextBox and a NumericUpDown control and it comprises a string of general format …

Software Development file-system
Member Avatar for TechSupportGeek
0
162
Member Avatar for james.lu.75491856

I tried downloading the file and playing it using `winsound` to play it with the flag `SND_MEMORY`, but it only accepts `str` instead of the `bytes` object I got from `urllib.request.urlopen`. Using `decode()` needs a valid encoding, but I don't have one. CLARIFICATION:downloading the file I mean as using `urllib.request.urlopen` …

Software Development python
Member Avatar for snippsat
0
1K
Member Avatar for darylglenng

package numberpyramid; public class Numberpyramid { public static void main(String[] args) { int x = 9; for (int i =1; i<=x; i++){ for (int j =1; j<=x-i; j++) { System.out.print(" "); } for (int k=i; k>=1; k--) { System.out.print((k>=10)?+k:" "+k); } for(int k=2; k<=i; k++) { System.out.print((k>=10)?+k:" "+k); } System.out.println(" …

Software Development java
Member Avatar for pallav89
0
643
Member Avatar for Ismatus3

Hello , I am making tries to display images in different tkinter windows , in every window displaying a different image , for this i made this code : # -*- coding: cp1252 -*- from Tkinter import * import Tkinter as tk import ttk from PIL import ImageTk, Image import …

Software Development display image python tkinter
Member Avatar for Ismatus3
0
5K
Member Avatar for friendly1

http://www.getfriendlynotes.com/index.php?q=topic_disp&subsno=3&prog=431251#tpc1

Software Development c
Member Avatar for best4earn
0
92
Member Avatar for kiail

Hello, I have a list that holds transactions. Currently I'm trying to write it to the console and have each transaction numbered with the transaction amount included beside it. I currently have code that produces something like Transaction #1: $400 Transaction #1: $400 Transaction #2: $599.99 Transaction #2: $599.99 How …

Software Development
Member Avatar for Momerath
0
150
Member Avatar for jason.craft.5439

So I have this assignment for school and I've got the program working, but some minor issues (maybe major issues with cleanilness of code, but working on it). I'm having to make a Guess My Number program and it seems to work, but when I start a new game it …

Software Development vb.net visual-basic
Member Avatar for kRod
0
460
Member Avatar for hahanottelling

Can anyone help me with displaying text in a C++ window? I've read the chapter 9 at winprog but it makes no sense to me. here's the code I'm using: [code]#include <windows.h> #include "resource.h" /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class …

Software Development c++ data-structure queue
Member Avatar for Nick_3
0
5K
Member Avatar for crag0

I am still new to programming and hoping someone can point me in the best direction. I am creating a script that monitors a directory and creates a zip file and then mails the archive. I have successfully monitored the dir and can zip the files. I am somewhat lost …

Software Development python
Member Avatar for Gribouillis
0
364
Member Avatar for YumnaZia

i am a newbie to java and I want to know how a thread can be implemented!

Software Development java
Member Avatar for YumnaZia
0
274
Member Avatar for NathanOliver

I was reading some articles on cplusplus.com and for kicks I read the template tutorial. At the very end of the section there is this paragraph: Since no code is generated until a template is instantiated when required, compilers are prepared to allow the inclusion more than once of the …

Software Development c++
Member Avatar for vijayan121
0
163
Member Avatar for nlkm

How can I get combo Box's index in GWT

Software Development java
Member Avatar for q812717031
-1
123
Member Avatar for spowel4

I am populating a combobox with a list of names and the list contains approximately 7600 items. Here is the code: foreach (string customerName in customerNames) { comboBoxCustName.Items.Add(customerName); } This loop takes nearly one minute to complete (58.6 seconds to be precise). I don't think it should take that long, …

Software Development
Member Avatar for spowel4
0
229
Member Avatar for estetik23

I started learning about Python 15 days ago and I'm a little bit confused whether it is a programming language or scripting language. I am thinking it is a programming language because it contains Exception, RE, Networking etc. However I thought scripting languages could not contain features like Networking,Exception etc.

Software Development python
Member Avatar for <M/>
-3
218
Member Avatar for Falcon143

/* Hi, In my process of C code optimization*/ Clip(int Val) { return (curr < 0 ? : ((curr > 255) ? 255 : curr)); } /* I want the int value to be clipped between 0 to 255. Is there any other way to optimize above code snippet? */

Software Development c
Member Avatar for Banfa
0
2K
Member Avatar for cleve23

Hi Can someone explain to me why when i compare the array values for my code below,if i use "==",it will only compare 1 time. However,if i use ".equals", it will work correctly. import java.util.Scanner; import java.util.Arrays; class normalsorting { public static void main(String args[]) { String input; System.out.print("Enter Jumbled …

Software Development java
Member Avatar for ashishyete
0
159
Member Avatar for DM Galaxy

I am creating an app. where I need somewhat help. I use font dialog box for textbox... and this working but How can I save the font on the settings??? I mean: I am creating the notepad app.exe in such a way that whenever the user change the font, then …

Software Development vb.net
Member Avatar for DM Galaxy
0
186
Member Avatar for mohan.jce

i have been looking around and its hard to find what i want. I am able to add context menu item to a FOLDER by doing this: [HKEY_CLASSES_ROOT\Directory\shell\Command] @="TestRightClick:" [HKEY_CLASSES_ROOT\Directory\shell\Command\Command] @="myExe.exe %1" I need to have "context menu for all the files in folders of a particular directory". context menu …

Software Development microsoft python
Member Avatar for mohan.jce
0
239
Member Avatar for eikal

Hello, i'm working on a simple program where i can enter a name and number and it will save it to notepad .txt file. I have everything figured out up until actually saving the text i enter. what code do i use to do this, in the program i have …

Software Development vb.net
Member Avatar for Siva_6
0
1K

The End.