132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sniper1983

Hi, I have a simple question about hovering in a checklistbox. How can I get the value(object ) the hovered item..? I have tried something like this: Private Sub CheckboxHover(ByVal sender As Object, ByVal e As EventArgs) Handles CheckedListBox1.MouseHover 'MsgBox(sender.GetType.ToString & ", " & e.GetType.ToString) 'Dim mSender As CheckedListBox = …

Software Development vb.net
Member Avatar for selvaganapathy
0
286
Member Avatar for sharravanan

Hai, Iam designing a software which includes invoicing, as iam new to c# (Or Software Development), i dont know how to design an invoice specially the table view which we use to enter products and rates etc. I dont know what to do. I saw many commercial software's invoices with …

Software Development
Member Avatar for cVz
0
98
Member Avatar for mikelle

[code=cplusplus] //Lab 5 Ray Perales //This program will compute a user's hat size, jacket size, and waist measurement // based on a three function modular program. #include <iostream> #include <iomanip> #include <fstream> #include <cmath> // Prototype declarations double findHatSize (double height, double weight); double findJacketSize (double height, double weight, int …

Software Development c++ ios
Member Avatar for ivailosp
0
121
Member Avatar for titaniumdecoy

I did some searching on this topic but couldn't find anything definitive. Are basic types automatically initialized to 0 in C++ when allocated via [icode]new[/icode]? For example, are all values of nums guaranteed to be 0 in the code below? [icode]int *nums = new int[10];[/icode]

Software Development c++
Member Avatar for Narue
0
106
Member Avatar for ashalina

I'm unable to make these programs and have to submit on thursday!!:'( [COLOR="Red"]Q. Make a header file that contains the function definitions of all the function prototypes defined below: • int strlen(char *); • void strcpy (char*, char*); • void strcat(char *, char *);[/COLOR] [COLOR="Red"]Q.Using unions, write a program that …

Software Development c
Member Avatar for Narue
0
86
Member Avatar for shinobi59

I am trying to just compile a very back program and it compiles but when I run it I get errors: Java version = java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode) Program HelloJava.java public class HelloJava { public …

Software Development java java-swing
Member Avatar for haxpor
0
108
Member Avatar for CoolGamer48

What's the difference exactly between opening a file stream in the default text mode and opening it in binary mode? The cplusplus.com article on file i/o mentioned a few things, but I really didn't get the gist of it. Could someone explain it? Thanks.

Software Development c++ file-stream
Member Avatar for hacker9801
0
452
Member Avatar for FTProtocol

[CODE=c++] #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") char exeData, DecString, CurrentCHAR, CHARCrypted; char FinalSTR, Spliting, szStr, szStr2, szStr3; bool CryptER; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // Havnt gotten up to this yet return 0; } void TempPath() { char WindirS[255], TEMP; TEMP = GetTempPath(255, …

Software Development c++
Member Avatar for ithelp
0
241
Member Avatar for kaizen202

Hi all. I am new in C#. How can i use NETCONNECTINFOSTRUCT Structure.Wht r the related APIs. Can any one help me? Thanks in advance.........

Software Development
Member Avatar for Eng_Gaza
0
115
Member Avatar for chetan1989

Please help me I am a new user to linux and has made a project in eclipse IDE for linux. The project is running in the IDE but how am I supposed to make a executable for this???

Software Development c++ ide
Member Avatar for ivailosp
0
196
Member Avatar for Rydel

Hi, I need to know how to make a C++ App install something into the start menu. Well... What I'm trying to do here, is make a program that will simply create a batch file into a start menu folder. I know how to create the batch file using C++, …

Software Development c++
Member Avatar for Rydel
0
66
Member Avatar for Agni

[code=c++] #include <iostream> using namespace std; class Lock { friend class First; private: Lock() { } }; class First : virtual public Lock { public: void function() { cout << "function1" << endl; } }; class Second: public First { public: void function2() { cout << "function2" << endl; } …

Software Development c++
Member Avatar for ash05
0
161
Member Avatar for FTProtocol

Just thought id post here while i search google at the same time because well two brains are better than one :) The Asc function converts the first letter in a string to ANSI code, and returns the result. Syntax Asc(string) Thats the VB version of it, i need something …

Software Development c++
Member Avatar for hacker9801
0
214
Member Avatar for FTProtocol

[CODE]Linking... Main.obj : error LNK2001: unresolved external symbol "int __cdecl ConvertANSI(char)" (?ConvertANSI@@YAHD@Z) Debug/szStub.exe : fatal error LNK1120: 1 unresolved externals[/CODE] Defined: [CODE]#include <windows.h> #include <math.h> #include <iostream> using namespace std; int ConvertANSI(char sChar); [/CODE] Function: [CODE]// Credits to Dave int ConvertANSI(char szText[]) { return static_cast<int>(szText[0]); }[/CODE] Usage: [code] if(ConvertANSI(szChar) >= …

Software Development c++
Member Avatar for mitrmkar
0
85
Member Avatar for Regen

hi! I am using the [media-library SFML](http://www.sfml-dev.org) And for some wierd reason this code gives me a error message: `"#include <SFML/WINDOW.HPP>` int main() { sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); return 0; }" Compiling and linking works good but when trying to run it I get the errormessage: `"Run-Time Check …

Software Development c++
Member Avatar for Regen
0
140
Member Avatar for VelcroMan

Any way to get info about the battery in a laptop? Like how many % is left, and for how long that will last?

Software Development laptop python
Member Avatar for VelcroMan
0
78
Member Avatar for karthikvel

hi i'm a new member for this site. i'm a student. i would like to create some small java application softwares. so i need some support from you.

Software Development java
Member Avatar for stultuske
0
81
Member Avatar for FTProtocol

I completely rewrote the Stub i was writing because my VB -> C++ was shocking. VB Version: [code=vb] Public Function TempPath() As String Dim WindirS As String * 255 Dim TEMP TEMP = GetTempPath(255, WindirS) TempPath = Left(WindirS, TEMP) End Function [/code] The Left function returns a specified number of …

Software Development c++ visual-studio
Member Avatar for FTProtocol
0
89
Member Avatar for Brent.tc

Wow. It's kinda strange to even consider that I am taking part in the creation of an operating system... It really wasn't that long ago that I wasn't even capable of writing a functional program... I owe a good portion of my achievements to you posters here on DANIWEB (especially …

Software Development c operating-system
Member Avatar for Brent.tc
0
94
Member Avatar for harisyahoo

Haris Hussain - Posted on Monday, June 30, 2008 23:15:15 I am facing a following exception. While am deleting a row from gridview. I am using VS 2005. Exception: Index was out of range.Parameter must be non negative and less than the index collection. Parameter Name : INDEX private void …

Software Development dataset
Member Avatar for FaridMasood
0
235
Member Avatar for faisaly

Dear All, Kindly help me regarding this questoin of C++(OOP). Write a template function that returns the average of all the elements of an array. The arguments to the function should be the array name and the size of the array (type int). In main(), exercise the function with arrays …

Software Development c c# c++ oop
Member Avatar for RenjithVR
0
263
Member Avatar for camproject

I have a dialog based application.I use a text box in it.what i want is write the details from that text box into a text file. when i wrote the code ,the data written into the file was as follows..[COLOR="Green"]慨獮a﷽﷽楢畮ﴀ﷽ý晧晧ﴀ﷽ý[/COLOR] My code is, [COLOR="Green"]CString str; GetDlgItemText(IDC_EDIT1,str); fstream f; f.open("C:\\myfile.txt",ios::app); f.write((LPCTSTR)str,10); …

Software Development c++ file-system ios
Member Avatar for camproject
0
202
Member Avatar for kavithabhaskar

Folks: I got rid of the error now.. this is my code..pls take a look at the button1_click function! i dont see any data being entered into my database. :( Your guidance will be very helpful! Thanks, Kukki. Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As …

Software Development open-source vb.net
Member Avatar for sierrainfo
0
2K
Member Avatar for lexfridman

Hi, I get the following Valgrind / GDB output when I run my code. This cod e works on some Linux machine and on some others in gives a seg fault with this output. Pasting my code is not a good option since there is a lot of it and …

Software Development c++
Member Avatar for cagadaaa
0
672
Member Avatar for lil_panda

Are there, in any way, shape, or form, pointers in java like there are in C and C++? If so, do I declare them the same way as in C++? My 873 page book doesn't explain pointers.

Software Development java
Member Avatar for sciwizeh
0
94
Member Avatar for CoolGamer48

When using >> to extract data from an istream, are spaces skipped over? I.e., if I extracted every character from: "Hello, my name is not World.", would the 5 spaces not be read by >>? If so, is this behavior omitted from istream::get()? Thanks.

Software Development c++
Member Avatar for titaniumdecoy
0
110
Member Avatar for lich

when you use floating points and do the coding normally you get 4 decimal points. . but if i want to make it to 2 decimal points. how can the program should be. please help me out here is the program i did /** * @(#)Average.java * * * @author …

Software Development java
Member Avatar for Alex Edwards
0
472
Member Avatar for kdw3

Hi, I am trying to use a 2D array to gather information from a dialogue box. The array has been publicly dimensioned in a module. Before the dialogue box is opened, there is data in the array, and thats fine, but as soon as soon as the dialogue box is …

Software Development vb.net
Member Avatar for kdw3
0
124
Member Avatar for monkey123

A seller needs you to generate a program such that whenever a customer purchases some items and pays for the bill. The seller accepts at max $10 denominations. Your program takes input of payment amount and purchase amount. So u need to give an output of the return change to …

Software Development c++
Member Avatar for CoolGamer48
0
84
Member Avatar for java_girl

Hi. Objective: Write a program that declares a 12*12 array of characters. Place Xs in every other element. Use a pointer to the array to print the values to the screen in a grid format. Listed below is my non-functional attempt. Any help would be most appreciated. Thanks, Molly [CODE=C] …

Software Development c objective-c
Member Avatar for Dave Sinkula
0
123
Member Avatar for veledrom

Hi, I set DataGrid1 column width as follows, but it doesn't effect when i run my program. [code] DataGrid1.Columns(0).Width = 3030.236 DataGrid1.Columns(1).Width = 1604.976 DataGrid1.Columns(2).Width = 1904.882 DataGrid1.Columns(3).Width = 1065.26 [/code] Thanks

Software Development visual-basic
Member Avatar for veledrom
0
111
Member Avatar for Jennifer84

I have Form1 and Form2 in my project. On Form1 I open Form2 like this: [code] Form2^form2 = gcnew Form2; form2->Show(); [/code] In the Form2:s LoadEvent I use this code so this Form2 will be Active/Shown even that I click on Form1: [code] private: System::Void Form2_Load(System::Object^ sender, System::EventArgs^ e) { …

Software Development c++
Member Avatar for Jennifer84
0
207
Member Avatar for FTProtocol

Ok i finished porting the VB code to c++ but ive hit a wall, it had 49 errors and i solved as many as i could but now im stuck [code=c++] #include <windows.h> #include <iostream> #pragma comment(linker,"/FILEALIGN:0x200 /MERGE:.data=.text /MERGE:.rdata=.text /SECTION:.text,EWR /IGNORE:4078") void IsValidChar(char sChar); void GetRandomNumberInRange(int iLower, int iUpper); void …

Software Development c++ visual-studio
Member Avatar for FTProtocol
0
166
Member Avatar for dannomite

Hello all. I'm trying to read a line of data in from a csv file and then assign the fields to it to an int w, string y, and double z **See code below** However, I have two problems: 1. The first is in reading in the all contents of …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
102
Member Avatar for kavithabhaskar

Hello All: I have a program using VB.NET and Access. I have 5 comboboxes and any combination that I choose I get a result. I have 2 problems here: 1. I want to design 4 check boxes in such a way that any1 or combination when selected should give a …

Member Avatar for kavithabhaskar
0
163
Member Avatar for k2k

I try to simply concat the arguments if they are not the same..... what is wrong with this simple code for concat??? [CODE] #!/bin/sh result=$1 shift while [ "$#" -ne "0" ] do next=$1 if [ $result = $next ] then : else $result="$result $next" fi shift done echo "$result"[/CODE] …

Software Development shell-scripting
Member Avatar for omrsafetyo
0
87
Member Avatar for edman

I am trying to convert the ouput of this recursive function to double, but no matter what I try the output remains integer. Could someone please assist. [CODE]int main() { int x,y; cout << "Please enter the low value of the range to add: " << endl; cin >> x; …

Software Development c++
Member Avatar for iamthwee
0
144
Member Avatar for FTProtocol

Well in VB6 they use Chr() example: [code] Do sChar = Chr(GetRandomNumber()) Loop While sChar = Chr(34) [/code] Just wondering if there is a similar function in c++?

Software Development c++
Member Avatar for William Hemsworth
0
153
Member Avatar for muppetjones

I'm still kinda new at this, so please bear with me, but I have tried debugging the program (perl -d) and using Carp as well. I just can't seem to isolate the problem. I'm using regex to search through a series of sequences read in from BioPerl (this is not …

Software Development perl regex
Member Avatar for KevinADC
0
139
Member Avatar for warpath001

i have created a code which takes username pass etc from the user and then pts them in the database which is made using MSaccess the program complies very well but when i open my database no entries have been entered in there can u plz help [code] <%@page contentType="text/html"%> …

Software Development java
Member Avatar for jwenting
0
94
Member Avatar for licruzny

Please help with the following linked list program. Any help is good =] Use a linked list to do this program a store recieves shipmesnts of chairs at various cost. the store policy is to charge a 35% markup, and to sell chairs which were received earlier before chairs that …

Software Development c++ linked-list promotion
Member Avatar for licruzny
0
163
Member Avatar for Black Magic

Hey, I have been trying to learn C++ for a few months know but I'm still not 100%. I've got a good book and all that just do get a bit confused. The thing is I want to learn GUI but i'm not sure what to do. Should I go …

Software Development c++ gui
Member Avatar for William Hemsworth
0
140
Member Avatar for Alex Edwards

Is it possible to generate something like the following-- [code=java] public interface Reference{ // Returns a reference of the provided type (in theory) public <E> E getReference(int num); // Set the reference of the type public <E> void setReference(int num, E ref); } [/code] [code=java] public class ClassFullOfReferenceVariables implements Reference{ …

Software Development java legal user-interface
Member Avatar for Ezzaral
0
131
Member Avatar for anuizath2007

Does anybody know how to this question.... An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate no on the ballot paper. Writea program to read the ballots and count the votes cast for each candidate using an array variable count.In …

Software Development c++
Member Avatar for anuizath2007
0
292
Member Avatar for twburkle

My program currently takes three inputs from the user ( Wage, Hours, Tips ), then it calculates the gross income. Im brushing up on my c++ and Im not sure what functions I need to look for, but I know what I want to do. 1. I would like to …

Software Development c++
Member Avatar for twburkle
0
129
Member Avatar for cam875

can I used an element like characters[2] to create an object out of it like an object from the class other character would be OtherCharacter : characters[2] I need to dynamically be able to create objects for the amount of characters in the vector or is their a better way …

Software Development c++
Member Avatar for cam875
0
151
Member Avatar for paulcat

I'm trying to make a GUI application that needs flow arrows to shows the flow between 2 components, sort of like the display you see in the Toyota Prius that shows the transfer of power from the battery to the motor, etc... Are there anything in Visual Basic Express 2008 …

Software Development gui vb.net visual-basic
Member Avatar for J-P
0
78
Member Avatar for cheesedoodle

I started trying to teach myself how to program in python just a few days ago. I have been using a wikibook for non programmers and it has this piece of code as an example. I CAN NOT for the life of me figure out why it outputs the value …

Software Development python
Member Avatar for vegaseat
0
133
Member Avatar for TheOneElectroni

Hi everyone, I have a problem to insert text into a text widget in Tkinter. I want to be able that each time some text is inserted (by means of an action -not directly by the user-) that text is displayed into a new line. However I can't figure out …

Software Development python tkinter
Member Avatar for TheOneElectroni
0
4K
Member Avatar for mysong

I need help adding tables in the payment area that shows the full payment plan. Also my months start high to low. I want the months to start with month 1 [CODE]import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.Math; import java.text.NumberFormat; import javax.swing.table.*; //Setup lables and buttons public …

Software Development java java-swing
Member Avatar for Phaelax
0
142

The End.