64,152 Solved Topics
Remove Filter ![]() | |
Hello, I am developing an application and I use a 3rd party library which is basically Native excel. The problem is that this library does not implement an event which is able to notify me when the value of a cell value changes. Can I do it in my program … | |
m using visual studio 2005 and sql server 2005. i want to create a backup of the sql server which m doin using the following code.. [CODE] if (saveBackupDialog.ShowDialog() == DialogResult.OK) { SqlCommand cmd = new SqlCommand(); cmd.CommandText = @"backup database dbname to disk =@loc with init,stats=10"; cmd.Parameters.Add("@loc", SqlDbType.VarChar); cmd.Parameters["@loc"].Value … | |
Hello, I wish to get the code to pass the log in information (i.e server name,pass word etc) as parameter at the time of calling report Now its asking (user name ,password) before going to the report page each time .please help me. | |
Hey!! I am trying to make a 2-player game; where one player plays after the next. I have used socket programming in the code; so that, when the client (player 1) clicks on the window, the co-ordinates are sent to the server (player 2) and vice-versa. (For now, both player … | |
Hi All, the following code will allow you to type content, and saves it fine, but it just wont populate that paticular area with the current database entry. Please can somebody advise. Im sure i have missed something so simple. [code] <?php $result = mysql_query("select * from `indexinfo` where id … | |
I was running into run time errors, and stripped down my code to isolate the problem. From that I was able to write this little piece of code to demonstrate my issue: [CODE] #include <windows.h> class test { private: int a; public: test(); void run(); }; test::test() { a = … | |
Hey guys I am a newbie to VB and need help with this form, The idea is that people enter there age and if they over 65 and are a member its one price, if they are under 65 its one price and if they are not a member it … | |
Using Visual Basic .Net, explain what each variable type listed below holds, how big it is (i.e. the number of bytes it uses) and give an example of how it might be used. Data Type Explanation space occupied Example Text Integer Floating point Date Boolean Bytes | |
hi, basically i am trying to write a quick script to remote copy something as follow. "" scp [email]user@192.168.1.5:/var/tmp/file.txt[/email] /var/tmp/newfile.txt "" if i do above cmd on the shell, i will be asked for password: my question is, how i do automate the password part within the shell script to … | |
Hello guys....I just have some doubt about C programming...well I have done a lot of functions for airline booking system but im not able to implement the multi dimensional array... I dont get how should I implement it in this problem as the variables are global and they are used … | |
Hi, I'm sorry in advance if this is the wrong section. I wanted to know is it possible to password protect some files in web page ? For example, If someone wants to download file, browsers requests password(one for all visitors), idea is that some files and/or sections of web … | |
I would like to take a string (I have loaded it from the database) and extract it into chunks. The beginning string, lets call it "$string", has the following format: [CODE]<li>item1</li><li>item2</li><li>item3</li>[/CODE] (maybe more li's, maybe less, or even none) What I would like to do is extract to an array … | |
Hey all, I need to use the PHP mail() function in order to send an email to a number of individuals. So lets say that I have 5 users that need to get a particular email. I was thinking that the correct way of going about using the mail() function, … | |
Or at least I [I]think [/I]that's the issue. Essentially, I am in the process of overloading operators and allowing users to enter data directly into the class objects. I was able to do the first one so I followed the same pattern and I get a segmentation fault when I … | |
I have been asked to find the inefficiency in a piece of pseducode. I've looked at it but can't see it. IF count > 10 THEN WHILE x < 0 DO INPUT x ENDWHILE ENDIF My understanding: Count is evaluated. If count is <10, the app moves onto the next … | |
Can anyone help me with why my insert statement won't work? I have tried countless tutorials online, but I cannot figure out what I am doing wrong. Can anyone point me int the right direction here? Here is my form: form: [code] <%@ Page Language="C#" AutoEventWireup="true" CodeFile="form.aspx.cs" Inherits="_form" %> <%@ … | |
Hello, I am having a difficulty in passing a barrier of JAVA graphics generating. I hope you could explain some things to me, cause I have noone to help me and it is hard to get help in internet, because I feel like missing something important. The thing is I … | |
i have problem to allow enter only from 1 to 65535 bicouse example if enter 10000,2000 is ok but enter 99 not. hire 1 example (not working) [CODE]If somthing.Text > '65535 'then ShowMessage(' you enter biger Number from 65535'); Exit;[/CODE] hire 2 example (not working) [CODE]var result : Integer; string1: … | |
I'm having trouble with my lab for a computer class. The problem is as stated: Design a program that generates 100 random numbers, and keeps a count of how many of those random numbers are even and how many are odd. Can someone please help me out with this? | |
![]() | what's wrong here? [code=c] typedef struct person { int age; char name[50]; }; int main() { struct person test; test.age = 20; test.name = "Test"; return 0; } [/code] ![]() |
Hey guys here is the problem I have two variables that need their values switched , but only if the value stored in the first is less than the value stored in the second. Tried a couple of things, but am at a brick wall, I am a newbie to … | |
I am working with VB6 (Pro. Edition) and in my tool box I do not have the slider control. Does anyone know how I can add that to my programs? | |
Hi. First, I'll explain my task: I have 4 text files. 3 of the files contain xml tags and content. The 4th is empty. I need to read the 3 files, and write them to the 4th file. The reason for having 3 files is that the first and the … ![]() | |
| |
Hi I´m doing homework and it ask for the strcpy function by using pointers. This is my code but I always get some runtime error, don´t know why. [CODE]#include <iostream> using namespace std; void strcpy2(const char* source, char* destination); int main() { char* source = "Hello world"; char* destination; strcpy2(source, … | |
![]() | For a computer networking course I was given a project to make a Mail User Agent. We were given a few completed classes, but one of them is giving an error. Here is the part of code in question: [CODE] try { Envelope envelope = new Envelope(mailMessage, serverField.getText()); } catch … |
Hello, I am trying to design an java desktop application. My question is: Is there a way to change the whole look? From example different titlebar, different jFrame, buttons... (designed with PNG images, transparency, etc.). Is it possible? If so, how? In VB or C# I can easely change those... … | |
Hi Guys, a while back i was working on a components list for a marquee firm, the project was put on hold for a while but now i'm taking it up again. A while back i asked how to add extra input fields with an onClick button, this was achieved … | |
Hi I have a link, which triggers a script, but when the link is clicked, i want it to get a border around it... currently tried using [code=js] onclick="this.style.borderWidth = 1px" [/code] but no luck, lworks | |
Is there a method that, say, for example... you open a file, and usually the cursor would be at the end right? Is there a function or method that would set the cursor back to the beginning of the file? Thanks! | |
I've been making more of an effort lately to build better OO designs, creating classes for distinct collections of members etc. However, i've hit a bit of a wall in my project. The program is designed to control an automated watering system. The system is split into multiple bays which … | |
As usual, develop something in FF and as soon as you get near IE everything decides to pack up and go home. I'm getting an object expected error, forgive me if it's simple, I'm new to JavaScript. [B]HTML Code[/B] [code=html] <div id="tabsCon" class="tabsContainer"> <span id="tab1" class="activeTab" onclick="javascript:changeTab('tab1');">Tab 1</span> <span id="tab2" … | |
Hello guys, How can I make a switch case using an array of chars. Ex: [CODE]char input[50]; // my code here switch ( input ) { case "abc": // do something break; case "xyz": // do otherthings break; }[/CODE] Is that possible in C? Thank you! | |
I need some help I have managed to get this far (as below), from thatI can put a AAA_NUMBER and be able to get that record details and thats the 1st step that I wanted the 2nd step that I want is say if the DOCID is not available I … | |
Hi i'm almost done with my project for our C# ASP.NET class but have just one thing left to do, and that is to print my datagrid view as is, with header included. Now i have absolutely no idea how to do this. I tried some javascript codes etc. but … | |
Hi, I'm new to .net. I'm finding difficulty in figuring out how to Import emails from external email servers using C# ... I want to access any external mail server to import email addresses from it ... Kindly Please guide me !!! I will really appreciate your help ... Looking … | |
Hi, Below is my output: FF 0 CMA: 0 IPMI port DE 15E0 TTA: 1 Generic Com port DD 15D0 TTB: 2 Generic Com port DC 15C0 SEA: 3 ACPI System Event FF 0 1 MFPCI DB 15B0 DQA: 2 CMD 649 IDE/ATA Controller DA 15A0 EIA: 3 Intel 82557 … | |
Hi, I need to read input from 2 different files, take text from both, combine it, then print it to a third file. That part is easy. What I have a problem with is that some of the text I read in have special characters that need to be escaped. … | |
Hi I am ery new to Python. I've only started using it yesterday. Please keep that in mind, as the error might seem simple to you, but I can't understand it. I am trying to run the following piece of code: [code] import re foo = open("PREFIX.txt", "r+") text = … | |
hello people. I am doing an "os" (small) that's mainly a menu. It just prints some strings and highlights some words when you pres 1,2 or 3. And by pressing enter while a option is selected, it has to do something. The problem is that the program gets stuck in … | |
Hi, there are several threads on this issue, but none seem to give me a good answer. My current code is this (This program plots points on a graph) : [CODE] //Put line equasion into arrays. #include <iostream> using namespace std; double getData(int counter, double m, double b) { int … | |
I did this .. [CODE] String filename = "tempoutfile.txt"; String tablename = "table1"; try{ Connection con = DriverManager.getConnection("jdbc:mysql://localhost/Test","root",""); Statement s=con.createStatement(); ResultSet r=s.executeQuery("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); }catch(SQLException se){System.out.println(se.getMessage());}[/CODE] But I can't find the file that is created!! When I run the query in … | |
[CODE]hi can any one tell me how i can make a thumb nail of an image?[/CODE] | |
Hi I'm trying to write some functions. This first function is suppose to help shuffle two strings which are the same length into the correct word. So the output would be something like: After shuffling the first string som and the second string trs the word is storms. Here is … | |
this is what I made for a = operator: [code] matrix matrix::operator= (double a[]) { for (int i = 0; i < rows * clms; i++){ //std::cout << i<< "=" <<a[i] << " "; *(x +i) = a[i]; //std::cout << i<< "=" <<x[i] << " "; } return *this; } … | |
hey guys, ok here's the situation. i need to turn a C++ style string into an integer now i've used altoi and strtol but they give me different numbers. heres my code [CODE] cout << file << endl << file.c_str() << endl; // debugging purposes num = strtol(file.c_str(), &pEnd, 10); … | |
I am making a program for a fruit stand and I like for it to show the names of the products and not the name of the derive class. I think I need a method or rewrite my code somewhere, could someone take a look and give me a hand? … | |
Hai Every one... Im totally new to X-cart open source .Its a e-commerce source actually..And my company needs to create a shopping cart with x-cart.. Any suggestions , tips on this will always welcome... thank you, shanti.. | |
I'm trying to display a menu option only for certain session id's and for some reason it displays for ALL session id's ... not just the ones i have indicated. Not too sure why it's doing this, it all looks okay to me. [code] <?PHP if(isset($_SESSION['user_id']) && $_SESSION['user_id'] == 1 … | |
I am trying to create a program that has a class with a method that accepts a charge account number as an argument. Then the method should determine if the account number is valid by comparing it to the list of accounts in a text file (Accounts.txt). Then method should … |
The End.