43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for FTProtocol

I need need it to update my ListView before continueing [code] if (chars.Length > 0) { string log = string.Format("{0}:{1}", acc.Username, acc.Password); UpdateListView(); sWorking += log + "\r\n"; foreach (IJJIAccount.GunZCharacter gc in chars) { log = string.Format("\t{0} - Level {1}", gc.CharName, gc.Level); sWorking += log + "\r\n"; } } [/code] …

Software Development listview
Member Avatar for LizR
0
149
Member Avatar for arun_lisieux

Ques: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? I came up with the following code. This did compile in VC++ Express Edition without any errors/warnings. But i only get a blank output screen. Someone plz …

Software Development c++
Member Avatar for arun_lisieux
0
229
Member Avatar for revenge2

hello there, well im back;) with a few more questions that i would like clarification with. I have completed up to data structures in python and my next topic is 'object oriented programming':| . Just wanted to clear up some things first:) [CODE]guess=int (input ('enter a number:')) [/CODE] Q1. in …

Software Development python
Member Avatar for mn_kthompson
0
363
Member Avatar for ddanbe

When I want an array of integers with 4 rows and 2 columns I do [B]int[,] array = new int[4, 2];[/B] and then use [B]array[0, 0]=123;[/B] to set the first element. So for the matrix input usercontrol I'm working on I thought I need something like : [B]TextBox[,] elements = …

Software Development
Member Avatar for Ramy Mahrous
0
117
Member Avatar for ucza

I made some simple mistake (conversion?) in my program.. I will be gratefull if anyone has an idea what's wrong with it;) The problem is not with the algorithm itself so I am not explaining it - the problem is: why the condition placed in the code between // HERE …

Software Development algorithm c++
Member Avatar for ucza
0
131
Member Avatar for dthree

hi folks, I'm writing a program for a punch press that displays the pattern to be punched. I have learned how to retrieve the data from a spreadsheet calculate the hole angles and draw them on my form [code] { Using g As Graphics = Me.CreateGraphics Dim pn As New …

Software Development vb.net
Member Avatar for dthree
0
122
Member Avatar for clutchkiller

For the 2 parameters lpClassName and lpWindowName in FindWindow, what do i throw in there to hide all open windows? Is this possible? MSDN makes it sound like if both parameters are null, that will do the trick, but before i test it, i want to make sure that works …

Software Development c++
Member Avatar for clutchkiller
0
206
Member Avatar for mn_kthompson

I've written some code that will download a web page and extract all the links from that page into a list. Then I want to make a second pass down the list and repeat the process for each on the links found on the first page. But for some reason, …

Software Development pdf python
Member Avatar for Gribouillis
0
299
Member Avatar for rmlopes

Hello all, I am using VS2008 and I have a solution with 3 projects. One is the Loki library, another one is a library designed by me and the other is a small application that uses a part of my library. The Loki project is a static library. Mine is …

Software Development c++ visual-studio
0
93
Member Avatar for jeffrey16

hi, i am new in this forum and i cannot find a free downloadable activeX button, i want to make my design beautiful, can anyone here pls help me where to find cool buttons for free. im using VB6..

Software Development visual-basic
Member Avatar for johnkeartson
0
230
Member Avatar for kiddo39

This code from Vegasseat worked when I made my own bitmap image to count red pixels. I now want to count green pixels so I changed the code. Again, when I make my own bitmap it will count the green pixels but why won't it count them in an image …

Software Development python
Member Avatar for kiddo39
0
343
Member Avatar for JamieC90

Hey all, first post, hope I'm not doing anything wrong I'm taking a Java module next term at university, and in preparation, they want us to code two things. They reckon there's a help file up on their intranet but the intranet is very unstable, and doesn't seem to handle …

Software Development java
Member Avatar for JamieC90
0
183
Member Avatar for smelf1

Hi, In the reg key below there can be 50 different keys, how can i read through each one and get its display name and then show those display names in a lsitbox or combo box. hkey_local_machine\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall I am using the code below to get the data in that single …

Software Development microsoft-windows vb.net
Member Avatar for Ramy Mahrous
0
654
Member Avatar for jaiprakash15

Dear All.. I been working on XML for the past 2 weeks and am bit new to this concept..however i have put my effort to solve my problem.. I have suceeded in creating and appending a node to a XML file..But i have problem in Removing a node in a …

Software Development vb.net xml
Member Avatar for jaiprakash15
0
177
Member Avatar for edgar5

All my (programming) life I’ve been plagued by timing problems! I assumed (haha) that when I changed from a pervasively multitasking OS to Vista I would escape the problem but it seems like I must be missing something. My problem lies in WhichChar. Note the line: 'MsgBox(vbNullString) If I leave …

Software Development vb.net windows-vista
Member Avatar for edgar5
0
111
Member Avatar for javaman2

how can i loop a whole code and make it repeat until the user wants to stop.

Software Development java
Member Avatar for javaAddict
0
115
Member Avatar for javaman2

how can i set a boolean to put in an if else statement with the following code if((Math.abs(x)==1)&&(Math.abs(ex)==1)&&(Math.abs(exx)==2))//test for straight System.out.print("Straight"); if((cardSuit==0)&&(cardSuit2==0)&&(cardSuit3==0))//test for flush System.out.print(" Flush "); i want to set a boolean straight and boolean flush to put in another if else statement like so if(straight && flush) System.out.println("Good …

Software Development java
Member Avatar for stephen84s
0
106
Member Avatar for benchCUB

hi, how can i read a text file "textfile.txt" with a structure? (in C) thanks the structure is in this form. [code=c] typedef struct list { char ID[9]; char YR[10]; char lname[14]; char fname[24]; }LIST[256]; [/code]

Software Development c
Member Avatar for Ancient Dragon
0
129
Member Avatar for jinsonsani

I want to replace a text in a file eg (old_text) with another text eg (new_text) . new_text is a variable in my shell script. few methods that i tried .. but this doesnt work cat $line".sh" sed -e 's/abc/ABC/g' $line".sh" sed 's/ordprg/new_string/g' $line".sh" > $line".sh" Could some one can …

Software Development shell-scripting
Member Avatar for eggi
0
169
Member Avatar for DonkeyKong92

Hi all, ok i have just started learning C++ today and i have download "Visual C++ 2008 Express Edition" and i am trying to make the "Hello World" program. I clicked on "Create Project" and then "Win32 Console Application" and then typed in the name "Hello World" then i right …

Software Development c++
Member Avatar for Kungpao
0
176
Member Avatar for ayi_102

this is asp using c# [ICODE] string filename = "tracking result.csv"; string sExportFile = Server.MapPath(filename); [/ICODE] it just the piece of the code the code save the file to the server Q = How can i save the file to the C drive? eg like c:\\testfolder\tracking result.csv

Software Development file-system
Member Avatar for ayi_102
0
168
Member Avatar for ayi_102

[ICODE] mydb thedb = new mydb(); MyGlobal oapp = new MyGlobal(); //define the reader System.Data.OleDb.OleDbDataReader theReader = null; //defining sql string _sql = "SELECT * FROM searchtest WHERE ID = " + _ddsearch; string _sqlupdate = ""; //execute the reader theReader = thedb.SQLExecute_Reader(_sql); [/ICODE] this code is try to grab …

Software Development
Member Avatar for LizR
0
104
Member Avatar for christiangirl

Hey, I need to download the TurtleGraphics package but am having trouble findng a place to dwnload it from, I tried a couple of places but they did not work. Do you know of a good website to get it off of? Thanks!

Software Development java
Member Avatar for ddanbe
0
95
Member Avatar for Bladtman242

this program is just messing around with file i/o, and then i stumbled across something that i¨ve clearly forgot or missed in the tutorials i've read. my 'guess' is its the to if statements messing up (or perhaps rather their else's) i know i used goto and that means i …

Software Development c++ ios
Member Avatar for Bladtman242
0
117
Member Avatar for k59smooth

On This web site is frist time i heard of C#. I am skilled in C++ and was wanting to know if C# is an advanced version of C++, kind of like C++ is an advanced version of C...

Software Development c c# c++
Member Avatar for jbennet
0
163
Member Avatar for heimdhal

I quite don't get it! I've got a memory access violation on a perfectly normal code string. Error occurs when starting the application. I can click continiuse and everything goes on ok. And more. If I enter a breakpoint before the bad line it doesn't stop there but the error …

Software Development c++
Member Avatar for ArkM
0
159
Member Avatar for Ajantis

Hey again :) I was just wondering one more thing, because I've been testing this for hours, and couldn't make it work. I have created a textBox, some buttons and a label and a splitter. Is it possible by any chance to "lock" the positions of the textBox, buttons and …

Software Development
Member Avatar for Ramy Mahrous
0
80
Member Avatar for Ajantis

Hello there, I have some troubles making transparency of my menues in C#. Basically, I can't make them work. :/ I've searched Google, MSDN, codeproject, c-shaprcorner... but I still can't make it work. I try to set a groupBox BackColor to transparent, and let the groupBox use my own background …

Software Development
Member Avatar for Ajantis
0
7K
Member Avatar for shazzy99

How can I call another form from within one forms control events. like initiating a form on button click?

Software Development
Member Avatar for shazzy99
0
110
Member Avatar for piotr_kast

I had this three classes: [code] Start.cs: --------- using System; using System.Windows.Forms; namespace Test { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static void Main(string[] args) { Uruchom(); } public static void Uruchom() { Book written = new Book(); Book bought = new Book(); written.Author …

Software Development oop visual-studio
Member Avatar for LizR
0
329
Member Avatar for lllllIllIlllI

Hi From using java and BlueJ i have found it quite easy to make your own api using inbuilt things in BlueJ. So i was wondering if there was anything in python that would take a python program and find all of the definitions and make an API from that, …

Software Development api python
Member Avatar for lllllIllIlllI
0
127
Member Avatar for brimble2010

Hi (first post :) ), I have a coursework where we have to read in 50 lines from a file (bubble.txt), sort them into length order and then print them out (its not the whole coursework, just a part). I thought that the only way of holding lines of text …

Software Development c
Member Avatar for brimble2010
0
140
Member Avatar for javaman2

hey again i've fixed my code a little and need a little help. I've got the flush and one pair determinations to work but the three of a kind, straight, straight flush and royal straight flush are giving me a little trouble. If anyone has any suggestions, i would really …

Software Development java
Member Avatar for hypocrisy
0
110
Member Avatar for rahmathmail

hi, i want to display one table in a access database using datagrid. i tried to do like this. [COLOR="Red"]con.open constring set rs=con.execute("command to select the table") set datagrid.DataSource=rs[/COLOR] but it shows an runtime error like this: [B]RunTime Error '7004' The rowset in not bookmarkable[/B] wats' the reason... pls post …

Software Development display visual-basic
Member Avatar for rahmathmail
0
450
Member Avatar for jaiprakash15

Dear fiends, Am Posting a Lot Nowadays.. Sorry if i had Disturbed you all...Hera my XML file..i Have to append a node below this..can some give me any idea how to do it..When i try..it is over writing the file i need to append <TaskName> <name>abc</name> <Value>3454</Value> </TaskName> following to …

Software Development vb.net xml
Member Avatar for jaiprakash15
0
2K
Member Avatar for CoolAtt

hi . i have read a line from a text file & stored it in a string using fgets(). the file contains the following line: C:\Windows\ [CODE]char myline[20]; fgets(myline,20,fp);[/CODE] now i want to append '' in the string so that when i print [B]myline [/B]output is C:\\Windows\\ Any idea or …

Software Development c
Member Avatar for CoolAtt
0
160
Member Avatar for omeralper

We can convert any kind of numbers to binary string. For example 20501487 can be converted into binary String format as 1001110001101001111101111. However I cannot reconvert this binary String into any number format, even long or float numbers due to NumberFormatException, where the numbers are very big to convert. I …

Software Development java
Member Avatar for omeralper
0
202
Member Avatar for nitrooreo

Hello. This is my first problem post on Daniweb so feel free to overload me with info even outside the scope of this overloading problem. I have a class Point where I have overloaded the + operator and I'm trying to overload "operator=" so that I can right something like: …

Software Development c++
Member Avatar for nitrooreo
0
312
Member Avatar for michaelmorris

Hi, What I'm attempting to do is send data from one class, to another and then store it in that second class as an array. E.g. file class1.cpp [CODE=c++]class1{ Class2 c; c.methodAdd(Variable1, id); cout << c.methodGet(2); }[/CODE] file class2.h [CODE=c++]class2{ typedef string StringArrayPtr; StringArrayPtr *array = new StringArrayPtr[3]; //create the …

Software Development c c# c++
Member Avatar for michaelmorris
0
164
Member Avatar for michaelmorris

Hi, its me again, How would I go about reading in the same file twice?? What I need to do is read it in the first time, and count how many lines there are between two words (in the middle of the file somewhere - see example below), create and …

Software Development c++ ios
Member Avatar for michaelmorris
0
327
Member Avatar for Alex_

Hello, This is the problem: I get the right function call only from the 3rd derivated class, when the other twos are called are not. Source : [code] #include<iostream.h> #include<conio.h> #include<string.h> class IV{ char *loc; public: IV(){loc=NULL;} IV(char *_loc){ loc=new char [strlen(_loc)+1]; strcpy(loc,_loc); } ~IV(){ if(loc) delete [] loc; loc=NULL; …

Software Development c++
Member Avatar for Alex_
0
152
Member Avatar for furjaw

Visual Basic 2005 Express Edition: This works, but, I need to get the .wav file from Resources: My.Computer.Audio.Play("C:\Documents and Settings\Owner\My Documents\Visual Studio 2005\Projects\OrthoLabRx\OrthoLabRx\Resources\PodVwBy.wav") I placed the .wav file in Resources, but, I can't seem to access it from there. This does not work: My.Computer.Audio.Play(My.Resources.PodVwBy) It says "value of type 'System.IO.UnmangedMemoryStream' …

Software Development audio vb.net visual-basic visual-studio
Member Avatar for furjaw
0
1K
Member Avatar for ayi_102

I have a problem about updating access database. there are 3 columns in my database : ID, searchkeyword, count in the form there are button n textbox if user enter a new search keyword, the database updated all if the keyword already exist, just update count column +1 this is …

Software Development
Member Avatar for ayi_102
0
133
Member Avatar for Swemp

Hi, Can I check a two-dimensional array like this ? The content of the arrays are of type [I]char[/I] [code=c++] matrix[0][0] == matrix[1][1] == matrix[2][2] [/code]

Software Development c++
Member Avatar for Swemp
0
108
Member Avatar for Tekito

I'm new to datasets, and trying to update a SQL Server database with one. I'm having trouble understanding how to correctly write the dataset info to the server db and preserve the relationship keys. When I write to the main table in the server database, it will assign the new …

Software Development dataset vb.net
Member Avatar for Ramy Mahrous
0
115
Member Avatar for Bladtman242

I know there is [i]a lot[/i] of threads about books but i didn't find what i was looking for:) so here goes. how is the book ^^ made? does it explain the commands? becaus im a bit fed up with tutorials that just say "write this and write that" when …

Software Development c++
Member Avatar for Bladtman242
0
164
Member Avatar for purplegerbil

Hi, I am wanting to get some data from an Excel spreadsheet. My problem is the data in the cell has been formatted. i.e. This is [B]sample[/B] text. I want to be able to know which bits are made bold and create a string similar to: This is <b>sample<\b> text. …

Software Development visual-basic
Member Avatar for Comatose
0
125
Member Avatar for TomRandall

Hi, Is there an easy way to loop through an array of controls (user specified, not every control on the form) and disable them? At the moment I'm just disable/enabling them one by one e.g. ctrl1.enabled := false; ctrl2.enabled := false; .... ctrl22.enabled := false; etc. Is there a way …

Software Development delphi pascal
Member Avatar for LizR
0
174
Member Avatar for balamurali07

Dynamic reports means depending on the inputs the reports will be generated. For example if we want to show the details of particular day means the particular date is the input and show that days reports. If you know the answer means please give me the solution.

Software Development visual-basic
Member Avatar for Comatose
0
113
Member Avatar for jeffreyjs

Hi, I am currently doing a mini project using Eclipse with Java language.. i needed to submit some values into the DB, but i am having some trouble to do so... i would like to find out if i need to create variables for all the values i want to …

Software Development java
Member Avatar for peter_budo
0
312

The End.