132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for cambalinho

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++
Member Avatar for cambalinho
0
412
Member Avatar for coolbeanbob

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 …

Software Development c c# c++
Member Avatar for deceptikon
0
172
Member Avatar for Edward_6

#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
Member Avatar for vegaseat
0
1K
Member Avatar for fantyfiz

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
Member Avatar for fantyfiz
0
152
Member Avatar for Praveen_10

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
Member Avatar for JamesCherrill
0
149
Member Avatar for pdk123

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++
Member Avatar for L7Sqr
0
257
Member Avatar for Jazmine_1

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++
Member Avatar for Jazmine_1
0
310
Member Avatar for Edward_6

#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
Member Avatar for Edward_6
0
174
Member Avatar for davidbr

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] …

Software Development python tkinter
Member Avatar for davidbr
0
4K
Member Avatar for michael.james.90475

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; // …

Software Development java opengl
0
138
Member Avatar for Lorraine_1

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
Member Avatar for Reverend Jim
0
855
Member Avatar for jez9

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
Member Avatar for jez9
0
243
Member Avatar for Wei_3

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, …

Software Development apache java regex xml
Member Avatar for Wei_3
0
944
Member Avatar for Emma Etigu

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
Member Avatar for Reverend Jim
0
213
Member Avatar for fonzali

@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
Member Avatar for fonzali
0
531
Member Avatar for Tuấn_2

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! ![G+.png](/attachments/large/4/aaebf2c0042b977627d29165b22890fb.png "align-center") 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 …

Software Development google seo
Member Avatar for Teme64
0
302
Member Avatar for obinaysamanoden

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; …

Software Development c++ pascal
Member Avatar for David W
0
280
Member Avatar for Habib_7

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).

Software Development algorithm c seo
Member Avatar for deceptikon
0
109
Member Avatar for Niloofar24

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
Member Avatar for ms95
0
3K
Member Avatar for anandhachandru

can anyone say best way to convert java class file into java file appreciate for your help thanks

Software Development java
Member Avatar for anandhachandru
0
626
Member Avatar for Neon_1

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. …

Software Development c++ ide
Member Avatar for mike_2000_17
0
1K
Member Avatar for alemojarro

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
Member Avatar for JamesCherrill
0
96
Member Avatar for Papa_Don

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 …

Software Development unix vb.net
Member Avatar for cgeier
0
502
Member Avatar for Sudhakar_1

<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("&amp;","&")' /> <!-- 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
Member Avatar for stultuske
0
209
Member Avatar for LATCH808

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 >> …

Software Development c++ storage
Member Avatar for bernardo.mclobo
0
433
Member Avatar for rangers165

trying to not allow doubles if there is a double For example, if the app returns two random numbers that are the same (5 & 5), the app will recognize this and adjust one of the numbers so that it is no longer equal to the other number. The results …

Software Development vb.net
Member Avatar for rangers165
0
290
Member Avatar for Fenrir370

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++
Member Avatar for Fenrir370
0
255
Member Avatar for bythescruff

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
Member Avatar for mike_2000_17
0
255
Member Avatar for jjones0150

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
Member Avatar for stultuske
0
230
Member Avatar for ms95

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
Member Avatar for ms95
0
346
Member Avatar for kamran815

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 …

Software Development c# dataset gui
Member Avatar for TekknoDraykko
0
570
Member Avatar for Newbiejavagirl

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
Member Avatar for JamesCherrill
0
100
Member Avatar for LibraryCode

What kind of solution is to avoid default statement in switch ,if it is possible?Regards

Software Development
Member Avatar for ddanbe
0
179
Member Avatar for Zubenna

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 …

Software Development algorithm java
Member Avatar for JamesCherrill
0
326
Member Avatar for programmingman

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?

Software Development audio c
Member Avatar for manofprogram
0
110
Member Avatar for ipage

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 …

Software Development delphi pascal
Member Avatar for ipage
0
3K
Member Avatar for bdaunno

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
Member Avatar for cgeier
0
339
Member Avatar for RikTelner

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
Member Avatar for RikTelner
0
177
Member Avatar for Niloofar24

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. …

Software Development python seo
Member Avatar for iJunkie22
0
380
Member Avatar for giancan

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
Member Avatar for Gribouillis
0
184
Member Avatar for SkateX

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
Member Avatar for Nutster
0
543
Member Avatar for billybob2022

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
Member Avatar for djjeavons
0
423
Member Avatar for aplee

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
Member Avatar for Teme64
0
266
Member Avatar for Kalle_2

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
Member Avatar for JOSheaIV
0
201
Member Avatar for AKJo

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
Member Avatar for Duoas
0
824
Member Avatar for glubbish

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 …

Software Development delphi pascal unix
Member Avatar for Duoas
0
286
Member Avatar for Rekt

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) …

Software Development image python tkinter
Member Avatar for Rekt
0
3K
Member Avatar for oren.turgeman.9_1

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
Member Avatar for JOSheaIV
0
310
Member Avatar for mdev

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 != …

Software Development listview xml
Member Avatar for JOSheaIV
0
208
Member Avatar for PulsarScript

How do i slow down event,so the output would look like this? ![inf0.jpg](/attachments/large/4/604aa730335dcea1405b3a2282ba3097.jpg "align-center") 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
Member Avatar for JOSheaIV
0
137

The End.