132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tom_Krajci

Please see attached XML file. I am using the XPATH expression getValueXPath() in JavaScript to extract one value from an XML alert message - to control a robotic telescope. I need to extract the value for Dec, a coordinate location in the sky that is a child of <WhereWhen> The …

Software Development data-structure xml
Member Avatar for Tom_Krajci
0
101
Member Avatar for XO39

Please be easy on me and don't shoot me as I'm still newbie. I'm totally confused and can't for life figure out why when I run this code: [CODE]y = 9; cout << "++y = " << ++y << "\n--y = " << --y << "\ny++ = " << y++ …

Software Development c++ first-post
Member Avatar for XO39
0
179
Member Avatar for roottybrian

Hi guys, Have been trying this out for sometime with no success. I want to be able to use pdf printing application like pdfprinter to print my vb reports to and then save the reports to a particular location on my computer. Anyone with an idea how i'd achieve that? …

Software Development pdf vb.net
Member Avatar for Reverend Jim
0
371
Member Avatar for rotten69

Hi everyone, I'm trying to do exercise from the book I'm reading at the moment. But, I don't seem to have understood the last part of the question. I'd greatly appreciate anyone explaining the question to me. I have done all parts of the question except the last one which …

Software Development java
Member Avatar for Philippe.Lahaie
0
259
Member Avatar for CE90

Hello every one...I have a project in which I must visualize different kinds of sorts in C by using GTK+ library. I mean it must show the numbers moving and getting sorted! I don't have any idea how to start and how to make the numbers move! I`ll really appreciate …

Software Development c
Member Avatar for Mouche
0
168
Member Avatar for MrEARTHSHAcKER

Hi, Has anyone any clue why message boxes keep showing 2-3 times after clicking one of their button in Borland? Please answer, I need help. Thanks!

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
92
Member Avatar for yeeitsneo

hi. can you please help me out with this program im writing. its a simple log in system written in vb6 . ms access is my database. i have a problem with connecting vb to access. heres the code: [CODE] /codes for module Public db As ADODB.Connection Public rec As …

Member Avatar for yeeitsneo
0
334
Member Avatar for myrongainz

btw this is a part of a battleship code i want to know what the integers a,b,c,d,e,f... do I know this has something to do with placing ships randomly but it is a little complexed for me. I'd appreciate it if someone took their time to explain it [CODE]int placeship( …

Software Development c++
Member Avatar for zeroliken
0
201
Member Avatar for mitrious

I have a node class that has a pointer to Node indicating its parent Node [CODE] class Node { . . . Node *parentNode; }; [/CODE] I receive a pointer to node in the constructor being the parent Node of the current node being created or a NULL value if …

Software Development c++
Member Avatar for deceptikon
0
5K
Member Avatar for SBA-CDeCinko

I can use this <%= Request.ServerVariables["SERVER_NAME"] %> to get the server name of the current page. How do I get just the last three characters? All I want is the dev or stg or org part.

Software Development
Member Avatar for thines01
0
78
Member Avatar for ddanbe

Short snippet on how you could remove all occurrences of a char from a string using LINQ.

Software Development asp.net
Member Avatar for ddanbe
0
1K
Member Avatar for QuickBooksDev

I have several programs that must write to [B]HKLM[/B] in XP and Windows 7/64 Pro. The programs work in VB6 but not in VB.Net 2008 on target machines. It does works on our development machine. Same exact windows. User is an Administrator. NOT using Run as. Both programs are using …

Software Development vb.net visual-basic
Member Avatar for QuickBooksDev
0
389
Member Avatar for auwi987

hello guys need some help, i need to generate id the problem is i cannot get the last row from database logical view DATABASE [U]tbloutlet[/U] PCSO20121 PCSO20122 [U][COLOR="Red"]PCSO20123[/COLOR][/U] NOW need to get "PCSO2012[U][COLOR="red"]3[/COLOR][/U]" select the last character '3' using mid after selecting '3' convert to int and add to 1 …

Software Development visual-basic
Member Avatar for debasisdas
0
133
Member Avatar for Plastico Bolha

Hi people, my doubt is it: How I do to a file if "auto-start" with the "Windows" ? I have this it done already: [CODE] aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run") aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_WRITE) SetValueEx(aKey,"name",0, REG_SZ, r"C:\name.extension") CloseKey(aKey) CloseKey(aReg) [/CODE] Thank you patience :icon_wink:

Software Development microsoft-windows python
Member Avatar for Plastico Bolha
0
68
Member Avatar for de.ICeman

Can anyone suggest book for beginner In EJB 3.0 Like Head first (there is Head first Ejb but its 2.0). Any suggestions would be appreciated.

Software Development java
Member Avatar for peter_budo
0
190
Member Avatar for J0hn30

Hello. I'm trying to create a software in VB.Net to disable the following from a Windows 7 pc. - Cut, copy, paste, rename, delete, open, print, share, create shortcut, open with, send to, properties. I want to give users the option of disabling them selectively/individually via checkboxes so those options …

Member Avatar for J0hn30
0
2K
Member Avatar for king03

any ideas how to solve this?: I am using Visual Studio 2008 for compiling c++ programs and when I press f5(which is at default, the start debugging button) the console window flashes for a bit and then closes, but when I click on start without debugging, the console window stays …

Software Development c++ visual-studio
Member Avatar for BobS0327
0
140
Member Avatar for freakybeavis

Admittedly I am only a beginner at playing with java but I'm pulling my hair out trying to understand something I thought would be easy, and it probably is. Trying to write code that randomly selects from 3 preloaded arrays and spits out the results. Mechanically the code seems to …

Software Development java javascript
Member Avatar for javaAddict
0
161
Member Avatar for Shodow
Member Avatar for Shodow
0
155
Member Avatar for LogicalOutlier

This program determines the grade average, raised grade average, of individual students and all students. The program takes scanner input. In the scanner, the number of students, the number of grades for each student, and the grades of each student are entered. Ultimately, I need to print out each student's …

Software Development java mathematics programming-construct
Member Avatar for hiddepolen
0
2K
Member Avatar for Zssffssz

Earlier when I came here I had only a minimal set of utilities and a WinXP comp.. Now i'm here and serious, with kubuntu (and Internet!!!!) and willing to learn all of that dd, mov, eax, and bochs stuff. Here is my delemia: I have a C++ Program, have no …

Software Development assembly c++ hard-drive
Member Avatar for Zssffssz
0
350
Member Avatar for lxXTaCoXxl

I've recently posted a code snippet of a working 2D text menu for Windows Forms Applications. However, as I was going through and revising this snippet (trying to make it better and add functionality to it) I've created two new problems. The first problem is that my text is not …

Software Development
Member Avatar for lxXTaCoXxl
0
158
Member Avatar for lxXTaCoXxl

XNA Game Studio is not required to use this functionality. This example is very basic, and I typed it up because I was bored. It does not contain functionality for navigation through the menu, but it will display the menu as it should at the specified location. Please enjoy it, …

Software Development
Member Avatar for lxXTaCoXxl
0
153
Member Avatar for bhallarahul

hello everyone i was writing a program which is used to convert pdf to text.it is work fine when i am convertin a simple paragraph or table into text but it gives error while convert another file which is send by other and contains 1000 's of pages can you …

Software Development java pdf
Member Avatar for bhallarahul
0
547
Member Avatar for TheQuestor

[CODE]<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="plugin.video.stagevu" name="StageVU" version="1.3.6" provider-name="AJ"> <requires> <import addon="xbmc.python" version="1.0"/> </requires> <extension point="xbmc.python.pluginsource" library="default.py"> <provides>video</provides> </extension> <extension point="xbmc.addon.metadata"> <summary>stagevu: Watch video</summary> <description>Watch what you have been searching on internet.</description> <disclaimer>The video add-ons hosted by my XBMC add-ons repository(aj add-ons) makes no warranties, expressed or implied, and hereby …

Software Development vb.net visual-basic xml
Member Avatar for GeekByChoiCe
0
304
Member Avatar for DezineGenerator

Here is code which i am using Please check it first [CODE] for(x=0; x<=y; x++){ if(a=x||b=x||c=x){ printf("Value =%d",x); } } [/CODE] In this code x is a base for the loop i want loop till y (variable). Now inside the loop i want to check a condition if x (variable) …

Software Development c++
Member Avatar for DezineGenerator
0
431
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Software Development java
Member Avatar for rotten69
0
340
Member Avatar for Suzie999

Hi I have a function I use in a win32 dll which downloads the source of a web page to file. The primary windows function used in it is "URLDownloadToFile" in "urlmon.h" But I would like to have a function that downloads directly to a string or char array. I …

Software Development c++
Member Avatar for thines01
0
149
Member Avatar for jone kim

grid = [[0,0,0][0,0,0][0,0,0]] user fills the gird simultaneously. Now I want to make a list of empty squaes of the gird. Suppose user has filled: grid [col1][row1] , grid [col3][row1], grid [col3][row2]. Now I need a list with indexes of the empty list i.e. emptyGrid = [1,2,4,5,7,8,9] First I've to …

Software Development python
0
113
Member Avatar for scheppy

I have a grid of 225 JButtons in a 2d array of 15 x 15 I was windering do i need 225 if (event.equals (Grid[0][1])) { } or is their a loops or something, thanks in advance

Software Development java
Member Avatar for scheppy
0
372
Member Avatar for rfrapp

I'm writing a program that adds two hexadecimal numbers of up to ten digits. I'm trying to use the POW function, but for some reason it's underlined. Why is that? [CODE] // hex addition.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <iostream> #include <string> …

Software Development c++ mathematics
Member Avatar for LRRR
0
586
Member Avatar for Luxifour

Hey everyone, How would you go about creating a loop for taking user input without knowing beforehand exactly how many times it will run - as I can't seem to work out how to generate a unique name each time. So, for instance, say you want to take user input …

Software Development python
Member Avatar for Luxifour
0
189
Member Avatar for roshurwill

Hi everyone, recentley new to programming and the language python. So ive learned an amount of python, i decided to start a projct. My project is to make a game, which the user plays using only commands, like walk foward, open the door etc, you are in the bedroom... whatever. …

Software Development gaming python
Member Avatar for woooee
0
513
Member Avatar for janfritz

hi. i'm trying to make a program that will connect two points that i click in my JPanel. i'm trying to connect the two points with a line. i displayed the values of my (x1, y1) and (x2,y2) coordinates whenever i click using the mouse and there is no error …

Software Development image java java-swing
Member Avatar for hiddepolen
0
232
Member Avatar for VernonDozier

Here's the code. Uncomment line 9 and you get the following error. [quote] ISO C++ forbids initialization in array new[/quote] Leave it commented out and it works just fine. I'm not sure why it has a problem with one but not the other. Each object is a 16 byte array. …

Software Development c++
0
119
Member Avatar for scheppy

Ok, so I've imported import java.util.Random; and im trying to get a random number between 1 and 2, 1 and 4,and also 1 and 15, how would i acomplish this, i know how to generate random numbers, but not between 2 certain numbers?, how can this be accomplished?

Software Development java
Member Avatar for scheppy
0
164
Member Avatar for moroccanplaya

hi i got a a Tkinter text widget and a string i want to know how to display the string in the text widget ?? [CODE] abc = "hello world" text = Text(app, width=80,height=40, wrap='none').grid(row=2, column=2) [/CODE]

Software Development python tkinter
Member Avatar for bumsfeld
0
226
Member Avatar for dhija22

Hi, I wonder of you can help me please, I'm new here and looking for an answer to a problem with my Java files. 'Problem' is: When I try to open the 'Java' icon on the 'controll panel' page, it says 'Application not found' !? I have tried re-installing Java …

Software Development java
Member Avatar for dmanw100
0
166
Member Avatar for phorce

Hello, I'm trying to create a matrix that dynamically defines the rows and columns.. Now, everything is fine, apart from when I include a function to output the 2D array.. The error: Matrix.cpp:20: error: invalid types ‘double[int]’ for array subscript ... The code is: Matrix.cpp [code] #include <iostream> #include "Matrix.h" …

Software Development c++
Member Avatar for phorce
0
130
Member Avatar for RavesCoder

Hello Daniweb users, i wanted to ask you guys , if you can help me with making a game with C++, Do you know how to do it? or any suggestions? I prefer RPG Game... So if you have any suggestions, could you help me? Thanks, Jordan

Software Development c c# c++
Member Avatar for jaskij
0
175
Member Avatar for slasherpunk

So, I wrote the following program to connect to my local mysql server and create a table in the existing "test" database. The program compiled without any errors, but I got the following run-time error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on …

Software Development java mysql
Member Avatar for slasherpunk
0
15K
Member Avatar for bhagawatshinde

How to read pdf file in c# windows application..... Thanks in advance

Software Development c# pdf
Member Avatar for peter_budo
0
279
Member Avatar for sagy26.1991

hello everyone, I am new to java programming and i am currently studying inheritance. I have following program and i am getting error [COLOR="Red"]"cannot find symbol"[/COLOR] .Please help me.Thanks in advance. [CODE]class Box { double width; double height; double depth; Box() { //default constructor width = 0; height = 0; …

Software Development java
Member Avatar for sagy26.1991
0
1K
Member Avatar for raj26061990

eg. 14 and 15 Find all the factors of 14 and 15. 1,2,7,14 are factors of 14 1,3,5,15 are factors of 15 Sum all the factors of two numbers and if sum of factors of two numbers taken are respectively equal they are Amicable numbers.

Software Development java
Member Avatar for cms271828
0
487
Member Avatar for aashishsatya

Hi, I'm an absolute beginner in Visual C++ (Express Edition 2010). I've just been trying out this very simple program, and I can't get to use the '\b' tag like I did when I used Turbo C++ v4.5. The cursor moves backwards, but the text does not get erased, as …

Software Development c++
Member Avatar for LRRR
0
308
Member Avatar for Undeclared

I have a Gridview in which I have made a column of checkboxes named 'Status'. When the user clicks a button I want to see if a checkbox in particular row was checked by him or not. Code I have written is: [CODE]for (int i = 0; i <= Grid.Rows.Count; …

Software Development
Member Avatar for Undeclared
0
334
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> void midline(int,int,int,int); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); } setcolor(getmaxcolor()); int x1,y1,x2,y2; …

Software Development c
Member Avatar for swissknife007
0
148
Member Avatar for jumboora

Hello Guys, My job is to process the text files. following are the steps that i have to do. 1: To combine multiple text files into one text file 2: Add filename (but without extension) in the beginning of each text file. 3: and Finally, index the contents of the …

Software Development file-system
Member Avatar for jumboora
0
2K
Member Avatar for mikeshadow

I need an algorithm that finds how many prime numbers are in a set interval; the interval maximum range is 1 000 000 so a brute force method of checking every number is kinda inefficient

Software Development c c# c++
Member Avatar for mikeshadow
0
506
Member Avatar for cadamsjr

Hi everyone, I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting. In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, …

Software Development java javascript-jquery
Member Avatar for cadamsjr
0
192

The End.