132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for khenz

hi guys, i've been battling with this program for too long now... i cant seem to get it to compile. i believe the problem lies in my use of objects being passed to different classes as parameters. (i will do my best to only paste code that i believe is …

Software Development c++ gui
Member Avatar for ArkM
0
138
Member Avatar for ithelp

I have one related question is Jython going to replace Python in a few year ?

Software Development python
Member Avatar for jlm699
0
110
Member Avatar for QuintellaRosa

I have a file format for storing text of any sort. It's a file format from a company, so I can't change it. Basically, in the beginning of the file, a series of "string starts on char#", "string length equals" values determines the "address" where a string starts and how …

Software Development c++ file-system
Member Avatar for ArkM
0
255
Member Avatar for shazzy99

Is there a way to read MS Office document word by word in C#. I could read the whole stoyr like [code] doc.ActiveWindow.Selection.WholeStory(); doc.ActiveWindow.Selection.Copy(); IDataObject data = Clipboard.GetDataObject(); [/code] However then can we use any method using data object to read the ms word documents word by word?

Software Development
Member Avatar for jbisono
0
113
Member Avatar for DevC++4.9.9.2

I am trying to work with listbox in visual stuido 2008. I am new to c# as of 2 days ago however im very experienced with c++ and batch. I was wondering if someone could give me some quick help on how to use mouse clicks. In particular i have …

Software Development
Member Avatar for ddanbe
0
156
Member Avatar for QuintellaRosa

I'm new to C++ and I'd like to start correctly. But I need to know what are the best practices for code sharing, like: _ use [ICODE] int void (main) [/ICODE] instead of other statements; _ use standard libraries when possible; _ what are the naming conventions for C++? I've …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
80
Member Avatar for plysaxaphone

im trying to write a program to calculate BMI for practice. I have it working for the most part but im having trouble with 1 thing. I want to say if its any letter or not a number then display an error message. Here is the code that I need …

Software Development visual-basic
Member Avatar for FlamingClaw
0
109
Member Avatar for lolguy

Hello guys i began reading K&R but there problem in a code i dont really understand it here code of a sequeeze function [code] /* squeeze: delete all c from s */ void squeeze(char *buffer, int c) { int i, j; for (i = j = 0; buffer[i] != '\0'; …

Software Development c
Member Avatar for lolguy
0
163
Member Avatar for JAGjug

Hello everybody. I have a quastion: is it possible to play swf without flash player installed? I mean include swf and flash player itself in one exe-file.

Software Development flash
Member Avatar for JAGjug
0
85
Member Avatar for Liszt

I use this command to check for the Computername wich returns: [code] SystemInformation::ComputerName->ToString(); //returns: MYCOMP-EG03R8F [/code] When manually rightclicking "My Computer" and check what name I have, it says with lowcase letters: [B]mycomp-eg03r8f[/B] So it doesn´t return the correct name. It shows Capitals. But if I do this command instead: …

Software Development c++
Member Avatar for Liszt
0
210
Member Avatar for daviddoria

I want to make an input stream parser capable of handling input in any of the following forms: [code] x y z x,y,z x, y, z (x,y,z) (x, y, z) [/code] Is there a clever way to do this? Or do I have to check the first character, if it …

Software Development c++
Member Avatar for ArkM
0
86
Member Avatar for ddanbe

[CODE=csharp]private void txb_keydown(object sender, KeyEventArgs e) { //check if A key was pressed if (e.KeyCode == Keys.A { //OK } }[/CODE] The above code works fine, but how can I do this for the % key? Looked everywhere, I can check for the tilde key etc. but I can't seem …

Software Development
Member Avatar for ddanbe
0
159
Member Avatar for ning2009

Hi, there With a lot of help in this forum, I strated to use Python to accomplish something. Here I am looking for guide about how to improve my code speed. This code is to determine the normal direction of a polygon with four points. Every four points have 6 …

Software Development python
Member Avatar for ning2009
0
218
Member Avatar for dav555

how can i convert a hex value of a byte (unsigned char) to a short value? [code="c++"] unsigned char hexByte = 0x02; short value= ??? [/code] thank you for your help!

Software Development c++
Member Avatar for dav555
0
286
Member Avatar for lolguy

Hello guys I m trying to code a program to fix indented code but problem is that i will use strstr to search for the for string then i ill read it till it encounted \0 then i wanna jump to next line to add 4 spaces before the code …

Software Development c
Member Avatar for lolguy
0
104
Member Avatar for Vandithar

Hi, I have a string like this: [code] $string="Lake City 84132, USA. FAU - Carrell, D T AU - Carrell DT FAU - Emery, B R AU - Emery BR"; [/code] I want to extract AU and only its contents. The output should be like this: [code] AU - Carrell …

Software Development perl
Member Avatar for katharnakh
0
106
Member Avatar for joinup

Hello , I got this script that read directories, create a zip file with the date of the file, and put all files in that date inside Zip: dir=/iscsi/webserver231/; for subdir in "$dir"/*/; do find "$subdir" -type f -name 'ex??????.log' -exec bash -c 'for f; do f=${f##*/ex}; echo "${f%??.log}"; done' …

Software Development shell-scripting
Member Avatar for joinup
0
108
Member Avatar for sneharaveendran

public class Test { public static void main(String[] args) { String line=".Raghu"; System.out.println(line); char[] h= line.toCharArray(); char[] f=null; int c=0; if(h[0]=='.') { for(int i=0; i<h.length; i++){ f[c]= h[i]; System.out.println(f[c] + h[i]); c++; } f[c]='\0'; } } }

Software Development java
Member Avatar for sneharaveendran
0
98
Member Avatar for hemanthjava

Hello there, I am using the JTextPane in my Java Swing Application. How do I make it Handle Hypelinks. Like lets say the use enters [COLOR="Green"]\\some_foldername\some_subfolder_foldername\some_file.xls [/COLOR]or any other file type, It should Automatically, treat it as a hyperlink. Is it Possible to have such a functionlaity [B][U]JTextPane Hyperlink Functionality[/U][/B] …

Software Development java java-swing perl
Member Avatar for hardik.rajani
0
2K
Member Avatar for grisha83

Hello, I have an assignment where i have to create few methods using linked lists. one of them is method that should create an integer singly list and return the head. While i know how to add a single node i am not sure how to create list of them. …

Software Development java linked-list
Member Avatar for hardik.rajani
0
112
Member Avatar for massivefermion

good time people I have a code like the one below: [code=c++] #include <vector> #include <stdio.h> #include "mymath.h" using namespace std; int main(){ int n; char a='y'; do{ cout<<"\n----------------------------------------\n"; cout<<"Enter a number for prime factorization : "; cin>>n; cout<<"\n----------------------------------------\n"; int *result=pfact(n); for(int i;result[i][0]!=0;++i){ if(result[i+1][0]!=0) cout<<result[i][0]<<"^"<<result[i][1]<<"*"; else cout<<result[i][0]<<"^"<<result[i][1]<<"=";} cout<<n; cout<<"\n----------------------------------------\n"; cout<<"Do …

Software Development c++
Member Avatar for iamthwee
0
147
Member Avatar for Magda

Hello, I have been fighting with this assignment for almost 3 week now and it's almost ready besides one part that I simply don't understand. I would appreciate if someone could maybe translate it into "simple English" for me and maybe give me a little guidance. Basically we are writting …

Software Development java
Member Avatar for JamesCherrill
0
146
Member Avatar for murid

Help please... I'm new member and this is my 1st post.. problem : I want to drag n drop an object (label n picturebox) in 1 form. what i means is the object that I drag can be free moving in 1 form n drop it on anywhere on that …

Software Development vb.net
Member Avatar for Teme64
0
158
Member Avatar for Tank50

HI Iam created project in visual studio 2008,and once I compile coding,it give me error meassagee.The Error Meassage is [COLOR="Red"]Error 1 The type 'Microsoft.Office.Interop.Excel.Workbook' exists in both 'c:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Excel\11.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Excel.dll' and 'e:\Test\Test\Test\obj\Release\Interop.Microsoft.Office.Interop.Excel.dll' E:\Test\Test\Test\Test.cs 13 67 Test [/COLOR] So what I did is I delete the Excel.dll in (\obj\Release\Interop.Microsoft\Excell.Dll,but once I complie it …

Software Development assembly microsoft-office visual-studio
Member Avatar for Tank50
0
86
Member Avatar for FlamingClaw

I think this will helpful for those who like delphi. :D Download,and read.This file contains the basics of delphi :) The file size is about 3 Mb. Thx for reading. With respect : FlamingClaw 2009.04.18.

Software Development delphi pascal pdf
Member Avatar for skdfljsdkjf
0
290
Member Avatar for santhanalakshmi

Hi, How to connect visual basic program with mysql database?I need a sample program of retrieving the data and also inserting the data into the table using mysql database..........I dont have any idea..... please help me ....... Regards, Santhanalakshmi.

Software Development mysql visual-basic
Member Avatar for PinoyDev
0
163
Member Avatar for DAWNIE

Hi, I'm currently having problem with my proj. And really need helps.. I am currently in a proj that need to create an application that is able to hav Client (PC 1)'s data store to Server (PC 2 and it is also where the database is being stored.) PC 1's …

Member Avatar for DAWNIE
0
203
Member Avatar for asmsycool

Hey, am having 3 radiobuttons, so if any of them is checked, then the price should be display on a label, but it has to be using array. I have started, but i got hooked at this point. Dim AccStandard() As String = {"5 Star", "4 Star", "Budget"} Dim cost() …

Software Development vb.net
Member Avatar for Teme64
0
88
Member Avatar for daviddoria

Is it possible to indicate that a class function you are calling is static? [code] class Point { std::string name; public: Point(){} static void DisplayName() { std::cout << "Point" << std::endl;} }; int main() { Point.DisplayName(); //this doesn't indicate the the member function is static //maybe something like this: //static_call(Point.DisplayName()); …

Software Development c++
Member Avatar for siddhant3s
0
100
Member Avatar for goyofoyo

hey I am currently working on a Fraction program and the fraction needs to be in lowest terms i have been working on this for a while and I can't figure out what is wrong with it i think i have been looking at it for too long, but anyways …

Software Development c++
Member Avatar for goyofoyo
0
116
Member Avatar for abu taher

I want to make a data report. I write a name (like: taher) in a text box then press a button and then (taher's) all data will show. how it possible? I want it many ways. like name, ID, date. I mean I write name or ID or date and …

Software Development visual-basic
0
57
Member Avatar for payamrastogi

Hi, I'm using C#.net 3.0 to develop an application on digital watermarking.I'm using FrameGrabber class which I have found on this site.What the class is doing-it is getting the constituent frames in the Bitmap format (*.bmp) from the given video file.Now the problem is that there is no way to …

Software Development
Member Avatar for Diamonddrake
0
154
Member Avatar for bharanidharanit

Hello, I am doing Login Screen in VS2008. When i logon with username and password in form it only checking the first field in database. How to do coding for checking all the fields??? This is my coding [CODE] Imports System.Data.OleDb Public Class frmLogin Private connstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data …

Software Development open-source vb.net
Member Avatar for bharanidharanit
0
303
Member Avatar for losh177

hi, i'm having problems with my homework. I have to create a Base classes from which 2 classes have to be derived, then i have to write a program to test their function. The problem that i'm having is that i'm taking the input from the keyboard and passing it …

Software Development c++
Member Avatar for losh177
0
2K
Member Avatar for 215wrestler189

So this is a small part of a bigger project I'm working on. I'm having trouble with having a visual countdown starting from a value the user inputs. I have three elements on the form textBox1 where the user enters the value to start from and label1 where the visual …

Software Development c++ gui
Member Avatar for Ancient Dragon
0
91
Member Avatar for MrDiaz

Hi everyone I've been trying to develop a mid-scale (size wise) application in the past few days. Something I'm doing for fun, to get some experience. My application is some sort of log system, it can have different users, each user has its own log entries (or records) and so …

Software Development app-store java
Member Avatar for JamesCherrill
0
192
Member Avatar for xsxcn

I am considering using python to write a simulation program to display the motions of about 10,000 2d disks. The program doesn't need to calculate the positions of disks. It just reads the result file and displays disks on the screen. I wonder whether python has this ability for rendering …

Software Development python
Member Avatar for targ
0
162
Member Avatar for dzoch89

A problem asks me to make a printf statement which will print out the members of the struct given, I wrote a program to make sure I would get the right printf statement. [code] #include <stdlib.h> #include <stdio.h> int main() { struct house { 5. char style[40]; int rooms; float …

Software Development c
Member Avatar for dzoch89
0
83
Member Avatar for bokz06

this is part of my app where i ask a user if they want to do something. they need to either input a "y" or a "n" for it to do something and if they input something else like a j, 1, 2 , ; , " any other character …

Software Development java
Member Avatar for bokz06
0
109
Member Avatar for Sky Diploma

[code=c++] void func(char*,int&);//A function returning no value and taking a char and reference to int as arguments. typedef void (*PTR)(char*,int&);//A pointer to function returning no value and taking a char and reference to int as arguments. void Func2(PTR);//A Function taking such a pointer as argument. PTR Func3();//A Function returning such …

Software Development c++
Member Avatar for Dave Sinkula
0
144
Member Avatar for ShadowScripter

Hey, I've been trying to understand what the hell I'm doing wrong with this code. At the beginning, I include the DDRAW.H, and the code compiles with no problem, but as soon as I try using a function from that header, I get a linker error. The function I used …

Software Development c++
Member Avatar for William Hemsworth
0
931
Member Avatar for Pygon

I'm just starting to get into some Service programming (WCF). I've successfully tried out the Microsoft WCF tutorial and got mathematical results from the service. Now I'm trying to set up a SQL Server Express database on the Service side so that it can allow the client to either retrieve …

Software Development client-server sql windows-server
Member Avatar for Pygon
0
156
Member Avatar for SANMI

I have 2 DLL , namely A.dll and B.Dll They both have a function called ShowHelp() How do I declare the two functions that have The Same name

Software Development pascal
Member Avatar for FlamingClaw
0
97
Member Avatar for willrose84

I am using FileSystemWatcher to copy the contents of a text file after it has been updated but it is creating the same avent more than once i was wondering if anyone could tell me if there is a way to stop it doing that so it will only copy …

Software Development vb.net
Member Avatar for Teme64
0
236
Member Avatar for SANMI

I need to REMOVE my Application from the Windows Process List. I do not want users to use Process Killers to Remove my Application or Shut it down.

Software Development pascal
Member Avatar for FlamingClaw
0
147
Member Avatar for ofranko

using - python 3, python shell i've tried looking online and in a couple of books, but i can't find an explicit example of creating an exe. could one of ya'll share the steps? ty, frank

Software Development python
Member Avatar for vegaseat
0
123
Member Avatar for suretd

Good Day, I am also a newby to the JAVA world of developing. I am SERIOUSLY struggling with a homework assignment ... I have a swing program that is using a JFrame and the task is to calculate the average grade. First, a JOptionPane needs to be used to get …

Software Development java java-swing
Member Avatar for suretd
0
115
Member Avatar for DarkSaint

Problems 1. Results for height and weight output fine but I am trying to have gender change the following boolean assignment statements. 2 different results for height and weight base on either female or male. exp. males height is [COLOR="Red"](height >= 62 && height <= 78)[/COLOR] but for the female …

Software Development c++
Member Avatar for DarkSaint
0
86
Member Avatar for newcpp

I have a problem about std::vector as member of class, I'm not clearly about the initialization mechanism [CODE=c++]#include <iostream> #include <vector> using namespace std; class Obj; //this is a Class object class Grid { public: Grid( ) { } ~Grid( ){ } protected: private: vector<Obj> v1; //initialization mechanism ? and …

Software Development c++
Member Avatar for newcpp
0
7K
Member Avatar for Darkangelchick

Hey guys I have to analyse a short program for school and the only keyword i cannot find a definition for if ORG. What does this do in assembly code?? Any help would be appreciated. Thanks

Software Development assembly
Member Avatar for jephthah
0
136

The End.