43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bhagawatshinde

Hi, I am developing an windows application in that i want to check internet connection for that i am written the following code but it seems to be not working . Can anybody help me...... [CODE] [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue); public static bool IsConnectedToInternet() …

Software Development
Member Avatar for Momerath
0
168
Member Avatar for coolcool1980

Hi folks, I have a java maze, I cant seem to pass the 2d array to the next method. Any ideas on how i can do this? I need to get the character to move around the maze. Thanks [CODE] public class arrayAttempt1 { static int i=0; static int j=0; …

Software Development java
Member Avatar for coolcool1980
0
3K
Member Avatar for bhagawatshinde

Hi, I need to hide calender of datetimepicker in (c#).net. Thanks in advance

Software Development c#
Member Avatar for bhagawatshinde
0
93
Member Avatar for Shizuo

[code]import java.applet.Applet; import java.awt.*; import java.awt.event.*; public class Books extends Applet { Choice b; String [] blist; //CheckboxGroup edition; int i; public void init() { setBackground(Color.green); add(new Label("Please Pick a Book:")); b = new Choice(); blist [0] = ""; blist [1] = "Java Programming"; blist [2] = "C# Programming"; blist …

Software Development java java-netbeans
0
100
Member Avatar for yassop

[CODE]#include <stdio.h> float pounds = 0, inches = 0, BMI = 0; float kg = 0, meters = 0; char input[100], choice; int main() { start: do { printf("\n\nThis program is used to calculate the BMI of a person.\n\n\n"); printf("What kind of BMI do you want to calculate?\n"); printf("(Imperial(i/I) or …

Software Development c
Member Avatar for yassop
0
309
Member Avatar for thes0mething

I'm currently working on a tic-tac-toe program and it is working to the point that it runs and X's and O's appear. However when the right combination is made or the board gets full the method "Resultat();" should recognize it and "Clear();" should clear out the board and a JFrame …

Software Development java java-swing
Member Avatar for thes0mething
0
152
Member Avatar for msaranya

I am trying to create an Excel sheet and save it in server... Once it is saved, I display a link to the user "download excel". He can click it and then download it.. The pblm is I cant save the excel it says "The file could not be accessed." …

Software Development microsoft-office vb.net
Member Avatar for Pgmer
0
221
Member Avatar for ajinkya112

Example : suppose i have a form1 and a form2. form1 has a button on it which would display a message "Clicked" when clicked And if form2 inherits form1. How can i change the properties of that button and make display a message "Now Clicked" ? please help.....:?:

Software Development
Member Avatar for Momerath
0
104
Member Avatar for bensewards

The question is: A file contains a list of names in the form: Jones, Frederick M Brennan, Claire Your program should alphabetize the list. Use the C++ string class. Also, extract names from the input stream with getline(). What i know so far: main() should declare a char array and …

Software Development algorithm c++ file-stream file-system
Member Avatar for ravenous
0
202
Member Avatar for Akill10

Hi, I am writing this template Array class. I am trying out some different functions, anything I can think of to implement. I have written an Add function as follows: [CODE] /**Add function - adds an element at the top of the stack**/ //creates new Array 1 larger //sets position …

Software Development c++
Member Avatar for Akill10
0
223
Member Avatar for Nahiyan

Hello everyone, I am new to Java but know lot about other programming languages and experienced game developer. As Java is platform independent, we cannot compile it to .exe format and that's where my problem is. Suppose I have created a .java file and compiled it to .class file, then …

Software Development java
Member Avatar for Nahiyan
-1
152
Member Avatar for Hawkpath

I'm a beginner c++ programmer. I use Win XP and CodeBlocks. I'm trying to make a pong game, I already have the controls programmed, but I need a method to do the following: Check for user input, if they don't input for x milliseconds, then continue with the loop so …

Software Development c++
Member Avatar for katmai539
0
199
Member Avatar for iskinner

I have XML data where information in nodes relate to other nodes. I am trying to figure out how to generate output based on these relationships. XML sample <gedcom> <indi id="@I001"> <famc>@F002@</famc> </indi> ... <fam id="@F002"> <husb>@I005@</husb> <wife>@I007@</wife> </fam> </gedcom> XSLT sample <xsl:template match="/"> <xsl:apply-templates select="/gedcom/indi[@id='@I001@']"/> </xsl:template> <xsl:template match="indi"> <xsl:value-of …

Software Development xml
Member Avatar for xml_looser
0
1K
Member Avatar for whodoes21

ok so what does this do.. 1.) read the text file(most likely a c++ code in text form) line by line and display it line by line... 2.) (as the title says) check for syntax errors. ( only minor ones like missing ";" or a lack of closing braces) soooo..... …

Software Development c c# c++
Member Avatar for ravenous
0
2K
Member Avatar for Shodow
Member Avatar for AndreRet
0
110
Member Avatar for Shodow
Member Avatar for AndreRet
0
174
Member Avatar for btsuper

Hi everybody, I've been working with gui recently, and I need help with my JButtons. I need to figure out how to set a button on the keyboard to click that JBUtton. I.e. When i hit the enter key it picks say the third button on the list or something …

Software Development gui java
Member Avatar for btsuper
0
1K
Member Avatar for cassyjack

I need a little help. Here are the specs: Create a method called findLargest, which takes an array of integers as an input parameter and returns the array index of the largest integer in the array. If there are positions that are tied for largest, the method should return the …

Software Development java
Member Avatar for rosellejane
1
714
Member Avatar for goody11

I am currently working on a Win32 program where I have a picture. Depending where they click on the picture, something will happen.I just loaded the picture on the window, but how do I make it so that my program can tell when a certain area on the picture on …

Software Development c++
Member Avatar for Ancient Dragon
0
93
Member Avatar for SeePlusPlus2

I'm trying to read this input from a text file but whenever I try to output it, it shows up as 00000. Input: IBM 100 93.2 98.6 MER 200 67.2 43.89 QQQ 300 78.9 70.0 C 200 35.78 50.02 CSCO 400 45.67 57.23 This is what I have so far: …

Software Development c++
Member Avatar for SeePlusPlus2
0
211
Member Avatar for Geowil

'Lo everyone, I am having some pretty frustrating issues that I can not seem to get rid of. The main goal of my program is to make a GUI with buttons that trigger custom events. [quote] C:\Java Tests>javac JGUITest.java JGUITest.java:13: cannot find symbol symbol : class ButtonHandler location: class LabelFrame …

Software Development gui java java-swing
Member Avatar for Geowil
0
281
Member Avatar for davidjg

Hello all, I am new to C programming and I am currently working an encoder program that encodes text unintelligibly. I need help writing my recursive function to provide the desired output results. A sample is below. Can anybody help me out or point me in the right direction or …

Software Development c
Member Avatar for davidjg
0
126
Member Avatar for Jake.20

Guys, can you give me some idea on how to turn the combo box/drop down box uneditable.

Software Development vb.net
Member Avatar for bLuEmEzzy
0
96
Member Avatar for Joshua Kidd

Hello, I am making a program for Microsoft Flight Simulator X, and When you are in Multiplayer in most games there is a Chat room, or Chat Box. Do you think that there is any way I can reach maybe an API or possibly monitor the Screen so If someone …

Software Development api vb.net
Member Avatar for Joshua Kidd
0
79
Member Avatar for GDICommander

Hello, DaniWeb community! I want to know how I can delete environment variables in Python so that I can no longer see them outside of the execution of the Python script (on Windows, in "Advanced System Settings/Environment Variables...") This is what I tried: os.unsetenv deleting entries in os.environ, but it …

Software Development python
Member Avatar for GDICommander
0
2K
Member Avatar for bklynman01

I'm relatively new with VB.net, so please bear with me... I have a tabpage with 28 textboxes in it. These textboxes will be loaded with data and maybe changed. There is a Save button on the form that will take the data from these textboxes and save them in a …

Software Development vb.net
Member Avatar for CodeWord
0
173
Member Avatar for carlitosway17

Hi its me again, I have an error on the highlighted line below :Error 1 'BankLibrary.Record' does not contain a constructor that takes 4 arguments [CODE] // Fig. 19.8: Record.cs // Class that represents a data record. namespace BankLibrary { public class Record { // auto-implemented LastName property public string …

Software Development
Member Avatar for Momerath
0
292
Member Avatar for fab2

[ICODE]Hi, I am following a C course on a book, that's good. Now I am studying the functions, the different type of variables, such as static, local and global variables. There is in the chapter an example of how these types of variables behave when they are on a program, …

Software Development c
Member Avatar for fab2
0
220
Member Avatar for blee93

This problem was from the book C++ Primer Plus Chapter 4 #8. The point of the code is to create a structure and use the new keyword to dynamically create a new structure. This problem makes me alter my code for the previous problem in the book so that I …

Software Development c++
Member Avatar for blee93
0
123
Member Avatar for libathos

Hi, i want to open a htm file ,with an application in java.how can i do that?

Software Development java
Member Avatar for ztini
0
168
Member Avatar for NewOrder

i have got an exception, i dont understand why? basically, below there is the bottom part of my server code that i try to use. In short, i built 2 Dictionaries of streamWriter and StreamReader and one List of names. Exception is thrown there: [CODE] Some of the collections that …

Software Development client-server
Member Avatar for NewOrder
0
181
Member Avatar for eduard77

i have the next code that compiles without problems but when I run it after I put in the input data it gives me the next error: line 128 vector iterator not decrementable I use visual c++ 2010. [CODE] #include <iostream> #include <iomanip> #include <vector> #include <iterator> #include <algorithm> #include …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
442
Member Avatar for eduard77

The output of the vector that you helped me make is a little hard to read. Can you help me make it a little more readable like: Input: Enter number of different sizes: 5 and the inputs are : 35 x 2.36 23 x 1.23 12 x 4.23 16 x …

Software Development algorithm c++
Member Avatar for eduard77
0
97
Member Avatar for sing1006

well,this is my college assignment question.the question ask us to write a program that can compare 3 number,who is the biggest and smaller.the output should be like this: Enter 3 numbers. Number1: Number2: Number3: Main Menu 1)Find the biggest value among the 3 value you have enter juz now. 2)Find …

Software Development c c# c++
Member Avatar for ravenous
0
388
Member Avatar for vbnetworker

My Form have a multiline textbox. In this textbox, theres lines like that: name1 - phone1 and i have to convert every line in 2 variables (or array). eg: name = "name1" phone = "phone1" how could i make it?

Software Development vb.net
Member Avatar for vbnetworker
0
169
Member Avatar for Gazzmonkey

Hi all, I've got a small problem with a database I'm working on, the project was given to me by college kids & their Teacher to complete. They created the database using Access 2007 and I'm left building a Windows App user interface in Visual Basic. Anyway I can't figure …

Member Avatar for Gazzmonkey
0
136
Member Avatar for tsbrownstone

I am attempting to run a delphi 7 developed application on a windows 7 64bit laptop. I've placed the redistributables in the system32 folder, like always. the application has been installed in the program files (x86) directory (it didn't work at all under the program files directory) when I go …

Software Development delphi pascal
Member Avatar for tsbrownstone
0
350
Member Avatar for alex55

i have this function that should compare values and return a string based on input from the main function. However it returns no value at all does anyone see and issue with it? have checked all the input it is getting the correct values highestMontName and averagedMonth are declared globally …

Software Development c++
Member Avatar for alex55
0
124
Member Avatar for ronthedon

How do i get the loop to go back and prompt using for a valid number? #include<iostream> #include<conio.h> #include<iomanip> #include<string> using namespace std; int main () { string firstName; string lastName; int score1, score2, score3, score4, score5; float totalpoints; cout<<fixed<<showpoint<<setprecision(2); cout<<"Please enter the student first and last name: "; cin>>firstName>>lastName; …

Software Development c++
Member Avatar for ntrncx
0
137
Member Avatar for Mr. K

What is wrong with my code? My fps time is not working.I found two errors in my code. Error 1 error C3861: 'install_timer_ex': identifier not found. Error 2 error C3861: 'textmode': identifier not found. [CODE]#include <allegro.h> BITMAP* buffer = create_bitmap(480,480); volatile int fps = 0; volatile int avg_fps = 0; …

Software Development c++
Member Avatar for rxlim
0
211
Member Avatar for TIP.Synergy

I am using update query statment but is not working for this code [CODE]Dim myConn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= Provider=Microsoft.Jet.OLEDB.4.0;Data Source=../lms/DBLMS.mdb") Dim item As Integer myConn.Open() myComm = New OleDbCommand("UPDATE tblVehicles SET Vehicle_Type = " & cboVehicle_Type.Text & ", Vehicle_Model = " & txtVehicle_Model.Text & ", Plate_No = " & …

Software Development open-source vb.net
Member Avatar for DONPAWPAW
0
5K
Member Avatar for Shodow

when i try to add a record [CODE]Private Sub cmdDone_Click() Dim Rs As New ADODB.Recordset Set Rs = New ADODB.Recordset Call ServerConnect Rs.Open "SELECT * FROM list1", conn, adOpenStatic, adLockOptimistic Rs.AddNew Rs!CustomerName = txtName.Text Rs!ContactNumber = txtContact.Text Rs!Date = dt.Value Rs!TimeStart = cmbStart.Text Rs!TimeEnd = cmbEnd.Text Rs!Event = cmbEvent.Text Rs!Guest …

Software Development mysql visual-basic
Member Avatar for AndreRet
0
198
Member Avatar for fugmag

Hi, I have set up pydev in eclipse from the download site, but when I try to add a new pydev project I get the following error i the new-project wizard: [CODE] .project found in C:\workspace(use import project) [/CODE] But I have no project called that in my workspace. I …

Software Development python
Member Avatar for fugmag
0
72
Member Avatar for Shodow
Member Avatar for AndreRet
0
2K
Member Avatar for elsiekins

Hello, I have a program that uses getchar() and slightly confused and tried googling and it made it worse [ICODE] cout << ">What is the expected letter <<"\n>"; expectedLetter = getchar(); putchar(expectedLetterl); string exletter = expectedleter + post; cout <<">Do you wish to enter another letter (Y/y)/(N/n)\n>"; repeatIn = getchar(); …

Software Development c++
Member Avatar for elsiekins
0
162
Member Avatar for Roldy

Is it possible to change the event of a button click within different subs? For example, have the button take me to the main menu in one sub, but in another sub have the same button take me somewhere else.

Software Development gui visual-basic
Member Avatar for AndreRet
0
206
Member Avatar for threwup

I am having trouble with the "for loop" of a 32 bit Adder program. I am suppose to take 2 arrays of 32 bits and sum them together. The 2 errors I get are on line 37 and 38 called "called object is not in function". I don't know how …

Software Development c
Member Avatar for griswolf
0
118
Member Avatar for frank33

Is it possible that when a user clicks, the fact that she may have clicked on two overlappping labels, for instance, be responded to ? In other words could the Sub for a click on Label1 check that Label2 has actually been clicked simultaneously ? Thanks.

Software Development vb.net
Member Avatar for Pgmer
0
108
Member Avatar for Diamonddrake

I have an object that i use in a generic list, i need to expose a property in that object that will return the index position of the object in the list plus one. example Items in list myobject1 myobject2 myobject3 myobject2.indexValue would equal 1 any idea how I can …

Software Development
Member Avatar for Diamonddrake
0
162
Member Avatar for amir malik

what is the use of INADDR_ANY in socket programming?

Software Development c socket-programming
Member Avatar for amir malik
0
73

The End.