5,346 Posted Topics

Member Avatar for connormcleod

Here is the first problem your code has: [CODE=C++] struct personal_details { string name[]; // Error : Zero sized array int age[]; // Error : Zero sized array string favourite_colour[]; // Error : Zero sized array }; [/CODE] To solve this problem: 1. Find out the total number of record …

Member Avatar for kvprajapati
0
9K
Member Avatar for v_sriram

[QUOTE=v_sriram;883403]Hello everyone, I have been trying to launch my JSP web application using Tomcat using my laptop as the server, with little success. I have registered a DNS at dynDNS.com ( free DNS, anyone!), made my IP static, forwarded port 8080 and port 80. The only problem I believe is …

Member Avatar for v_sriram
0
327
Member Avatar for KimJack

What is the datatype of hours, minutes variables? As per java documentation the syntax of String.format is ... [CODE=Java] public static String format(String format,Object... args) [/CODE] If hours and minutes are int type, [CODE=Java] String.format("%d:%d", hours, minutes); // or String.format("%d:%d", new Object[]{hours, minutes}); [/CODE]

Member Avatar for Xhamolk_
0
197
Member Avatar for gretty

You should have to take care of code. Improper use of cin [CODE=C++] line_array >> cin.ignore(100, ' '); [/CODE] Cannot convert from string to char. [CODE=C++] first_letter[i] = line_array[i]; [/CODE] A code I am pasting here will help you to understand where you are wrong? [CODE=C++] void capitalise(string line_array[]) { …

Member Avatar for siddhant3s
0
265
Member Avatar for terdie
Member Avatar for terdie
0
134
Member Avatar for adarshcu

Content of temp (it is empty) will not modified. [CODE=C++] // assume that a string temp contains "Hello" file.open("1.txt"); file.seekp(pos,ios::beg); getline(file,temp); file.close(); [/CODE] After the code execution temp remains unchanged. i.e it is "Hello"

Member Avatar for vmanes
0
101
Member Avatar for stbtwitter
Member Avatar for Majestics
Re: JNI

You should go for the book - Java Native Interface (Programmer's Guide and Specification - Addision Wesley).

Member Avatar for Majestics
0
120
Member Avatar for Lee_Sonnenburg

Is your code look like this: [CODE=HTML] <div style="overflow:scroll;height:100px;width:40px;"> <table border="1"> <tr> <td>No</td><td>Name</td> </tr> <tr> <td>1</td><td>Abc </td> </tr> <tr> <td>2</td><td>Pqr </td> </tr> </table> </div> [/CODE]

Member Avatar for diafol
0
309
Member Avatar for FallenPaladin

An interface is a collection of un-implemented methods. An interface contains Method, Events, Properties, and Indexers declaration. for example, [CODE=C#] public interface ISample{ void show(); // Method int this[int n]{get;set;} // Indexer int No { get;set;} // Property event EventHandler changed; // Event } [/CODE] An interface defines a contract. …

Member Avatar for sknake
0
301
Member Avatar for headacheinC

Is this your first post? It isn't. Post source code in BB tag - click on # icon above the text area of message. Had you compiled this code?

Member Avatar for headacheinC
0
136
Member Avatar for wrigha
Member Avatar for VernonDozier
0
104
Member Avatar for lukethedrifter

Why you use (LPCSTR)in[1] (third argument of MultiByteToWideChar)? [CODE=C++] int len = strlen((const char *)in)+1; wchar_t *wText = new wchar_t[len]; memset(wText,0, (len * sizeof(wchar_t))); if ( wText == 0 ) return [COLOR="Red"]0[/COLOR]; ::MultiByteToWideChar( CP_ACP, NULL,(LPCSTR)[COLOR="Red"]in[1][/COLOR], -1, wText,len ); [/CODE] It should be, [CODE=C++] (LPCSTR)in // or (const char *)in [/CODE]

Member Avatar for Ancient Dragon
0
226
Member Avatar for alaamido
Member Avatar for jacobus8

Welcome jacobus8. Please post your code in BB Tag. I think You have a problem with installation.

Member Avatar for kvprajapati
0
2K
Member Avatar for kashn
Member Avatar for kvprajapati
0
50
Member Avatar for Intrade

My answer is Yes. You have to use Microsoft Visual C++ and MFC class library. For further information, read [B]MFC Internet Programming [/B] at [URL="http://msdn.microsoft.com/"]http://msdn.microsoft.com/[/URL]

Member Avatar for kvprajapati
0
145
Member Avatar for red999

[QUOTE=red999;883133]I just fixed up my delete function, but for some reason if I want to delete the first node, my program will keep printing random numbers. Can someone take a look at it? Here is the part that deletes the first node. [CODE]node_t * delete(node_t *list, int num){ node_t *current, …

Member Avatar for kvprajapati
0
2K
Member Avatar for antwan1986

Misconception of OOP. Anthony>but if i print out the object? using print_r or var_dump? - They are for debug purpose. Private members of class are not accessible/manipulated directly outside the class.

Member Avatar for antwan1986
0
92
Member Avatar for pradeepktg

Is it posibble to select a file using html form tag if file is not present in your local machine?

Member Avatar for pradeepktg
0
275
Member Avatar for defender_

Wait for (join) all the threads. [CODE=C++] for (i=0;i<3;i++) pthread_join(thread[i], NULL); [/CODE]

Member Avatar for kvprajapati
0
89
Member Avatar for david.1982

Shall I know which application? - web or desktop. >I have a datatable with a bunch of options in it, some marked "assignable", so not. Use select statement to fetch those rows from the table marked "assignable".

Member Avatar for kvprajapati
0
88
Member Avatar for ankiesiau

Welcome to the DaniWeb. Your code is incomplete. where is your access (database) code? Are you familiar with ADO.NET class library? If so then use methods of System.Data.Oledb or System.Data.Odbc namespace's classes.

Member Avatar for kvprajapati
0
101
Member Avatar for Benkyou

You should try - itoa() function. [CODE=C] /* new variables */ int b; char bin_str[9]; // to hold binary string fseek(fh , 0 , SEEK_END); tam = ftell(fh); rewind(fh); buff = (char*) malloc (sizeof(char)*tam); fread (buff,tam,1,fh); for (c=0;c<tam;c++) { b=buff[c]; // itoa(int vaule,char *str,int radix) - stdlib.h itoa(b,bin_str,2); printf("\n%s",bin_str); } …

Member Avatar for Benkyou
0
120
Member Avatar for nash99

Three methods of document object can be used : 1. document.getElementsByTagName("html"); 2. document.getElementById("id"); 3. document.getElementsByName("elename"); [CODE=Jsp] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html id="p1" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Inner HTML</title> <script type="text/javascript"> function show() { var t=document.getElementsByTagName("html").item(0); alert(t.innerHTML); } </script> </head> <body> <form id="form1"> <div> Something... <button onclick="show()">Show InnerHTML</button> </div> …

Member Avatar for kvprajapati
0
78
Member Avatar for Benkyou

This statement creates a heap and address of newly created heap is assigned to aux pointer variable. (This statement has no use in your code.) [CODE=C] CMD aux = (CMD)malloc(sizeof(struct _CMD)); [/CODE] Now, you are assiging an address of another heap to the aux pointer variable. [CODE=C] aux = com->inicio; …

Member Avatar for Benkyou
0
114
Member Avatar for noman78
Member Avatar for follow33

[QUOTE=follow33;883498]Hello to everyone !!! I have a problem with a tabels in Acces. Im making a software for minimarket and i have 2 tabels... First Table : Articles(IDART,NAMEART,PRICEART) SeconTable : Statistic(IDART,NAMEART,AMOUNT,PRICEART,DATE) My problem is this : When i'll put the ID of Article (IDART) in table Statistics then the name …

Member Avatar for kvprajapati
0
103
Member Avatar for k2k
Member Avatar for wrathyimp
Member Avatar for MidiMagic
0
123
Member Avatar for kashn

Read the API of JTable and visit [URL="http://java.sun.com/docs/books/tutorial/uiswing/components/table.html"]tutorial[/URL]

Member Avatar for kvprajapati
0
94
Member Avatar for Xessa

You have to write code to update database. Please follows post #2 and #3.

Member Avatar for kvprajapati
0
128
Member Avatar for csy

csy>will it thread safed ? This type is safe for multithreaded read operations. You must synchronize any write operations. Read MSDN Documentation.

Member Avatar for Stinomus
0
138
Member Avatar for kingarthur

I tested your program. Two problems I have found. 1. sql_preview is not assigned. [CODE=Java] public static void main(String[] args) { sql_preview="select * from tablename"; TableDB frame = new TableDB( sql_preview ); frame.setDefaultCloseOperation( EXIT_ON_CLOSE ); frame.pack(); frame.setVisible(true); } [/CODE] 2. this_mouseClicked(e); method not found [CODE=Java] // this_mouseClicked(e); [/CODE] Code after …

Member Avatar for cruzer45
0
148
Member Avatar for jbisono

This post should moved to ASP.NET. Use Session or ViewState Code of Page_load [CODE=C#ASP.NET] if (IsPostBack == false) { DataTable dtOpe = new DataTable(); DataSet dsComp = new DataSet(); DataRow drOpe; dtOpe.Columns.Add("Opsheetrev"); dtOpe.Columns.Add("Engdwgrev"); drOpe = dtOpe.NewRow(); drOpe[0] = ""; drOpe[1] = ""; dtOpe.Rows.Add(drOpe); dsComp.Tables.Add(dtOpe); dgHistoric.DataSource = dsComp.Tables[0]; dgHistoric.DataBind(); Session["dt"] = …

Member Avatar for jbisono
0
214
Member Avatar for bufospro
Member Avatar for kvprajapati
0
64
Member Avatar for d.devendran

adatapost>I agree with nabeel. If you are able to and familiar with HttpSessionListener an its methods then you can do this thing in better way.

Member Avatar for kvprajapati
0
76
Member Avatar for gautam.ap
Member Avatar for aga

Are you talking about to implement ICallbackEventHandler? or Change page url programatically?

Member Avatar for aga
0
90
Member Avatar for whizzykid

[QUOTE=Musab405;883338]try to use mysql_fetch_array method not mysql_fetch_assoc method i think that will be print the other columns from your database[/QUOTE] No, not at all dear. mysql_fetch_array() returns indexed array so you can get value of specific column using index 0,1, and so on. mysql_fetch_assoc() method returns an array having key-value …

Member Avatar for kvprajapati
0
105
Member Avatar for sangam100

Without where clause - DB engine update each and every row. [CODE] update comments set approved='true' where approved='false' [/CODE]

Member Avatar for kvprajapati
0
99
Member Avatar for sfener06

Of course you may do so; Learn sql triggers,stored procedures, and functions.

Member Avatar for kvprajapati
0
62
Member Avatar for antobx

Welcome AntoBx, and Binod. You both must read the [URL="http://www.daniweb.com/forums/announcement18-4.html"]http://www.daniweb.com/forums/announcement18-4.html[/URL] Use BB code to post your code.

Member Avatar for kvprajapati
0
449
Member Avatar for h.liang

Command-Line requires Reference of .dll. [CODE] >csc YourProg.cs /t:library /r:System.Data.OracleClient.DLL /r:..... [/CODE]

Member Avatar for kvprajapati
0
213
Member Avatar for love_dude1984

Use following methods of System.IO.Directory class [CODE] 1. System.IO.Directory.GetFiles(path,searchPattern,System.IO.SearchOption.AllDirectories) 2. System.IO.Directory.GetDirectories(path,searchPattern,System.IO.SearchOption.AllDirectories) [/CODE]

Member Avatar for kvprajapati
0
101
Member Avatar for Xessa
Member Avatar for still_learning

Read this article [URL="http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Sorting/insertionSort.htm"]http://www.personal.kent.edu/~rmuhamma/Algorithms/MyAlgorithms/Sorting/insertionSort.htm[/URL]

Member Avatar for kvprajapati
0
386
Member Avatar for tadisaus2
Member Avatar for Lib Auth
Member Avatar for jineesh

The End.