64,152 Solved Topics
Remove Filter ![]() | |
Hey, im getting the following error unreported exception Exceptions.IllegalValue; must be caught or declared to be thrown this is my method where im getting the error and i want to know why im getting this error because i declared that the exception was to be thrown. is it something to … | |
Can anyone tell me the difference in JDK & SDK? I believed till now that both term are same. ...but SunMicrosystem tell both are different. (You can find it at Sun's website) So what is the difference in these two terms? | |
:?: Hi all I'm trying to import data from an exel sheet to a data grid but I keep on getting the following error "The Microsoft Jet database engine could not find the object" Here is my code Thanks [CODE]Imports System Imports System.Data Imports System.Data.OleDb Public Class ExellFrm Private Sub … | |
Mucking about (should say practising what I've learn't), and made my version of the rabbits practice program. It's not totally finished but it's my first draft and it's working. Before continueing, I'd like a code review please to tell me whats not correctly done or how I could improve my … | |
I have the following code, [code] import csv w=csv.writer(file('newfile.csv','wb'),dialect='excel') some_values=[[1,2,3],['A','B','C'],[4,'"5"','ab,c']] w.writerows(some_values) [/code] When I run it on my computer (a mac), newfile.csv is created. However, when I open newfile.csv, it is empty. Any ideas why? | |
Hi , I am trying to insert the arraylist to database using sql .I have my code below.Can anyone help me with .My issue is that my insert statement doesnt work. Thanks [code] using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using … | |
Hello, i'm new to daniweb and also quite new to C++. I'm trying to write a function that takes a filename and a string query like [CODE]string GetStringValue(string filename, string query) { /*...*/ }[/CODE] then finds the query in the file, and returns what's behind the = mark. the file's … | |
I have made the following code to find a string in some lines of text But it always mentions the error: no matching function for call to 'strcmp(std::string&, std::string&)' [CODE]#include <iostream> #include <string> #include <fstream> #include <sstream> using namespace std; int main(){ cout << "Please enter some text" <<endl; string … | |
I want to print out the letter B, instead I get a blank line. Any tips would be great [CODE] #include <iostream> using namespace std; void add(string n); int main() { string B; add(B); } void add(string n) { if(n.length() <= 1) { cout<<n[0]<<endl; } }[/CODE] | |
Hello everyone, I'm having a hard time figuring out what is wrong with my codes. I have a set of arrays and I have to sort them in order to find the median. I made the function to find the median and I tried recalling the function but it keeps … | |
I need help when i run the app. and enter the wrong answer "No. please try again " continues to loop forever . I want it to say it only once and repeat the same question. Any ideas? I thought maybe the braces were off somewhere but I'm not sure. … | |
Greetings! I have an app that my users rely to update customer data in our local database. I want to add a "control" whereby a check for customer number is done to make sure it exists. I started with this simple script [code] <?php //variable declaration $customer_id = '257'; // … | |
[CODE]//Form1.h (Windows Forms Application) //.... //.... #pragma endregion cli::array <String^> ^sum; private: System::Void BtnComp_Click(System::Object^ sender, System::EventArgs^ e) { nocarrystate n; carrystate c; char a; states * curstate; states::init(&n, &c); String ^text1 = TxtBin1->Text; String ^text2 = TxtBin2->Text; curstate = &n; int i = 0; int len1 = text1->Length; sum = … | |
I have written a DLL which I intend to use in .NET and ASP.NET applications. I need to pass a Label (or TextBox) control to one or more methods. I can't make .NET recognize a Control as a parameter. Can anyone help? Thanks, Gerry | |
I am having trouble with generaetOutput function the void part is throwing me off. I tried to do it like the genrateQuestion function but the void part has me confused. Also my while statement is missing something because the error message continues to loop and if the user enters a … | |
Ok so I'm a casual VB6 programmer and now I'm VBA for Access. In VBA I am trying to determine if whether an option button has been pressed. I used the 'Option1.Value' procedure yet it throws a 'You entered and expression that has no value' error. Here's my code: [CODE]Dim … | |
Hello, I am trying to connect a VB.NET 2003 Oledbdataadapter through the wizard to a SQL Server 2005 Database, but i get an error message during the wizard. These are my steps: New Connection, Select provider (Microsoft OLE DB Provider for SQL Server), Select Connection: server name, log on: use … | |
i neez help manz. here is what i have so far: ------------------------------------ Dim x As Integer Private Sub cmdexit_Click() 'this will end the program End End Sub Private Sub picmario_KeyPress(KeyAscii As Integer) 'this will allow the user to use various keys to 'move mario 'this will move the mario up … | |
I'm writing a game where I create a map using ncurses. What I want to try and do(if possible) is make the map the size of the terminal, in other words in the main program I have: [code=C++] // Create a game on an 80x30 map Game gameInstance( 80, 30 … | |
Hi, I have written a program for reversing a digit but I get "error C2664: 'strcpy' : cannot convert parameter 2 from 'std::string' to 'const char *' Which I don't get since strcpy is supposed to change a string to a char array. Any clues for whats going on here? … | |
OK not the greatest title but this one is not too easy to put in a few words i have a jpg file for example with a custom file extension of jjj for example now i associate .jjj with my application so that when i click a .jjj file my … | |
i have tried shell_exec system exec i want to run a command like maybe im missed something if you want my code ill post it but the other command i run to ocr the item works fine im banging my head and its probly something simple mv -f .*tif /somewhere/ | |
Hi, my app creates some components at runtime such as a PictureBox. Because they are only created at runtime I have no way of setting the ErrorImage through the properties section. I thought I could just add the images I required to the programs resx file but found out that … | |
hi guys, here's the deal i want to create a java program that will record a voice through a microphone and then save it in a reusable format.........only problem is i dont know how its very urgent that i get help for this much appreciated!!!!!!!!!!!! | |
Hey guys, sorry for the bad rep. But, recently i've obtained a code in c++ which highlights c# syntax in a Richtextbox. [URL="http://www.c-sharpcorner.com/UploadFile/duncanharris/SyntaxHighlightInRichTextBoxP212012005044912AM/SyntaxHighlightInRichTextBoxP2.aspx"]LINK[/URL] I think the basic idea behind it is to specify an array of strings, and now the program should search and highlight the defined strings in a … ![]() | |
i am developing a web page... in that i hav added a coding like this... HtmlParser.parse(document, "Chap0702.html"); its showing an error like namespace required... wt is namespace to be included for this.... | |
i want to add an advertisment in my site. is there any control for that as in asp.net or some other way? i wnat adds to be changed after few seconds.. kindly help me and give ur precious suggestions. Thanx | |
from this starting point: matrix = [[0 for x in range(5)] for y in range(3)] I need to make this: |0 0 0 0 0| |0 0 0 0 0| |0 0 0 0 0| +-+-+-+-+-+ 0 1 2 3 4 I have been trying .append and .replace to try … | |
I am trying to create a function that takes in a sorted vector of integers, loops through the vector and if there is a value in the vector that is repeated it deletes that entry. This is what I have so far and I am not too sure how to … | |
hello peers, im working on a game, a pong-ish game there's is supposed to be a pause button but i dont know what to write. this is the first time i use vb. is there such a thing as a suspend method or somthing. im using vb6 thanx for the … | |
Ok I am currently learning php through wordpress and I have a small project to create a running website which displays the results. CUrrently I can display the results for a certain race that I hard code: [code] <?php // Connects to your Database mysql_connect("XX.XX.XX.XX", "admin", "pwd") or die(mysql_error()); mysql_select_db("db") … | |
I just made a program that takes input from the parallel port(or printer port) of a computer and translates that input to English/Numbers. Its a Morse Code Transmitter translator and a Morse Code Calculator. Anyways, so I have to write a writeup about the program and I am kinda confused … | |
I'm trying to make the container to work with one of my classes. But i don't understand what should the overloaded operator contain. Maybe this is because i don't know the container too well... Please give me some insights. This is my class [code=C++] class Complex{ private: int re; int … | |
Hi everyone! Just a quick question: I have made a little personal application using the notification icon class, and I would like the balloon tip message/title to pop up every 30 minutes - how would I go abou that ? Fanx guys ! Go well and happy coding ! :) | |
Hi, I want to set Textbox1 to textbox 55 to .readonly =true by using says For loop,so i need not key in one by one. Any ways to do it? I know sonthing like [CODE] For index As Integer = 1 To 55 Me.b.Controls("Textbox" & index).Text = index Me.b.Controls("Textbox" & … | |
In this program we are going to simulate a simple card game. The rules are that the player selects a card out of a deck of 52 cards. The computer picks a random card out of the deck. The person with the highest card face number wins. In this program … | |
Hi! I have been looking into this the whole day, and I haven't found any good straight answers to my problem. So what i am trying to do, is that I have a XML file where i have defined for example what is the name of the column (In this … | |
hi to all, I want to ask about GUID. what is the main use of GUID in our database. I have seen that many developers uses GUID in user table(contains username and password) and they update GUID of that user each time when user login. In asp.net I have created … | |
I'm trying to make an .aspx page which would allow me to change values in the database. It has a datagrid which shows everything from one database table, and allows me to edit the data row by row. Everything goes smoothly as anything, but when I try i update the … | |
I wrote a program that has to process any files that are put in a specified folder. I would like to keep track of those threads, though, preferably via some sort of process id or something. is there any way that I can get a list of the threads that … | |
Hey there, I have written some code to draw a grid on a canvas but the code is far to long.. so I was wondering what the most efficient way to write my code would be. [CODE] self._canvas = Canvas(self, width = 450, height = 450, bg ='white', highlightthickness = … | |
Hi i am trying to display on the web browser to allow user to see information before the latest data is been updated. Hence, it will show: [B](1)previous existing data, (2)latest data and (3)data which is not found on the latest data list[/B]. To make things clear to solve the … | |
Hi, I am trying to pass query string from one page to popup window as follow: [CODE]Dim popupScript As String = "window.open('cFinder.aspx?cName=" & c_TextBox.Text & "','', 'width=420,height=200,menubar=no,scrollbars=yes');" If (Not Page.ClientScript.IsStartupScriptRegistered("popup")) Then Page.ClientScript.RegisterStartupScript(Me.GetType(), "popup", popupScript, True) End If[/CODE] The popup window comes up very well only if the text I typed … | |
I really do believe that I’m not asking a good question, but I’m new newbie When I’m programming for example I try to use the contain method for finding a value in the dictionary data type: I cud do it in my mind by two way: dict.Values.Contains(str)(however I had an … | |
The following registry key contains many system default folder locations. HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders The value for the path of the All Users desktop, which is found there, is as follows: XP or earlier : %ALLUSERSPROFILE%\Desktop Vista or later: %PUBLIC%\Desktop Whereas the actual paths of the All User desktops, respectively, are … | |
is it important to close a file thats been opened with FileWriter? if yes how come?? | |
How to display drop down list item based on value from other column in gridview during editing. My gridview have many column and are editable. User can edit data that was displayed in the gridview by click the "Edit" button. In EditItemTemplate, i have put a few drop down list. … | |
Good day guys! I just want a little help about recordset navigation to act when i click Previous and Next button. I have created the navigation code but it jumps the records on a table..My code below. [code=vb] '==========================In class module(clsCheque_Navigation)======================== Option Explicit Private Nav_chkno As String 'Store current page … | |
![]() | Hello. I am writing a program with some dynamic arrays of pointers to objects (not arrays of objects). Since there will be A LOT of tacking on new objects to the arrays, for the purposes of efficiency, I am implementing an algorithm to fill up a buffer array first and … ![]() |
Hello Everybody, I have a small doubt regarding how we can call constructors in a C++ class [CODE]class test { public: test() { cout<<"In test\n"; } }; int main() { test t1; test t2(); // This call does not give compile time error but does not call the constructor cin.get(); … |
The End.