64,152 Solved Topics

Remove Filter
Member Avatar for
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 …

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.

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 …

Member Avatar for stephen84s
0
106
Member Avatar for winrawr

I'm looking into learning some more languages and some better code writing techniques, but I am not sure of the languages that I should delve into. So far I know VB really well and I started learning assembly, but I don't know that past some, I guess, medium difficulty, 16 …

Member Avatar for Rashakil Fol
0
117
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]

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 …

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 …

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

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 …

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!

Member Avatar for ddanbe
0
95
Member Avatar for jedimatt

Hi all, I have a bit of an issue with an application that i am currently developing. The application logs passed and failure information for a production line. Each production lineis broken down into operations, each operation has a task group and then each task group has a bunch of …

Member Avatar for jedimatt
0
165
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 …

Member Avatar for Bladtman242
0
117
Member Avatar for wwwmadeasy

hi i am trying to check if the user select yes or no ..it dos work but it give me an error saying "object doesn't support this property or method" [code] { var o = document.getElementById('addyes'); var t = document.getElementById('addno'); if ( (o.checked == false ) && (t.checked == false …

Member Avatar for wwwmadeasy
0
327
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...

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 …

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 …

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 …

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?

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 …

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, …

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 …

Member Avatar for brimble2010
0
140
Member Avatar for wwwmadeasy

hi there i want help doing the following.. user come to the web site there will be a form for registration when he submit the information it will store in the database but only admin can verify his account ... can any one plz help me in that... thanks in …

Member Avatar for wwwmadeasy
0
166
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 …

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 …

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 …

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 …

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 …

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: …

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 …

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 …

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; …

Member Avatar for Alex_
0
152
Member Avatar for serkan sendur

hi, i have been wondering, after the compilation of a textual source file, it is said that it is compiled to ones and zeros, i wonder what are those ones are zeros, are they visible to eyes? for example if i open it with notepad can i display them? if …

Member Avatar for serkan sendur
0
213
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' …

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 …

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]

Member Avatar for Swemp
0
108
Member Avatar for hhamdan

Hello everybody, I am looking for a way to filter an Robt spam in coldfuion, i had look to the recaptcha, but it is not clear and it is not easy for customers. any body have another idea, ....help please

Member Avatar for buddylee17
0
106
Member Avatar for Yamazaki

Hi, i need a little help here, in my app i've created 3 users by ASP Web Site Administration Tool and i want each user to be redirected to different pages from the login.aspx. i.e. username1 enters his username and pw, press the login button, he should be redirected to …

Member Avatar for Pandat
0
103
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 …

Member Avatar for Ramy Mahrous
0
115
Member Avatar for jmasta

Hello everyone, I've ran into something that's been confusing me. Here's my code snippet: [code] if (parent.scrollTop < parent.scrollHeight) { if(document.fireEvent){ //IE setTimeout("document.fireEvent('onmousemove')", 10); }else{ //FF var changeEvent = document.createEvent("MouseEvents") changeEvent.initEvent("mousemove", true, true); setTimeout("document.dispatchEvent(changeEvent)", 10); } } [/code] What happens in Firefox is when the [icode]setTimeout[/icode] fires, it tells me …

Member Avatar for jmasta
0
299
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 …

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. …

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 …

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.

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 …

Member Avatar for peter_budo
0
312
Member Avatar for nitu_thakkar
Member Avatar for jaiprakash15

hi all, I have a XML file like as shown below.. i need to replace the value of status for a particular task..can u help me how to do it.. <?xml version="1.0" encoding="utf-8"?> <Task> <TaskName tskName="PS0002440" Status="Open" /> <TaskName tskName="PS0002439" Status="Open" /> </Task> in the above file..i need to change …

Member Avatar for Ramy Mahrous
0
164
Member Avatar for jaiprakash15

Dear All, AM creating a XML file from my Database. I have created Sucessfully and now i need to append a another node to this below XML file Ex : <TaskName Value="PS0002440" Status="Process" /> I use the following code to create this below XML file. Am passing the Value and …

0
103
Member Avatar for Bladtman242

I know i can use fstream to create, edit and read files in c++, i also believe there is a different way wich i am unfamiliar with. but is it possible to work with files NOT in the same directory as the program? like if the program is in C:\programfiles …

Member Avatar for Bladtman242
0
285
Member Avatar for shazzy99

Greetings, How to change a file name using C# code with fixed path to the subject file? Do I need to copy/create a new file with new name and delete the old one or is there a way to change the name without doing above. Rds

Member Avatar for Ramy Mahrous
0
286
Member Avatar for freshfitz

We have exchange 2007 and I can't get our webserver to relay mail I've tried authentication non authenticaten domain/username:password@mail.server.com and username:password@mail.server.com Does anyone know how to get exchange to accept mail from cold fusion. For any other programs we use domain / user name and password.

Member Avatar for freshfitz
0
92

The End.