43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for vampke

Hi guys, I'm habing a problem with an access database i'm trying to fill programmatically with vb.net. I have a datatimepicker to set a date with a custom format like "dd/mm/yyyy hh:mm" If I insert this date in my access database the days and months are switched (mm/dd instead of …

Software Development vb.net
Member Avatar for sknake
0
178
Member Avatar for NinjaLink

Hello all. I am currently working on creating a program of a Checking Account and Savings Account. I am using my input file for deposits and withdraws. However, for my deposit and withdraw functions, I am unsure what to put in it. For those functions, am I suppose to read …

Software Development c++
Member Avatar for NinjaLink
0
250
Member Avatar for darkocean

Hello all, Whenever I create a new form in a form while pushing a button. Every time I push the button and new form created. I dont want this. Example : If form2 exist and OPEN so bring it to front. I cant arrange it, I tried bringtofront or this.Close() …

Software Development
Member Avatar for darkocean
0
191
Member Avatar for ctrl-alt-del

Hi all! Well, again I find myself stuck in a silly situation. I've found some more settings that seem to baffle me. First off all, why can't I set the Right property of a control? Example: [CODE] PictureBox ExamplePictureBox = new PictureBox(); ExamplePictureBox.Right = 50; [/Code] This returns that "Property …

Software Development
Member Avatar for ctrl-alt-del
0
213
Member Avatar for kahaj

I'll post my code after my questions. 1. Near the very end, I have DisplayIntroMessage() called for the event that the user desires another order. Is this all that I need to do to restart the process? 2. If that is all that is needed, what is the easiest way …

Software Development
Member Avatar for jatin24
0
112
Member Avatar for slatk3y

I have worked with maps before and I have come to the point where I need to save a map when I quit an application and load it when I open application. How can I achieve this goal? Do I have to save it to a file upon exit and …

Software Development java
Member Avatar for slatk3y
0
146
Member Avatar for Cheesy74

I'm in the process of writing a 2D physics engine in Java, and am trying to figure out the algorithm for the most basic of all physics tasks: Object collision. Detecting collision between two circles is easy: check if the distance between their centers is less than or equal to …

Software Development algorithm java
Member Avatar for Cheesy74
0
119
Member Avatar for leverin4

I tried searching and couldn't find anything, so I'm sorry if this has been posted before. I need help aligning output at the command line. I want to make even columns, but can't figure out how to do it. Attached is a screenshot of my current output. I want the …

Software Development java
Member Avatar for PopeJareth
0
143
Member Avatar for roberto usu

I know this is a kind of broad question, but I have been having a hard time in general knowing when to put what call parameters into what functions. Does anybody have any good tips on when to know when to use a void function verses a bool or int …

Software Development c++
Member Avatar for roberto usu
0
143
Member Avatar for kz07

well, this is my code: [CODE] while(!isdigit(c) || num.length() < 4){ cout << "Enter your four digit pin: "; cin >> num; for(i = 0;i < num.length(); i++){ c = num.at(i); if (isdigit(c)){ pin[i] = atoi(num.substr(i, 1).c_str()); } } if(!isdigit(c) || num.length() < 4){ cout << "Invalid Pin." << endl; …

Software Development c++
Member Avatar for kz07
0
1K
Member Avatar for killerqb

I'm having a problem with creating my own stack class and implementing it in a postfix calculator program I made. I was trying to make the stack.h file, but it keeps telling me stack is not a template [CODE]#ifndef STACK_H #define STACK_H #include <iostream> using namespace std; template <typename T> …

Software Development c++
Member Avatar for killerqb
0
153
Member Avatar for DustinS

I am relatively new to c# and am making a 2D physics engine as a fun project to learn the language and the .NET environment. I am making a form that can be used to modify the number of objects. Unfortunately, I cannot find a way to change the length …

Software Development
Member Avatar for DustinS
0
219
Member Avatar for bernadlosini

The question given like this using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to …

Software Development api c windows-api
Member Avatar for Sameer.coder
0
974
Member Avatar for EvilLinux

How would you create a validate statement that shows a message to the user if they enter a value that is 5 years or older than the current date, I have the checking of format for the date if its entered correctly. Currently I have this to valid the format …

Software Development
Member Avatar for EvilLinux
0
241
Member Avatar for serkan sendur

i want to share one finding that i found today and am pretty surprised. Although class types are passed by reference, nested classes are not. Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace nestedClassRequiresRefKeyword { public partial class Form1 : Form …

Software Development
Member Avatar for serkan sendur
0
105
Member Avatar for lifeworks

Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python …

Software Development gui python
Member Avatar for sravan953
0
168
Member Avatar for edward_pedro

Hey all. I'm new to this forum and Python. I need a program that can search an inputted keyword through all the files that end with the ".txt" extension inside a given folder. The output should include the name of the files which contain the keyword, the sentences which contain …

Software Development python
Member Avatar for vegaseat
0
150
Member Avatar for chase32

I am trying to combine two multi-element dictionaries but am running into a problem. From the example below, what I expected was the dictionary x to contain all three unique combinations. What seems to have happened is that the y dictionary overwrote the x dictionary. Am I just using this …

Software Development python
Member Avatar for vegaseat
0
204
Member Avatar for DarthPJB

I return with another perplexing issue that I just can't figure out, a generic and unhelpful"std::bad_alloc at memory location" error. Before I get to the code, some background... Having finished my uber-awesome 2D engine (thanks entirely to you guys) I decided it was time to break open the can of …

Software Development c++ opengl storage
Member Avatar for DarthPJB
0
326
Member Avatar for ticktock

Hey all, I am fairly new with C++ and I registered here to ask for suggestions on how I can create my project. I proposed to my professor that I will create a scientific calculator with "additional functions". By additional functions I mean like a SC with that can solve …

Software Development c++
Member Avatar for ticktock
0
142
Member Avatar for kahaj

I'm having some trouble getting the times to show up correctly. inputTime is running fine, but neither displayStandardTime nore displayMilitaryTime is displaying. I've been playing with this for a couple of hours and can't figure it out. I'm probably missing something small, but it's driving me nuts in a big …

Software Development java
Member Avatar for kahaj
0
146
Member Avatar for hurbano

Im having trouble fixing this error on my program. Any help would be greatly apprecitated. [code=c++] #include <iostream> using namespace std; int main () { char choice; cout<<" Is it after 12 noon? (y/n)" <<endl; cin>>choice; if (choice == 'y') cout<<" Good afternoon, world!"<<endl; else if (choice == 'n') cout<<" …

Software Development c++
Member Avatar for DarthPJB
0
84
Member Avatar for Ulukay

Okee here my problem When i create a button in the designer , i got options in the properties window for putting a Image in the button and even a ImageAlign But i want to change the image at runtime I looked at the button members , but i cant …

Software Development gui image vb.net
Member Avatar for Ulukay
0
177
Member Avatar for Grn Xtrm

Hello friends. I'm very new to C and am still learning how to do basic stuff. I got the code to work in C++ (which I'm much more fluent in) but I'm having trouble converting it to C code. [code=cpp] #include <iostream> using namespace std; double factorial( int n); int …

Software Development c
Member Avatar for Grn Xtrm
1
202
Member Avatar for sawant_nitesh

What is the best approach of writing java code in following 2...... ? What happens at jvm level in each case ? 1. [ICODE] for(int i=0;i<10;i++) { MyClass m = new MyClass(); m.doSomething(); } [/ICODE] 2. [ICODE] MyClass m; for(int i=0;i<10;i++) { m = new MyClass(); m.doSomething(); } [/ICODE]

Software Development java
Member Avatar for javaAddict
0
118
Member Avatar for Atove

Hi all! Okay i've been attempting to create this segment of code which is supposed to read from the database; based on search criteria entered, then load them into a form for viewing/editing. I am able to read the concessionID from the database; however i am then unable to select …

Software Development vb.net
Member Avatar for Atove
0
108
Member Avatar for TechSupportGeek

Well, that is exactly what I want to do. To help you a bit more, I want to create a toolbox that has an auto-hide feature so my application's users will have the option to do actions from there. To be even more specific, I want to create a built-in …

Software Development vb.net visual-basic
Member Avatar for TechSupportGeek
0
87
Member Avatar for Elektrikz

Hello guys. After some time searching around the forums for a thread about an e-book for crash course from C++ to Java and no luck I decided to post a thread about it. So my question is,does anyone has or knows such book? Thanks in advance.

Software Development c c# c++ java
Member Avatar for tux4life
0
283
Member Avatar for DoEds

I just found this example in my book. After running the program in will only ready the first line of my file. Ex. inside my file "PhoneBook.txt" Mine 12345678 Hers 1234567 Them 123456 It will only read "Mine 12345678" ignoring "Hers 1234567 and Them 123456" How will i'll make this …

Software Development c
Member Avatar for DoEds
0
113
Member Avatar for lotrsimp12345

#include <iostream> #include <stdio.h> #include <fstream> #include <string> using namespace std; int main() { int number_Of_Lines_To_Print_From_End=0; char file_name[20]; streampos length; cout<<"enter file name that needs to be opened\n"; cin>>file_name; cout<<"enter number of lines to print from end of file\n"; cin>>number_Of_Lines_To_Print_From_End; fstream file; file.open(file_name, ios::out ); if(file.is_open()) { cout<<"the file opened\n"; …

Software Development c++ file-system ios
Member Avatar for lotrsimp12345
0
134
Member Avatar for jrosh

i created a table with a files with auto number in mysql. i added 15 raws of data i deleted some added data (say 6-15) when i add data again, auto number starts with 16. how can i make it 6? (i hope u get the point)

Software Development java
Member Avatar for roswell67
0
105
Member Avatar for swolll

Here is my code: [ICODE]#include <iostream> #include <string> #include <iomanip> #include <cmath> using namespace std; int main() { const double e = 2.71828; double t, f, n, B, VoltageGain; cout << "Please enter the time in hours the culture has been refrigerated: "; cin >> t; cout << endl; while …

Software Development c++
Member Avatar for swolll
1
627
Member Avatar for lotrsimp12345

In unix if you create and open a file by using 9 digits numbers in the open function it seems to work but in C++ you only don't have a parameter to do that rather you have ios_base. Just wondering if there are owner,group and world settings that can be …

Software Development c++ unix
Member Avatar for lotrsimp12345
0
114
Member Avatar for lotrsimp12345

O_RWDR opens a file for read and write and pmode allows you to specify permission for each of the users? WHAT DOES IT MEAN BY WHAT PMODES AND O_RDWR ARE AVALABLE ON YOUR SYSTEM? CONSIDERING I AM USING VISTA I HAVE NO IDEA. I HAVE THE ABILITY TO READ AND …

Software Development c++
Member Avatar for lotrsimp12345
0
537
Member Avatar for Jennifer84

I have a little special question about the for loop. Normally you could do the count as I have declared with a count from 0 - 10. What I do inside the loop is to identify many scenarios if the count should start from 0 - 10 or vice versa …

Software Development c++
Member Avatar for puluke
0
128
Member Avatar for gianniszaf

Hi there, I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc. …

Software Development python
Member Avatar for woooee
0
239
Member Avatar for madrang

Hi, i am currently making a class to handle xml files but my class will have a lot of child and i dont know if the way i keep the parent in the child node will be a copy of it or a pointer to it.... thx for taking time …

Software Development xml
Member Avatar for madrang
0
99
Member Avatar for Diamonddrake

I am writing a custom slider control, All its functionality is accounted for but now the aesthetics (which was the reason for writing it in the first place) has become problematic. It starts with a custom class that converts true hls and rgb, thats 360 stops not 255. then I …

Software Development
Member Avatar for Diamonddrake
0
192
Member Avatar for ellimist14

I really need help with this guys. This compiles and runs but does not give me the right output. tfile.data: Seth 19 1.7 Austin 20 1.8 Michael 21 1.9 [code]#include <iostream> #include <fstream> using namespace std; int main() { ifstream fin; fin.open ("tfile.data"); if (fin.fail()) { cout <<"ERROR"; exit(1); } …

Software Development c++
Member Avatar for NathanOliver
0
89
Member Avatar for lebronjames

Hi yall, So what my code is supposed to do is basically count the number of paranthesis that the user enters and hit me back with the result. The code below works perfectly when there are no white spaces in the user's input. But when white spaces are present, It …

Software Development c++
Member Avatar for lebronjames
0
83
Member Avatar for codeguru_2009

i've copied this code from net but this is not working. Only blank output. can anyone help. i'm new to assembly. [code][ORG 7C00h] ; This is where BIOS put me ; --------------------------------------------------------- ; Main program ; --------------------------------------------------------- mov si, msg ; Print message call putstr hang: jmp hang ; Hang! …

Software Development assembly
Member Avatar for NotNull
0
175
Member Avatar for willywonka

Hi all, I am a first year student at the university of South Africa. I am doing my degree via correspondence, thus no lectures. I am working through the prescribed book as best i can but they still assume a little bit of fore knowledge of programming which i don't …

Software Development c++
Member Avatar for willywonka
0
138
Member Avatar for EvilLinux

Hi real quick one and most likely going to look stupid after this. I need to show the Current Date in a form text box. Also the second textbox I have needs to show the date + 3 (show the date 3 days later). For some reason I can't figure …

Software Development
Member Avatar for EvilLinux
0
148
Member Avatar for chu121su12

I have question on how to detect an action invoked by a component in some class by the other class. Say: [CODE] public class C1 extends JPanel { JButton button; C1() { button = new JButton(); add(button); C1Action h = new C1Action() button.addActionHandler(h); } public void doSomething() { // code …

Software Development java
Member Avatar for chu121su12
0
439
Member Avatar for daviddoria

I made 2 classes, Point and Point3D: Point.h: [code] #ifndef POINT_H #define POINT_H #include <iostream> template <typename T> class Point { protected: T X,Y,Z; public: Point(const T x, const T y, const T z) : X(x), Y(y), Z(z) {} T getX() {return X;}; T getY() {return Y;}; T getZ() {return …

Software Development c++
Member Avatar for DdoubleD
0
540
Member Avatar for sinnerFA

Here is a sample of the XML that I am starting with: XML: any.xml [code] <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="any.xsl"?> <root> <device> <device_Info> <name>Name 1</name> <type>Type</type> </device_Info> <drive_Pair> <status>Ready</status> <Local> <l_name>10E5</l_name> </Local> <Remote> <l_name>0651</l_name> </Remote> </drive_Pair> #Can be 1 or many <drive_Pair>'s {<drive_Pair> ... </drive_Pair>} # Can only be …

Software Development xml
Member Avatar for sinnerFA
0
381
Member Avatar for sgleason

Hello everyone, I am an Intern at a company and I mainly create scripts to update databases. I don't have the opportunity to do much "real" programming, hence the reason I am begging for some help :p I am working in visual studio and my program runs great. There is …

Software Development gui vb.net visual-studio
Member Avatar for sgleason
0
96
Member Avatar for jrosh

This gives a compilation error " missing return statement".. there is no sql error or such...where to put the return.??? private boolean checkpword(){ pasWd = pword.getText() ; try{ /*this works ok...>>>*/ResultSet pwrd = c.getData("Select Pword from users where userNm = '"+uname.getText()+"' "); while(pwrd.next()){ if(pasWd.equals(pwrd.getString("Pword"))){ return true; } else{ return false; …

Software Development java
Member Avatar for masijade
0
96
Member Avatar for jcl43

I'm working on a project and I need some help with C# constructors. Let's say I have the following; [icode] public class vehicle { public vehicle() { //do some initialization for all vehicles } } public class automobile : vehicle { public auto : base { // do specific initialization …

Software Development
Member Avatar for jcl43
0
109
Member Avatar for darkocean

Hello Everybody, I use different forms....I want to send a value like form1 to form2.for example textbox1.text value, I want to send it to myStr in form2. I tried public static but I could not solve it. Also another problem is this. There is 3 forms. If form1 sends a …

Software Development mssql
Member Avatar for darkocean
0
121

The End.