43,549 Solved Topics
Remove Filter ![]() | |
Hi, I'm trying to match patterns of the types sentence1 = "keywords=walter&keywords=scott" sentence2 = "keywords=john&" sentence3 = "keywords=james&keywords=john&keywords=brian&" so basically the keywords=somestring& part can be repeated once or multiple times. I am trying to extract the string(s) between '=' and '&'. I have come up with the following so far. … | |
I am trying to minimize the form to system tray. I have written a piece of code. But the only problem i am facing is that when i try to restore the window from system tray. Win Form appears in taskbar but has lost focused means it doesnt appear on … Software Development perl | |
Hello! Thank you for watching.. :) How is it possible to loop a sound without a delay inbetween?? I need a few sounds, about 100, loaded into the memory, all ready to play, And loop, without a delay inbetween. How is this possible in delphi?? I don't want to play … | |
Hello there! This is my first post so I'd like to say hello to everyone on the forums! Anyway, I am coding a hangman game. I read my words from a text file with ifstream, then I randomize a word and I set the string "sSelectedWord" to the randomized word. … Software Development c++ | |
![]() | Actually i want data from database in DataGridView, OnLoad of Form. I have write this code but this is not working. I have checked that connection established correclty and query is also wrtie but where is problem? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using … Software Development open-source ![]() |
Hi , i want to write a file to C:\\Program Files\\ using c# Here is what i have [code] string currentsnap = "C:\\Program Files\\currentsnap.txt"; commandtorun("route print > " + currentsnap); [/code] command to run funtion is given below [code] private static void [B][COLOR="Red"]commandtorun[/COLOR][/B](string commandexecuted) { string currentstatus; ProcessStartInfo startInfo = … Software Development | |
Hi, i have to sort two arrays in a specific way. I have two parallel arrays A[N] and B[N]. Ι have to sort A in descending order. The changes in A should be happened in B at the same time. If 2 or more items in A is the same, … Software Development c++ | |
hi guys, can i ask how do i check for validation for my username field if last letter must be an alphabet? the username is in the format of 7digit + alphabet i had successfully check for the first 7 digit using isnumeric substring 0,7 but i have no idea … Software Development vb.net | |
hi there, wanna ask for your help guys, i know how to connect MS Access to Visual Basic, now, my problem is that, how can i connect MySQL to VB 6? could you give me some helpful code.. i have MySQL 5, MySQL Connector, MySQL ODBC installed in my computer.. … Software Development mysql visual-basic | |
Hi, whilst reading a book on Java, I came across a bit where the author used [CODE] GregorianCalendar now = new GregorainCalendar(); [/CODE] And I was just wondering, is that any different from [CODE] Calendar now = Calendar.getInstance(); [/CODE] And if so, why did he use GregorianCalendar instead of the … Software Development java | |
Hi, Ive got a similar problem, it seems a run of the mill thing to break a string into tokens yet its kept me head scratching for days, is there another option or is it a simple code tweaking problem. Fairly new to C/C++ but ive been coding in C# … Software Development c++ | |
Hi I am trying to make a nursery registration form for an assignment at uni and have hit a stumbling block. I have written the functions but dont really know what to declare them as. Could anyone help. [CODE]#include <cstdlib> #include <iostream> #include <fstream> using namespace std; int menu(); //creating … | |
hi every one this is the Project requirements i did the first three things but i have problme with number 4 You are hired by an electronics company aiming to build microwaves. You are asked to develop an application that simulates the work of these microwaves. Consider the following specifications: … Software Development c++ | |
Hi again, I have a class that is supposed to match different people of different genders together under different rules. For example, they are supposed to live in the same postal district. The problem is Java seems to be mismatching people, and I think its because it isn't comparing the … Software Development java | |
[CODE] FileReader readKGN = new FileReader("KGNLibrary.txt"); int KGNLib = readKGN.read(); readKGN.close();[/CODE] i dunwan read it as int.. because i wan use it on IF, so i need it to compare wat i input string item into text area with text file inside string item. [CODE] if (POS[i].equals(KGNLib)) { jTextArea2.append((POS[i] + … Software Development java | |
This simple code is producing weird output. I write a line and press enter, it echo's the line...well, supposed to...Because, sometimes, it is not showing. In code blocks, i can assume that when the program is returning zero the program is terminating correctly. I tried to figure out, when it … Software Development c | |
i have this part of my link list program [CODE]template <class E> LinkedList<E>::node * LinkedList<E>::getNode{ ... ... }(const E &item) [/CODE] and my compiler, bloodshed dev c++, says expected constructor, destructor, or type conversion before "*" token expected ";" before "*" token i don't think there is an syntax error … Software Development c++ | |
i've written a game board currently but its minimal. i draw the board and then i've added two labels that i've postiioned off to the right side with setlocation. I dont know that set location will work as i add more controls so i'm looking for a better way. currently … Software Development java | |
i have created executable jar file for my program pedit.java as follows jar cvfm pedit.jar manifest.txt images *.class splash.gif where images is a directory where the icons for toolbar are there,as my program is a editor... my problem is that when i run the jar file the application is loaded … Software Development java | |
Hello. I would like to open and read OO Writer. I used the script: [file = open('myfile.odt', 'r'] [lines = file.readlines()] [file.close()] [for i in lines: print i] I get some strange characters. I had write 'rb', instead 'r', but it did not work. I have copied a ODT file … Software Development python | |
Alright guys so I have a little problem with a nested list. so here is my list: [code=python] a = [[1,2,3], [4,5,6], [7,8,9]] #I know that I can do for example a[0][0] and that will return the first value in the first nested list but I don't know how to … Software Development python | |
[code] String filename = jfr.getTitle(); File fname = new File(filename); System.out.println(filename); if(filename.equals("untitled")) { System.out.println(filename); return; } else { System.out.println(filename+"+"); } [/code] when i run the above code though the filename is "untitled",the statements under both if and else are been executed... is there any wrong in it?? Software Development java | |
I am writing a C program that requires me to use a dynamically allocated struct which is defined as below. [CODE]typedef struct 513 { 514 char* word; 515 int freq; 516 }wordfreq;[/CODE] When I allocate the word field of this struct, I am allocating this dynamically as well (using strdup). … Software Development c | |
I am using line function to draw line in the picturebox from the x1,y1 to x2,y2. I can draw it, but I also want to write a string on top of the line. My application is drawing a cable across with corresponded voltage, Something like 110 ------------------------------------------- but the line … Software Development visual-basic | |
I have an Excel workbook containing named variables across several worksheets. In one of these worksheets I have a "run solver" button, which kicks off a VBA routine. The first thing this routine does is allocate values of variables picked up from the workbook to local variables inside the VBA … Software Development microsoft-office visual-basic | |
Hi All.. I am using MsFlexGrid in my program.. normally after I double click, enter value, KillFocus then press OK to close the dialog.. now I would like to add a message box once I enter value. Then I found out that, after message box prompt out and I click … Software Development c++ | |
I have attached that file. The sample of data are as below: PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005041 278.271074.5150 69.4035 08370074.1830 69.2755 083800254.1925290.4620083900254.5615291.010008400008390098.2710 74.3630 20.3943 278.27100.0211 15.5954 74.3726 278.2748 PUBLT 167_89 656 PB -38321.478 6807.984 657 PB DAUD 200005042 278.271074.4940 68.1425 08430074.1610 68.0010 084400254.1720292.1650084500254.5400292.315508460008450098.2710 74.3418 22.0833 … Software Development vb.net | |
I'm reading a whole xml file in as a string. Some of the Node values are directories, e.g. "C:\" When I print out the string, to make sure that the file has been read in correctly, I see that it has completely ignored the Nodes that have directories in them. … | |
Hello all, I am Lisa and fairly new to C++/MFC. For a class project, we are to develop any software of our choice and add as much functionality as possible. I have chosen to build a program similar to MS Paint since MFC has functions that makes building shapes very … Software Development c++ data-structure | |
hello my friends ... in C# Forms ( application form) my question is about the (DateTimePicker) is there any way to calculate the days between two different times which were entered by the tool DateTimePicker by an existing method or something else ... thank you in advance Software Development | |
I just started an advanced C++ course and my instructor sent around a file with this piece of code: [code]class smallobj // specify a class { public: smallobj() : iData(0){} // Constructor smallobj(int iInValue) : iData(iInValue) {} // Overloaded Constructor ~smallobj() {} // Destructor void setdata(int d) // member function … | |
Hello, I have in one textbox this values separated by comma: 2,4,5,6,7,8,9,0,2,0,2,3,4,5,1,2,3,4 In a new textbox I want only some portion of this vector, from the 7th position to the 15th. 9,0,2,0,2,3,4,5,1 How can I do this? Best regards! Software Development | |
Ok here is the new thread now could you help me JavaAddict? Please:icon_sad: Software Development java | |
i have been searching about how to create an executable jar file, [url]http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html[/url] by seing the above site i have created a jar file,while double clicking the jar file an error saying that "jar file couldnt be loaded check for possible console errors" is being displayed,i had tried by downloading … Software Development file-system java | |
i have written program for a text editor,how can i turn it into an application??? Software Development java | |
Hi experts I am supposed to design a VB application wherein the following requirement is needed: The user will select the type of software and information about who uses the software available in my database to be shown in flex grid. Now the user can choose one, two or all … Software Development database-design visual-basic | |
I try again in a new thread, the other went out of hand. I use this code line to create a n value. n = random.randint(0, 99), i use this n value as a lap index to my while loop. The loop is in a function called "def run(self)" in … Software Development python | |
I'm just wondering if it is possible to import a module as an object attribute. The basic description of what I want to accomplish is that I'm creating a software agent object. This agent will have a set of abilities (functions), but I don't know what these are ahead of … Software Development python | |
Hi all.. I had a part of code like below.. CPropertySheet oPropSheet("Page", NULL, 0); oPropSheet.m_psh.dwFlags |= PSH_NOAPPLYNOW; oPropSheet.m_psh.dwFlags &= ~(PSH_HASHELP); oPropSheet.AddPage(&oPropSettingCriteria); oPropSheet.AddPage(&oPropAdvancedSetting); if(oPropSheet.DoModal() == IDOK) { } ... now I would like to hide or disable OK button..just left only CANCEL button there.. I tried using oPropSheet.GetDlgItem(IDOK)->EnableWindow(FALSE); but will have … Software Development c++ | |
Hi; I have made a MCQ based game in Visual C++ using MFC. It runs fine but it shuts down when some key is pressed unintentionally. Like, if you click the options with mouse click, it works fine but even if you press ENTER key during the game, it quits … Software Development c++ | |
Hi, it's me agian... I was asked to do reasearch on how to upload a txt file's data into a MS SQL Database (corresponding columns etc.) I've searched a bit on the internet but don't find what i'm looking for... I just want to ask does anyone have an idea … | |
Hi, Iam very new to XSLT and XML. I am trying to invoke a javascript function from inside my xslt documen. The javascript snippet is as follows: [CODE] <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="urn:custom-javascript" exclude-result-prefixes="msxsl js" > <msxsl:script language = "JavaScript" implements-prefix = "js"> <![CDATA[ function compareCsvs (firstString,secondString) { var firstArray=firstString.split(","); … | |
Hi, My application needs to run without any window poping up. Also the application needs to detect the shutdown from computer. Based on the input from this forum, i have used a form in the appliction. But i want this form to be hide from the user. Is there a … Software Development display | |
I have made a program to the follwoing problem:- [QUOTE] Another chessboard puzzle (this one reputedly solved by GAUSS at the age of four) is to find a sequence of moves by a knight that will visit every square of the board exactly once. Write a backtracking program that will … | |
Hi,there, assert pop == "berg", "Item removed from the stack was not \"berg\"." why using '...' can avoid syntax error ? Thank you :) Software Development python | |
Hello, Web programmer in need of some windows app help. I have a simple little program that copies files from drive X to drive Y, and dumps the success/failure messages into a multiline textbox. The problem I'm having however is that the textbox does not update until all the copy … Software Development | |
This might be a bit of a silly question and I should probably know this anyway. I have tried searching for it but I have not found anything on this subject(or the more plausible reason, I have not been searching for the right things since I don't know much about … | |
Hi, i need to know which is better in vb.net... BindingSource( such table adapter and etch..) or Hardcode( such as parameters,sqlcommand,sqlconnection that all your codes are programatically done)?.. Which is Which?:confused: Software Development vb.net | |
What is the benefit of a bool property that just gets and sets a bool? I know the benefit of only a get property or decisions that need to be made before you set a bool. I've seen examples using just get/set. I don't get it. What harm could making … Software Development | |
my first asp.net project, using vb, and vs2005. i started a basic web project, added a web form, default.aspx. as the project progressed to keep a reference to how far i got, some samples etc, i would copy the original default to default2.aspx, default3 etc. i got up to default5, … |
The End.