43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for CreativeCoding

So i'm working on this program. And long story short, I need something that will allow the user to choose the dir/file and have the system set read-only to true. Here is a piece that I worked on. Only it crashes on the system line. [CODE]try { clear; char* dir; …

Software Development c++
Member Avatar for thomas_naveen
0
202
Member Avatar for sid78669

OK, so I am redirecting the input from a file. The input is read into a string. The problem is, when the input file ends, the program still reads empty lines and goes into an endless loop. I have added an if statement for it to detect 5 empty entries …

Software Development c++
Member Avatar for sid78669
0
139
Member Avatar for xfrolox

Well I'm trying to make a tool for a game for learning purposes and i can't figure it out, I have Checkbox1 and a button The button saves the ini with the checkbox1.CheckState correctly and when i open it the Checkbox1.CheckState is checked so it works, but when i Delete …

Software Development api vb.net
Member Avatar for xfrolox
0
271
Member Avatar for Tech B

Is there a way to grab values from a basic stamp with python? I just bought a Accelerometer and want to read the values with python.

Software Development python
Member Avatar for Tech B
0
329
Member Avatar for navaidstech

Just when I thought I was comfortable with SQL queries, another one popped up that I can't get around with.... I'm ALMOST there but not quite. Here is the situation... I'm dealing with two tables [B]PoolTeams[/B] and [B]PlayerStats[/B] The PoolTeams table has two columns: [B]PoolTeamID[/B] and [B]TeamName[/B] The PlayerStats table …

Software Development mathematics sql visual-basic
Member Avatar for navaidstech
0
211
Member Avatar for danieldot

I created 100 pictures boxes for my game with this code : [CODE] for (int p = 0; p <= 9; p++) { for (int o = 0; o <= 9; o++) { picsBoard[p, o] = new PictureBox(); picsBoard[p, o].Name = "emptyPicBox" + p.ToString() + "." + o.ToString(); picsBoard[p, o].Location …

Software Development
Member Avatar for danieldot
0
99
Member Avatar for london-G

hello I would like to know if it is possible to store an array within a structure. For examples for recording people with more than one name. Like this: Structure Product_Reccord Dim PNames(3) as string end structure It is giving me an error, help please!!

Software Development vb.net
Member Avatar for NeilClayton
0
96
Member Avatar for zacory

I'm creating a program that maintains a log file. The file is created at the start up of the program and appended to throughout the run. This works perfectly fine, but I went and manually added the program to run at start up in the registry. The program runs as …

Software Development c++ file-stream file-system
Member Avatar for tetron
0
93
Member Avatar for sid78669

I am using char * for getting data from the user. Now, if i just do [CODE=C++] char * data = new char[100]; cin >> data; [/CODE] The data is corrupted, i.e. only data before whitespace is stored; and the following is an example result: [CODE] enter: "Microsoft Co." data: …

Software Development c++
Member Avatar for Geoff_Giraffe
0
284
Member Avatar for ckjie

Hi all, I'm new to this community. I am doing a project that I'd have to write a program to connect 2(at least) PCs together. each PC works as a server and at the same time as a client, which each of them can download the file which is shared …

Member Avatar for strmstn
0
185
Member Avatar for neovo-88

Hi, Im new to java and was wondering if someone could help me with my problem. Im writing a program which will calculate how long a journey will take, the user will need to enter a character to represent what type of road/speed they are doing and how long the …

Software Development java
Member Avatar for neovo-88
0
169
Member Avatar for lethal.b

iam a noob at c++ and trying to learn it so go easy on me. basically i am trying to enter a some letters such as 'helody' and then check the letters it has in it and place the remaining letters of the alpahebet after it. so afterwords it would …

Software Development c++
Member Avatar for jonsca
0
112
Member Avatar for web_test

I was wondering if anyone helps me in the following case..? There're two prgs A.py and B.py A.py has two classes class x class y and class y has some print statements. I want to import 'class x' to B.py and using the following statement in B.py from A.py import …

Software Development python
Member Avatar for tzushky
0
113
Member Avatar for reeddp1

First time poster, but longtime lurker. I've solved a million other problems with other threads, but this time I'm still stumped. My program is meant to take an array of dates and be able to change them, add days, and resize the array. It compiles OK, but I get a …

Software Development c++
Member Avatar for Fbody
0
670
Member Avatar for Icebone1000

Hi, thats very weird..if I pass my RECT by reference notting wrong happens, bu if I pass by value, the numbers get crazy. The correct values are: {top=159 bottom=480 left=400 right=640} What I get passing by value is: {top=0 bottom=1 left=1964816 right=1058984360} This happens at the first moment it enters …

Software Development c++
Member Avatar for Ancient Dragon
0
186
Member Avatar for awtz123

hey, im new here and i need help in installing vb.net express edition 2008 in windows virtual pc - win xp, i use win7ultimate anyway. When install, it goes like this. please help i badly need to run it. I have installed MSsql 2000 and 2005 in virtual xp w/ …

Software Development mssql vb.net windows-xp
Member Avatar for awtz123
0
110
Member Avatar for ana_eht

hi everyone i'm sorry i know i am asking simple questions but i really cannot understand the problem with my code here i wrote a code for the cash register ( except two buttons : clear and delete ) but it doesn't work i think something is wrong with the …

Software Development vb.net
Member Avatar for ana_eht
0
153
Member Avatar for litchi

Hi :) Is there any way to look up a character's Unicode line number? Ex. Capital letter A's line number (hex) is 41 capital B is 42 etc. (more info [URL="http://www.utf8-chartable.de/"]here[/URL]) Or would I have to put them in an array manually? thanks :)

Software Development java
Member Avatar for litchi
0
97
Member Avatar for tanvirahmad

Hi Experts In VB .net form, How I can close/off Title Bar and how can set border width = 0 or close Border

Software Development vb.net
Member Avatar for kvprajapati
0
106
Member Avatar for lotrsimp12345

Please help me out with syntax mistakes [CODE] fun rappend(L1,L2) if null L2 then L1 else rappend(tl(L2) @ L1, hd(L2)) [/CODE]

Software Development
Member Avatar for lotrsimp12345
0
76
Member Avatar for PhiberOptik

Hey guys, I'm using a Point array to transfer to my panel class that draws the image. The reason I'm using coords is because it shows where the character is in the tileset for directions Ie. (20,5) is right step facing up. anyway its coming up with null pointer and …

Software Development java
Member Avatar for ~s.o.s~
0
101
Member Avatar for sid78669

I have been working on a template class for linked list and sometimes I come across this member function: [CODE=C++] template <class T> bool DLList<T>::deleteData(T data) { ListNode<T> *temp = head; while(temp != NULL && temp->data != data) temp = temp->next; if(temp == NULL) return false; else{ temp->previous->next = temp->next; …

Software Development c++ linked-list
Member Avatar for sid78669
0
96
Member Avatar for Manolo310

Hi, i need to search all cells inside a dataviewgrid in VB.net starting with "www" , once i found one cell apply a background color to the complete row and get the next cell with the same String. Part of my code: *********************** [code] Protected Sub Page_Load(ByVal sender As Object, …

Software Development dataset session vb.net
Member Avatar for kvprajapati
0
117
Member Avatar for jonniebl

I am new to visual basic 2008 and am trying to navigate to a web site and automatically enter my username and password from within a visual basic program. Then I want to navigate to another page and fill data in various fields on the page. I can navigate using …

Software Development vb.net visual-basic
Member Avatar for kvprajapati
0
153
Member Avatar for technogeek17

Ok, I am relatively new to Vb.net, but I am getting along. I have an application that I wish to make an updater for. The updater needs to be able to read Visual Basic code files and insert the code into the application. Is there any way to do this? …

Software Development vb.net visual-basic
Member Avatar for kvprajapati
0
105
Member Avatar for OldQBasicer

I thought you couldn't run an EXE from a web page, you had to download it. How can it be that ClickOnce lets you choose online-only? Does it temporarily install the EXE on the users computer? If I want my application to run online only and I use the publishing …

Software Development publishing vb.net visual-studio
Member Avatar for kvprajapati
0
96
Member Avatar for Andy_Ballard

Hello, I would like to import and call a c++ library from python. The library is the freely available (c++) LAMMPS Molecular dynamics code, and on the website, the following advice is given: "[one can]...build LAMMPS as a library. Once this is done, you can interface with LAMMPS either via …

Software Development c++ python
Member Avatar for Andy_Ballard
0
3K
Member Avatar for danturn

Hey Guys, Quick n00b question... i have the following XML: [CODE]<row> <UDPName>10014535-Test</UDPName> <SpeedDialIndex>2</SpeedDialIndex> <Label>mobile</Label> <SpeedDialNumber>907********</SpeedDialNumber> </row> − <row> <UDPName>10014535-Test</UDPName> <SpeedDialIndex>1</SpeedDialIndex> <Label>talking clock</Label> <SpeedDialNumber>9123</SpeedDialNumber> </row> - <row> <UDPName>10014573-Test</UDPName> <SpeedDialIndex>1</SpeedDialIndex> <Label>Work</Label> <SpeedDialNumber>90203********</SpeedDialNumber> </row> [/CODE] (this is a cut down version of the XML.. there would be several hundred rows in the actual …

Software Development xml
Member Avatar for apegram
0
258
Member Avatar for sid78669

I have the following classes, SLList, an integer datatype-based linked list and DLList, a template-based linked list. My problem is that SLList is working perfectly, but as soon as i modify it to be used as a template, i get errors, more specifically LNK 2019, i.e. linking errors. I avoided …

Software Development c++ linked-list
Member Avatar for sid78669
1
638
Member Avatar for sid78669

I am trying to compile a code that utilises an array of 5 'hotel' objects as below: [CODE=C++] #include "Hotel.h" using namespace std; int main() { Hotel *hotels = new Hotel[5]; hotels[0] = new Hotel("Hershey"); hotels[1] = new Hotel("Milton"); hotels[2] = new Hotel("Sheraton"); hotels[3] = new Hotel("BestWestern"); hotels[4] = new …

Software Development c++
Member Avatar for sid78669
0
158
Member Avatar for Alex_

Hello, i made a basic java desktop application. After building the interface in the form, i compiled it and it worked perfectly. But after i added an event to a button (on click) my app won't close. I use the X button from the title bar, or ctrl+q from the …

Software Development java java-swing
Member Avatar for Alex_
0
2K
Member Avatar for Christoph928

Need help with my code its not stopping once the correct answer is given i don't know why please help...I'm using 25 as the seed and the answer is 62 but my code says 62 is too high ... thank you.[CODE]#include <iostream> #include <cstdlib> using namespace std; int testTheGuess(int ,int); …

Software Development c++
Member Avatar for Lerner
0
117
Member Avatar for Soileau

Hey DaniWeb. I am getting stuck in an infinite loop when I input a character instead of an integer during a scanf("%d"....); I know this is because C doesn't provide any built in error checking. I know I can fix this by using getchar() in place of scanf, and changing …

Software Development c
Member Avatar for Dave Sinkula
0
4K
Member Avatar for edgias

I want to enter details of a client into a database.If the details already exists the application must inform the user and they don't then save the details here is my code [code=c#] private void btnCreate_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn.ConnectionString="Data Source=MyComputer\\SQLEXPRESS;Initial Catalog=TIP;Integrated Security=True;Pooling=False"; conn.Open(); …

Software Development open-source
Member Avatar for Geekitygeek
0
302
Member Avatar for dj118

Hi viewers, I'm in dire need of some help. I'm currently doing a program for my studies and I have successfully compiled it and tested it. However when I try to execute the program it comes up with the error java.lang.NoSuchMethodError: Main. I've identified the problem which is the fact …

Software Development java java-swing
Member Avatar for dj118
0
195
Member Avatar for phil750

Say i just do a simple printf statement [code] printf("i want this text to be different color > %s", thisbit); [/code] i want whatever i print out at the %s (the string) to be different color. Im sure it only something little that why i ask.

Software Development c
Member Avatar for Adak
0
550
Member Avatar for JdTSC

The msgbox widget is really useful. However the font limitations of the default msgbox can be brutal if your trying to deliver a message with considerable information. Has anyone coded an improved msgbox class that would take the same arguements + font?

Software Development visual-basic
Member Avatar for JdTSC
0
112
Member Avatar for richman0829

isalpha and ispunct work punctiliously, but isspace spaces out. [CODE] cout << "Please enter an integer: "; cin >> str; int bogus = 0; for (int i = 0; i < str.length(); i++) { char temp = str.at(i); if (isalpha(temp) || isspace(temp) || ispunct(temp)) { cout << "Please try again!" …

Software Development c++
Member Avatar for richman0829
0
300
Member Avatar for sunilChoudhary

Hi friends i want to format a datetime column like 4-mar-10 9:15 pm

Software Development sql vb.net
Member Avatar for apegram
-1
96
Member Avatar for neolyte120109
Member Avatar for rfrei
0
158
Member Avatar for P.manidas

Dear Sir/Madam, As I have seen VB 6.0 is supporting Icon files, Metafiles and BMP files for using in the PictureBox property of ImageBox, PictureBox, and CommandButton. I have tried ICON file to use on those Controls, but some ICON files are supported and some are not supported. So, I …

Software Development visual-basic
Member Avatar for kinwang2009
-1
2K
Member Avatar for empror9

hello, how can i call function from another function? i declare 3 functions which are move_mid ,move_left and move_right please see this code (it's just my idea and i know i has many syntacs erorr , but my goal is just how a function call some functions) [CODE]move_left() { cout …

Software Development c++
Member Avatar for empror9
0
89
Member Avatar for Arkapravo

Desperately need help ! ..... I need to install Player/Stage ( [URL="http://playerstage.sourceforge.net/"]http://playerstage.sourceforge.net/[/URL] ) on Ubuntu 9.10. Found this, [URL="http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html"]http://curtis-thoughts.blogspot.com/2010/01/install-playerstage-in-ubuntu-910.html[/URL] ..... but could not get it to work ! Any help is greatly appreciated !

Software Development c++ robotics ubuntu
Member Avatar for Arkapravo
0
204
Member Avatar for judge6

I have a simple file watcher application which watches the folder C:\. I am watching the folder so that as soon as a new file is created in C:\, it moves the newfile to a specified folder somewhere else. My problem is that if two files are dropped in the …

Software Development vb.net
Member Avatar for kvprajapati
0
113
Member Avatar for arvin2006

good day everyone! is there any idea on how to set the picture property of the Data Report's Image Control based on the Form's Image Control? this code doesn't work: 'Me.Sections("Section2").Controls("imgEmployee").Picture = frmMain.imgPic.Picture Thank you very much for responses.

Software Development image visual-basic
Member Avatar for shenba.akila
0
178
Member Avatar for shyami

Hi, I am working with pylon framework, just i want to redirect a user to my another php script, if session expired. The below one is redirecting to another controller. i need to redirect to another php script. redirect_to(controller='test', action='index', _code=303) Any idea? Thanks -Shyami

Software Development python session
Member Avatar for shyami
0
124
Member Avatar for GregPeters

Hi all, I have a procedure which needs to be used by a wide range of functions. I have a created a very basic program which should highlight my problem : [CODE] program untitled; function addnumbers(num1 : integer) : integer; begin result := num1 + 3; end; procedure sequence(I want …

Software Development delphi pascal
Member Avatar for adraganov
0
1K
Member Avatar for wilko1995

How do i create a console button so i dont have to go into Dev-c++ to open it

Software Development c++
Member Avatar for CreativeCoding
0
110
Member Avatar for wilko1995

Hey, im making a code to ask a user to type in a username and password to continue and for the console to say "thanks" and i need help. Heres my "Unsuccessful" Code: [code]#include <iostream> using namespace std; int main(){ int a, b; a = 159876; b = 43812385; int …

Software Development c++
Member Avatar for wilko1995
0
123
Member Avatar for pocix

question: The program should prompt the user to enter data for the width and height of the 2 rectangles and use the setWidth() and setLength() methods to store this data in the instance variables. driver [CODE] import javax.swing.*; public class Room { public static void main(String[ ] args) { double …

Software Development java java-swing
Member Avatar for pocix
0
76

The End.