132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for WildBamaBoy

I'm at a point with this program that I need to do a lot of work with strings. This would be so much simpler to do in Python, however I don't want the entire program written in Python. How could I use functions from a Python script in C++?

Software Development c++ python
Member Avatar for WildBamaBoy
0
266
Member Avatar for sanzilla

dear sir , My question is what is the sutiable libraies to learn inorder to be a windows programmer . someone say that MFC is not structured well and there are lots of easy frameworks shuch as .NET to do the things very easily than using the .NET . and …

Software Development c++
Member Avatar for caut_baia
0
707
Member Avatar for williamshen25

Hi everyone. I want to create a crawler with perl and run it on crowntab. The program should use DBI and DBD::Oracle to insert data into my database. When crontab runs it, I get the following error in my mail box. Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open …

Software Development oracle perl session xml
Member Avatar for williamshen25
0
112
Member Avatar for markdean.expres

Guys I need to store the exact value (including the mask) from my maskedtextox into my database. My maskedtextbox has 5 digits (ex. 20000) but when I am saving it and checking it into my database, only the first non-zero digits are being saved. How do I deal with this?

Software Development vb.net
Member Avatar for ChrisPadgham
0
91
Member Avatar for jfunchio

I need help getting my function to overload the + operator to add a integer and a Rational object. Right now I am able to add two rational objects with my overloaded + function but not and integer and an object. I'm not really sure how to go about doing …

Software Development c++
Member Avatar for Fbody
0
333
Member Avatar for livinFuture

I am currently writing a program that can calculate the number of total seconds in a user given number of hours, minutes, and seconds (in that order in hh:mm:ss format hh, mm, and ss being any number from 0-99). I'm not really worried for checking for errors in user input, …

Software Development c++
Member Avatar for mrnutty
0
12K
Member Avatar for kruxena

Hi guys, can you please help me out. Scenario: I have 14 panels in my form, the user then input a number in the textbox. Then this textbox will now determine how many panels will be enable. My formula would be, userinputtextbox/0.5=panels to be open. Example: 3/0.5=6. So far this …

Software Development vb.net
Member Avatar for kruxena
0
303
Member Avatar for ticktock

EDIT: I am so sorry! I have added my thread to the C# discussion thread instinctively wherein in fact I have been creating my application in VB.NET so sorry! Please transfer my thread to the appropriate location! Really sorry! Hey all I am currently trying to mess around with a …

Software Development vb.net
Member Avatar for ticktock
0
183
Member Avatar for PinoyDev

hello guys! Its been a long time posting here since I've switch to dot net...But I CANT LEAVE VB6 in programming.! I just want a little help.. Anybody can recode this statement regarding connecting to SQL SERVER local database.. The connection is succesful. But i want to trap the error …

Software Development visual-basic
Member Avatar for PinoyDev
0
106
Member Avatar for jfunchio

I'm having trouble figuring out how to overload the +=, -=, *=, and /= for a program that does operations with rational numbers. Could someone please help me out. [CODE=C++] #include <iostream> #include <string> #include <cmath> using namespace std; class Rational{ public: int num; int den; bool neg; Rational(int n, …

Software Development c++
Member Avatar for embooglement
0
547
Member Avatar for pucivogel

How can i store in an integer array a negative number of type string?i mean i want it to be recognized that it is a negative nr.

Software Development c++
Member Avatar for mrnutty
0
82
Member Avatar for cavern

hello, im using vb6 with access 2007 (.mdb) im using adodc connection. my question, how to prevent if the data existed in my database. i've put primary key in my database and i need an example like it's giving msgbox "data existed!" anyone can help me? thanks.

Software Development visual-basic
Member Avatar for ChrisPadgham
0
87
Member Avatar for markdean.expres

Guys, I am in a trouble with this error: "An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss." I am not sure …

Software Development gui vb.net
Member Avatar for markdean.expres
0
119
Member Avatar for jamd200

This program allows one to use many different sorting algorithms to sort an iterable. [code=python] from time import* from random import* #GNOME SORT def gnome_sort(lst): pos = 1 while pos < len(lst): if lst[pos] >= lst[pos-1]: pos = pos+1 else: temp = lst[pos] lst[pos] = lst[pos-1] lst[pos-1] = temp if …

Software Development algorithm python
Member Avatar for jamd200
0
347
Member Avatar for jamd200

I coded a simple tic-tac-toe "from scratch" (haven't included a GUI or anything of that sophistication). I would like to know about any improvements that can be made to this game. Thank you. [code=python] import random board_lst = [] class board: def __init__(self, rows, columns): self.rows = rows self.columns = …

Software Development gui python
Member Avatar for jamd200
0
231
Member Avatar for paulablanca

Hi guys! I need some help. I have two listviews that uses drag and drop to pass values, however I can only pass the value of my first column. What I need is to pass the value of my two columns. Thanks! God Bless.! :)

Software Development vb.net
Member Avatar for Unhnd_Exception
0
3K
Member Avatar for johmolan

I use the binding navigatorsaveitem to save my data back to the database, but the way I am doing it today seems to take an awful lot of time. Ex: [CODE]Private sub .....SaveItem_Click(Etc Etc Etc)Handles ....Click Me.Validate() Me.Process1BindingSource.EndEdit() Me.Process2BindingSource.EndEdit() Me.Process3BindingSource.EndEdit() Me.Process4BindingSource.EndEdit() Me.Process5BindingSource.EndEdit() Me.Process6BindingSource.EndEdit() Me.Process7BindingSource.EndEdit() Me.Process8BindingSource.EndEdit() Me.Process9BindingSource.EndEdit() Me.Process10BindingSource.EndEdit() Me.Process11BindingSource.EndEdit() Me.TableadapterManager.UpdateAll(Me.DataSet) 'Then …

Software Development dataset vb.net
Member Avatar for johmolan
0
328
Member Avatar for jamd200

So far, my simple numerical analysis program has differentiation, integration, first-order ODEs and Taylor Series. What else can I add to this? [code=python] from math import* """Single-variable calculus.""" #DIFFERENTIATION def gen_differentiation(f,x,h): #finds the first derivative of any mathematical function return (f(x+h)-f(x))/(h) def special_differentiation(f,x): #finds the first derivative of specific functions …

Software Development python
Member Avatar for jamd200
0
162
Member Avatar for JordanHam

int arr[]={4,5,6,8,1,6,4,7,1,2}; and I want and array to equal the ln of those values in an array? I dont why I am having so much trouble with this. Thanks!

Software Development c++ matrix-multiplication
Member Avatar for JordanHam
0
129
Member Avatar for pucivogel

Can i apply find_first_of ,substr,istringstream and make_pair to a char array?

Software Development c++
Member Avatar for Moschops
0
135
Member Avatar for neuro

i tried my writing my first script today :) it is the solving the quadratic equation script and i found it in an older C++ book i'm working through i made some edits to the script since i'm using Dev C++ as my compiler (had this problem but fixed it …

Software Development c++ file-system
Member Avatar for neuro
0
179
Member Avatar for b1izzard

Binary search tree for strings. I tried my best to trace out the error but in vain Need help. [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> struct bstree { char keyword[25]; struct bstree *lnode,*rnode; }*root; void insert(struct bstree *new,struct bstree *old) { if((strcmp(new->keyword,old->keyword))<0 && old->lnode==NULL) { old->lnode=new; } else if((strcmp(new->keyword,old->keyword))<0 && old->lnode!=NULL) { …

Software Development c
Member Avatar for b1izzard
0
948
Member Avatar for 09tikimo

I really need help, my 1st assigment is due tomorrow and i've been working on it for a really long time and is just not getting it!!!! So please help me, it will be greatly appreciated. These are the questions that I haven't been able to figure out. Add a …

Software Development java
Member Avatar for Akill10
0
219
Member Avatar for mmhp

Hi, I'm trying to learn delphi. I'm writing a binary tree unit and so far I only have insert and check size. I'm having trouble with inserting a new node into a nonempty tree. Got access violation at runtime and while in debugging mode, the value of sRoot^.Data is in …

Software Development delphi pascal
Member Avatar for mmhp
0
148
Member Avatar for vn412

Hi I m using datagrid my cloumns are coming dynamically. Here is the attached view I m getting. For first column I get value from database. now for each cloumn I have to get values for which i have to traverse multiple records from database I want each cloumn should …

Software Development vb.net
Member Avatar for ShahanDev
0
747
Member Avatar for Foxfreezer

Hi, I have a programming project in which I have to create a game where the user can select the upper bound of numbers and difficulty they want and then guess the secret number within that bound and difficulty. So far, this is my code. It compiles and allows the …

Software Development c++
Member Avatar for WaltP
0
193
Member Avatar for rmbrown09

Hello, new C++ user at University I am trying to find what would be the best way to count and display the even and odd numbers in a sequence. For example, if the user inputted the sequence 2 - 6, then there would be 3 evens and 2 odds, this …

Software Development c++
Member Avatar for mrnutty
0
621
Member Avatar for McvR

Hello all, As a newbie in C# I am searching numerous forums and tutorial to do my reading and learning. I was also searching for a solutin for Login by a separate form and found on this forum a tread from May 14th 2010 called : Enabling and disabling a …

Software Development
Member Avatar for McvR
0
174
Member Avatar for Carrots

Hi, I have an expression tree in which the nodes are operators (union, intersection etc represented by a string "/u") or the nodes are std::sets. How could I access the std::set's values in order to carry out the tree evaluation using the operator functions(set_union(), set_intersection() etc) ? The expressions are …

Software Development c++ data-structure
Member Avatar for arkoenig
0
167
Member Avatar for MasterGberry

I am trying to write a simple Batch File to launch an exe using some basic CMD PRMPT functions. I know exactly what I need to do, but my only problem is I don't know how to detect the Desktop Folder? What if its in Documents and Settings, or if …

Software Development c++
Member Avatar for MasterGberry
0
2K
Member Avatar for XodoX

So, I have this array and pointer: char array [6]; char *ptr; And this list of array [6] addresses and contents: 0x5010 a 0x5011 b 0x5012 F 0x5013 H 0x5014 X 0x5015 Y I'm looking for the values of the following: a) &array[0] b) array[0] c) *ptr d) (*ptr)+2 e) …

Software Development c++
Member Avatar for Fbody
0
255
Member Avatar for Sparky_

Greetings, I am about 4 hours into JAVA and am making a big mess of it. Last night (at home) I installed the latest JAVA and NetBeans and got a "Hello World" Today I installed the 2 at work and am getting errors involving: "NoClassDefFoundError" (even with what worked last …

Member Avatar for ~s.o.s~
0
180
Member Avatar for JordanHam

I have a function that takes an array, calculates the ln of that array into another array called lnt. I would like to pass lnt back to the main. I know it has something to do with int *foo or something but I cannot seem to get a code to …

Software Development c++
Member Avatar for Fbody
0
174
Member Avatar for SolidSora

I'm trying to get my main function to read my class file. It doesn't compile. Here is my main file: [CODE]#include<iostream> #include<iomanip> #include"countertype.h" using namespace std; void main(){ CounterType counter = CounterType(); counter.setCount(2); counter.getCount(); }[/CODE] And my class code: [CODE]#include<iostream> #include<iomanip> using namespace std; class CounterType{ public: int count; CounterType(){ …

Software Development c++
Member Avatar for JasonHippy
0
223
Member Avatar for 123mehran

I want to write a web calculator in asp.net with vb. I am a beginner in vb.net and asp.net and i want to learn both of them with practice please help me i really need you friends thanks:confused:

Software Development asp asp.net vb.net
Member Avatar for 123mehran
0
1K
Member Avatar for ayarton

Here is my current code, and it works fine to choose one image and copy it, however, I cannot figure out how to allow multiple file selections then copy them to a new folder. Please help! [CODE]Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Software Development vb.net
Member Avatar for codeorder
0
2K
Member Avatar for Zvjezdan23

[CODE]// This is a program that displays the choice the user picks using a Switch Statement #include <iostream> #include <string> using namespace std; int main() { // Underneath A switch program that shows the user his input choice string word1 = "Achieve"; cout << "Welcome to Your AccuWeather Report Screen." …

Software Development c++
Member Avatar for alaa sam
0
189
Member Avatar for judithSampathwa

¬Hi there, I have a quaetion in datagrid view. In datagridview I have add a constaint and if the user didn’t meet the reuirment I add an error text. Which shown below [CODE] if (c == 2) { MessageBox.Show("Cannot select the file name","Message",MessageBoxButtons.OK,MessageBoxIcon.Warning); dgvForm.Rows[e.RowIndex].ErrorText = "Cannot select the file name"; …

Software Development vb.net
Member Avatar for judithSampathwa
0
255
Member Avatar for ravenous

I have to calculate the modal value of [icode]std::vector< int >[/icode] quite often, so I thought I'd share my general method for people to look at, use and/or comment. In my case, the vectors usually contain values in the range 0 - 255. The code first creates a [icode]std::vector< int …

Software Development c++
Member Avatar for vijayan121
0
1K
Member Avatar for z00t

I'm trying to construct a rectangle & compute its area using the getWidth & getHeight methods.. but i cant figure out for to construct a freakin rectangle!! I keep getting the same error when i go to complie it.. no matter how hard i try :p "Cannot find symbol" [CODE]import …

Software Development java
Member Avatar for ajst
0
160
Member Avatar for apanimesh061

Hi there, I am new to using Visual C++ 2005 enterprise Edition. I do not know how run a C++ program in it. It's environment is similar to Turbo C++ 5.5 IDE but still I can't see any 'Run' command anywhere and Ctrl+F9 does not do anything !!!!! Please help …

Software Development c++ ide
Member Avatar for alaa sam
0
202
Member Avatar for ctsmith84

This is my first night, and first post here. First off, let me just say I'm glad I found this site. Since I started looking I've found one-too-many boards where all the users there do is complain about there being no jobs in IT. Anyway, I'm a business BA that …

Software Development
Member Avatar for ctsmith84
0
205
Member Avatar for FlavaK

[CODE] public class ProcessResults { private static int[] PayNum; private static String[] Surname; private static String[] FirstName; private static String[] DoB; private static String[] Dept; private static Scanner keyboard = new Scanner(System.in); private static int NumStaff; public static void main(String[] args) { final int MAX_STAFF = 10; PayNum = new …

Software Development java
Member Avatar for FlavaK
0
128
Member Avatar for natostanco

Usually to print on screen a integer of 2 numbers i divides it for 10 and then use int 21h with mov ah,2 to print the 2 results. However with integers with more than 2 numbers it starts getting complicated and the method i use becomes really too long . …

Software Development assembly
Member Avatar for untio
0
116
Member Avatar for David_Omid

Hey guys, I have a problem with a chess game I'm creating using Windows Forms. The purpose of this code is that I have a load of panels with picture boxes inside them. When the user moves their cursor over the panel or the picture box, the panel lights up …

Software Development c++
Member Avatar for David_Omid
0
217
Member Avatar for warlord902

I configured a logger namely "My Log" in my main class which can write errors in a log file named mylog.txt Now I want to use this same file for all packages and classes there in. I tried to put this in other class Logger.getLogger("My Log") //Did nothing Now what …

Software Development java oop
0
133
Member Avatar for moni94

Hello. How can I run a thread and get an event raised when it runs for a certain amount of time? For example: Let's say I have an encryption program. When the user presses encrypt the thread Encrypt starts. But when the thread Encrypt has been running for more than …

Software Development encryption
Member Avatar for moni94
0
116
Member Avatar for ArtOfShred87

Hello i have to say i am new to programming for safety sake, i did take a computer programming class in high school but the teacher talked like the clear eyes guy and it was difficult not to fall asleep. Anyway i've always had an interest, and my goal right …

Software Development
Member Avatar for jordan0420
0
241
Member Avatar for Mr.BunyRabit

Hey there. How do i execute the code in button1 when i click on button2? I have no idea and will save me alot of coding thank you =)

Software Development
Member Avatar for Mr.BunyRabit
0
77
Member Avatar for jfunchio

I'm writing a program for a class that does operations with rational numbers. I'm not finished with it, but right now i'm working on the is_negative() function which is required to be in the program by the teacher. He has set up a make file to test each part of …

Software Development c++
Member Avatar for Fbody
0
355

The End.