132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mybluehair

Hello. I'm developing a game in c++ and have found that you almost have to be Bill Gates to figure out how to connect to the internet using c++. So I've taken the idea that I should create the first section of my game in Java. This section would open …

Software Development java
Member Avatar for BestJewSinceJC
0
82
Member Avatar for timb89

(10 marks) Write a functiom in C++ which when passed 2 different lower case strings s1 and s2 will return true if the strings are anagrams. Note that 2 strings are anagrams if they contain exactly the same letters with the same frequency. im doing a past paper for an …

Software Development c++
Member Avatar for kvprajapati
0
172
Member Avatar for monurenjith

i was trying to join two tables using a adodb mysql5.1 driver connection .i tried to print the record count in the record set . no result was shown and the program is not responding . when i started debugging it was shown that the record set object was closed …

Software Development visual-basic
Member Avatar for Tassilo
0
97
Member Avatar for akkkk

Hi i have a program that currently reads in the contents of a file and stores it in a string. Some of the files are quite large so speed is quite important. I want to print out the words that begin with capital letters and was wondering how i could …

Software Development python
Member Avatar for akkkk
0
214
Member Avatar for serkan sendur

A wierd thing is happening guys, when i start the application without debugging everything works fine, when run the application in debug mode, it stops responding whether or not it hits any break point.

Software Development
Member Avatar for serkan sendur
0
77
Member Avatar for tillaart36

Hi, my question is how I can find the centroid of group of cells that share the same value. Say I have this: [code] grid = [[0, 0, 0, 0, 0], [0, 1, 1, 1, 0], [0, 1, 1, 0, 0], [0, 1, 1, 1, 0], [0, 0, 0 ,0, …

Software Development python
Member Avatar for no_spam_for_dan
0
2K
Member Avatar for bharanidharanit

Hello, I want to read a text file in C and the output file must be created and want to reverse the data in tat output file created. So i used the below coding but not reversing the data in the output file created. eg: input file contains this data …

Software Development c
Member Avatar for Dave Sinkula
0
358
Member Avatar for BradenMurphy

Hey:) I'm not actually sure what it's called..so just calling it "mouse window locking" - What i mean by this is how do you lock the mouse to a window ie: The mouse can not leave the window unless you alt tab. So when the user drags the mouse to …

Software Development c++ opengl
Member Avatar for BradenMurphy
0
2K
Member Avatar for kostasxx

Hi I use Dev - C++ and i d like to ask you cause i dont seem to figure that out, how can i store a 12 digit number? For example lets say this is the number 930342900243 How can i write a program that would print that number using …

Software Development c
Member Avatar for Dave Sinkula
0
132
Member Avatar for Killer_Typo

[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been …

Software Development java
Member Avatar for dmanchester
0
1K
Member Avatar for MrNoob

okay i understand all bitwise operators but in the chapter of k&r at bitwise operators i m really lost at there question i have no idea how to do them Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to …

Software Development c
Member Avatar for Tom Gunn
0
378
Member Avatar for jcmeyer

I know that, in python, to start a file with it's associated application that is located on my hard drive I can simply use os.startfile. However, I want to be able to start a file with it's associated application that is located on an ftp site. Does anyone know how …

Software Development hard-drive python
Member Avatar for jcmeyer
0
132
Member Avatar for hughesadam_87

Hey everyone, Here is an outline of my problem: I have a working code which defines a class, GeneDict, which reads in data from a special type of file, and stores it as a dictionary. What it is really doing is taking in millions of lines of biological data, and …

Software Development python
Member Avatar for hughesadam_87
0
138
Member Avatar for drjay1627

I have a recursive function. My base case is: [code] somemethod(somelist) [INDENT]if len(somelist) == 0[/INDENT] [INDENT][INDENT]return[/INDENT][/INDENT] ... [/code] This is suppose to return the function to the place where it was called from. [code] main() ... somemethod(somelist) ... [/code] But I get this error: AttributeError: Trie instance has no attribute …

Software Development python
Member Avatar for jlm699
0
98
Member Avatar for Zcool31

Hello everyone! I am trying to use polymorphism to have a little physics simulator that draws objects to the screen. Each object has properties like mass, friction, position, velocity, acceleration and such similar things, as well as a pointer to a SHAPE object which describes the shape of the object. …

Software Development c++ oop
Member Avatar for Zcool31
0
232
Member Avatar for lotrsimp12345

[code=cplusplus]#include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; string problem_name_and_numbers=problems; string numbers; char quote; int total_length=problems.length(); //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); int problemslength=(problems.length()+1); int difference=total_length-problemlength; numbers=problem_name_and_numbers.substr(problemlength,difference); } else { …

Software Development c++
Member Avatar for lotrsimp12345
0
124
Member Avatar for giora88

Hello. I have a question about socket programming. I am using Linux. I want to establish a connection between a client and a server using the methods: Server: socket(), bind(), listen(), accept(), connect(), send(), recv(), close(). Client: socket(), connect(), send(), recv(). My question is: If I am a client and …

Software Development c++ client-server socket-programming
Member Avatar for Salem
0
125
Member Avatar for Niner710

Hi, I am a newbie to C++ and want to know how to parse thru a binary file. I am having some trouble with some simple code. I have a sample binary file(test.bdb) that has "0069 0045 0089 0090" in the file. Here is my code for the file. [code] …

Software Development c++ file-system ios
Member Avatar for Dave Sinkula
0
2K
Member Avatar for julia2009

I'm writing a program in C++ under Linux that needs to wait for user to press a key. Considering the key pressed the program will go accordingly. So I must be able to recover the key code from a variable afterwards. I will appreciate a good help.

Software Development c++
Member Avatar for ArcRoyal
0
1K
Member Avatar for swati11

Hi, I am creating a dll based VC++ project.I believe I am facing some memory issues. I have checked the code and for every memory allocation by using the new operator I have included a delete operator to deallocate the memory. May be there are some memory leaks which are …

Software Development c++ visual-studio
Member Avatar for wildgoose
0
76
Member Avatar for Cman2020

Hello guys help please i'm trying to write to a disk and append it whenever i open the program i can add to it instead of witting a new one StreamWriter Write; Write = File.CreateText("c:\\TestFile.txt", FileMode.Append); Write.WriteAllText(txtOutput.Text); Write.Close(); MessageBox.Show ("File Created SucacessFully"); getting this error:- No overload for method 'CreateText' …

Software Development assembly
Member Avatar for Ramy Mahrous
0
187
Member Avatar for SusanHAllen

My code reads an Excel file and outputs XML. For one value I need to evaluate 2 spreadsheet values to set the XML as in (dr being a datarow): [code] if (String.IsNullOrEmpty(dr[5].ToString().Trim()) == true) strPrimeTaxid = dr[6].ToString().Trim(); else strPrimeTaxid = dr[5].ToString().Trim(); [/code] This works fine for data such as "123456" …

Software Development xml
Member Avatar for Ramy Mahrous
0
225
Member Avatar for jooa

Hi, I am trying to write some code which uses a JSlider to specify the number of lables to be displayed on a frame. I know how to create the JSlider and display it, but I am not sure how to implement different numbers of lables. I hope someone can …

Software Development java
Member Avatar for VernonDozier
0
106
Member Avatar for serkan sendur

each time i hit run button to deploy my mobile application, it keeps asking whether to deploy .net framework which already is installed. i want to disable that compact framework deployment. do you guys know how?

Software Development asp.net
Member Avatar for serkan sendur
0
125
Member Avatar for zuve_fox

HI.. could u help me,how to Login windows user account using vb.net ? thanx

Software Development vb.net
Member Avatar for Micheal_2009
0
104
Member Avatar for hanzi_ru

hi i have created two combo boxes which contain locations and floors. After selecting the location from the first combo need to filter the floors allocated to the selected location, to the second combo. i have allocated floors to locations in another table called floor allocate. can somebody pls help …

Software Development dataset
Member Avatar for Manak
0
2K
Member Avatar for girl_pt

I want to read the contents of a .txt file and the contents, for example, are: 1;london;7000;2000;3000;5000; etc i want to read them to a variable linked by adjacency lists I need to know how to do this for a paper work and any help is welcome. thx in advance... …

Software Development c
Member Avatar for Dave Sinkula
0
105
Member Avatar for floodemo

what does this code mean/do? Rectangle[] rects = new Rectangle[] { new Rectangle(8,8,119,86), new Rectangle(127,8,119,86), new Rectangle(246,8,121,86), new Rectangle(8,94,119,90), new Rectangle(127,94,119,90), new Rectangle(246,94,121,90), new Rectangle(8,184,119,88), new Rectangle(127,184,119,88), new Rectangle(246,184,121,88) }; formGfx.DrawRectangles(pen, rects);

Software Development c c# c++
Member Avatar for ddanbe
0
86
Member Avatar for seebharath

How do I make a tooltip with summary appear for cutom defined functions just like the one that appears for inbuilt functions with VS 2008 Like when I type List.Add() a tool tip says what the inpute params are and what the add functions does I have tried writing comments …

Software Development
Member Avatar for seebharath
0
119
Member Avatar for b89smith

In the application that I am building I have a log window that contains a listview control. This listview control has two columns, a time stamp column and log description column. When an event happens it is added to the listview. The problem is that when about 15+ events happen …

Software Development listview vb.net
Member Avatar for b89smith
0
145
Member Avatar for pradeepvmca

I need to call a SQLSERVER 2005 DTS package from my windows service which was developed using C#.Net. please help me with source code

Software Development c#
Member Avatar for Ramy Mahrous
0
82
Member Avatar for anirbanjoy

Hi, I have 3 seperate make file where, 1st one generates a static library libCanOpen.a, (using ""ar -r ") 2nd one creates a dynamically linkable library libPixyCANopen.so (using "g++ -Wall -fPIC -shared") and the 3rd one creates the executable by linking it to libPixyCANopen.so. The 1st two makefiles build without …

Software Development c++
Member Avatar for anirbanjoy
0
380
Member Avatar for Fahim.Tamim

I am working with tabs in a application but I am having problem with the tabs. I want to allow the user to add or delete a tab. Can any one help Thanks in advance

Software Development vb.net
Member Avatar for Teme64
0
119
Member Avatar for Stefano Mtangoo

To help people who come from console application and who wants to implement GUI, it is better for them to know the real world application made by available toolkit. I suggest this be the place to show real world apps doen by toolkits in Python Language Hope it will help …

Software Development gui python
Member Avatar for Stefano Mtangoo
0
117
Member Avatar for Brent720

I am having an inordinate amount of difficulties locating an example of how to display Unicode using Lazarus and FPC. It's supposed to be fully UTF-8 capable now, yet all I get are question marks for text strings, or else little skinny boxes in place of the characters. Can someone …

Software Development delphi pascal puzzle
Member Avatar for Brent720
0
1K
Member Avatar for lexusdominus

Im having some problems organising my code in a large (for me) project. Basically my problem stems from having 1400 lines in one source file. Ive written 38 functions which all have declarations above the main function. Below my main function block i have all of the function definitions. Im …

Software Development c++
Member Avatar for lexusdominus
0
158
Member Avatar for rustysynate

Hi, I am new to programming with python. I want to make a image rotate dynamically corresponding to the CPU usage in ubuntu. I searched everywhere but couldnot find any post for it.All i have found is a static rotation with the PIL. If anyone could help me in this …

Software Development python ubuntu
Member Avatar for rustysynate
0
88
Member Avatar for begnnr_help

I have a problem where I am writing a program that has a predefined costs for tickets. The program asks what city you want to go to and then it asks how many tickets you want to buy and it calculates the cost. If you want more it will ask …

Software Development c++ ios
Member Avatar for begnnr_help
0
202
Member Avatar for zmariow

Hi all, There are plenty of websites that provide templates for websites. Where can we find templates (I mean GUI templates and not code templates) for stand-alone applications (Windows applications)? In more details... a template for a website tells you where to put your content, your menu, your help, your …

Software Development gui
Member Avatar for sknake
0
681
Member Avatar for sparcheta3

Hi guys, I'm new and self teaching myself C++. A problem from the book says to create the CandyBar Struct and the create a dynamic array that hold 3 structures, initialize the structures and output each of them. The code works BUT I'm wondering if there is an easier way …

Software Development c++
Member Avatar for jencas
0
140
Member Avatar for plusplus

I have the following code for reading an online file, somehow the first line returns an empty string, what can be the reason for this? Dim myRequest As WebRequest = webRequest.Create(myurl) myRequest.Proxy = WebRequest.DefaultWebProxy Dim mystream As Stream = myRequest.GetResponse.GetResponseStream() Dim objReader As New StreamReader(mystream) Dim sLine As String = …

Software Development file-stream vb.net
Member Avatar for Teme64
0
594
Member Avatar for weblover

hi all ...how are u? i have a question ...how can i output the items of a java Stack ...is there any predifine method?? and another question ...how can i use the class Queue without interface ? ...because i'm typing in my code (Queue q =new Queue();) but it's giving …

Software Development java queue
Member Avatar for weblover
0
206
Member Avatar for major_lost

Can someone give me some idea how to write the rtf file required for the VB4 help complier. Please explain in english in simple terms. I don't understand the instructions at all and I am: major_lost

Software Development visual-basic
0
62
Member Avatar for Micky Holtern

Hello. I have a strange problem in VS 2008. I have ascii - codes of simbols and I want to have a String^ variable as result of converting. That is my code: [code] int arr[10];//array with ascii codes of simbols. ... unsigned char a; String^ str; for ( int i …

Software Development c++
Member Avatar for Micky Holtern
0
99
Member Avatar for titosd

Hello, I have a question about sorting. How can I sort HashMap by element in the HashMap ? That's meaning, if I have in the Sys class map such as: [code=java]protected Map <Constructors,RaceTeam>raceTeam=new HashMap<Constructors,RaceTeam>();[/code] and in the RaceTeam class I have this variables: [code=java] protected Constructors name; protected int totalScore; …

Software Development java
Member Avatar for titosd
0
88
Member Avatar for seao111

I would like to know the best way to enumerate a network domain and check if the computers within this domain have a certain file on their computer. Code Structure: (1) Program enumerates local network, stores client computers to a string array (2) Program checks all enumerated computers on the …

Software Development c++
Member Avatar for jencas
0
103
Member Avatar for Ruan RT

Hi All I am new to C# language and would like to know where I can get my hands on some good examples of C# in Revit. I am not a genies in programming so I will possibly need a book for C# programming for dummies :-) Any information would …

Software Development c c# c++
Member Avatar for Ramy Mahrous
0
110
Member Avatar for Mclovin

Hi! I'm about to rename a hole bunch of files in different folders and want to use Python to do it. The problem is that I want to keep parts of the file name from the old file and insert it into the new file in another location. for example: …

Software Development python
Member Avatar for Mclovin
0
656
Member Avatar for kakakon

Hello, I have a Tree structure with custom TreeNode nodes. The structure of TreeNode is: private int level; private String label = null; private String data = null; private TreeNode parent = null; private Vector <TreeNode> children = null; I should find each unique path from root to all leaves …

Software Development data-structure java
Member Avatar for kakakon
0
163
Member Avatar for chaines51

I have a class (String) that I want to be able to implicitly convert to a char. How would I go about doing this? I know to do it the other way around, I just add a constructor that just takes a char as a parameter, but to convert from …

Software Development c++
Member Avatar for chaines51
0
173

The End.