199,114 Archived Topics
Remove Filter ![]() | |
What's the difference between (aside from syntax I mean): a) typedef struct MyStruct{....}; b) typedef struct{...}MyStruct; I saw this example in "Thinking in C++", but there's no real explanation as to if they're exactly the same or if there's some real difference in them. | |
Hi all, XMLDocument.Load("http://ws.audioscrobbler.com/2.0/?method=artist.search&artist=Zlad!); If you open the link in FF it shows the error, IE seems blisfully unaware Its failing due to Last.FM outputting artist names with the wrongly encoded characters into the xml. This causes my C# app to crash. XMLException, invalid character How would I go about making … | |
Hi guys, I wrote a simple text editor using C#. It can maintain the text format like font color, and font size when text pasted to it, and I able to save it to .doc, or .rtf. When I open the saved file with appropriate application like MS Word, it … | |
hey guys, I have the assignment to build a program to decode a cryptogram puzzle using provided word tables. for each table the program should print the decoded text generated by that table and the number of actual english words in the decoded text. the encoded text is in the … | |
i want to display that information using c#. And i will be more than happy if i can interface add/remove programs functionality from c#. Thanks | |
I have been trying to use the function is_null to see if a database value is NULL. When I run this I am looking at the database and the value is definitely NULL, but it is not re-directing to the error.php page. What have I done wrong?? Thanks Guys :-) … | |
Hi, the following project is the first small step in an anagram solver that I am coding. I have four letters "a", "b", "c", "d" and the aim of the following code is to produce all possible permutations of these letters, given that the first letter is always "a". (I … | |
Hello again friends Now I would like to know how to validate a DropDownList to know if an item was selected or not Thanks | |
ok i'm working in visual studio. im working on an application with multiple forms, and im trying to access controls in form1, from the form2 class. Heres what im using now: [code] public partial class Form2 : Form { private Button btn1; public Form2(Button _btn1) { InitializeComponent(); btn1 = _btn1; … | |
Hello, Is it possible to change the connection string after setting up a Data Source? I'd like to set up a Data Grid View, but the user must be able to change the location of the database file at a later time (over a network). i've been trying: My.Settings.db1ConnectionString1 = … | |
I have recently learnt the basics of c++ but I want to advance to making proper GUI's (and games) but I don't know what to use. I think the two most popular libraries are OpenGL and Direct3d but I'm not sure which one to use. could you guide me in … | |
I have the following PHP code, which uses server-side validation, which works fine. It the user leaves the text field empty it stores an error in a session array which is outputted on the page where the $_GET['id'] variable came from. I also implemented a snippet of javascript code that … | |
Hi every1, is there some1 how could give a code to sort a text file in c. for example, you write a text in kladblok and you write a code to to sort the text in alphabet. please if there is some1 who knows how to write the code, it'll … | |
Hi everyone, I'm supposed to make a form with the basic shapes (circle, ellipse, pie, arc, etc...) drawn onto a panel. For each shape one will be hollow and one will be filled ontop of eachother. I can't seem to get the positions correct. All of the images are being … | |
Hi all, i need some help. I am creating mysql php game. How can make game to know which user is logged . I am not absolute noob. I already created register, login and main page, and its all linked with database. Problem is when user need to use his … | |
[code];Fail to add ← function,why? WINWIDTH=60 WINTOP=10 WINLEFT=10 WINBOTTOM=20 WINRIGHT=WINLEFT+WINWIDTH-1 COLOR=54H PAGEN=0 CTRL_C=03H CSEG SEGMENT ASSUME CS:CSEG START: MOV AL,PAGEN MOV AH,5 INT 10H ; MOV CH,WINTOP MOV CL,WINLEFT MOV DH,WINBOTTOM MOV DL,WINRIGHT MOV BH,COLOR MOV AL,0 MOV AH,6 INT 10H ; MOV BH,PAGEN MOV DH,WINTOP MOV DL,WINLEFT MOV AH,2 … | |
hello ; can any one help me for the project of hospital management system. | |
I m a beginner trying to learn Visual C#(Visual Studio 2008). I was able to run a simple Visual C# program without errors. I was trying to look at the values of the variables in the DATA TIP in Break Mode.. by hovering over the variable. I have not been … | |
Hi, I have setup the MS SQL 2000 database and setup one form for insert query to insert some personal details. But the when the detail contains special character like #,?,=,/ etc.,, database throws the error message. Like: Some details withspecial character # sp. # How can I resolve this … | |
I have this code: [icode] #include <unistd.h> #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; void add(char todo[], string priority, string home){ FILE *file; file = fopen(home.c_str(), "a"); fprintf(file, "%-50s| %-6s\n", todo, priority.c_str()); fclose(file); } void list(string home){ string line; fstream file(home.c_str(),ios::in); int … | |
What is the best way to update a record when 2 users of my site happen to edit it simultaneously? For example, assume the following scenario: Let's say users John Doe and Jane Doe log into my site and happen to view the below record simultaneously. --------------------------------------------------------------------------------- Bruce Wayne | … | |
Hello I'm using this code I got from an example: [ICODE] <head> <TITLE>Creating a link</TITLE> <SCRIPT LANGUAGE="JavaScript"> <!-- function createLink() { var szURL = prompt("Enter a URL:", "http://"); if ((szURL != null) && (szURL != "")) { document.execCommand("CreateLink",false,szURL); } } // --> </SCRIPT> </HEAD> <BODY> <H1>Creating a link</H1> Here's some … | |
The IT firm ITEnterprizes has a unique way of deciding whether an applicant for a post should be invited for an interview or not. The decision depends on the candidate’s qualifications, age and years of experience and is made as follows: a certain weight is assigned to each of these … | |
The meaning of parallel is not that of parallel processing. I simply mean that if algorithms A and B are represented by the two sequence of operations (a_1, a_2, ...) and (b_1, b_2, ...), then the executed sequence of operations is (a_1, b_1, a_2, b_2, ...). It is not compulsory … | |
Hello, At this times i need to decide something that will chage my life forever, it is: Continue with C++ and the possibility to compile my programs at my HP Jornada 720(Handheld PC) and in my [b]PC only and NOT for my j720[/b], or learn C and start my mobile … | |
![]() | Hi, im not sure if this is the best place to put it but i was wondering if there is any way i can temporarily block an ip locally for a certain amount of time, and then not need to worry about it? If it is a program that one … ![]() |
does anyone know how to subtract a certain number of days from a given date? thanks in advance for your help. Nevermind I figured it out with the help of the help index. | |
Not quite sure whether this is a question for the server side programming forum or for SQL forum. Nevertheless, here it is: What is the best way to update a record when 2 users of my site happen to edit it simultaneously? For example, assume the following scenario: Let's say … | |
:'( Hello everyone, i wrote an application that makes database backups and zips them. Can anyone please tell me what i need to do in order to get the apllication to work on IIS 6 windows server 2003 SQL 05 1. The application works fine on machines for both XP … | |
so there isn't a way to run, say, a single method, as a specified user? where i'm coming from is... i want to create a directoryInfo list for a unc directory. i'm running the app as a non-admin user (eventually will be a service) but it's not finding the directory … | |
hey guys,, im newbie to stored procedure,,im using the localhost server now,I would like to ask if where to put the stored procedure in my phpmyadmin?Is it from information schema?or in the tables? | |
Hi Any reason why my votes aren't adding up once the program has run? [CODE]#include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = 0; votesForR = 0; votesForO = 0; // … | |
Hey All I'm busy with a program in VB.Net 2008 that performs sales. When a user clicks on the Invoice button, a record with the details of the Transaction is addedd to the Transactions table in the back-end MS Access 2007 database. The Transactions table has the following fields: LogID … | |
This would be trivial but it comes with a serious catch - I can't edit the Unrelated or Friend class. I can't seem to access a private data member despite the friend relationship between the classes. Code: [url]http://pastie.org/613042[/url] [code=c] class UnrelatedClass { ... private: friend class FriendClass; float m_fNumber; } … | |
Hey I need a regex that would allow following input matches: 0.1,1.1, 0.001, 1.4, in short number should be less than 2.00. Thanks for help. | |
I have included the code. My problem is that I am always getting the error exception thrown and not caught despite adding cftry/cfcatch blocks. If I don't set selectmode="edit" and include OnChange my grid displays except I get the word false displayed instead of a checkbox. [code] <cfgrid format="html" name="grid_Tables" … | |
I recently posted a thread here but have different subject so I decided to make another. I have two questions 1.[B]]how can I deploy my application?[/B]there is a function Publish in visual studio but that didnt do the job(of maybe Im just doing it wrong).I have a database in my … | |
Im passing a query string from 1 page to many pages, the second page accepts the query string and pass it to the next page and so on. On the second page i accept the query string and it appear's on the url bar, that shows that the second page … | |
Hi guys, Visual studio contains alot of controls which facilitate the development of application using C#. Is there any workaround to use this controls in Netbeans IDE or any plugins to make Netbeans as reach as Visual studio in controls. Thanks in advance | |
Hi! How can I seach all of the fields of every table in a databae for a particular value? When it is found, I want to be able to display the table name and the field name, then continue to search. | |
this is a software that you ill have to login ells i will shut-down i used the threading so the Tk gui.would keep on going but it wont stop after 0. its not a problem its just iterating me knowing its in the background. so is there any way to … | |
Hello. I have a (main) list of objects 'feedbacks' which have an 'order_id' and a 'message'. I have another list of simply 'order_id's whose correspondent object in the main list I would like to see removed. For example: main list: [object type 'feedback', object type 'feedback', object type 'feedback'] let's … | |
Hi everyone, I am having 2 php file to run with cron job, the first to run every hour and the second to run every 12pm midnight. I am using cPanel and this is the cron job. i put this in the command to run tex field of the advance … | |
Hi, how can i export code snippets from VS 2008 that i created to a different computer. -Thanks | |
hii All, I wants to Create XML File DYnamically Using ASP.Net C# which retrieves data from sql server database. Also I wants that To delete / Create Xml files on server Just By Clicking a button... Thankyou.... | |
Hi all, I'm learning python and hope someone can help me with a sort of tricky search/parse problem. I have a tab deliminited file like this: 2 1 863.8 300.2 0.0131 0.0759 0.1727 0.0879 1.5821 3 1 874.5 289.5 0.0574 0.1292 0.4447 0.2258 1.1846 3 2 874.5 289.5 0.0573 0.0527 … | |
Hi all, I am new to PHP Do I need to sanitize hidden data values in a form before carrying out the query on MySQL db. If so can someone assist me in the correct format The category_id is an INT and the make is a String. $category_id=$_POST['category_id']; $make=$_POST['make']; Also … | |
hi, i want to open an utf-8 file, read it line by line and add, at the end of each line, a particular-per-line string. how should i do this? thanks | |
How to delete,update records in listview? Changes also affect the database? | |
Hi, I want to pass cid genarated in selling.aspx to orderform.aspx . How to retrieve the query string in orderform.aspx I gave the code below in selling.aspx [code]SqlConnection con; SqlDataReader dr; con = new SqlConnection("Persist Security Info=False;Uid=sa;Password=q1w2e3/;Initial Catalog=YOGADATA;Data Source=PC-1"); con.Open(); t=0; SqlCommand com = new SqlCommand("select * from Custlogin", con); … |
The End.