132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Datsun90

Hi friends, Using VB.Net 2005, I have a datagrid to enter purchased items with quantity and purchase price, and calculates the total cost for each row (item). It looks something like this: RecordID-------ItemID-------Qty------UnitPrice-----------ItemTotal 1 ------------- 1000 ------- 2 --------- 10 ----------------- (20) 2 ------------- 1004 ------- 5 --------- 30 ----------------- …

Software Development vb.net
Member Avatar for jalpaeol
0
140
Member Avatar for networkburner

So, I've been coding C++ for a while now, and in that time I've of course surfed the web a fair bit. Is it just me, or does everybody on the internet just hate conio.h's _getch()? I've seen a lot of forums where people are asking the best way to …

Software Development c++
Member Avatar for Ancient Dragon
0
151
Member Avatar for mps727

Whenever I step through my code, visual studio will step into things like string, and the new operator. When it does this it also leaves a tab for the file open at the top. Is there a way to configure it to only step into code that is loaded in …

Software Development c++ visual-studio
Member Avatar for mps727
0
98
Member Avatar for serkan sendur

i keep some formatting data in an array of structs. it is a very long array. is it better to keep this information in another class and inherit from this class or is it better to not inherit from this class but create an instance of that class and use …

Software Development c++
Member Avatar for Narue
0
90
Member Avatar for OrderChaos

Hello I am working on a simple calculator program for school. I already have all the button clicks working, which is all that was required. I thought it would be cool if I could get it to where you could use the keyboard for entry and I've done similar things …

Software Development visual-basic
Member Avatar for Ramy Mahrous
0
1K
Member Avatar for yuleball

In microsoft word we can add a textbox o document. Is there a way to add the same in rtb in vb.net

Software Development vb.net
Member Avatar for lostandfound
0
93
Member Avatar for wheatontrue

Dear all, I am trying to create x attributes in a class, to the effect of: class classic: def __init__(self,text): r=range(text.count('TI -')) for l in r: self.l=None Unfortunately I can't iterate through for some reason. I only get self.l, not, for instance self.1 to self.107 How do I do this? …

Software Development python
Member Avatar for wheatontrue
0
84
Member Avatar for xyzt

I really can't understand why the belove code gives error. I get this error: [I][B]In function 'int* bubble_sort(int*)': error: no matching function for call to 'swap(int*&, int&, int&)' [/B][/I] May someone please show me the reason? [CODE]int* bubble_sort(int arr[]) { for(int i=0;i<sizeof(arr);i++){ for(int j=0;j<sizeof(arr);j++){ if(arr[i]>arr[j]) swap(arr, i, j ); break; …

Software Development c++
Member Avatar for Salem
0
82
Member Avatar for ddanbe

Start a new Forms application. Add a DataGridView control to the Form. Add a few Columns to the DataGridView. In the properties window select the ColumnHeadersDefaultCellStyle (ahh what's in a name...) property. A dialog opens. Change the appearance BackColor to whatever color you like. Run the application. On my system …

Software Development
Member Avatar for ddanbe
0
340
Member Avatar for bajanpoet

Hi guys! I have created two table valued multi-statement functions using SQL Server 2000 and am now trying to develop a VB.NET front end application where I run the functions and pass string parameters to them. When I run the function in SQL Server Query Analyzer, it works, but when …

Software Development vb.net
Member Avatar for bajanpoet
0
116
Member Avatar for mahdiahmadirad

Hi Dears! I Wrote A Bubble Sort for sorting 2D array of characters. and logically it seems correct, but unfortunately not works. please help me. this is my output: unsorted: mah ali sal Sorted: ali ali mah Here is my Code so far: [CODE] #include <iostream.h> #include <stdio.h> #include <string.h> …

Software Development c++
Member Avatar for mahdiahmadirad
0
188
Member Avatar for daddanakunadan

Hi friends can any one help me to solve this problem. I want to display the inputs of text boxes by using datadrid control. i am using visual studio2005.I tried with the following code [code] (datagridobject).DataSource=(arrayname) [/code] but this displaying column name as "length" and its values are numeric.How can …

Software Development c c# c++
Member Avatar for Antenka
0
102
Member Avatar for Rashakil Fol

I would like to take a poll of what version of C# and .NET you are used to working with. I'll start. C# 3, .NET 3.5.

Software Development c#
Member Avatar for hieuuk
0
146
Member Avatar for chriswininger

I have a form in my vb project (let's call it frm_UpdateDetails). It contains a user control (Let's call it MyUserControl). The user control has several fields that allow the user to edit entries in the database. There is another form (lets say frm_Main) that calls a method in frm_UpdateDetails …

Software Development vb.net
Member Avatar for Ramy Mahrous
0
143
Member Avatar for serkan sendur

hi guys i want to achieve something like this : in header file : [CODE]#pragma once class wef { private: int a[]; void setI(); };[/CODE] and the code file will be like this: [CODE]#include "wef.h" void wef::setI() { a = {1,2,3}; }[/CODE] could you please help me with that?

Software Development c++
Member Avatar for serkan sendur
0
13K
Member Avatar for serkan sendur

i have a struct and i need to use an array of that struct. The member of that array is definite at compile time, so i am going to hard code them. how do i declare it in my class header file and fill the items in the class file?

Software Development c++
Member Avatar for serkan sendur
0
298
Member Avatar for robertmacedonia

Hello, I would like to ask is there any class connected with the Tree data structure in the Java Api, since I couldn't find one. I'm just starting to study the Binary Search Trees, the Heap data structure etc. As far as I could see until now, I will have …

Software Development api data-structure java
Member Avatar for robertmacedonia
0
99
Member Avatar for naseerkhan861

hi guys can anybody has a c++ code on permutation cipher and hill cipher ,terms used in cryptography.

Software Development c++
Member Avatar for MosaicFuneral
0
72
Member Avatar for Mighty

[code=cplusplus] #include<iostream> #include<iomanip> using namespace std; int main () { int month, year; float totalCollected, Sales, CountySalesTax, StateSalesTax; float TotalSalesTax; std::cout<< " What is the Month:"; std::cin>>month; std::cout<<"What is the year:"; std::cin>>year; std::cout<<"What is the total amount collected at register:$"; std::cin>>totalCollected; std::cout<< setprecision (2) << fixed; float sales=totalCollected/1.06; CountySalesTax=sales*.02; StateSalesTax=sales*.04; …

Software Development c++
Member Avatar for Salem
0
166
Member Avatar for jalpaeol

Hi I have to limit that user for no age less then 18 years I have only 2 ideas for developments of these 1 > check for date year is greater then 1990 of today then but i think it is not good way to coding for flexibility in future …

Software Development asp.net vb.net
Member Avatar for rapture
0
110
Member Avatar for attari19

:sad: Salam, I need complete Account Project Sale, Purchase, Inventory, All Accounts reporty in VB 6.0 . becouse it my task which not solve and face differant Error in programming. Please any body Solve this my HOT ISSUE. Best Regarde &:'( Bundle of Thanks.

Software Development visual-basic
Member Avatar for jireh
0
55
Member Avatar for Yaserk88

Hey. I am trying to output a file. I pretty much have down, but the only problem is I'm getting the last set of my numbers and missing the other 5000 or so sets. Here is what I have [[ICODE]for (int i=0; i < N_plates; i++) { cout << i …

Software Development c++
Member Avatar for Yaserk88
0
132
Member Avatar for ylenaj

What are the codes when you cancel a list of names in the database in a certain field? This is the situation: I made a reservation in a certain hotel. Of course they asked my name, what kind of room. . Automatically, it saved on the database of their system. …

Software Development java java-swing
Member Avatar for stephen84s
0
120
Member Avatar for urufukiba

im trying to make a program that reads a text file in the format: 2 polygon 3 90 90 90 90 90 90 polyline 2 12 80 30 15 (not the real numbers obviously) and have the program read how many things, what type, how many points for that type, …

Software Development c opengl
Member Avatar for urufukiba
0
94
Member Avatar for serkan sendur

i got compiler error stating that : Only static data members with const integral or const enumeration type can specify an initializer in the class definition what is the logic behind that? why is the compiler designed not to accept any non constant static initialization of types?

Software Development c++
Member Avatar for Narue
0
113
Member Avatar for gsingh2011

Hi, what are the advantages of C# over C++? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to.

Software Development c# c++
Member Avatar for ddanbe
0
841
Member Avatar for bob on whidbey

I'd like to read/write xls files in Delphi. I think there's a way to do this using ADO. Can anyone provide an example or head me in the right direction. Thanks.

Software Development delphi pascal
Member Avatar for LizR
0
301
Member Avatar for mtramnes

I downloaded active perl and go to the perl package manager but I cant figure out how to get my applications to run. Any suggestions?

Software Development perl
Member Avatar for KevinADC
0
132
Member Avatar for mtramnes

Im taking a perl class not exactly sure if what Im doing is right. I was to take a written program that allowed the user to enter a number guessing what the target was. The original used elseif statements to let the user know if the guess was to high, …

Software Development perl
Member Avatar for KevinADC
0
125
Member Avatar for floodemo

[code]#include<iostream.h> #include <string> using namespace std; struct sdata { char name[5]; int reg; }; struct sub { char subject[30]; sub * move; }; void instudent(sdata & ins ); void show(sdata * ins); class inf { sub * begin; sub * look(int limit) { sub *pointer=begin; for(int i=1; i<limit; i++) pointer=pointer->move; …

Software Development c++
Member Avatar for Alibeg
0
150
Member Avatar for Dell XPS

i have windows mobile and i need to send an receive messages via my phone from my pc. can you help?

Software Development vb.net
Member Avatar for Dell XPS
0
95
Member Avatar for CPPRULZ

Hi I have to do an assignment for a course that includes that I use new stream insertion and stream extraction techniques. On the lecture notes it briefly mentioned cin.get() and getline but not in a very descriptive way. Could anyone please summarize the use of get() when inputting more …

Software Development c++
Member Avatar for mrnutty
0
115
Member Avatar for Medix

How can we Justify this thing that Dynamic memory allocation is more flexible and efficient than static memory allocation but slower than static?Pls explain

Software Development c++
Member Avatar for Medix
0
91
Member Avatar for timos

Hello, this is my file format: MP,EX,1,1.081048e+10 MP,ALPX,1,9.600000e-06, 3, 2.3 MP,NUXY,1,3.000000e-01 CX,DENS,1,2.797598e-01 BT,KXX,1,6.752689e+02 MP,C,1,3.448000e+05 I want to extract first sring, then second, then I want to extract all numbers in to a float till I come newline, there could be up to 10 values. How do I extract if my …

Software Development c++
Member Avatar for vmanes
0
89
Member Avatar for gsingh2011

Hi, what are the advantages of C++ over C#? I have a little bit of knowledge in both of them, but I am going to choose which one to dedicate most of my time to.

Software Development c# c++
Member Avatar for d0pedup
0
298
Member Avatar for d0pedup

Firstly, this is my first "project" involving code written by others, on top of which no experience dealing with any framework. Given this information, how do i understand a framework. Also, Very little documentation is available ATM. I tried to use a top down approach i end up accomplishing very …

Software Development c++
Member Avatar for d0pedup
0
86
Member Avatar for Unebrion

Hi everyone! I'm new here this is my first post and woe is me its a call to anyone willing to help me! I'm in an introduction course to java at school and I have programed a little in the past, but nothing to write home about. Today my instructor …

Software Development java
Member Avatar for quuba
0
141
Member Avatar for jake88

I've parsed an XML and now I'm trying to write into some elements that are text nodes. What is the best way to go about writing into these text nodes? Ex. <tag>insert texty text here </tag>

Software Development c++ xml
0
63
Member Avatar for seebharath

How do i read an xml file with unmanaged c++?? is there any built in classes with VS 6.0 i.e with unmanaged code.. Please help..

Software Development c++ xml
Member Avatar for jake88
0
114
Member Avatar for yuanza

I have this program that will ask user to put in the day, it compiles but every time i set the day to Saturday this program won't display Saturday, instead it shows Sunday. It also won't correctly generate the output for yesterday if the current day is Sunday and tomorrow …

Software Development c++
Member Avatar for yuanza
0
127
Member Avatar for Lukezzz

I have a general question. I have a Form where I have some buttoncontrols and 3 textBoxes. What I do now is to add a "TabControl" and a panel1 on the Form and then I put all the other controls inside this panel on the "TabControl". When I now compile …

Software Development c++
Member Avatar for vnevyhosteny
0
193
Member Avatar for niall_heavey

I am trying to make a database of images. The purpose of this is for Robocup soccer tournament. When the robot sees an image while playing it can then refer to its database of images and match its image with one in the database. The database image should have properties …

Software Development c
Member Avatar for Nick Evan
0
81
Member Avatar for nikola.rosic

I have a panel on form and i'm drawing a graph on it with a pen.When i open something on top of that form or i minimize the form and maximize it, the panel goes white until i draw something on it again.So i think i could call an event …

Software Development
Member Avatar for nelis
0
222
Member Avatar for jo84

hello everybody I am new to this forum. i got a doubt. i working on a small project. the thing is my Hosp no should be in the format 123456R. Now there are old patient with the following the hospital number 12345R. In this case i want a 0 to …

Software Development visual-basic
Member Avatar for QVeen72
0
151
Member Avatar for Stefano Mtangoo

Hello all, I'm starting C++ and wan't to learn for loop. I want the Loop to count down the rotate and print its value until when it equals to value where it terminates. Here is code [CODE=C++] int value; int rotate = 4; for (value = 0; rotate>value; rotate--; ){ …

Software Development c++
Member Avatar for Stefano Mtangoo
0
92
Member Avatar for thelamb

Hello all, I am coding a client/server in C++ - everything is working so far but I was wondering if my approach is correct or if there is a better way of handling this: In this version only 64 clients need to be able to connect, in a different application …

Software Development c++ client-server
Member Avatar for thelamb
0
182
Member Avatar for Stefano Mtangoo

I know of ww.portablepython.com/ Can anyone know how to do a combination of IDE and this python in stick. Also if anyone have ever tried to add other python modules to it like Vpython, wxpython, etc Thanks alot

Software Development ide python
Member Avatar for Stefano Mtangoo
0
393
Member Avatar for taichou

hi, it's me again, uhm i have this program for bantumi game, this program is running, but there are some problems i am encountering whenever i execute it.. hope you understand my program.. [code=c] //this is a two player bantumi game,the user will enter the position in the board game …

Software Development c
Member Avatar for geemicah
0
133
Member Avatar for smithss

Hi Guys... I have some basic doubts with references and pointers and need some understanding on the behavior of this code [code=c++] #include <iostream> using namespace std; class a { public: int getAmount(a&); private: int amount; }; int a::getAmount(a& p) { cout << this << endl; cout << p << …

Software Development c++
Member Avatar for smithss
0
91
Member Avatar for TasostGreat

i've got this code it compiles but it when I try to run it it says segmenatation fault [CODE]/* #include <stdio.h> #include <iostream> using namespace std; int rite(); int a,b; char g,f; int main () { size_t count; FILE * pFile; pFile = fopen ("in.h","r"); count = fscanf (pFile, "%d%d",&a,&b); …

Software Development c++
Member Avatar for TasostGreat
0
140

The End.