43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mehnihma

I have problem , I only get program to write the frist line but how to write the whole string? When I print that string I get correct ouput? It has 10 lines String fileName = "System.err"; File newFile = new File(fileName); try { if (newFile.exists()) { FileWriter fos = …

Software Development java
Member Avatar for mehnihma
0
118
Member Avatar for mehnihma

I have a problem with writting this program I need to read a csv file and write it to binary then read it again. I has to be written in this way: Field name Data type Name First Text Name Last Text Birth Day Whole number Birth Month Whole number …

Software Development java
Member Avatar for mehnihma
0
2K
Member Avatar for Gus_19

I'm a noob to the .net world and I was wondering how I would go about creating a rich text box by triggering a click event button. I am trying to shrink the data currently in my form. One way of doing this would be to take away the two …

Software Development vb.net
Member Avatar for Mitja Bonca
0
257
Member Avatar for minghags

hello, i wanna ask if somebody can help me with this problem. First code: #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]){ if(argc>1) { int i=1, zmnozek=1; zmnozek=atoi(argv[1]); for(i=1; i<argc; i++) { zmnozek*=atoi(argv[i]); }; printf("Rezultat: %d\n",zmnozek); }else { printf("Nepravilen vnos!\n"); }; return 0; } And there is the problem: …

Software Development c c# c++
Member Avatar for minghags
0
123
Member Avatar for belber

Hey all.. i wan't make project with vb6 and database using mysql. did i've use mysql odbc connector ..??? i need some refrences.. Help me plizzz...

Software Development mysql visual-basic
Member Avatar for belber
0
120
Member Avatar for flywheeljack

I've been able to write a thread into my app which basically does a loop in the background perfroming detection for a device being added or removed. works great! i am trying to implement another thread to check for a file on the found device...but i still haven't figured out …

Software Development vb.net
Member Avatar for flywheeljack
0
86
Member Avatar for flywheeljack

Hello, I am using XMLReader to look thru and XML file that I have. While I have been able to play around with it and get it to pull some of the information I want, I am wondering what commands to use to do what I really want. For example, …

Software Development vb.net xml
Member Avatar for flywheeljack
0
562
Member Avatar for Bowsan22

So ive been trying to get an average of this array needed, and I seem to be having trouble with it. So far, my current code just adds the numbers up, but doesnt really average them out at all: [CODE]import java.util.Scanner; import java.util.Arrays; public class Grades { public static void …

Software Development java mathematics
Member Avatar for Xinen
0
329
Member Avatar for Darkone

I am having a problem and that is I have buttons to read text to speech like play pause and stop I have created 4 buttons Play,Pause,Stop,Resume but now I dont want the Resume button, instead when I click on the pause button it should pause the speech and later …

Software Development api microsoft vb.net visual-basic
Member Avatar for Begginnerdev
0
963
Member Avatar for vinnitro

Hi friends, I am a student of BScIT and I want a project which is to be done in VB.NET language. I surfed the internet but not found anything new... So, Is there anyone who can give me good suggestion??? & also help me give some objective i.e. what the …

Software Development vb.net
Member Avatar for vinnitro
0
135
Member Avatar for miramiey

I have a problem to make a selection by using combo box(cbChoice). if I have 2 item [name], [age], [id_number]. After click SEARCH button, the data from database will display to textbox. this my code but its not work myCommand = New MySqlCommand("SELECT * FROM daftarpelajar WHERE " & cbChoice.Text …

Software Development vb.net
Member Avatar for Begginnerdev
0
138
Member Avatar for miramiey

Hai, I have 2 question to ask about vb.net. Now i'm using Visual Studio 2005 with connection MySql... 1. how if I want to passing the data from database to the textbox by SEARCH button. I Have 1 SEARCH button and 3 textbox [txtname],[txtage],[txtaddress] and to pass it also on …

Software Development vb.net visual-studio
Member Avatar for Begginnerdev
0
348
Member Avatar for TarkiB

Hi there, I've been learning C lately, and in one of the exercises I've encountered a bit of a frustrating issue. The exercise is to accept a string of characters that are answers to a multiple choice quiz, and then compare them to the correct answers which are in another …

Software Development c
Member Avatar for TarkiB
0
220
Member Avatar for kww228

I am stuck on trying to figure out a few questions. The questions are listed below. 1: Given the data below, design IA-32 instructions to find the octal string for X and save it in Y. .data X word 200 Y byte 6 dup (' ') 2: Given the data …

Software Development assembly
Member Avatar for kww228
0
259
Member Avatar for Kashaku

Hi. Sooner or later I had to go into the depths of C. Today was the day I tried my first things with C. However, I am having a problem although I do not know what actually causes it. The goal of the pogram is to combine the parameters into …

Software Development c
Member Avatar for Kashaku
0
158
Member Avatar for poojavb

Hello Friends, I want a small help... I have created a text box....a button and a date time picker control I have showed the calander control on click of the button event....when a value is selected in the datetimepicker the value should be showed in the text box... I have …

Software Development vb.net
Member Avatar for Mitja Bonca
0
248
Member Avatar for vinnitro

Hi friends, i was recently started writing a program on java needed for my practicals but as i started i found an error which deletes last element of queue actually i want to delete first element of queue anybody can solve it import java.util.*; class VQueue { int size; int …

Software Development java queue
Member Avatar for vinnitro
0
178
Member Avatar for cheiL

I'm working on a *soap message *to send to a client system. I must use the client's predefined data types specified on their soap to send my message. Theres alot of arrays and enumerators used and my code gives the following error: > Error 1 Cannot implicitly convert type 'UpdateRatePs._Default.Rate.AvailAppType' …

Software Development data-structure
Member Avatar for cheiL
0
265
Member Avatar for CelestialTeapot

Hi, I am trying to create a simple program to rename a bunch of files #include <stdio.h> int main(){ int count; for(count = 1; count <= 95; count++){ if(count >= 10){ system("rename \"C:\\wamp\\www\\anime\\kenshin\\Rurouni Kenshin - %d.mkv\" \"%d.mkv\"", count, count); } /* For the episodes that have 0 before the number …

Software Development c
Member Avatar for CelestialTeapot
0
156
Member Avatar for while(!success)

Hey, guy I'm having some trouble with my function see below: bool tryAgain() { char answer; cout << "Do you want to enter another number? (Y/N): "; cin >> answer; answer = toupper(answer); while(answer != 'Y' || answer != 'N') { cin.clear(); cin.ignore(10, '\n'); cout << "Input invalid." << endl; …

Software Development c++
Member Avatar for while(!success)
0
170
Member Avatar for Gazzmonkey

Hi, this does compile but I only want results that have the same amount of characters as the input! Can anyone shed some light on this as I can't figure it out myself! thanks. import re # opens a .txt file and searches for matching letters in words that are …

Software Development python
Member Avatar for TrustyTony
0
153
Member Avatar for codemonster

I found an error in my c++ textbook and I can't find a way around it without re-writing the author's stuff completely. An error pops up when I don't use parentheses in the expressions that I enter. "Expression: string subscript out of range" is the error. Again, this is the …

Software Development c++
0
88
Member Avatar for BeeKeeper18

Right guys, I'm really new to this but I'm getting along ok, but I've hit a block. I need to be able to know how to search a text file in VB for a particular line and then display it. the files I'm trying to use are set up as: …

Software Development vb.net
Member Avatar for BeeKeeper18
0
3K
Member Avatar for Rasool Ahmed

Hi guys, what's up? Is native applications familiar to you? I'm right now building an anti-virus, and as you know the viruses can be active or passive, the passive is easy to remove but the active , well.... it's hard to remove but I finally found the solution is by …

Software Development c++ session windows-virus
Member Avatar for mitrmkar
0
704
Member Avatar for mkaynutty

I am having trouble formatting my output into columns. Some of the the names are longer than others so it pushes the whole line out instead of lining up evenly. I cannot use the printf function, we haven't learned this in class yet, I'm only familiar with setw and setfill. …

Software Development c++
Member Avatar for mkaynutty
0
190
Member Avatar for DavidKroukamp

Hey all, I have been busy building my own chess game and as of now im a bit stomped. Well you see i have an object Board, this object will be initiated and it will create a new frame with various panels one of them being the panel which holds …

Software Development gui java java-swing
Member Avatar for JamesCherrill
1
247
Member Avatar for solahere

hello Folks, I would really appreciate if I could get some help on this. I have an Integer lets say number = 12345 I want to get a string out which is 12,345 so basically puts a commas after every three digits... the number of digits in the number can …

Software Development java
Member Avatar for micahli123
0
3K
Member Avatar for 4evrmrepylrning

Help needed please. Desperate. I have a 3.somethingGB file that contains records that looks like this: [ICODE]<tag> <number>1</number> <info>blah blah</info> <more>Lorem Ipsum</more> <anothertag>The quick brown fox...</anothertag> <id>32444</id> <yetmore>blah blah</yetmore> </tag> <tag> <number>2</number> <info>qwerty</info> <more>yada yada qwerty</more> <anothertag>yada yada qwerty</anothertag> <id>32344</id> <yetmore>yada yada qwerty</yetmore> </tag> <tag> <number>3</number> <info>yada yada qwerty</info> <more>yada …

Software Development python
Member Avatar for Gribouillis
0
277
Member Avatar for saleem.mukhtiar

dear friends i want to filter data by date ... see the attach pictures, after using where clause i receicve 0 rows :(

Software Development vb.net
Member Avatar for adam_k
0
98
Member Avatar for reds8

How to insert more than one rows of data to Access?? All my textboxes are created during runtime and I want to add the text in textboxes to database. some times i want 3 rows and some times maybe 10 rows This is the code to create textboxes. [CODE] For …

Software Development vb.net
Member Avatar for adam_k
0
151
Member Avatar for maxwellp

I have written the following code to return True if the list has any repeating elements and False ow [CODE]def has_repeats(L,newlist = None): if newlist == None: newlist = [] if len(L) == 0: return False if L[0] in newlist: return True else: newlist.append(L[0]) has_repeats(L[1:],newlist)[/CODE] It is not returning True …

Software Development python
Member Avatar for TrustyTony
0
165
Member Avatar for toomutch

Hi All, I need to show a map, plotting addresses that are held on a sql database. Has any one come across any software suitable for this task (i.e. can be built into vb.net). I have tried using MS MapPoint, which according to the write up says it will do …

Software Development vb.net
Member Avatar for toomutch
0
192
Member Avatar for ThomsonGB

Without the complete context to summarize: [CODE] #include "stdafx.h" #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <objbase.h> using namespace std; BYTE* StringToGUID(LPOLESTR szBuf) { GUID *g = (GUID *) malloc( sizeof(GUID)); HRESULT h2 = CLSIDFromString(szBuf, g); return (BYTE*) g; } [/CODE] I Get: 1>Linking... …

Software Development c++ microsoft visual-studio
Member Avatar for ThomsonGB
0
2K
Member Avatar for mehnihma

I need to find a word in JTextArea and highlight it, can you help me with this code? [CODE]class managerClass implements ActionListener { @Override public void actionPerformed(ActionEvent e) { String myWord = txt.getText(); Highlighter h = textArea.getHighlighter(); if (e.getSource() == bFind) { pattern = Pattern.compile("\\b"+myWord+"\\b"); Matcher matcher = pattern.matcher(myWord); while( …

Software Development java
Member Avatar for peter_budo
0
5K
Member Avatar for infogirl

I have written the program which fills an array of structures and then writes that array to txt file. The problem is that my program terminates in unusual way on windows vista command prompt line but dev-C++ shows no errors when compiles. I think that is related with the number …

Software Development c++ file-system ios windows-vista
Member Avatar for triumphost
0
233
Member Avatar for Andy90

How to create and dispose the same object? I have created a form with button, on button click even I create a object and by clicking on same button I dispose the object! I m able to create a object but not able to dispose the same object. How to …

Software Development
Member Avatar for Andy90
0
187
Member Avatar for zachattack05

I'm sure I know the answer to this, but I just want to double check because I'm doing some debugging and I want to rule this out. If I set the value of a variable with something like [ICODE]bool MyValue = MyMethod();[/ICODE] and initially the return value of MyMethod is …

Software Development
Member Avatar for zachattack05
0
143
Member Avatar for saleem.mukhtiar

Hello friends. that's gr88 that you people help out alot. My senerio is .. i made data grid form ..where i want ... when i double click on a Invoice no ... or Row in datagrid .. invoice open in new form where i can edit delete, or other opraitons …

Software Development vb.net
Member Avatar for saleem.mukhtiar
0
205
Member Avatar for BryantFury

Hi im currently doing some work with arrays and ive been working on this program. The goal is a user can add up to three products. Each product will have a name, model number and price. Once all is entered a list will pop out showing all the products with …

Software Development c++
Member Avatar for BryantFury
0
129
Member Avatar for london-G

Hello, I have created a game in java and I would like to insert enemies. For now I placed them on plaftforms that I made invisible. How can I have the enemy on its own?

Software Development java
Member Avatar for london-G
0
87
Member Avatar for poojavb

Hello Friends, I want to calculate the instance of * in the text file.... but I am not able to do it.... can anyone tell me which file funtion to use for it... I first tried to read the file --- its just one line file then see if the …

Software Development vb.net
Member Avatar for Mitja Bonca
0
198
Member Avatar for huskarit

HI everyone! Please help! HOw to make a loop wait until a button is click...??

Software Development vb.net
Member Avatar for Reverend Jim
0
4K
Member Avatar for kevinyu

I've encountered this error while adding an image to the database. (column's data type is not binary, but image) error message is attached on this post. this is my code for adding images to DB. [code] byte[] ins = GetBinaryFile(txtDIR.Text); int x = 1; string comm = "INSERT INTO pictable …

Software Development
Member Avatar for Mitja Bonca
0
280
Member Avatar for mehnihma

Can you help me with this code, I need to find a word, but it only finds first word, how to find multiple words? [CODE]lass managerClass implements ActionListener { @Override public void actionPerformed(ActionEvent e) { String myWord = txt.getText(); Highlighter h = textArea.getHighlighter(); String searchArea = textArea.getText(); if (e.getSource() == …

Software Development java
Member Avatar for mehnihma
0
163
Member Avatar for kubaikev
0
58
Member Avatar for realoneomer

Hello Perl Guru's I am playing with two text files using perl but i have been end up after a one day effort and got nothing there fore i have decided to post some thing here for help well here are some details that what actually i want to do …

Software Development perl
Member Avatar for naieev
0
467
Member Avatar for creative_m

I am trying to compile NeHe code for win32 app in visual studio 2010. but this error appear: [CODE]cannot convert parameter 2 from 'const char [29]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast[/CODE] to these instructions [ICODE] if (!wglMakeCurrent(NULL,NULL)) // Are …

Software Development c++ opengl visual-studio
Member Avatar for creative_m
0
393
Member Avatar for Nawaf15

Hi everyone, I have written this code which can find the square root of a positive number using newtons method. The code below describes it all. Now, I just need to know how can I show each iteration of the loop? like I wanna out each iteration until the final …

Software Development c++
Member Avatar for Eagletalon
0
367
Member Avatar for Kob0724

I'm not sure if this is the best place for this thread, but it's the best I could come up with. I'm using a QT Style Sheet to style a radio button like this: [CODE] QRadioButton{ background:#5F7536; color:#CBF57D; font:bold; } [/CODE] It works fine except that in addition to changing …

Software Development c++ qt
Member Avatar for naresh4230
0
3K
Member Avatar for huskarit

Hi everyone! i try to make a regualr expression format to validate phone number at this format: (555) 555-5555 [CODE] Dim IsPhoneValid As New System.Text.RegularExpressions.Regex("^/([0-9]{3}/)*[0-9]{3}*[0-9]{4}$")[/CODE] but it doesn't not work....somebody helps me out..

Software Development regex vb.net
Member Avatar for Jx_Man
0
184

The End.