64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for venkat arun

Hello, I have made a program in C++ for which I am making the GUI in C#. I want to run the C++ program as a process from C#. The program loads and runs fine, but due to some reason it is not able to access the files. When I …

Member Avatar for venkat arun
0
303
Member Avatar for Rageagainst20

Hello, I am trying to get a response from a URL using the following method [CODE]public void IsUrlReachable() { HttpWebRequest webRequest; WebResponse webResponse = null; //Need to assign this as null otherwise it does not compile try { webRequest = WebRequest.Create("http://[myurl].asmx"); webRequest.Method = "GET"; webRequest.KeepAlive = false; webResponse = webRequest.GetResponse(); …

Member Avatar for Rageagainst20
0
168
Member Avatar for Xufyan

I want to calculate remainder of all the values inside nested loop with all the numbers inside the loop. for example when [icode] a=1 , b=1, c=remainder a=2, b=1, c=remainder a=3, b=1, c=remainder a=1, b=2, c=remainder a=2, b=2, c=remainder a=3, b=2, c=remainder a=1, b=3, c=remainder a=2, b=3, c=remainder a=3, b=3, …

Member Avatar for Xufyan
0
167
Member Avatar for Dimansu

Hi I want the user to only type letters (a-z simple or capital) in the Name textbox.If the user types any other character(like numbers or commas,semicolons) I want to show a message.How can I check for it(in C#)? Thnx in Advance

Member Avatar for Dimansu
0
87
Member Avatar for abu taher

I want to make a help file. but I want to do it without vb tools. I want to make it, use another tools. can any body tell me any software to make this kind of help file.

Member Avatar for kinwang2009
0
59
Member Avatar for yapkm01

I have a Computer Science degree (long2 time ago) .. I do know Java OOP but i am now trying to pick up C++. I do have C and of course data structure using C or pascal. I have started reading Bjarne Stroustrup book (The C++ Programming Language - Special …

Member Avatar for mattjbond
0
159
Member Avatar for xxmp

i am trying to find what is wrong with that but i can't find it [CODE] function check_form(formid) { var field=document.getElementById(formid); var wrongs=0; document.write("lol"); document.write(field.length); for (i=0;i<field.length;i++) { k=field[i]; temp=k.name; document.write(temp); if (temp.indexOf('email')==0) { document.write("lalala email"); if (check_mail(formid,temp)==true) { wrongs++; document.write(temp); } } else { if (temp.indexOf('til')==0) { document.write("lalala til"); …

Member Avatar for pritaeas
0
57
Member Avatar for P.manidas

Dear Sir/Madam, How to measure memory consumption of a VB 6.0's programe? As a programmer in vb. 6.0, where i have to be conscious for getting less consumption of memory of my program at design time? Is there any free software to measure memory consumption of a programe? Please guide …

Member Avatar for P.manidas
0
265
Member Avatar for Xufyan

alphabet from lower to upper , using ascii what logic should be use to convert small letters into capital using ascii codes?? for example ascci code for A is 65 and ascii code for a is 97 how can i coonvert from integers to character ?

Member Avatar for Xufyan
0
211
Member Avatar for tquiva

I am trying to create a program to read a series of input characters representing grades (e.g., an 'a' or 'A' represents an A, a 'b' or 'B' represents a 'B', and so on) and prints the counts of each grade. [CODE]/* A program to count the number of grades …

Member Avatar for WaltP
0
122
Member Avatar for assaf

Hi I'm trying to create tag pages based on one php page that will be re-written to the tag/[tag].html I'm not a programmer so my question is pretty basic. What I have done until now is to create the tagdetail.php and a call to the tag pages that have this …

0
84
Member Avatar for chrisb76

I am in a class and am trying to get this project done. I get the code to compile but it is giving me a out of bounds error. Here is the assignment. Write the program in Java (without a graphical user interface) and have it calculate the payment amount …

Member Avatar for BestJewSinceJC
0
294
Member Avatar for cloud09

I need a script that takes cropped image coordinates and dimensions from javascript cropper and crops the image. I know about the copyimage function, and have tried unsuccessfully to implement it. If anyone has tutorial that lays out how to use it or has a script that crop and saves …

Member Avatar for cwarn23
0
123
Member Avatar for jozz3

Hello I'm writing a python program and need some help. Firstly, is there anyway to include variables in an input prompt? For eg. [variable1 = 4 variable 2= 3 variable= raw_input("Please enter a number between", variable 1, "and", variable2) ] Also, if data is being appended to the end of …

Member Avatar for jozz3
0
114
Member Avatar for toko

Okay, i have 2 objects in my form: a label with a picture and a picturebox with a picture. The background of my form has another picture. What i want to happen: 1.I press the label,the picture of the label is on top with the bakground of the picture in …

Member Avatar for toko
0
93
Member Avatar for eshirley

I need to write a program that will output a list of all even numbers between 1-100. It needs to use a while loop then use a for loop. Any one got any help on how to do that?

Member Avatar for eshirley
0
225
Member Avatar for restrictment

Please tell me why this doesn't work: [code] #include<iostream> using namespace std; int main() { char felix[3] = "ho"; if(felix == "ho") cout << felix; } [/code]

Member Avatar for restrictment
0
173
Member Avatar for leverin4

I understand, vaguely, what a reduce/reduce conflict is, but I don't understand why I'm getting one in my Yacc Parser. Can anyone help me out? [code=yacc]Prog : START StmtSeq END { }; StmtSeq : Stmt StmtSeq { }; StmtSeq : { }; Stmt : Id ASSIGNOP Expr SEMICOLON { *$1 …

Member Avatar for nezachem
0
399
Member Avatar for xxmp

i have this function and it works right only to mozilla [CODE] function check_field(formid,field) { var k=document.getElementById(formid); if (k[field].value=="") { document.getElementById("wrong_"+field).innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;Κενό πεδίο"; } else document.getElementById("wrong_"+field).innerHTML=""; } [/CODE] i use this element to call it [CODE] <tr > <th width="22%" <?php if (isset($_SESSION["prob_onoma"])) echo "class=\"become_wrong\"";?> align="left" > Ονοματεπώνυμο&nbsp;:* </th> <th width="45%"> …

Member Avatar for Airshow
0
84
Member Avatar for kiyu2keith

I tried this one for some experiment and I can't seem to work it out can you help me about this? The problem here is that when you click on the Radio button then click the result button it should give an alert with number(this number is how may times …

Member Avatar for kiyu2keith
0
2K
Member Avatar for *Moonlight*

Hi, I have a quick question...so I have this program that asks user to enter an integer and then it analyzes that integer..it outputs factors of that number, and tells whether its composite or prime, abundant or deficient, and so on...and then after telling few things about that number..it asks …

Member Avatar for jephthah
0
663
Member Avatar for Tekkno

I have a script that generates random data into an array then uses a while loop to display the data. I have a separate script that takes a row from that array and inserts it into a MySQL database. The problem I am having, is that every time the page …

Member Avatar for Tekkno
0
118
Member Avatar for tapas.chand

i am saving some records in an excel file on click of a button currently i am hardcoding the path like [CODE]FileOutputStream fileOut = new FileOutputStream("c:\\test.xls"); [/CODE] but i want to take the path from user,i.e.,something like 'save as' option how can i do it? please help. Thanks in advance.

Member Avatar for tapas.chand
0
102
Member Avatar for Mz3g

Hi guys, I am doing a TCP/IP time server/client. I already wrote the two programs but when I run them I don't get any output. Simply, the idea is the client asks the server for Time or Date and the server has to respond and terminate after the second request. …

Member Avatar for abhimanipal
0
216
Member Avatar for diafol

Hi all. Am messing about with an ajax form at present which loops through records in a DB. This is my issue: I have a reset image link in my form (called "file_edit") which calls a 'confirm reset': [CODE]function reset() { if (confirm("Reset? You'll lose any changes!")) { document.file_edit.reset(); } …

Member Avatar for liamfriel
0
132
Member Avatar for duomaximus

Good day, Hi, I'm trying to develop mapping feature for a tool. It has a wx.ScrolledWindow that contains wx.lib.buttons.GenBitmapTextButton as map nodes. When the number of map nodes reached around 50+ the scrolling becomes too slow. Any ideas on how to improve the performance of the scrolling when there are …

Member Avatar for duomaximus
0
427
Member Avatar for student21

i have sucessfully coded my form so that when a user enters data into the texxt box and searches any matching data is displayed on another form my problem is when no data matches the search criteria the form that would display the result still opens but is blank how …

Member Avatar for student21
0
100
Member Avatar for joydsouza90

:?: How do you make an object, say a rectangle, move in turbo c++, using right and left arrow keys? I want the object to move when a user presses right or left arrow keys. Please reply ASAP either here or at my email [I]<<email address snipped>>[/I]

Member Avatar for kirit275
0
1K
Member Avatar for Spikae

am using an example of tooltips from [url]http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm[/url] on [url]www.euroworker.no/order[/url] I have this code here to work with, but it just doesn't seem to work correctly, I've tried everything I can think of. It's not a problem with the Smarty or html, css as far as I Can see, when …

Member Avatar for Spikae
0
235
Member Avatar for s_kanika

Hello' I'm using following code and getting mysqlerror Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs/..... Code is $query="SELECT ('$retfield') FROM ('$table') WHERE ('$givefield')=('$val')"; $res=mysql_query($query); if(mysql_num_rows($res) > 0){ } Upto my knowledge I'm using correct syntax bt I dnt where I'm going wrong. Can anyone help …

Member Avatar for s_kanika
0
93
Member Avatar for afrofish

Hi All, I am trying to convert the following access update query into TSQL without any luck: UPDATE tblCattle INNER JOIN tblFarmDetails ON tblCattle.strEartag = tblFarmDetails.EarTagNo SET curMartPrice = tblFarmDetails.MartPric WHERE (curMartPrice=0 Or curMartPrice Is Null); First I tried simply pasting in the query with no luck so below is …

Member Avatar for afrofish
0
261
Member Avatar for nccsbim071

I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript …

Member Avatar for nccsbim071
0
344
Member Avatar for DaveTran

I'm now trying out for loops with different sized iterations (is that the right word?) This loop [code] for (int i = 0; i < 5; ++i) { for (int j = 0; j < 3; ++j) { Console.WriteLine("i = {0} j = {1}", i, j); } } [/code] outputs …

Member Avatar for Geekitygeek
0
156
Member Avatar for sluck

[CODE]//SELECT ID van ingelogde gebruiker MySqlConnection cn = cn = new MySqlConnection("server=localhost; user id=bla; password=bla; database=project; Allow User Variables=True;"); cn.Open(); string selID = "SELECT LidID FROM gebruikers WHERE Gebruikersnaam=?Gebruikersnaam;"; MySqlCommand cmd = new MySqlCommand(selID, cn); MySqlDataReader dr = default(MySqlDataReader); //Add parameters to get the username and password cmd.Parameters.Add("?Gebruikersnaam", MySqlDbType.VarChar); cmd.Parameters["?Gebruikersnaam"].Value …

Member Avatar for sluck
0
283
Member Avatar for bharatshivram

hi i have a database with the following coloumns thid thname thdate i have used the gridview control to display this info, also enabled paging and selection with it. i want to jump to "one.aspx" page and set the value of a querystring variable "thid" to the value in the …

Member Avatar for REwati
0
143
Member Avatar for GDICommander

Hello, everyone! I'm using the Win32 API PeekMessage function to retrieve key stroke events. I have a problem: suppose that someone holds the A button. PeekMessage will return messages for the A press event. Now, while A is pressed, someone holds B. PeekMessage will return only the B press event …

Member Avatar for Taurusk
0
129
Member Avatar for niths

hi i am new to php. i am getting the following error. ------Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login\login.php:23)----------- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>username:</td> <td><input …

Member Avatar for niths
0
120
Member Avatar for persianprez

I have 3 functions working together, but I only have abundant returned every single time, I don't know what is wrong [CODE]def sumDivisors(n): total = 0 for counter in range(1, n): if (isDivisor(n, counter)): total += counter return total def checkForPerfect(n): total = sumDivisors if (total == n): return 'Perfect' …

Member Avatar for persianprez
0
205
Member Avatar for jallan2010

[code] Private Sub PopulateProductList() Dim con As OleDbConnection Dim cmd As OleDbCommand Dim dr As OleDbDataReader Dim strSQL As String Dim objListItem As ListItem Try strSQL = "SELECT [Sr No], [First Name] FROM [Lani]" con = New OleDbConnection(connectionString) con.Open() cmd = New OleDbCommand(strSQL, con) dr = cmd.ExecuteReader() lblani.Items.Clear() Do While …

Member Avatar for pritesh2010
0
148
Member Avatar for meistrizy

Thanks in advance for your help. I am writing a program that is supposed to display a menu and ask the user to enter a list of his/her favorite games, then display the games if they choose to. The problem is that when it comes to entering the names of …

Member Avatar for VernonDozier
0
122
Member Avatar for hell04

Hi all, I have the following task; Extend an ArrayList of Integer by adding a method called 'sum', that returns the total sum of the elements of the list of integers. Such that each time the method is called sum up all the integers. So I started by making the …

Member Avatar for tiny7415
0
6K
Member Avatar for kumiyare

Hi every body!, I am new to PHP and I'm developing a basic PHP CMS, now specially I'm developing the database backup & restore section of the CMS, so I've experienced one problem. I want that CMS users able to upload their database back ups to restore, they will use …

Member Avatar for kumiyare
0
98
Member Avatar for achiman

Please is it possible to have two where statement in an sql query? for example: SELECT * FROM Persons WHERE FirstName='Peter' but I want another condition which will also pass the query like: SELECT * FROM Persons WHERE house='duplex' or car='Honda' Is the second query correct if not how do …

Member Avatar for debasisdas
0
97
Member Avatar for MDanz

this curls a webpage correctly, the bottom 5 lines of the code is where its not working correctly. It should collect the keyword($search) from the page and the first 5 words before the keyword and after the keyword. i've only got the first part working, it collects the keyword and …

Member Avatar for somedude3488
0
86
Member Avatar for Mitja Bonca

I would like to know how can I transfter a string value (a name or something) from Login class over static class to Form1? This code I have: 1. In program class: [CODE] static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] …

Member Avatar for kvprajapati
0
258
Member Avatar for Kyle Wiering

Ok, here goes, I've got a staticwindow where I am putting the information from keyboard presses and onscreen button presses. When I run the program, I can press the keys and they show up just fine. I then press the button on the screen with my mouse which also works. …

Member Avatar for Frederick2
0
446
Member Avatar for zrd0808

I am trying to copy a string into an array then write bits out to a file accordingly. (compression assignment). here is the code [code=c] // strnewdup(const char* s) returns a copy of a // null-terminated string, with the copy stored // in the heap char* strnewdup(const char* s) { …

Member Avatar for zrd0808
0
2K
Member Avatar for jeffery12109
Member Avatar for HiHe
0
101
Member Avatar for Zurompeta

Within a function, I am creating a new variable that contains an HTML element. The variable declaration works fine in Firefox for example, however it comes up "undefined" in Google Chrome. [CODE]function updateName(num) { name = document.getElementById("id_name_"+num); } [/CODE]

Member Avatar for Airshow
0
116
Member Avatar for motters

hi does any one know why this code won't display my links [CODE] <div id="columnRight"><div id="innerColumnRight"> <div class="marginBox"> <h1>Second Menu</h1> <!-- Vertical Navigation Start --> <div id="navVertical"> <ul> <?php do { ?> <?php echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>'; ?> <?php } …

Member Avatar for motters
0
103

The End.