132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for valeriy_zf

[B]Microsoft Visual C++ 2008[/B] My Project contains one Form1 and one Unit (module) Test1.cpp. There is the button1 on the Form1 which calls the function: [CODE]Test1::Change_Button_Text();[/CODE] There is only one function in unit Test1.cpp [CODE]void Test1::Change_Button_Text() { // #1 Form1::button1->Text = "Hello forum!"; // isn't working :( // #2 Form1 …

Software Development c++
Member Avatar for jonsca
0
320
Member Avatar for shawnk

I am trying to execute a simple grep command in my shell script. I am not sure why it also greps the other file system. [COLOR="Green"]> df -g|grep /oracle/BP1/sapdata1 70.00 11.37 84% 21 1% /oracle/BP1/sapdata1 100.00 89.44 11% 8 1% /oracle/BP1/sapdata10 > df -g|grep /oracle/BP1/sapdata10 100.00 89.44 11% 8 1% …

Software Development oracle shell-scripting
Member Avatar for shawnk
0
97
Member Avatar for suncica2222

I have problem with this code,I want to print names of the windows in .txt file and it compile with no errors but it snaps in runtime. this function int x = GetWindowText(hWnd,title, 256); for the second arg require char* and cant deal with WCHAR and if i cast title …

Software Development c++
Member Avatar for Salem
0
171
Member Avatar for KirkPatrick

I'm wondering if it is possible to control certain aspects in my function. All my it does is control how an object gets placed on my gui. I'm wondering if there is a way to control [I]GridBagConstraints.fill[/I] and [I]GridBagConstraints.anchor[/I] [B][U]Function:[/U][/B] [code=java] public void gridBagControl(Component ob, JPanel p, Insets in, int …

Software Development gui java
Member Avatar for KirkPatrick
0
106
Member Avatar for clutchkiller

This is an assignment for my c++ class im taking. [code] #include <iostream> #include <fstream> using namespace std; const int NAMESIZE = 50, DATE = 25; struct inven { char name[NAMESIZE]; int qnty; double wholeCost; double retailCost; char date[DATE]; }; void displayMenu(); void addRecord(fstream &); void displayRecord(fstream &); void modifyRecord(fstream …

Software Development c++ ios
Member Avatar for clutchkiller
0
187
Member Avatar for VilePlecenta

While finishing up my app, I included into the project the code for loading and injecting my dll into running processes. Once compiling I received these errors [CODE]error C2039: 'getchar' : is not a member of '`global namespace'' error C2873: 'getchar' : symbol cannot be used in a using-declaration error …

Software Development c++
Member Avatar for VilePlecenta
0
140
Member Avatar for axa121

Hi I am trying to read data from a text file, line by line. However I am having problems with the output of the last line. The text file I have created is: position 50 10 line 50 0 line -50 0 line 0 -50 Here is my code: [code] …

Software Development python
Member Avatar for axa121
0
146
Member Avatar for FotG2

I am having trouble making use of a MouseMotionListener to make some card images be able to be dragged around the screen. What this program does is show a table of cards in a random order. The user will be able to drag any of the card images and move …

Software Development java java-swing
Member Avatar for FotG2
0
941
Member Avatar for bombasstic

Hi, i have a division of 2 integer that give me a result as 2,3944534 ... how i can give e result as 2,3 ??? please help me!

Software Development vb.net
Member Avatar for apegram
0
83
Member Avatar for Skeen

Okay, I'm making a shooter game, and all my weapons are differnt userdefined objects; ie. the flamethrower works differently then the gun, however, I'm calling some functions in my "main", an example of this would be; [CODE] /* <Init> */ MachineGunClass *CurrentWeapon; MachineGunClass *MachineGun; MachineGun = new MachineGunClass(); CurrentWeapon = …

Software Development c++
Member Avatar for mrnutty
0
227
Member Avatar for baloonie

1/ Write a Java program that reads in a Name and Age (in years) of four persons and prints the name and age of the youngest person. Assume that all persons are of different age. The sample program run must look as follows: Enter the name of the person: John …

Software Development java
Member Avatar for Ezzaral
0
111
Member Avatar for liljazz2007

ANY HELP YOU CAN PROVIDE WILL BE GREAT. Here is the code Im trying to convert. This is my 1st time hearing about SRC Code and my teacher isnt being a big help. Please help in any way you can. Here is the code: int a = -5; int b …

Software Development assembly c++
Member Avatar for Nick Evan
0
243
Member Avatar for DJPlayer

I have to lines listed.. a cin >> x and a scanf("%f",&x). If I use cin program works perfectly.. change it to scanf and values arent' even corect any longer.. different decimal values all together.. anyone??? [CODE] #include <iostream> #include <cstdlib> #include <cmath> using namespace std; double ApproxCos(double,double); int main() …

Software Development c
Member Avatar for Narue
0
156
Member Avatar for anjoz

i have a problem with this code iv been try lots of expressions to show elven thousand to nineteen thousand and nothing seems to be can you guys help me out tnx in advance [code] #include<stdio.h> int main() { int n,teens,thousands,hundreds,tens,ones,tthousands; printf("Enter a number: "); scanf("%d", &n); tthousands=n/10000; n=n%10000; thousands=n/1000; …

Software Development c
Member Avatar for abhimanipal
0
76
Member Avatar for rEhSi_123

Hello everybody! I am trying to create folder's which will contain files and lastly all these files will contain texts. My problem is that am not able to create this folder into a specific location or pathname!!! Here is the code, please advice accordingly: [CODE] #include<stdio.h> #include<sys/stat.h> int main() { …

Software Development c file-system
Member Avatar for WaltP
0
2K
Member Avatar for soapyillusion

Hey all I have another riveting problem from my genius professor T_T. I have to make a program using functions, reference Parameters and full string words. Now if it were just a single letter at a time this would be easy. But it wants us to let the user enter …

Software Development c++
Member Avatar for soapyillusion
0
257
Member Avatar for renyges

hi i need help with add edit and delete records in access using vb.net. i got textbox 1 to5 and three buttons which named addnew ,edit, delete. my database is in name records.mdb i want user to enter the information and click addnew button and the system save the records …

Software Development vb.net
Member Avatar for renyges
0
225
Member Avatar for furqankhyraj

[CODE] #include<stdio.h> #include<conio.h> void main() { int n,f; f=1; printf("Enter the number:\n"); scanf("%d",&n); while(n>0) { printf("%d",n); f=f*n; n--; } printf("The factorial of the integer is:%d",f); getch(); } [/CODE]

Software Development c
Member Avatar for WaltP
0
150
Member Avatar for Nicholas_Roge

It's actually not help with the code, it's help finding an assembler and linker that will work on 64 bit windows 07... Not only that, but I'd like to be able to be able to debug it. But since windows dropped debug from 64 bit. Any help? P.S.: I have …

Software Development assembly
Member Avatar for gerard4143
0
97
Member Avatar for hemant_is_here

hi all plz explain me with syntax "how to pass pointer to a function or pointers to a function " . plz tell me if there any big tutorial which can solve my problem providing a deep knowledge about it . and one more probim : what is incorrect int …

Software Development c c# c++
Member Avatar for jamma
0
804
Member Avatar for emompong

HI! I am working with an image tagger system.. Im done reading the file's properties.. then when i go to code for keywords.. an error exist saying that Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154. I Already added the DSO …

Software Development file-system image vb.net
Member Avatar for emompong
0
429
Member Avatar for rsaska

Hello, I am creating code that seemed fine, except when I entered a single character, or strings instead of numbers, the console continually prompts for user input and it is difficult to terminate the console. Below is the code [CODE] printf("\nHow many computers do you want to update?\n"); scanf("%d", &numComputersToUpdate); …

Software Development c++
Member Avatar for rsaska
0
78
Member Avatar for c++student01

I am in a c++ class and I am doing a program which requires me to read in a text file and do change it. I need to know if something is in " " or ' ' to do this program. I can get the " " by doing …

Software Development c++
Member Avatar for potatosoftware
0
192
Member Avatar for Masterace

codes for moving bar while indicating progress in percentage (1-100)

Software Development visual-basic
Member Avatar for avirooge
0
190
Member Avatar for bdrkb

How can i convert amount like 400 as Four Hundred dollar only , any one can help me pls

Software Development visual-basic
Member Avatar for avirooge
0
158
Member Avatar for mingas

Hi forum! My name is Eduardo and I´m from Portugal. I´m a newbie to C++ and I hope to learn a lot with you I´m facing a doubt that I couldn´t solve yet. (I will also post this thread at c++ area, hope you don´t mind ) My doubt lies …

Software Development c# c++ qt webcam
Member Avatar for Ancient Dragon
0
214
Member Avatar for strunful

Hi there my first post :), i've started a project that transforms a table from SQL to XML, works like a charm.Now i want to transform from a XML file to database: 1)search if there is a database created(i've done that using try catch) if not create a database XMLReader …

Software Development mssql open-source xml
Member Avatar for strunful
0
183
Member Avatar for SOURP0PCORN

[code]#!C:\Python26\python.exe # Three-times-the-square-root-of-your-age.py # # This is a python program that # will input the user's name and age # the output will be 3 times the # square root of the user's name # # author: Min Ku "Peter" Joo # last revision: 02/10/2010 import os import math def …

Software Development python
Member Avatar for vegaseat
0
189
Member Avatar for PDB1982

Can anyone help me with this one? I have the following code and produces an output, but the Probability stays at 1 regardless of how many students I input....Any ideas? [code] #include <iostream> #include <fstream> #include <cmath> using namespace std; void main() { int numStudents, DayOfBirth, cnt; double Probability, Power; …

Software Development c++
Member Avatar for PDB1982
0
52
Member Avatar for JBeginer7891

Hello everyone! I have a button on my main form that allows me to get the visitInfo Table. The data are displayed inside a JTable. What I would like to know is how do I edit or delete a row from that Jtable by the click of a save button …

Software Development gui java java-swing
Member Avatar for JBeginer7891
0
4K
Member Avatar for charqus

Hello guys. Could you like to help me to make a button browser ? I made the FORM , but i don't know what code to write , like when i press the GOOGLE button , to open my browser at [url]http://google.com[/url]. [url]http://files.uploadffs.com/d/3/74fd3cfe/googlebutton.PNG[/url] Thank you guys.

Software Development
Member Avatar for ashishkumar008
0
131
Member Avatar for charqus

Hello guys. I made a picture box and i want like when a button is pressed , the BackgroundImage of Picture Box to be changed in a screenshot from my resources. Look what i did: [code] private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedItem.Equals("Rocket Launcher I")) pictureBox1.BackgroundImage = "sa-mp-042.png"; …

Software Development
Member Avatar for ashishkumar008
0
178
Member Avatar for donald1804

Hi, Thanks for opening. I'm writing a "fill-out" form in Delphi, with each section enclosed in its own tab, using TPageControl and TTabControl. When the info on each tab has passed validation rules (all working fine), the next button is enabled and the tab can be moved on. When the …

Software Development delphi pascal
Member Avatar for finalist
0
734
Member Avatar for lawal2000

I need help on how a function created on Form1 can be called from Form2. E,g, Public Function RemoteCalled() A=X"2+2 End Function 'Then from Form 2, Call RemoteCalled I use VB6. Thanks for your quick response

Software Development visual-basic
Member Avatar for abu taher
0
110
Member Avatar for somaih

hi, i want to use DataGridView to display the result from 3 textBoxes ? is it possible to do that ? Please help

Software Development vb.net
Member Avatar for kvprajapati
0
117
Member Avatar for darcee

ive created a function for generating username, password, email to log in on a website but the problem is i want to use all account one at a time for example num|username|email|passwd 1|username1|email@email1.com|password1 2|username2|email@email2.com|password2 3|username3|email@email3.com|password3 4|username4|email@email4.com|password4 5|username5|email@email5.com|password5 log in 1st acct ... do something then logout... then log in 2nd …

Software Development vb.net
Member Avatar for kvprajapati
0
156
Member Avatar for lardshow

Hi all need a little help please. i'm using VB (but very very rusty) and i need to write a simple macro to cut and paste in excel. the macro so far is: [CODE]Sub populate() ' ' populate Macro ' Macro recorded 09/02/2010 by ' ' 'select correct cell Range("D6").Select …

Software Development visual-basic
Member Avatar for lardshow
0
98
Member Avatar for bluefish601

hye...currently i am developing stego application for my final project.. and i will using vb6.. what i need to know is the code for manipulating the bit because as u all knows that LSB insertion plays with all the bits stuff.. sorry ..my english are too bad..hope u all can …

Software Development visual-basic
Member Avatar for pramod.T.C
0
188
Member Avatar for Zaelis

Ive been working on a Game of Life simulator in C for my programming class. Essentially, it needs to take a single line of input and print out a nice grid of x's and o's (representing live cells and dead cells, respectively). I need to input the grid size, the …

Software Development c
Member Avatar for erantivanisha
0
144
Member Avatar for saracooper

Hello, I am working with variable arguments and I have no problem using them with Integer, Float or char arrays. But when I try to use String arrays, it is a multidimensional array and I am not sure ... I am calling a function with variable arguments, one of which …

Software Development c
Member Avatar for saracooper
0
2K
Member Avatar for pankaj.garg

Hi, i am developing a program which will store live data (data read from some device every second) into MSAccess database...now i want that data to be available over LAN... i.e. my main computer will be connected to device and i want other computers to read data from the database …

Software Development visual-basic
Member Avatar for kinwang2009
0
268
Member Avatar for chandrag

hi, I am new to perl. actually, i'm using perl with SOAP::Lite to access a web server. I wrote some code in a notepad and saved it in c:/perl/eg. by typing 'perl filename.txt' after changing the directory into c/perl/eg> in command prompt, i am getting the result what i want. …

Software Development perl web-server
Member Avatar for dangidipu
0
934
Member Avatar for houlahan

could anyone help me i have been trying to do this for a good 2 hours now and still can't get it to work :( i have created this class diagram for the server side of my project and i can't get the inheritance right i need to be able …

Software Development java
Member Avatar for JamesCherrill
0
148
Member Avatar for mybluehair

I am just being introduced into the allegro game library, and I'm making a simple program. My problem is confusing me horribly. I'm using the textout_ex code, but what I want to do is display 2 pieces of info in one textout function. Like: textout_ex(screen, font, "hello" [B][U]AND[/U][/B] MyVariable , …

Software Development c++
Member Avatar for WaltP
0
135
Member Avatar for tgifgemini

Hello everyone, I have an exce spreadsheet called "ProjectStatus.xls" in my local folder "C:\ProjectStatus.xls". I need to send it as an attachment to someone and I am using these codes: [code] Set OutlookApp = CreateObject("Outlook.Application") Set OutlookMail = OutlookApp.CreateItem(Outlookmailitem) OutlookMail.To = "giftxtian@yahoo.com" OutlookMail.Subject = "Project Status" OutlookMail.Body = "This is …

Software Development email objective-c visual-basic
Member Avatar for suba_wen
0
128
Member Avatar for PuQimX

[code]import java.util.*; public class array1 { public static void main(String[]args) { int[] value = new int[1000]; Scanner keyboard = new Scanner(System.in); for (int i = 0; value[i]!= -999 && i < 999; i++) { System.out.print("Enter number " + (i + 1) + ": "); value[i] = keyboard.nextInt(); if(value[i] == -999) …

Software Development java
Member Avatar for ainct
0
143
Member Avatar for computerfreak.7

so im trying to make a game for school that i have to have done by friday at the max my source for the main class is [CODE]//shooter game //main class import javax.swing.*; //frame import java.awt.*; //color import java.util.*; import java.awt.event.*; public class Shooter extends JFrame implements KeyListener{ Image img; …

Software Development java java-swing
Member Avatar for musthafa.aj
0
147
Member Avatar for SgtMe

Hi all. :) I'm having trouble with pygame, images and transparency. Lets say I have an image...a circle to keep it simple (for example only). What I want is to be able to draw the image, but with only the circle showing (ie. not a white box around it). Oh …

Software Development python
Member Avatar for SgtMe
0
336
Member Avatar for loulule

I need visual basic code for inputing name and address to 2 separate text box then display in address label....

Software Development visual-basic
Member Avatar for abhi.navale
0
165
Member Avatar for cool_aj

Please help me correcting my program.The question requires me to offer a repeating MENU with 3 choices. 1. Displays all students 2. choose one by entering the ID and also making changes to it. 3.exit. My error so far is "cannot convert to `int*' for argument `1' to `in".I don't …

Software Development c++
Member Avatar for jonsca
0
1K

The End.