132,725 Archived Topics
Remove Filter ![]() | |
how send a message with WM_DRAWITEM message? heres my actual code on parent window: case WM_DRAWITEM: { DRAWITEMSTRUCT *test=(DRAWITEMSTRUCT*) lParam; /*if(test->CtlType==ODT_MENU) { MENUITEMINFO menuInfo; menuInfo.cbSize = sizeof(MENUITEMINFO); menuInfo.fMask=MIIM_DATA; if(GetMenuItemInfo((HMENU)test->hwndItem,(UINT) test->itemID, TRUE, &menuInfo )!=0) { Menu *mMenu = (Menu *) menuInfo.dwItemData; if(mMenu!=NULL) if(mMenu->DrawItem!=NULL) //mMenu->DrawItem(); else { } } } else { … Software Development c++ | |
I've spent hours, an embarrasing number of HOURS on how to read a text file into a program. The requirements have shifted, but still. I hate you C. You and all your pointers. The text file is a matrix, but with the first line being the number of rows. See … | |
#Template for Program 6 #Complete the code in each module as discussed in #the Program 6 Instructions def main(): #initialize variables so incomplete code won't cause errors #can be deleted once code is finished totalRainfall = 0 minRainfall = 0 maxRainfall = 0 #prints the progam title and a blank … Software Development python | |
Hi. I am working on vb.net and i want ot link a form with a button so when i click on button the form show but it contain error kindly guide code is this: Dim myform As New Form1 myform.Show() and the compiler show error on myform.show() Software Development vb.net | |
import java.util.ArrayList; import java.util.List; public class Task7 { static int count=0; String arr[]=new String[40]; /** * * @param list * @return an array consisting of vowels from the passed character array, * in the order they appear. for example, if list = {'t','h','e','s','a','u','r','u','s'}, * the method returns {'e','a','u','u'} */ public … Software Development java | |
Hello, I have a basic c++ STL question. I have an octet array class (legacy). Now lets say the octet array has the following contents: array[0]=00 array[1]=01 array[2]=30 array[3]=01 array[4]=114 The key we need to generate from the above array should match ["00130-1-114"] Whats the best way to get this … Software Development c++ | |
Hey everyone! Thanks for all the help before and now I have another problem. So I'm doing a clock program with three "invalid" attached files. There are zero errors but still won't run the program, any advice out there? Software Development c++ | |
#Template for Program 4 #Note: This program does not require the use modules (Ch 3) #Remember to indent code that is within the for loop (4 spaces or 1 tab) #print the progam title and a blank line #get input for number of months and store as integer #for loop … Software Development python | |
Hello, I have this code which is working import Tkinter as tk from Tkinter import * LARGE_FONT= ("Verdana", 12) class ChangePages(tk.Tk): def __init__(self, *args, **kwargs): tk.Tk.__init__(self, *args, **kwargs) container = tk.Frame(self) container.pack() container.grid_rowconfigure(0, weight=1) container.grid_columnconfigure(0, weight=1) self.frames = {} for F in (MainPage, Page01, Page02): frame = F(container, self) self.frames[F] … | |
import java.awt.Frame; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.media.opengl.*; import javax.media.opengl.awt.GLCanvas; import javax.media.opengl.glu.*; import com.sun.opengl.util.Animator; import com.sun.opengl.util.FPSAnimator; public class Object3D implements GLEventListener, KeyListener { GLProfile glp; GLCapabilities caps; GLCanvas canvas; GLU glu; float rotX = 0.0f; // Rotate screen on x axis float rotY = 0.0f; // … | |
I'm completely new to VB.net and have been given a homework assignment. I need to be able to read certain lines and display them in a DataGridView. I have been able to link my .txt file to the DGV however **it reads the whole file** as opposed to the specific … Software Development file-system vb.net | |
Good Day Everyone!. Now im trying to know more about masterkey. Ive heard that if my database[ms-access(i use oledb)] accidentally deleted or someone hack it and delete my database, they said that i should make a master key where even though my database got deleted i still can LogIn or … Software Development vb.net | |
My build.xml can run junitTest well but when I tried to build with cobertura instrument, JunitTest failed, Why? <target name="instrument" depends="compile"> <echo> ====== run target instrument ==== </echo> <!-- Remove the coverage data file and any old instrumentation. --> <delete file="${junit.dir}/cobertura.ser" /> <delete dir="${instrumented.dir}" /> <!-- Instrument the application classes, … | |
hello, am fairly new to VB. Net and am trying to develop an application. I want to implement auto complete function in one of my text boxes. I want my text box to show a list of items that are stored in my database when a user enters a particular … Software Development vb.net | |
@Niloofar24 was looking for an Iranian datetime package and last night I found one in the internet so I wrote a simple code which counts the days and hours and seconds to Iranian new year Software Development python | |
i coding a small app with some funtion: can add text to textbox of community(Gplus) and submit my post, but i get fist problem!  my code: int num = 0; HtmlElementCollection elementsByTagName = this.webBrowser1.Document.Body.GetElementsByTagName("div"); for (num = 0; num < elementsByTagName.Count; num++) { if (elementsByTagName[num].OuterHtml.Contains("URaP8 Kf Pf b-K … | |
Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() Average #include <iostream> #include <cstdlib> using namespace std; bool check(double element[], int count); int main() { char redo; do { system ("cls"); double elements = 0, i = 0, j = 0, average_elements = 0; … | |
hi.I need 8 search engine for my school.can you give me just the name of those algorithm (except binary search and linear search). | |
Hi friends! I want to create a countdown program. Here is my code: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.label import Label import datetime class CountdownApp(App): def build(self): delta = datetime.datetime(2015, 3, 21, 2, 15, 11) - datetime.datetime.now() days = delta.days days = str(days) self.label_days = Label(text=days … Software Development python | |
can anyone say best way to convert java class file into java file appreciate for your help thanks Software Development java | |
Hi, I am very new to CMake. In fact, I am trying this tutorial http://www.cmake.org/cmake-tutorial/. I do not understand some of the words prescribe there but I can manage. The problem I have with tutorials is the inclusion of TutorialConfig.h. I check the tutorial files and such file doesn't exist. … | |
I am trying to make a code that makes a random point cloud that changes every five seconds for a minute. I have it so that it makes the inital cloud, but I am stuck on how to make it change every five seconds. private class newCloud implements ActionListener { … Software Development java | |
Group, Some weeks back you helped me solve a formating issue with a text file that originates from a UNIX based program (see [https://www.daniweb.com/software-development/vbnet/threads/489626/remove-end-of-report-line-and-format-unix-text]). While reviewing this newly formated data I saw that a character was place at the beginning of each page. Thus, I assume it does set the … | |
<head> <!-- //In header section of the page add below url code: --> <!-- Sesion time out and session expiry url starts here --> <s:url id="sessionExpirePopUp" action="sessionOutCiscoGSS" namespace=""> </s:url> <s:set name='sessionExpirePopUpNew' value='#sessionExpirePopUp.replace("&","&")' /> <!-- Sesion time out and session expiry url starts here --> <script type="text/javascript" language="javascript" src="<%=request.getContextPath() %>/jsp/js/jquery.js"></script> <script … Software Development java javascript-jquery json session | |
can someone tell me whats wrong with it or what i should do? #include <iostream> #include <iostream> #include <string> #include <fstream> #include <vector> using namespace std; List storage[50]; int e = 50; int intro(void) { int userChoice; cout << "Enter 1 to checkout or 0 to end checkout."; cin >> … | |
So im doing an assignment for class and im not sure what/how to proceed, im struggling with storing randomly generated numbers in an array and then calling on them later to display how many times the random number has been called them. as you might notice i already have my … Software Development c++ | |
Hi folks. I'm about to evaluate an implementation of SYCL for ease of use and performance when writing parallel programs for heterogeneous environments, and I'm looking for good candidate programs to port to SYCL which will exercise its C++ features. Can anyone suggest any good examples of open source libraries … Software Development c++ open-source | |
I'm having trouble working these last few kinks out my progarm. It would be greatly appreciated if you can help me out from here. import java.util.Date; import java.util.Scanner; import java.io.FileReader; import java.io.FileNotFoundException; import java.io.PrintWriter; import javax.swing.JOptionPane; import javax.swing.text.BadLocationException; public class aCircle { public double circumference(double cRadius) { return cRadius; } … Software Development java java-swing | |
i want to implement a kind of malloc and free function for a course project , now i have done something but i dont know whats the problem with access violation in this line : head->next = (struct block_meta *) allocate(sizeof(struct block_meta)); i'd be glad if someone can help me … Software Development c | |
hi guys, i have start working with C#, i m making a simple application for my office, i m using mysql database. my question is i want to make a record navigation button like: Next, Previous ..... kindly guide me how to make this. i m using mysql database with … | |
I am a newcomer to java and jdbc. I am currently trying to develop a web application in which the user can upload a spreadsheet to the form. Is there any way in which contents of the uploaded spreadsheet can be saved to the database? I am working in eclipse … Software Development file-system java | |
What kind of solution is to avoid default statement in switch ,if it is possible?Regards Software Development | |
Please I need a java expert to help me with the code and algorithm that deletes duplicate element from an array. I have written a programm to do this as shown below using my own algpritm. Though it is working but I think my code is too long for this … | |
I want to write code to see what applications access device drivers on my computer. The drivers are disk, display, audio, keyboard, etc. Can someone introduce me on how to do this? | |
I am using delphi 2010 in WinXP. In C# and Java there are Normalizer function. It can transform letters with diacritics into ASCII (remove those accent marks). I do not know if there is Normalizer in delphi. What I am testing is below, but failed. I do not know how … | |
Hey everyone, Great forum. Glad there is so much help out there. I am currently working in VS2010, Visual Basic. I am working with a fairly large array: RawData(0 To 3799, 0 To 1259, 0 To 4). I am importing the data from an XML file, so this takes several … Software Development vb.net visual-basic | |
My situations is as follows. `main.cs` is a main script (you don't say, whaaaaaa?), it includes `functions.cs` by `using functions;`. I managed to get OOP working (had some struggle with it, but figured it out). I know that I can pass variables from `main.cs` to `functions.cs` by executing: Class FavVarName … Software Development oop | |
Hello. I have a homework. I have asked to create a web crawler that be able to enter into a music website and then for the first step, collect the name of singers that their names starts with the letter "A". Now i need a little help for this step. … | |
Dear friends, I have a set of files created at certaing time. I would like to group the result where consecutive time difference is more than 1 minute. For example A 10:01:25 B 10:01:29 C 10:01:52 D 10:01:58 E 10:02:12 F 10:02:22 G 10:11:01 H 10:11:18 I 10:30:00 The above … Software Development python | |
Greetings, I'm working on a class project for fractions and I'm stuck and cannot figure out where to go from here. We have a mandatory driver file we aren't supposed to change. See below for example output and the output I am actually getting. **Sample Output** Enter numerator; then denominator. … Software Development java mathematics oop | |
I need help when i try to save the value of my buttons it says that it cannot convert 1 dimensional array to system.collections.arraylist which is the option i am using for my saving. I have seventeen buttons in total that i would like to save the text from. Any … Software Development vb.net visual-basic | |
Hello, Code Masters, Here I am again today going to seek help and guidance from you. I have here a manually assigned values to arrays 0 - 19 now my question is, how can I assign values to each array coming from the SQL database? The catch is, it is … Software Development vb.net | |
Hey I need some help here i have created a easy login with registration that save the password in plain text but now i want it to be hash and salted but i do not now how i can do this. This is the code for login: try { SqlConnection … Software Development open-source | |
Hi, I have developed a program in Delphy 2007, which shows .AVI files. Now I want to run MP4 files as well, but cannot achieve it. TMediaPlayer does not recognize the format by its extension. Is there an other player available or an upgrade for the one that came with … Software Development pascal | |
I have a backup program that used to work reasonably well. It used copyfileex to copy files from one unix machine to another. Recently it has been maxing out at about 5Mb/s So I changed to SHFileOperation and found it averages about 80Mb/s This is using delphi 7 on windows … | |
This is my code: from tkinter import * def ftm(feet): return feet * 0.305 def mtf(meters): return meters / 0.305 def convert(amount, func, result): value = func(float(amount.get())) result.set(round((value), 3)) def choose(): choice = lol.get() if choice == "ft": feet = StringVar() meters = StringVar() rest = Toplevel() f3 = Frame(rest) … | |
hy when i run this command to open excel and i get error (on 2007 excel it was fine) //Excel.ApplicationClass xlApp; Excel.Application xlApp; Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet; object misValue = System.Reflection.Missing.Value; SaveFileDialog oDialog = new SaveFileDialog(); xlApp = new Excel.ApplicationClass(); ** xlWorkBook = xlApp.Workbooks.Add(misValue);** xlWorkSheet = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1); int i = … Software Development c c# c++ microsoft-office vb.net | |
Hi people, i need to delete selected row in ListView from xml file.. i have this code: private void tsBtnDeleteRow_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) return; XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load("diogomonteiro.xml"); //XmlNodeList newXMLNodes = xmlDoc.SelectNodes("/Pessoas/Pessoa[name=wd]"); PessoaListViewItem item = (PessoaListViewItem)listView1.SelectedItems[0]; string value = item.ToString(); if (item != … | |
How do i slow down event,so the output would look like this?  using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Timers; namespace Event1 { public delegate void DingDongHandler(string text); public class ClassWithEvent { public Timer DingdongTimer { get; private set; } public event DingDongHandler DingDong; public void … Software Development |
The End.