132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mauriciomf

How a function can modify an AnsiString passed to her (and how i can pass AnsiStrings to functions)? Someone can give an example? Im using borland c++ 5.0

Software Development c++
Member Avatar for beryllium9
0
564
Member Avatar for karpaklu

hai dani, pls anyone help me how to add data into filename actually i tried like this: $str|cat >> EmpFile for the above statement im not able to do coz even $str is also considere as command. how to insert the value?

Software Development shell-scripting unix
Member Avatar for sknake
0
66
Member Avatar for des6043

what's wrong about this? why when i compile,it come out expected primary-expression? what is that? [code=c] #include<stdio.h> #include<conio.h> main() { float Lab,Mid,Pro,Quiz,Final,Total; printf("\nEnter your mark for Lab:"); scanf("%f",&Lab); printf("\nEnter your mark for Mid Exam:"); scanf("%f",&Mid); printf("\nEnter your mark for Quiz:"); scanf("%f",&Quiz); printf("\nEnter your mark for Project:"); scanf("%f",&Pro); printf("\nEnter your mark …

Software Development c
Member Avatar for des6043
0
158
Member Avatar for ddanbe

Suppose I have these classes : [CODE=c#] class Square1 ////////// { private int side = 0; //private field public Square1(int side) //constructor { this.side = side; } public int GetArea() //public method { return side * side; } } class Square2 ////////// { private int side = 0; //private field …

Software Development
Member Avatar for sknake
0
77
Member Avatar for grazyah

hi, i have two listboxes namely list1(contains countries) AND list2(contains places).. the flow is when i select a country in list1, the places will be displayed in list2. how do I add places into a selected country in list1? also how do i display the places in list2? im new …

Software Development visual-basic
Member Avatar for grazyah
0
102
Member Avatar for amgupt01

Hi there, I'm working on an application for a lab project and I'm making it in C#. It's supposed to import results from a text file that is exported from the application we use to run the tests and right now, I've hit a road block. I've gotten the program …

Software Development sql
Member Avatar for sknake
0
184
Member Avatar for TomRandall

Hi All, This is probably a stupid question, and I could have easily written a small function that loops over the values and selects the first match... but I'd prefer to use the built in way - if there is one. Is there a built in function to select a …

Software Development pascal
Member Avatar for TomRandall
0
964
Member Avatar for blah32

I am new to regular expressions, but I do not get why this is not working : [CODE] import re inputstr = "HI\n//asgwrg\nasdg" re.sub("\/\/(.*)(\n)", "\n", inputstr) [/CODE] I am trying to substitute everything between "//" and newline with newline. Can someone tell me whats wrong? I am using python 3.1

Software Development python
Member Avatar for jlm699
0
90
Member Avatar for tdapower

[COLOR="Red"]I connected a access database by usin codes, But when i add new data the data doesn't display in same time. it need to restart the programme. can I solve this?[/COLOR]:)

Software Development vb.net
Member Avatar for Vivek_1986
0
158
Member Avatar for smoore

Okay so when I open a file and I would like to pickle something to the file you are supposed to open the file in 'rb' (read binary) mode to load stuff from it. If you want to dump something the file is supposed to be in 'wb' (write binary) …

Software Development file-system python
Member Avatar for jlm699
0
149
Member Avatar for emint

hi all i got problem on JProgress bar. when i click on button progress doesn't show. it display after completing the progress [code] class A{ //button clic ProgressBar frame = new ProgressBar(); frame.pack(); frame.setVisible(true); frame.iterate( ); class ProgressBar extends JFrame //inner class of A { JLabel l1; JProgressBar current; Thread …

Software Development java
Member Avatar for JamesCherrill
0
114
Member Avatar for Dimansu

Hi In my windows application i have a combobox() and textbox().I want to show a messagebox if cmb1 is 0 and txtbx1 or txtbx2 is empty.The below code doesnt work.It shows the Messagebox even when cmb1== 0 and txt1 is empty if ((cmb1.Text != "0" &&( txtbx1.Text ==""|| txtbx2.Text =="" …

Software Development
Member Avatar for darkocean
0
87
Member Avatar for kiuhnmgtrdcv

hi everyone I hope you can help me with converting some c code into assembly code, i have tried much now, and i still don't get it. i'm new to programming ASM this c code gets two number from the user to draw an ellipse [CODE] #include<stdio.h> #include<graphics.h> #include<math.h> #include<dos.h> …

Software Development assembly
Member Avatar for kiuhnmgrtdcv
0
977
Member Avatar for atch

Hi, I've got structure like this class Object //abstract { virtual....=0; }; class Monster : public Object {}; //also abstract class Wumpus : public Monster {}; class Hero : public Monster {}; class Gun : public Object{}; class Cave : public Object { void add(Cave*); void add(Monster*); }; the second …

Software Development c++
Member Avatar for atch
0
122
Member Avatar for Arunabh Nag

getting the following exception : [CODE] Object reference not set to an instance of an object. [/CODE]

Software Development vb.net
Member Avatar for samir_ibrahim
0
99
Member Avatar for belkobot

How to make window active/inactive? I can't find this window property (

Software Development
Member Avatar for belkobot
0
64
Member Avatar for mbb1234

I am having difficulty accessing modified data from a dynamic tab control in VB.net. In this case I have a client record with a "one-to-many" relationship to an address table. I have created code that successfully generates and populates the tabs as required. When I attempt to read the individual …

Software Development database-design vb.net
Member Avatar for mbb1234
0
270
Member Avatar for vinnijain

Hi, I have made an application for rounding off any number to nearest tens,hundreds or thousands.... But for some values my code is giving wrong answer... Like , if i want to solve "25*89" ,in that rounding off 25 to nearest tens , the answer should be 30 (according to …

Software Development
Member Avatar for vinnijain
0
169
Member Avatar for vl4kn0

Hi, I have got a little problem with __setitem__ method. It works fine in single class, but if class member is instance of the same class method __setitem__ doesn't work on class member but on class. Here is an example: Here is a class with __setitem__ method: [code="python"] class MyClass: …

Software Development python
Member Avatar for vl4kn0
0
170
Member Avatar for beatonl

Hi, I am new to the java world. I am getting the following error. ClassB.java:62: incompatible types found : int required: order.ClassB return Integer.parseInt(conString); This what I am trying to do.. I have two classes. Class A and Class B. Class A calls a method located in Class B (refer …

Software Development java
Member Avatar for beatonl
0
183
Member Avatar for avirag

Hi!!! I am making a window application in which there is a textbox in which we have to enter only numeric values... How can I display a table on the form which has columns - ones,tens,hundred ,thousand,ten thousand,lakh , ten lakh etc. Now whatever number we enter in textbox that …

Software Development
Member Avatar for avirag
0
127
Member Avatar for Kartikey

good eveninh sir/madam, error is :- An unhandled exception of type 'System.Data.SqlClient.SqlException' occurred in system.data.dll Additional information: System error. code is : - Dim a, b As Date a = Date.Now.Date b = a.Now.AddDays(-7) Dim dataset2 As New DataSet Dim myconn As SqlConnection = New _ SqlConnection("server=;database=project3;uid=;pwd=") Dim obj_deletecommand As …

Software Development dataset sql vb.net
Member Avatar for sujitkar
0
206
Member Avatar for compiler777

Hello all, I am a new member to this forum. I am learning C programming language here in my local place. I want to know how a while loop is written. I have been given a simple assignment to be done that is "to print even numbers from 1 to …

Software Development c++
Member Avatar for lllllIllIlllI
0
77
Member Avatar for auth_user

Hi all. I'll outline my situation first of all: I work at a university, and we have a problem where students tend to lock their PCs and, being the free-minded youths that they are, just walk away and leave them locked, thus requiring an admin to go and unlock it. …

Software Development
Member Avatar for sknake
0
178
Member Avatar for el33t

Please consider the below code. 1 #include <QApplication> 2 #include <QLabel> 3 int main(int argc, char *argv[]) 4 { 5 QApplication app(argc, argv); 6 QLabel *label = new QLabel("Hello Qt!"); 7 label->show(); 8 return app.exec(); 9 } Now, I'm abit doubtful about line 5. According to the book(from which I …

Software Development c++ qt
Member Avatar for el33t
0
124
Member Avatar for JerieLsky

Hi guys, im trying to develop a library system.. i actually don't know how to implement/create a code on filtering a certain search for a certain book by using keywords.. any code snippets out there?

Software Development visual-basic
Member Avatar for JerieLsky
0
111
Member Avatar for darkocean

I have developed a server/client application. Everythnig is cool but whenever the internet connection is halt or no connection. It show the error message from try/catch and if internet problem is ok and there is connection, program is continue normally but sometimes it is halt.If the error closed this application …

Software Development client-server
Member Avatar for DangerDev
0
101
Member Avatar for ident

Hello. I have sadly been trying to solve this since 1pm, (its now 9) Basicaly i have a single instance project when a user right clicks an image it trys to host it. i use this code (yes this really did take me all them hours to get) [code] Private …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
207
Member Avatar for buddyholly

I'm trying to get a user input number from text box on my GUI, then there are some calculation for that number and display it later in the same text box. Number entered is supposed to have hyphens which are then stripped to check for validity of that ISBN number. …

Software Development c c# c++ gui
Member Avatar for ddanbe
0
701
Member Avatar for jen140

Hello again. I'm now looking for a way to see if the current user has admin rights. I tryied the Iczelions way, and it always says that i dont have admin rights (on vista) . The next code i dont remember where i found, but it always says that the …

Software Development c++ windows-vista
Member Avatar for jen140
0
160
Member Avatar for Ana D.

Hi, I would like to know if there is a way to rename a label which is inside a GridView during the runtime. What I'm trying to do is: if the user chooses an option, Label.Text will be "Option 1"; if he chooses the other option, Label.Text = "Option2". Is …

Software Development vb.net
Member Avatar for Kids
0
88
Member Avatar for mandofl

Hello once again. I'm trying to do one last project, but unlike the others, that usually i struggle with some common errors, this time i have problems figuring out how its supposed to be created. This is the question: Write a class named Employee that has the following member variables: …

Software Development c++
Member Avatar for mandofl
0
4K
Member Avatar for onecarloz

I have to create a small bank program here are the instructions any help is appreciated Write a program that allows users to enter a dollar amount for their bank account balance at the beginner of the month. Then ask the user to enter dollar amount for any number of …

Software Development c++
Member Avatar for onecarloz
0
138
Member Avatar for darab

Hi Dears I want check the value of my gridColumns , I want user only type digit, I don't want let user to type any thing else except digit How I can check it? and in which event I have to write this codes?

Software Development
Member Avatar for sknake
0
150
Member Avatar for ambarisha.kn

Question: Declare a pointer to a function taking an int argument and returning a pointer to a function that takes a char argument and returns a float. I did code as follows. But it is giving error. Please correct this. [code=C] #include <iostream> using namespace std; float func(int x)(char c) …

Software Development c++ ubuntu
Member Avatar for Duoas
0
235
Member Avatar for Dr Stupid

Hi there. I'm fairly new at using C++ and I have to do program on this summer course I'm doing. Trouble is, despite what I have read through and been taught, I just can't get my head around a few things regarding this program I need to make within three …

Software Development c++
Member Avatar for JameB
0
134
Member Avatar for k007

If I want to create an associative array in C++ without the use of std::map, what are the possibilities? I want to set it up as a template so that it can be used with various datatypes. Example: Array<int> // (associative array), and then be able to insert elements into …

Software Development c c# c++
Member Avatar for mrnutty
0
112
Member Avatar for sieghuirt

i'm currently doing an assignment which asked me to do something like a sudoku. but this 1 is a 4 by 4 sudoku. the part tat i'm stuck is where i need to make a grid tat enable the user to move around in it n input their answers.

Software Development c++
Member Avatar for VernonDozier
0
105
Member Avatar for lotrsimp12345

Here is a link to the actual project. I could easily use getline for the phrase. Don't need to overload it to read in phrase. [url]http://home.earthlink.net/~craie/122/projects/framed.phrase.html[/url]

Software Development c++
Member Avatar for lotrsimp12345
0
244
Member Avatar for php_noob

I am using a data connection (i don't know what...) I just have a connection string in APP_CODE and some supporting codes to execute it. (That's not the question) Well What is your recommended DB connection in ASP.NET, Is the real world still using ADO? is ADO for simple website …

Software Development asp.net cms vb.net
Member Avatar for php_noob
0
83
Member Avatar for patrick k

Hey everybody, I was trying to create a program that simulated the game "Mastermind" using numbers 0-5 instead of the six colored pegs. I have written out the code, and it seems to work, all except for the loop I have set to see if the user wants to play …

Software Development c
Member Avatar for Hiroshe
0
252
Member Avatar for Basicgear

Ive created a console program that works. The program launches and asks for the user to input values for the player class. Then I initialize a list of Monster classes and have values entered into the method to create each monster. But I am receiving an error after the program …

Software Development
Member Avatar for kvprajapati
0
117
Member Avatar for snag49ers

I need to scan a directory and get the files located in it, which is not a problem, but I also need to know if the directory contains folders because I also need to open the folder and get the files in those directories. I put this code together and …

Software Development c++
Member Avatar for snag49ers
0
98
Member Avatar for aulason

hi there, i'm designing a form in Right-to-Left mode. there are some autosize labels getting their text from the string table of the project's resources. however, when the text is inserted into the label at runtime, it enlarges to the left and goes out of the form. logically, the label …

Software Development
Member Avatar for sknake
0
1K
Member Avatar for NewToThis

I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following …

Software Development java
Member Avatar for cgeier
0
124
Member Avatar for sara9111

[COLOR="Red"][B]How i solve this problem ?? i try, but i don't know wts the wrong??[/B][/COLOR] A.Write the defintion of function one so that it returns the sum of x and y if x greater than y, it sholud return x mines 2 times y. B.Write the defintion of function two …

Software Development c c# c++
Member Avatar for jesseb07
0
122
Member Avatar for cesarnz

hi all, does anyone know much about the FESI interpreter ??? i am getting an error while using this third party product (GTX) which is written in java and i cant work out whats wrong. FESI is built into this product which i am using so i dont know the …

Software Development java
Member Avatar for cesarnz
0
117
Member Avatar for Furtano

Hello, I want to use an new library i downloaded e.g. chilkat library ([url]http://www.chilkatsoft.com/python.asp)[/url], how do i do that ? I tried to put on the beginning of my code: [code=python] __path__ = ["dir_with_chilkat_pyd"] require chilkat [/code] but does'nt work. What i want to run: [url]http://www.example-code.com/python/http_loginForm.asp[/url]

Software Development python
Member Avatar for leegao
0
1K
Member Avatar for SuperMetroid

Why don't either of these implementations actually write to the file? Code v1: [CODE] txtfile = open('C:/Python31/SKUs.txt', 'w') with txtfile: num = 817 while num <= 820: x = "G" + str(num) print(str(x), end=" ") num += 1 txtfile.close()[/CODE] Code v2: [CODE]txtfile = open('C:/Python31/SKUs.txt', 'w') num = 817 while num …

Software Development python
Member Avatar for SuperMetroid
0
157
Member Avatar for fallopiano

Hi all. I'm having a bit of trouble (maybe it's easier than I think..) finding the lowest and highest number in a tuple of lists. Here is my main tuple: [CODE=python]list_of = ([0,7],[100,25],[150,59],[300,189]) [/CODE] so pretty much, I need python to return the lowest and highest number for each 'item' …

Software Development python
Member Avatar for snippsat
0
270

The End.