132,728 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for N1GHTS

What do you guys think is a good way to deal with this situation: [code] #define TYPE_INT 0 // 4 byte, signed #define TYPE_CHAR 1 // 1 byte, signed #define TYPE_UINT 2 // 4 byte, unsigned #define TYPE_FLOAT 3 // 4 byte, signed, floating point typedef struct { float Value; …

Software Development c
Member Avatar for N1GHTS
0
111
Member Avatar for bobjohnson

I have to write a C++ program that: Declares and defines a class called “bankAccount

Software Development c++
Member Avatar for roshaero
0
240
Member Avatar for Sarama2030

how is c++ a graphical user interface programming language, i mean how does all the code fit in to develop window based applications.

Software Development c c# c++ gui user-interface
Member Avatar for Stefano Mtangoo
0
146
Member Avatar for fire_

Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;)

Software Development c++
Member Avatar for Ancient Dragon
0
117
Member Avatar for broli100

Hello, I want to do classic "save as" function, how you know it from all programs, but I have a problem - when I put constant pathname in fopen function , like "file.txt" ,it works. But when I type a variable char[], it does nothing. Then I looked for function …

Software Development c++
Member Avatar for broli100
0
225
Member Avatar for neoraghav

Hi, i accidentally given input as character for a integer variable.....then the program went crazy and just flooded the console..... so, is there any way to handle this exception......and how to achieve that thank you

Software Development c++
Member Avatar for neoraghav
0
153
Member Avatar for Klaurac

Hello I've got this Videorental code. The flow: 1. Another user wants to rent a video. 2. Hes Videorental creates a new Video object with a Rent object, which sets he the renter and the other user the owner of the Video. The User object has Videorental object, it has …

Software Development
Member Avatar for Klaurac
0
102
Member Avatar for harris21

i have a XML file containing data, i want to parse it in c. can you help me out in parsing.

Software Development c xml
Member Avatar for N1GHTS
0
2K
Member Avatar for xsnake7

hi, how can i use the result of a function without having it repeated ? like in the code down there i have to use the result of the function [B]get_sides()[/B] in all of the other functions..but the way i coded it down there will make me enter the values …

Software Development c c# c++
Member Avatar for xsnake7
0
247
Member Avatar for tomtetlaw

Can someone give me an example of how to use the ToAscii functions to convers windows virtual key codes to ascii characters? I've tried to search on google, but I can't find an example..

Software Development c
Member Avatar for Ancient Dragon
0
198
Member Avatar for neoraghav

Hi, i want to konw how to create and use thread in c++[vc++ 6.0], what all are the header files needed, can anyone please write a simple code for that...... can anyone please refer to some links where i can get good hold of c++ threads

Software Development c++
Member Avatar for Ancient Dragon
0
287
Member Avatar for PeterX

Hi! I want to learn C language. my question is: how dose this while loop wok. [code] while((c=getChar()) !=EOF) if(c>'0' && c<'9') nbr++; [/code] How EOF(end of file ) works? EOF=-1; How can I stop the program? when I write (-1) I can not stop the program.

Software Development c
Member Avatar for N1GHTS
0
258
Member Avatar for gpsmith1

I have a Perl parsing problem. I have to find a keyvalue for a KEYWORD KEYNAME. I have a file containing KEYWORD KEYNAME on a line followed by keyvalue on a subsequent line An added problem is that the file allows perl & shell type comments using # – e.g. …

Software Development perl
Member Avatar for d5e5
0
110
Member Avatar for myk45

i needed to write a simple program to demonstrate the CRC mechanism in Networks. i needed a string of bools to be XORed with the polynomial. Well, i used <bitset> but that did not help much. So i just used a bool vector. This is how i proceeded. Here, when …

Software Development c++
Member Avatar for myk45
0
138
Member Avatar for falconwise

I am getting the following errors. ../MergeSort.c:32: error: expected expression before ‘]’ token ../MergeSort.c:33: error: expected expression before ‘]’ token [CODE]void mergesortinplace (int start, int length, int array[]){ if (length >= 2){ mergesortinplace(0, (length/2), array[]); /*GETTING ERROR HERE*/ mergesortinplace((length - (length/2)), length, array[]); /*AND HERE*/ } if (length >= 1){ …

Software Development c
Member Avatar for falconwise
0
222
Member Avatar for koduruabhinav

Hi, I have two files and each consists of modules and in turn modules consists of some verilog data and instances.i have to search for module name in the two files and comapare the contents of the modules in the two files. i have code it does module search,extract the …

Software Development perl regex
Member Avatar for koduruabhinav
0
236
Member Avatar for cmcpart0422

Hey I'm new to the site but I'm taking a class that will probably have me here often asking stupid questions. One of my homework problems is create a python program using a while loop to answer the 100 fowl problem. The 100 fowl problem is a farmer sold 100 …

Software Development python
Member Avatar for cmcpart0422
0
111
Member Avatar for tomtetlaw

What is the windows api virtual keycode for the ` key(the one next to the 1 key), i can't seem to find it anywhere on google or msdn.

Software Development api c google-api windows-api
Member Avatar for N1GHTS
0
91
Member Avatar for Sandhya212

Dear all. I have a file with lines like this.[CODE] query 210 ACTTGGACTC 219 query 311 ACTTGGACTC 320 ....[/CODE] From every line, I need to extract the number coming right after 'query' and then the DNA sequence. I currently read each line as a list but was only able to …

Software Development python
Member Avatar for Sandhya212
0
179
Member Avatar for mrbungle

I guess I have two questions (Visual Basic 2010)- When I run my compiled project, it creates a start menu folder and desktop icon. But there's nothing in the Program Files of my OS. Is it because my project is still small- or something else? Shouldn't it create a folder …

Software Development vb.net visual-basic
Member Avatar for AndreRet
0
110
Member Avatar for iceman101

Hi could some one please help me with code for vb6. I have started on a calculator for profit but a error "Overflow" keeps coming up here's the code im usin dim number as integer number1 = label1.caption number= val(label2.caption) label3.caption = number Pls help!!!!!!!!!!!!!!! thanks iceman:rolleyes:

Software Development visual-basic
Member Avatar for AndreRet
0
112
Member Avatar for caierhui

I am trying to make an Inventory GUI application using MySQL and NetBeans. So far, i was able to do add,delete,search, and save using Java Desktop Application. I now have to add a SEARCH button, a notification for the quantity if it is less than 10 and a USERNAME and …

Software Development gui java java-netbeans java-swing mysql
Member Avatar for stultuske
0
2K
Member Avatar for 47pirates

Can i create a Ms access database through java code? Can i place Ms access Database inside my project and can i manipulate them?

Software Development java
Member Avatar for stultuske
0
132
Member Avatar for Firestone

My compiler won't pause on getchar();. I have Dev C++ 4.9.9.2 and if I put getchar(); at the end of the program, it doesn't stop, and the console window still exits. It still exits when I assign a variable to it c = getchar(); Is there another way to pause …

Software Development c
Member Avatar for Narue
0
2K
Member Avatar for hooky75

Hi all, I have written a basic program with 3 option using a switch statement, the 2nd option being a reverse string code using charAt() when you select option 2 and press enter it then switchs to case 2: which then asks for the string you wish to reverse, is …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for chichi44

Hey! I'm taking my first CS class and new to all this... i'm using eclipse. i need to prompt the user to enter their FULL name ie. John Smith. i cannot ask the user to enter their 1st and last name separately. i then have to print/display the name in …

Software Development java
Member Avatar for stultuske
0
86
Member Avatar for alleybye

i can trap Number only but i cant trap letter inputs. how to do that? please? example. Enter a letter: 5 "INVALID INPUT! PLEASE ENTER A NUMBER!" please guys?!

Software Development java
Member Avatar for stultuske
0
95
Member Avatar for vasunttfshimoga

Hello, i want to know what's the use of new keyword while Initializaing the array in JAVA.How it's helping in java whether same like new in c++ or malloc in c

Software Development java
Member Avatar for stultuske
0
281
Member Avatar for Leodumbi

Hi Guys Hi have a small project I've been developing too hel me study VB 2005. Now I stuck. could pease help me on How Could I exort retrieved data into an excel Sheet. consider having 4 text boxes and 1 pic box. Hope hear from you soon Leo

Software Development vb.net
Member Avatar for mrbungle
0
156
Member Avatar for jorgeflorencio

Hello my friends I have a txt file with the follow layout [QUOTE] error1 255 error2 34 error5 111 error3 23 [/QUOTE] and what i'm trying to achieve is, from this text file plot a trend chart with the errors and respective quantity! this is the code that i'm using.... …

Software Development dataset file-system java java-swing
Member Avatar for stultuske
0
2K
Member Avatar for Simran Kaur

Hello, I am getting the below error while migrating from VB6 to VB.Net: Error 1 [B]'PrintForm1' is not a member of 'System.Windows.Forms.Form'. [/B]in the below code: [B]Public Sub PrintScreen(ByRef frm As System.Windows.Forms.Form, ByRef FormHeight As Short) [I]'UPGRADE_ISSUE: PrintForm Component might require to be declared.[/I] frm.PrintForm1.Print(frm, PowerPacks.Printing.PrintForm.PrintOption.CompatibleModeClientAreaOnly) End Sub[/B] The error …

Software Development vb.net
Member Avatar for Simran Kaur
0
926
Member Avatar for Simran Kaur

Hello, I have Get() & Put() functions in my VB6 project. It was upgraded to FileGet() & FilePut() but they are not working. I am getting the runtime error as "Unable to read beyond the end of the stream." Eg: FileGet(X, Y, Z) -> I think the parameters are FileGet(FileNumber, …

Software Development http-protocol vb.net visual-basic
Member Avatar for Simran Kaur
0
1K
Member Avatar for jtylerboy222

Can't get the right output.. Trying to calculate mean, standard deviation, & variance through data structures. [B]Output:[/B][CODE]Mean: -9.25596e+061 Standard Deviation: 2.2836e+046 Variance: 5.21481e+092[/CODE] [B]Code:[/B][code] #include <iostream> #include <stdio.h> #include <math.h> using namespace std; struct StatData { double Data[10]; double mean; double stdDev; double variance; }; int main() { const int …

Software Development algorithm c c# c++
Member Avatar for burcin erek
0
170
Member Avatar for glenak

I've been programming in Java using Java SE, but I want to move on to Java EE. Is this a good idea? I used to think I had to pay to download the Java EE SDK, but that's not the case. So, basically, I'm a bit confused about what Java …

Software Development java
Member Avatar for Dean_Grobler
0
150
Member Avatar for StephenHancox

Hi, Does anyone know how to open a shared, read-only MS Word document in MS Word outside of the application upon clicking a command button? Any help would be really appreciated Many, many thanks

Software Development visual-basic
Member Avatar for peter_budo
0
4K
Member Avatar for swathys

hi, How do i delete the selected records at listview and textfile (which keep the record from listview) and at the same time show the total current balance at listview. any guidance plz help. [CODE]Imports System.Data.OleDb.OleDbCommand Imports System.Data.OleDb Imports System.IO Imports System Imports System.Text Imports System.Windows.Forms Imports System.Console Public Class …

Software Development listview vb.net
Member Avatar for swathys
0
120
Member Avatar for bettersaid

[CODE]import os from appscript import * this = app(u'System Events').application_processes[param1].windows[param2].exists() while True: this1 = app(u'System Events').application_processes[param1].windows[param2].count(each=k.radio_button) if count == (this1): this2 = app(u'System Events').application_processes[param1].windows[param2].radio_buttons[param3].click() try: os.makedirs(param1) except OSError: if os.path.exists(param1): this3 = os.system('screencapture -C '+ param1 +'/'+ param2) while True: self.param2 = os.path.join(param1, 'win%s_%s_img_%s' % (param1, param2)) return param2 + …

Software Development python
Member Avatar for bettersaid
0
190
Member Avatar for keanoppy

[CODE] int a,b; double temp; int sortTheNumbers = sentenceList.size() - 1; for (a = 0; a < sortTheNumbers; ++a) { for (b = 0; b < sortTheNumbers; ++b) if(score[b] < score[b + 1]) { temp = score[b]; score[b] = score[b + 1]; score[b + 1] = temp; } } [/CODE] …

Software Development java
Member Avatar for keanoppy
0
268
Member Avatar for jackparsana

hi, Can i change color of shadow for popup container. in C#. i use ModalPopupExtender popup. as bellow : <cc1:ModalPopupExtender ID="ModalPopupExtender5" runat="server" TargetControlID="Button5" PopupDragHandleControlID="Panel5" Enabled="true" OkControlID="lbtcanceldv" DynamicServicePath="" PopupControlID="Panel5" DropShadow="true" s BackgroundCssClass="modalBackground"> </cc1:ModalPopupExtender> Can i change color of this shadow? thanks in advance. jack

Software Development c# html-css
0
85
Member Avatar for neoraghav

Hi, i have created dll and lib files using vc++ 6.0.. how can i use this files in my program.... i want to know how to link the lib and dll file in which ever program i want using vc++ 6.0 please help..... thank you....

Software Development c++
Member Avatar for neoraghav
0
202
Member Avatar for mdusiek

hey guys, i just started my AS course of computing in school. we've just started but i've been trying out different things, you know programs and whatever i could get out of it with my basic knowledge. so i decided to try to make a program that will work out …

Software Development delphi pascal
Member Avatar for pritaeas
0
134
Member Avatar for JoonYup

Hello, I'm trying to write a program for matrix multiplication I keep getting an error.... Please help [code] class Matrix { private int numRows, numColumns; private double x[][]; public Matrix(int m, int n){ numRows = m; numColumns = n; x = new double[numRows][numColumns]; for(int i = 0; i < numRows; …

Software Development java matrix-multiplication
Member Avatar for masijade
0
106
Member Avatar for jackparsana

Hi, Please help me to create tool strip. Can i use tools commonly for all the winforms? how to create common toolstrip? for example : I have one toolstrip.it has one delete button. All winform has one datagrid and data comes from differs tables. Now i want to remove the …

Software Development vb.net
Member Avatar for lolafuertes
0
213
Member Avatar for guptas

Hi, in my project i am creating a rtf file using xx.save(considering xx is the name of file), now when i try to load the same file using xx.load it opens the file in rtf box it loads the file successfully but prints few unwanted information too. a sample what …

Software Development vb.net
Member Avatar for lolafuertes
0
98
Member Avatar for nlblnx

Hi all, I'm using the following code at the moment to get a panel to drag across the form: [CODE]private void panel1_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Point newLoc = new Point(e.X+panel1.Location.X, e.Y+panel1.Location.Y); panel1.Location = newLoc; } }[/CODE] I had to put the +panel1.Location.X parts in …

Software Development
Member Avatar for Matt_Lebrao
0
7K
Member Avatar for kimmi_baby

I've created a program with turtle graphics that has 3 functions. One draws rectangles, one draws squares and one sets the position. I'd like to create a function that fills in the shapes with different colours. I know about begin fill and end fill... but I would really like to …

Software Development python
Member Avatar for stevenpgrm
0
83
Member Avatar for AirGear

i currently have a project. The application created in this project will be located in a server, and some machines can access this application at the same time. The problem is, i don't know what's needed to connect that application to several machines. I know how to build this application …

Software Development client-server vb.net
Member Avatar for Oxiegen
0
109
Member Avatar for Jader

I have a combobox created and I need a textbox to become visible and ask how many they would like of the item they selected from the combobox... Once that number is entered, I need a pop-up window to appear that confirms the purchase with a yes/no. Any help would …

Software Development
Member Avatar for Jader
0
146
Member Avatar for badae

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MenuDemo extends JApplet { // Text fields for Number 1, Number 2, and Result private JTextField jtfNum1, jtfNum2, jtfResult; // Buttons "Add", "Subtract", "Multiply" and "Divide" private JButton jbtAdd, jbtSub, jbtMul, jbtDiv; // Menu items "Add", "Subtract", "Multiply", "Divide" and "Close" private …

Software Development java java-swing
Member Avatar for badae
0
194
Member Avatar for knellgust

#include <iostream> #include <iomanip> using namespace std; int main() { char item, code [5] ; double number, money; const double itemA=50, itemB=60, itemC=70, disc=0.8; const int size = 10; cout <<"Enter the item you would like to buy: A,B, or C: "; cin >> item; cout <<"Enter how many you …

Software Development c++
Member Avatar for Stefano Mtangoo
0
105

The End.