64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Riga

i'm newbie from programming, what i want to ask is how to get the name from dayofweek?? [code] For cacah = 0 To 6 Dim nodeNamaHari As DayOfWeek [nodeNamaHari = cacah] Dim nodeJelasHari As TreeNode = nodeBulan.Nodes.Add(nodeNamaHari) Next [/code] that's what i try but the nodes appear just the value …

Member Avatar for Riga
0
332
Member Avatar for hao90

[CODE]public class Human { private String name; public Human(String name){ this.name = name; } public String getName(){ return name; } public String toString(){ return "Human " + getName(); } } interface Electrician{ public String changeBulb(); } interface Plumber{ public String unplugDrain(); } class HandyPerson extends Human implements Electrician, Plumber{ public …

Member Avatar for hao90
0
113
Member Avatar for daudiam

[CODE]class R2 { final int t; void doit(){ t=7; } }[/CODE] Blank finals allow us to declare a final variable without explicitly initializing it. We can initialize it only once later. Then, why is th above code not working ?

Member Avatar for daudiam
0
162
Member Avatar for george61

Here is a PHP code that writes a string on the bottom of a given image. I want to have the image with the string on it to be saved in a folder. The problem is that this script copies the image without the stamped text. Here is the code: …

Member Avatar for pritaeas
0
172
Member Avatar for ShArKsss

Okay, So I want an array to get userinformation by the username that is provided. But in the other tables, it only has a ID field to link with... [CODE]$sql = "mos_users.id as userid, block, username, email, lastvisitDate, firstname, lastname, avatar, cb_age, userip FROM mos_users, mos_comprofiler, mos_comprofiler_plug_iplog WHERE mos_users.username = …

Member Avatar for ShArKsss
0
168
Member Avatar for bensewards

Hey guys, This is my first official post on DaniWeb :) I am new at programming in C++ using visual studios, and right now I am fooling around with storing user input into Arrays. I am having a problem with my code, using an array size of 3 to store …

Member Avatar for jonsca
0
210
Member Avatar for saadi06

hi can anyone help me i am having problem with video uploading it is working properly locally but when i upload the file it gives me an error "video not found or access denied" thanx in advance

Member Avatar for saadi06
0
66
Member Avatar for xuexue

hi guys, i have this program wherein the user can add freely how many textboxes he want. now my problem is that i have a class on my first textbox which is [CODE]class= "TextBox"[/CODE] then, i want to add that class name to the textbox added by the user..how could …

0
89
Member Avatar for daudiam

I can understand that the subtype covariance relation should not hold for parameterized types, but why should it hold for arrays ? One of the books (Khalid Moghul) said [QUOTE]This relation holds for arrays because the element type is available at runtime[/QUOTE] How does the element type being available at …

Member Avatar for daudiam
0
171
Member Avatar for steven8579

I have a combobox called combobox1 and I dont know how to save the selection. For example if i selected Sub Compounds, how would i save this so when i loaded it again from the hd Sub Compounds would be selected.

Member Avatar for steven8579
0
1K
Member Avatar for yorro

How do you set the FileSystemWatcher.Filter to check only two files. Here's my code that doesn't even work. [CODE=vb]watcher.Filter = "*.txt|*.ini"[/CODE] Thanks Alot

Member Avatar for yorro
0
2K
Member Avatar for xuexue

hi guys, i already have the code for autocomplete.. what i want is that whenever the user inputs a certain character in the textbox the letters in the autocomplete should be emphasized, let's say, highlighted or bold. see attached example,

Member Avatar for xuexue
0
111
Member Avatar for poobert

I'm trying to write a script that downloads and image off the net with wget. The script should save the file named as the date it was downloaded preferably with a suffix. Any ideas on how to accomplish this using wget?

Member Avatar for poobert
0
203
Member Avatar for jon.kiparsky

Has anyone got any clever tricks for determining the size of the contents of a directory without doing the obvious (descend recursively and count bytes)? I'm trying to make a progress bar happen for a recursive descend-read-and-load of a directory, and it would be cool if I could track it …

Member Avatar for jon.kiparsky
0
337
Member Avatar for discovery-power

Hi All, I have a combo box in a form, I want to fill it with names I have stored in a database. I know I have to use the fill command, but I am not sure what code I need to use. I imagine I need to place this …

Member Avatar for discovery-power
0
117
Member Avatar for shredder2794

Hello All, I was wondering how to click a button on the internet or another program via a program in visual basic 2010. An example would be: Have a program being able to click the "Search" button in google or the "I'm feeling lucky" button??? Does anyone know how to …

Member Avatar for Unhnd_Exception
0
2K
Member Avatar for alexchen

I cannot copy 2d array. There are no errors in my error list. What is wrong with my code? The problem might be located in create(). Thanks in advance. Here is my code. [CODE]int **map void randomize(int numberToSelect,int range, int *list){ int* remainingNumbers = new int[range]; int* chosenNumbers = new …

Member Avatar for alexchen
0
109
Member Avatar for seanbp

What are some hints or tips on writing efficient functions? I read about converting the code to assembly, and I've also read about the stack and functions. However, I fail to understand how data stored higher can be accessed before the end on a FIFO stack, as any local variable …

Member Avatar for vijayan121
0
107
Member Avatar for miturian

So, this is probably a bit abstract, and I apologize if the title was imprecise: I have a simulation class, which contains a vector of objects of class A, the member functions of which depend on parameters a,b,c: [CODE] class SIMULATION { vector<A> array; }; class A { A(a,b,c); } …

Member Avatar for mike_2000_17
0
187
Member Avatar for steven8579

I have a listbox titled lstResult1 and lstResult2. I am pretty new to C# programming. I am trying to save the two list boxes along with the rest of the file. I was able to save the three textboxes to the file but i cant get the two listboxes to …

Member Avatar for steven8579
1
172
Member Avatar for balle

Hello, I made a PM system but the thing that makes it read isn't working. Can you take a look at it anybody? [code] $postid = $_GET['postid']; mysql_query("UPDATE pm SET read=1 where id=$postid") or die(mysql_error()); [/code] And it gives this error: You have an error in your SQL syntax; check …

Member Avatar for balle
0
258
Member Avatar for vedro-compota

Hello )) Please tell me - How to receive surnames of students and their mark in all subjects? in this form -[CODE] SURNAME1 1hismark1 1hismark1 1hismark1 1hismark1..... SURNAME2 2hismark1 2hismark1 2hismark1 2hismark1.....[/CODE] I use this database - [CODE] table STUDENT ( STUDENT_ID NUMERIC not null, SURNAME VARCHAR(60), ); table SUBJECT …

Member Avatar for vedro-compota
0
177
Member Avatar for x2fair

kindly help me........ [code] Public Sub JoinTable() Dim conn As ADODB.Connection Dim rs As ADODB.Recordset conn = New ADODB.Connection rs = New ADODB.Recordset With conn .ConnectionString = "DRIVER={MySQL ODBC 3.51 Driver};" _ & "SERVER=" & MySQL_SVR & ";" _ & "DATABASE=documentdb;" _ & "UID=" & MySQL_UID & ";" _ & …

Member Avatar for jlego
-1
200
Member Avatar for MARKAND911

How can i set my web page title as rotating. I have a page named "dog.aspx" and its title is "Dog Selection". I want this title to rotate continuously. How can i do this in ASP.net(C#).

Member Avatar for kvprajapati
0
676
Member Avatar for RenanLazarotto

Hey guys! Me again. I want to change some text inside a textbox when a checkbox is checked. I tried many things, but none seems to work. I need that, when checkbox gets checked, the textbox value gets deleted from backwars until a dot. Then, place another predefined text immediately …

Member Avatar for RenanLazarotto
0
172
Member Avatar for DJSAN10

If the main() takes 3 arguments i.e. int argc,char * argv[],char *env[] and SINCE C DOES NOT SUPPORT FUNCTION OVERLOADING ,y does the c compiler does not give error for simply void main() //that is no arguments at all OR void main(int argc,char *argv[]) //2 arguments

Member Avatar for DJSAN10
0
195
Member Avatar for mrteey2k
Member Avatar for J0shu

Hello everyone. I've been trying to implement a linked list in C++. I found this implementation on the web, where they created a struct for the list's nodes. When trying to add a new node to the list, I get this error: [B]List.C: In member function `bool Linked::addNode(Point)': List.C:23: error: …

Member Avatar for jonsca
0
562
Member Avatar for tom_289

Code given below, suppose to give hourly pay * number of hours + if hours greator then 37 then calculate rest with given rate (overtime) and display final result but its just multiplying pay rate hourly with pay rate for overtime hourly and i made it in VS 2010 windows …

Member Avatar for jaffar_ramnad
0
143
Member Avatar for mcgeepj2

I am new to php (sorry). I cannot figure out how to make 'field_4' below display as a click-able URL. It is stored in my mysql db in a varchar field. Any help would be great, thanks. [CODE] $result = mysql_query("SELECT * FROM units ORDER BY `field_1`, `field_2`"); echo "<table …

Member Avatar for mcgeepj2
0
134
Member Avatar for xuexue

hi guys, i already have and can make a autocomplete form using jquery plugin..it works fine..but the problem now is, i want the data to be stored in the database now, and not only in a javascript file..is it possible>? could you help me? here is my code.. [CODE] <script …

0
77
Member Avatar for zobobthegreat

Hello community im new! I am really rusty at C# but i do not want to learn the basics all over again so i hit the ground running and ran into a hurdle. I want to use an xml file for a database. Its a car repair tracking system i …

Member Avatar for kvprajapati
0
3K
Member Avatar for yuri1969

Hi, I'm fighting with [B]make[/B] for hours and I rly don't know where is my problem. I need to have a static lib libxml.a and an application (make.c) which uses it. I tried to compile it under GCC 4.4.5 and 4.5.0 and the compilation run fine. But under GCC 4.3.2 …

Member Avatar for Martin B
0
2K
Member Avatar for rakesh4java

[CODE]import java.io.*; import java.text.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class getname extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void destroy() { } public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException { String name = null; PrintWriter out = response.getWriter(); if(request.getParameter("txtname") != null) …

Member Avatar for rakesh4java
0
25K
Member Avatar for bibiki

I am working on this exercise: Write an application that asks its user to type a complete sentence on one line. The application then displays in the console window the words in the sentence, one word per line, less any punctuation. I have the following code: [CODE] import javax.swing.*; import …

Member Avatar for bibiki
0
148
Member Avatar for Rookie09

Allright dudes ,listen up .. i am programming C++ about 2 days now , so i am not into it , in any way , so the problem is that the preproceccor macro #define should trigger the constructor , but the problem is that i got that annoying compiler error …

Member Avatar for Rookie09
0
240
Member Avatar for shanki himanshu

hi guys...actually m in deep trouble.i have to make projct in turbo C. but i dont have any time left.Can ny1 help me. can ny1 send me projct so dat i cant lose my marks. plz help meee...

Member Avatar for Kamatari
-8
134
Member Avatar for achava

I have an xhtml document that contains many lines that look like: <div style="position:absolute;top:224;left:108">The line was longer than we expected</div> For my first trick I need to be able to match or select this node and others like it, where like it means that it is a div tag with …

Member Avatar for achava
0
171
Member Avatar for soomro_moon

how to remove a post form this forum .i was having problm in php but it is solved now so i want to remove that post

Member Avatar for Xufyan
-1
80
Member Avatar for cossay

[CODE] <html> <head> <title>MY FIRST AJAX SCRIPT</title> <script language = "javascript" type = "text/javascript"> function checkName() { var xml; try { xml = new XMLHttpRequest(); } catch(e1) { try { xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e2) { return false; } } xml.onreadystatechange = function() { if(xml.readyState == 4) { alert(xml.responseText); …

Member Avatar for cossay
0
104
Member Avatar for afaque01

Hello! Iam trying to Check Values Of 2 textboxex .. n then Print A certain Amount.. can Any 1 help me.... Code: [CODE]If C1.Text = "Agra Fort" & C2.Text = "Delhi" Then L8.Text = "800Rs/-" End If [/CODE] Actualyy i have jst Started learning VB.net... Iam trying to Check from …

Member Avatar for afaque01
0
85
Member Avatar for headedtomexico

I'm not used to getting this deep in c++, but all these pointers are making my brain boil. I'm trying to get a str_replace working [CODE]VOID str_replace(PCHAR Dest, PCHAR Find, PCHAR Replace) { PCHAR New=(char *)malloc(sizeof(CHAR)*MAX_STRING); PCHAR Found = Dest; PCHAR Temp = Dest; strcpy(New,""); while(strstr(Temp,Find)) { Found = strstr(Temp,Find); …

Member Avatar for headedtomexico
0
174
Member Avatar for daudiam

Consider the following code : [CODE]class R2<E> { E a; E get() { return a; } void set(E a) { this.a=a; } } class R3 { void doit(R2 a) // (1) { a.set(new Integer(5)); } }[/CODE] When I compile the file containing class R3, it rightly gives an unchecked warning …

Member Avatar for daudiam
0
167
Member Avatar for Seldar

Hello everyone and Merry Christmas. The reason I am opening this thread is that I am required to write a polynomial calculator in Common LISP as part of a Course Work. As I am newbie to LISP(s) I am asking you if anyone can help me with it . The …

0
77
Member Avatar for htowa

hi I have been working in this code for a while and I need to know what's wrong with it ASAP. here: [CODE]#include<iostream> using namespace std; class Node { public: int value; Node * next; Node(); Node(int); }; Node::Node():value(0),next(NULL){} Node::Node(int v):value(v),next(NULL){} bool AllPositive(next * h) { bool test = false; …

Member Avatar for frogboy77
0
154
Member Avatar for Sara Tech

Hi Guys :) I hope you fine :) I want when I color a shape ,that color does not wipe the background picture.I want it be [COLOR="Red"]transparent not solid [/COLOR] :S I tried Opticity property :-/ but it is [COLOR="Red"]just for the whole form[/COLOR] :icon_sad: ,it does not available for …

Member Avatar for Sara Tech
-1
139
Member Avatar for mangel.murti

hello all,, i am working on online hotel booking project . where user can pic room in Hotel and booked them using paypal. what if user want to cancel booking... i used paypal api for that.....and payment type is sale.... my Question is that 1. if user wants to cancel …

Member Avatar for mangel.murti
0
107
Member Avatar for kapilsolanki84

hello, can any 1 please help/guide me for creating an program .exe file in C. as i am using Dev c++ compiler.say for E.g( program of addition in this by compiling & running it i get the required output. but if i dont want to run the program again n …

Member Avatar for sharunkumar
0
3K
Member Avatar for tom_289

hi i am currenlty studying C sharp Visual studio, trying to convert a case study of polymorphism in payroll (which is avaiable in different books as console application) into windows application.. everything is going well, except here where i got switch statement and giving error in case 2- case 4 …

Member Avatar for tom_289
0
161
Member Avatar for ssudra

Hi im having trouble linking my database. I dont understand what ive done wrong and keep getting the following message: Syntax error in FROM clause. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at................................... My code ive used is: [CODE] using System.Data.OleDb; namespace coursework2 { public partial class Form1 : Form { public OleDbConnection Coursework2; …

Member Avatar for kvprajapati
0
2K

The End.