5,346 Posted Topics

Member Avatar for Sethron
Member Avatar for otakua
0
170
Member Avatar for nokomoli
Member Avatar for Nada_ward
0
158
Member Avatar for huzeifa

I am not sure about your code but you should put following code in constructor or init method, [code=cplusplus] m_progress.SetRange(0,100); m_progress.SetPos(0); [/code] and StepIt() in a timer procedure, [code=cplusplus] m_progress.StepIt() [/code]

Member Avatar for Ancient Dragon
0
110
Member Avatar for Aphrodite

Little correction of tux4life's code. [code=cplusplus] wordRecord test; // (1) sc.printDict(&test); // address operator was missing [/code]

Member Avatar for Aphrodite
0
101
Member Avatar for Shaitan00

Template is not a class or a function. It is a "pattern" that the compiler uses to generate a family of classes or functions. Must read link - [URL="http://www.parashift.com/c++-faq-lite/templates.html"]http://www.parashift.com/c++-faq-lite/templates.html[/URL]

Member Avatar for Tom Gunn
0
357
Member Avatar for yash777
Member Avatar for yash777
0
314
Member Avatar for khuks

Welcome khuks, Read rules first, 1. [URL="http://www.daniweb.com/forums/announcement118-3.html"]How to use code tags?[/URL] 2. [URL="http://www.daniweb.com/forums/announcement118-2.html"]Homework policy[/URL] Use classes of System.Data.SqlClient and System.Data namespace.

Member Avatar for kvprajapati
0
111
Member Avatar for harryhaaren

[code=cplusplus] namespace A { #include <iostream> } [/code] You can't include iostream header file into custom namespaces. The problem is that the qualified names inside the namespace would be A::std::cout, but the library would not contain names qualified with the outer namespace. However, you may declare header file outside the …

Member Avatar for kvprajapati
0
122
Member Avatar for dublinus

Try this code, if it is working then think where you got problem. [code=vb.net] Sub Test() Dim cn As OdbcConnection Dim cmd As OdbcCommand cn=New OdbcConnection("DRIVER={Primavera Software Development Kit};SERVER=MSSQLSERVER;UID=your_username;PWD=your_pass;DATABASE=PMDB;") cmd=new OdbcCommand("UPDATE PROJECT SET access_level=1",cn) cn.Open() cmd.ExecuteNonQuery() cn.Close() End sub [/code] PS: Use Oledb, SqlClient provider class library.

Member Avatar for Stevoni
0
309
Member Avatar for harshit99

Javascript is case-sensitive script language. theField and thefield, thisForm and thisform. [code=jsp] function isempty(theField) { if(theField.value=="") { return true; } else { return false; } } function isRequired(thisForm) { var Empty= false; if(isEmpty(thisForm.loginid)) { alert("THIS FIELD IS REQUIRED. PLEASE FILL IT!!"); Empty = true; } if (Empty== false && isEmpty(thisForm.password)== …

Member Avatar for harshit99
0
123
Member Avatar for KolosoK

Read this article - [URL="http://msdn.microsoft.com/en-us/vcsharp/dd319236(VS.85).aspx"]http://msdn.microsoft.com/en-us/vcsharp/dd319236(VS.85).aspx[/URL] Links [URL="http://stackoverflow.com/questions/366768/convert-bitmap-to-png-in-memory-in-c-win32"]http://stackoverflow.com/questions/366768/convert-bitmap-to-png-in-memory-in-c-win32[/URL] [URL="http://www.codeproject.com/KB/graphics/cximage.aspx"]http://www.codeproject.com/KB/graphics/cximage.aspx[/URL]

Member Avatar for KolosoK
0
2K
Member Avatar for john_beginner

There is a control array in VB 6.0. In C# or VB.NET you may use single event handler for multiple buttons click. [code=c#] private void Form1_Load(object sender, EventArgs e) { button1.Click += new EventHandler(commonEvent); button2.Click += new EventHandler(commonEvent); .. } void commonEvent(object sender, EventArgs e) { Button b=(Button)sender; ... } …

Member Avatar for john_beginner
0
968
Member Avatar for Tank50

You missed Read() method. [code=c#] if (dataReader4.Read()) var=dataReader4.IsDBNull(0); } [/code]

Member Avatar for Tank50
0
172
Member Avatar for Annex31b

Little correction to Tom's answer: To copy objects of reference types, you must close the objects. Not all classes support clone. Types implements ICloneable interface (Implement Clone() interface method) are cloneable. Cloning involves calling the method Clone(), which implemented version of ICloneable interface.

Member Avatar for sknake
0
163
Member Avatar for laghaterohan

Post asp.net question in ASP.NET forum. [code=asp.net] DateTime dt; DateTime.TryParse(TextBox1.Text, out dt); Calendar1.VisibleDate = dt; [/code]

Member Avatar for laghaterohan
0
172
Member Avatar for BlkR

Use keycode instead of Ascii. Handles KeyDown event. [code=vb.net] if e.KeyCode==Keys.Tab Then .... End if [/code]

Member Avatar for BlkR
0
91
Member Avatar for buyap
Member Avatar for beshoyatef

Appends the given text to the end of the document. It does nothing if the model is null or the string is null or empty.

Member Avatar for kvprajapati
0
67
Member Avatar for spalax
Member Avatar for sneaker
0
289
Member Avatar for ArunRaj.SRM
Member Avatar for ArunRaj.SRM
0
165
Member Avatar for Mortez Maya

Use following code [code=asp.net] string apppath=Request.ApplicationPath; [/code] or [code=asp.net] string apppath=MapPath("~") [/code]

Member Avatar for Mortez Maya
0
761
Member Avatar for laks_samy

Did you answered? [URL="http://www.daniweb.com/forums/thread207087.html"]http://www.daniweb.com/forums/thread207087.html[/URL] [URL="http://www.daniweb.com/forums/thread207247.html"]http://www.daniweb.com/forums/thread207247.html[/URL] PS: Mark a thread as Solved if you get suitable solution.

Member Avatar for laks_samy
-1
84
Member Avatar for dlaniger

You misunderstood that thread- Jsp code is executed at server location and it's output is carried out at web browser. Jsp output consists html/javascript/css/images. Lines 56 and 57 are illegal in context of jsp & javascript.

Member Avatar for kvprajapati
0
922
Member Avatar for sonia sardana

[URL="http://sqlserver-qa.net/google_bart.gif"]http://sqlserver-qa.net/google_bart.gif[/URL]

Member Avatar for kvprajapati
0
93
Member Avatar for tj_amarnath

Donot create new thread for same question. [URL="http://www.daniweb.com/forums/thread207170.html"]http://www.daniweb.com/forums/thread207170.html[/URL]

Member Avatar for kvprajapati
0
110
Member Avatar for milhero

Attachments collection of MailMessage instance. [code=vb.net] mailMessage.Attachments(new System.Net.Mail.Attachment("c:\file.ext")) [/code]

Member Avatar for milhero
0
123
Member Avatar for medopunsher

medopunsher, Windows HTTP service library - Read about [URL="http://msdn.microsoft.com/en-us/library/aa384273(VS.85).aspx"]WinHTTP Service[/URL]. [URL="http://msdn.microsoft.com/en-us/library/aa384110(VS.85).aspx"]WinHttpSendRequest Function[/URL] You may also use MFC class [URL="http://msdn.microsoft.com/en-us/library/0tw8chfe.aspx"]CHttpFile & CInternetFile classes[/URL]

Member Avatar for Ancient Dragon
0
225
Member Avatar for shou2009

Dear this is a forum. It is not a play-ground. First, one thing you must have to learn from your parents - "How to ask question?".

Member Avatar for Nick Evan
0
298
Member Avatar for agent154

[code=c#] string re = @"[A-Za-z0-9\-]+\.(jpg|jpeg|gif|bmp)"; Match match = Regex.Match(s, re, RegexOptions.IgnoreCase); while (match.Success) { Console.WriteLine(match.ToString()); match=match.NextMatch(); } [/code]

Member Avatar for agent154
0
131
Member Avatar for picass0

Read whole file and store its content into array of string or vector line by line. After that you may choose random index.

Member Avatar for solahere
0
83
Member Avatar for xiikryssiix

Use [B]nScores[/B] instead of [B]MAX_SCORES[/B]. [code=cplusplus] .... qsort (score, nScores, sizeof(int), compare); cout << "\n Sorted: "; int i; for (i = 0; i < nScores; i++) cout << score[i] << ' '; cout << endl; int max = score[0]; int min = score[0]; for (i = 0; i < …

Member Avatar for Sky Diploma
0
215
Member Avatar for swinefish

I think it's problem regarding to cast something. Try it with following code, [code=c#] { if(this.Dispatcher.Thread==Thread.CurrentThread) { GraphArea.Content = c; } MessageBox.Show("Graph Set"); return true; } [/code] Duplicate thread : [URL="http://www.daniweb.com/forums/thread206895.html"]http://www.daniweb.com/forums/thread206895.html[/URL] should be removed.

Member Avatar for swinefish
0
189
Member Avatar for procopio

Welcome procopio, [URL="http://sqlserver-qa.net/google_bart.gif"]http://sqlserver-qa.net/google_bart.gif[/URL]

Member Avatar for procopio
0
68
Member Avatar for wendas

>Now I can call MyLibrary.Dates.Payroll and MyLibrary.Dates.General. Your said "library" is a DLL. It's it? Can I see how you call these classes? some links might help you, [URL="http://msdn.microsoft.com/en-us/library/wa80x488(VS.80).aspx"]http://msdn.microsoft.com/en-us/library/wa80x488(VS.80).aspx[/URL] [URL="http://www.devx.com/dotnet/Article/22603"]http://www.devx.com/dotnet/Article/22603[/URL]

Member Avatar for wendas
0
129
Member Avatar for rcrosenb
Member Avatar for elidotnet

A proper way to handle this situation: [code=c#] private void MainForm_Load(object sender, EventArgs e) { frmLogin a = new frmLogin(); DialogResult result=a.ShowDialog(); if (result == DialogResult.Cancel) Application.Exit(); } [/code]

Member Avatar for kvprajapati
0
115
Member Avatar for prakash.s

Here are links might help you. [URL="http://blogs.msdn.com/rakkimk/archive/2007/03/01/writing-a-simple-isapi-filter.aspx"]ISApi Filter[/URL] [URL="http://groups.google.com/group/microsoft.public.platformsdk.internet.server.isapi-dev/browse_thread/thread/d29e1a767cbb4717?pli=1"]ISApi Extension[/URL]

Member Avatar for Laiq Ahmed
0
97
Member Avatar for scooby36

Type mismatch error - Input string was not in correct format You are assigning a valueMember property (string - name of column) to int type column. [code=vb.net] Try Dim NewRow As DataRow NewRow = ds.Tables("TblLinen").NewRow NewRow("CustomerID") = Me.cboCustomer.SelectedValue NewRow("LinenItemsID") = Me.cboItems.SelectedValue NewRow("Quantity") = Me.txtQuantity.Text ds.Tables("TblLinen").Rows.Add(NewRow) Catch ex As Exception MessageBox.Show("Message" …

Member Avatar for scooby36
0
5K
Member Avatar for xiikryssiix

You missed element is to be assigned in Post #3. [code=cplusplus] // read and save the records for (int i = 0; i < nStudents; i++) { if (nStudents < MAX_STUDENTS) { ..... student[nStudents++] = aStudent; // assign an element at given index cout << " " << endl; } …

Member Avatar for MrSpigot
0
115
Member Avatar for tj_amarnath

Read this article - [URL="http://www.codeproject.com/KB/recipes/CsharpPivotTable.aspx"]http://www.codeproject.com/KB/recipes/CsharpPivotTable.aspx[/URL]

Member Avatar for kvprajapati
0
460
Member Avatar for apease11
Member Avatar for BlkR

Single quote needed. [code=vb.net] strSQL = "INSERT INTO trans2 (trans_ID, Item_ID, ItemName, Price, Qty, Total)VALUES ('" & txttran.Text & "'" , "'" & txtItemNo.Text & "'" , "'" & txtItemName.Text & "'" , "'" & txtUnitPrice.Text & "'", "'" & txtQty.Text & "'" , "'" & txtUnitTotal.Text & "')" [/code]

Member Avatar for babbu
0
2K
Member Avatar for mansi sharma

Here is a link - [URL="http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/cfa29f73-d0ff-4a62-b8c4-0793fe4de974"]http://social.msdn.microsoft.com/Forums/en-US/netfxcompact/thread/cfa29f73-d0ff-4a62-b8c4-0793fe4de974[/URL]

Member Avatar for mansi sharma
0
226
Member Avatar for dputman

The Document object has a Saved property. If that is true, there are no changes to be saved. [code=vb.net] If doc.Saved <> true Then ... End If [/code]

Member Avatar for kvprajapati
0
72
Member Avatar for joe1987
Member Avatar for ddanbe

Danny, Increment & decrement operators have indefinite behavior. C# specification [URL="http://msdn.microsoft.com/en-us/library/aa691363(VS.71).aspx"]Postfix incr/decr[/URL] [URL="http://msdn.microsoft.com/en-us/library/aa691369(VS.71).aspx"]Prefix incr/decr[/URL]

Member Avatar for kvprajapati
0
113
Member Avatar for itshibu
Member Avatar for crazyboy

Yes, you can do. It is used to create Temporary object. [code=cplusplus] class One{ public: One() { cout << "\nConstructor"; } ~One(){ cout << "\nDestructor"; } }; int main(){ One a; One(); // Temp object return 0; } [/code]

Member Avatar for crazyboy
0
739
Member Avatar for Teethous

IDE provides output window but it is not a console command prompt. So try to run your console application at command prompt.

Member Avatar for Teethous
0
165
Member Avatar for BestJewSinceJC

I read your post twice - I am not sure what I am going to write here is useful. I know the fact the jmf mp3 plugin is only supported by MX operating system.

Member Avatar for BestJewSinceJC
0
496

The End.