43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for denniskhor

My question is :' if my "[2009'07'12 @ 22'49'47] main page.jpg" store in "C:\image folder\", but the timestamp [2009'07'12 @ 22'49'47] will be inconsistent, so i wan use behind "main page.jpg" to find "[2009'07'12 @ 22'49'47] main page.jpg", and print the link like "C:\image folder\[2009'07'12 @ 22'49'47] main page.jpg" as …

Software Development python
Member Avatar for denniskhor
0
227
Member Avatar for bnekolny

Hello, So I've got a code where I'm wanting to make sure that there is nothing in this class variable "finalgrid". To do this I've got an if statement: [code]if(canvas->finalgrid) OR if(finalgrid)[/code] Sorry for the confusion with the two statements, but I'm working on modifying one project to fit in …

Software Development c++
Member Avatar for bnekolny
0
107
Member Avatar for nanchuangyeyu

Hi, I am a C++ newbie and had never written even a very simple C++ class before. Now I intend to do such a job. My objective is quite simple, a matrix class with the following features is just OK: [COLOR="Red"]1. The object of such a class can be initialized …

Software Development c++ ios objective-c
Member Avatar for Ancient Dragon
0
388
Member Avatar for b89smith

I have a few computers one acts as a server and the rest are clients. They are all on the same LAN. I need to write a program that when I enter data into one of the clients it sends it back to the server which is constantly listening. The …

Software Development c++
Member Avatar for b89smith
0
99
Member Avatar for emilio

how can i compare between two objects using getType method i want to know if two objects are from the same class or from the same base class

Software Development
Member Avatar for serkan sendur
0
111
Member Avatar for adelphe

Sorry for all the trouble. Fixed it cus of some stupid mistake. thanks for the time.

Software Development c++
Member Avatar for adelphe
0
96
Member Avatar for nccsbim071

Hi, Recently i have been creating a Generator. That extracts all the names of the tables from the database tables and generates the class file for each of the tables in the database. I have successfully extracted the names of database tables and their corresponding column names with thier data …

Software Development asp.net sql
Member Avatar for sknake
0
405
Member Avatar for kimbula...

I want to validate a textbox so that only numeric values can be inserted in to it. This validation should done while user enters the values. For example. Consider following keys had been pressed in a sequence 12345abcd678 only numeric values should appear in the textbox so value which should …

Software Development vb.net
Member Avatar for kimbula...
0
144
Member Avatar for SubProf

Hello Everyone, I have a timer that starts when a button is clicked on Form1. When the time elapses Form2 appears. On Form2 I want to stop the timer and restart it from a button on Form2 however the timer does not stop. Here is my code for Form1: [code] …

Software Development
Member Avatar for SubProf
0
126
Member Avatar for sravan953

[CODE]import time import subprocess #TweetDeck a=15 print "Opening TweetDeck...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\TweetDeck\TweetDeck.exe") #Rest period print ("\nWaiting...") time.sleep(5) #Firefox a=15 print "\nOpening Mozilla Firefox...\n" while a>=0: print (str(a)+" seconds remaining...") time.sleep(5) a-=5 subprocess.call("C:\Program Files\Mozilla Firefox\firefox.exe") [/CODE] Hey guys, I used the above code to …

Software Development python
Member Avatar for zachabesh
0
298
Member Avatar for daviddoria

The problem is on the "MyIter = " line: [code] class OrientedPoint { .... class variables ... std::map<std::string, double> DoubleValues; ..... bool OrientedPoint::getDoubleValue(const std::string &ValueName, double &Value) const { std::map<std::string, double>::iterator MyIter; MyIter = DoubleValues.find(ValueName); [/code] The error produced is: [code] In member function 'bool OrientedPoint::getDoubleValue(const std::string&, double&) const': error: …

Software Development c++
Member Avatar for daviddoria
0
6K
Member Avatar for emint

Helo every one i m trying to update record to ms database using vb.net. but i m getting error message. pls help me where i made mistake. here is my code. [code] Dim da As New OleDb.OleDbDataAdapter("SELECT * From tblCustomer", strPath) Dim cb As New OleDb.OleDbCommandBuilder(da) Dim ds As New …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
89
Member Avatar for daviddoria

Is there a way (without overloading) to call a function like this [code=cplusplus] GetValue("one"); //AND std::string test("one"); GetValue(test); [/code] The function is simply: [code=cplusplus] int GetValue(const std::string &MyString) { return MyMap[MyString]; } [/code] This overload does the job: [code=cplusplus] int GetValue(const char* MyString) { return MyMap[MyString]; } [/code] But that …

Software Development c++
Member Avatar for daviddoria
0
114
Member Avatar for zeus1216gw

I'm trying to get a GCD of 2 numbers. which I can do and it works fine. however I want to return one of the values based on the function I wrote. however it returns both. I know why because I wrote it that way just to get something down. …

Software Development c++
Member Avatar for zeus1216gw
0
111
Member Avatar for kakakon

Hello, I have a Tree that consists of TreeNodes, where TreeNode is public class TreeNode { private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; } I also have a HashMap <String, TreeNode> that keeps the label of …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for khotso

at school,I was given the class aName and asked to overload the input operator.the class has declared surname as type of char* and the surname is input from the keyboard and it must not be empty.please help me with the code.the class has declared the operator as its friend

Software Development c++
Member Avatar for Ancient Dragon
0
92
Member Avatar for akulkarni

i am not getting the desired output(the contents in a text file which i have saved in the jdk bin here is my code i got. Also what is return in the try catch block i wanna know. it says file not found [code] import java.io.*; class FileDemo { public …

Software Development java
Member Avatar for akulkarni
0
264
Member Avatar for sumeetdesaeee

I recently appeared for the entrance of cdac. There I found a lot of questions about postfix.(I know the postfix operator commonly used in c.But it wasn't that way.) Sample question:- Wat will the expression ABC AB AC will become after postfix operation?? Please tell me how to deal with …

Software Development c
Member Avatar for Dream2code
0
204
Member Avatar for pbt

I have to do project on the c++ in dev c++ using gcc compiler for windows version. But, i am unknown to windows programming since, i have done project on 16 bit environment using turbo c. Due to many projects on php and other class assignments and lab reports. Therefore, …

Software Development c++
Member Avatar for pspwxp fan
0
112
Member Avatar for sana.khatib20

hi i am trying to create a application for doctors n have to enter all the information regarding the patients i am using access as the database n nw the problem is tat the doc is supposed to save the patient details n when he opens it again he shld …

Software Development vb.net
Member Avatar for Piya27
0
97
Member Avatar for ypdev

Hi All, In the below code I take a string and split it, then assign it to a "Label" object. On my computer it works great but when I "Publish web site" I recieve the .NET error messages "Object reference not set to an instance of an object" and "Index …

Software Development vb.net
Member Avatar for ypdev
0
213
Member Avatar for turbomen

Dear Sir, I have got confused to the real / integer. Would you mind helping to express it to me? I have got the answer of the following question: Write a menu system for the currency exchange program. My menu could look like this: Exchange rates How much money would …

Software Development pascal
Member Avatar for turbomen
0
209
Member Avatar for nccsbim071

Hi, is there any difference between accessor written as get { } get;

Software Development c c# c++
Member Avatar for nccsbim071
0
90
Member Avatar for NathanOliver

hi narue i would like to ask if this method should be called after ever cin statement? the reason i ask this is that if i write a program and i have 2 [icode] cin >> text; [/icode] statements then at the end before my [icode] return 0; [/icode] i …

Software Development c++
Member Avatar for NathanOliver
0
127
Member Avatar for javaAddict

Hi all, I am having problem with openCV: I am using Microsoft Studio 2008 From this lnk: [URL="http://sourceforge.net/projects/opencvlibrary/"]http://sourceforge.net/projects/opencvlibrary/[/URL] I downloaded the [U]OpenCV_1.1pre1a.exe[/U] for windows and installed it. I have been searching ways to include the libraries installed but the instructions don't seem to match my VS version? So after creating …

Software Development c++ visual-studio
Member Avatar for h.sileem
0
445
Member Avatar for lancevo3

Been working with operator overloading for the first time and am running into quite the standstill with this one. I finally got rid of the code I had written and decided to start from scratch. If anyone has any advice on how to code this for me it be a …

Software Development c++
Member Avatar for lancevo3
0
156
Member Avatar for zachabesh

Hey all, Trying to execute a command line from python. Here's some code: [code] class EncodeJob: def __init__(self,asset,recipe): self.asset = asset self.recipe = recipe self.original = self.asset.fullPath self.stdout = None self.stderr = None self.flv = os.path.normpath(self.recipe.configs['Flv Path'] + '/' + self.asset.filename.split('.')[0] + '.flv') self.thumb = os.path.normpath(self.recipe.configs['Thumb Path'] + '/' + …

Software Development python
Member Avatar for zachabesh
0
186
Member Avatar for sonia sardana

1) Diff b/w nothing & string in terms of variable declaration. 2)Erase keyword. I have never heard of such keyword in mine whole 1 + yrs of exp. 3) Diff b/w functions & properties? I say,Functions return a value,But propertiesare used to set or get the values. He say properties …

Software Development vb.net
Member Avatar for sknake
0
266
Member Avatar for denniskhor

My question is : x = "you love me" Inside 1234.txt file: i love you you love me we love you If i wan IF x == "you love me" from 1234.txt, THEN x is true. how to do it? any one can help?

Software Development python
Member Avatar for zachabesh
0
453
Member Avatar for joe82

Hello everyone, My file had 12 columns, I want those lines in my file where numbers in columns 9 and 10 includes digit "101". For example : i am giving 3 lines of my file: ( columns to focus are colored green). NM013123 14-74726235 100.00 18 0 0 11 28 …

Software Development python
Member Avatar for joe82
0
107
Member Avatar for dp_neo

Hi, I have a script that pulls data off the web based on data in a text file. The text file and script are in the same directory. The values from the script are read into a list. The list is then used in some conditional statements. The text file …

Software Development peer-to-peer python
Member Avatar for dp_neo
0
92
Member Avatar for nishant52

I'm retrieving a list of names from MySql database in Java using JDBC with the help of CachedRowSet. After retrieving the list I'm appending a counter value to every name. Finally I'm updating the modified names in the database. I'm using: MySql: 5.1 Connector/J 5.1.7 JRE 1.6 Win Xp SP3 …

Software Development java
Member Avatar for nishant52
0
409
Member Avatar for emarcel

Hi Guys, I've got a small issue passing the string from command line parameter into the variable within the script. An issue is when the parameter contains an equal mark in the string that brakes the line and the everything after an equal mark is missing. See an example: script.bat …

Software Development shell-scripting
Member Avatar for hkansal
0
77
Member Avatar for walter clark

Why can't I declare this near the top of the Form1.h file... int trackArray[4][999]; It strikes error C4368; something about mixed type. What is mixed about the types? Walt

Software Development c++
Member Avatar for Ancient Dragon
0
130
Member Avatar for tig2810

Hi I have a problem with a console app. It will not run methods in sequence but rather runs them all at the same time? I have put some example code below. The problem is it will run the methods below at the same time, without waiting for the frs …

Software Development
Member Avatar for sknake
0
127
Member Avatar for bryan69

hi, i would like to design an intrusion detection system-type of software. is it best to use Java for it?

Software Development java
Member Avatar for bryan69
0
147
Member Avatar for atch

Hi, I'm quite new to C++ and I'm trying to write a function which would change uppercase letter in char[] to lowercase. Inside this function everything is fine but when I leave it, contents of char[] is not changed. Any ideas why? Also when I try to delete local pointers …

Software Development c c# c++
Member Avatar for atch
0
131
Member Avatar for shealy

I have 2 binaries - a java binary that requests a microsoft word doc from a c++ binary. The C++ binary opens the word doc in binary mode, reads x no of chars and returns chars to java binary. Java binary eventually receives all data and writes data using filestream …

Software Development c++ microsoft
Member Avatar for Krushnat
0
549
Member Avatar for dumrat

Hi, I am so frustrated by this error and I don't know how to solve it. Hope someone helps! I have a dynamic lib (Call it D) which is loaded at runtime with the dlopen() function inside a static lib (Call it S). There is a header file that contains …

Software Development c++
Member Avatar for tux4life
0
118
Member Avatar for S2009

Hi all, I am developing a windows application. I have 3 forms: I want to change the backcolor of all the 3 forms to the color selected by the user. I have used the following code I am able to change the backcolor but When I exit the application and …

Software Development
Member Avatar for S2009
0
152
Member Avatar for yassar

Hi, I am building a web application in c#using visual studio 2008. I want to embed a calendar in a combobox, so that when combobox is clicked a calendar will pop up and user will be able to select a date.

Software Development visual-studio
Member Avatar for yassar
0
147
Member Avatar for plusplus

I used the multimedia control, and it worked great. But when installing my project, it did not work on all computers. (When trying to run it on some computers, it said, there was a problem, and it shut down the program) What could be the reason for this? Do you …

Software Development microsoft multimedia vb.net
Member Avatar for plusplus
0
201
Member Avatar for FJones

Hello everyone. I'm new here and I am still in the beginning stages of learning C#. I am trying to write a program for school that calculates exponents but I have to use a loop. Then I have to prompt the user if they want to enter some more numbers. …

Software Development
Member Avatar for ddanbe
0
103
Member Avatar for hardik.rajani

My Spring.xml is something like this: [CODE] <beans> <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="_local-mail-server_" /> </bean> <bean id="businessLogic" class="com.logic.BusinessLogicImpl"> <property name="mailSender" ref="mailSender"></property> </bean> </beans>[/CODE] And bean definition is as below: [CODE] import org.springframework.mail.MailException; import org.springframework.mail.MailSender; import org.springframework.mail.SimpleMailMessage; public class BusinessLogicImpl implements BusinessLogic { private MailSender mailSender; public void setMailSender(MailSender mailSender) …

Software Development java xml
Member Avatar for hardik.rajani
0
3K
Member Avatar for brieghz23

VB Code About Closing 2 or more forms pls.. Ex: Unload me (close the current or 1 form) what about closing 2 or more forms..?? can anyone help me? pls.. thanks..

Software Development visual-basic
Member Avatar for vb5prgrmr
0
80
Member Avatar for OwenRoberts

Hello DaniWeb! My first post to you. I have a question about an undefined reference error I am getting. Currently I am studying from Dietel and Dietel C++ How to Program 4th ed, and on page 421 of chapter 6 I am working on the program they have in the …

Software Development c++
Member Avatar for jesseb07
0
387
Member Avatar for apease11

This belongs in both C and C++ forums, but it's more of C++ (I think) so I'll keep it in here for now. I'm working on a C++ program to extract files that I am constantly compressing and testing (releasing software for beta testers to take a look at). I …

Software Development c++
Member Avatar for apease11
0
175
Member Avatar for joananon

Hi everybody! I don't know if this is possible to do, but here goes: Hi have a program where I have several lists. Let's call them l1, l2, l3, l4. Often in the code, I need to delete a certain item from 2 of the lists I have. I thought …

Software Development python
Member Avatar for joananon
0
138
Member Avatar for BestJewSinceJC

After a little research I discovered some Calendar methods that were pretty nice. [CODE=Java]Date date = new Date(); int daysSinceSeen = - ( rand.nextInt() % 365 ); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DATE, daysSinceSeen);[/CODE] How could this code be returning a date in 2010? Do I have a bug that …

Software Development java
Member Avatar for BestJewSinceJC
0
107
Member Avatar for Pokenerd

Hi - I'm writing a program the changes what you cut and paste. One problem is that it doesn't delete the text you cut... This is the function i'm using to delete text.. [code=csharp] //Deleting selected text public string deleteSelected() { string ret = ""; string str = textBox1.Text; MessageBox.Show(str); …

Software Development
Member Avatar for Ancient Dragon
0
93

The End.