132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pstanford

Hi, I've been given a task of printing from a grid in VB6 and came across the article shown below. https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/431714/print-from-mshflexgrid-in-vb-6-0 I've implemented the code provided (re-typed, not copy/paste) and when I run it I get a run-time error 383 saying the printer properties are read only. For example, if …

Software Development printer visual-basic
Member Avatar for pstanford
0
444
Member Avatar for PETRICIAMARYMALLIGA A

What is a Structure ?? and write a c++ program to find the grades of the students using structures???

Software Development c++
Member Avatar for vegaseat
0
131
Member Avatar for robski

Hi. I,ve got some very helpfull advice from various experts on here and have nearly finished my program but am having a problem with a do while loop. When i try to put a do while ( the input isn't numbers one to ten) loop on a certain part of …

Software Development c++
Member Avatar for ROMEO VINEET
0
373
Member Avatar for TObannion

Okay, here I am again. I searched the forum and found the posts that I need to solve this password validator, but I'm not putting it together in my head correctly for some reason. I haven't started the isUpper, isLower, and isDigit functions, but I'm going to do those next. …

Software Development c++
Member Avatar for ROMEO VINEET
0
3K
Member Avatar for preslav_milev

Hi. I need to write a program that finds the shortest route in directed graph. Please look at the picture. [Click Here](https://goo.gl/photos/uRdTfp9pDrAobun87) Here is my code: #include <iostream> using namespace std; const int N = 10; struct elem { char key; elem *next; } *g[N]; void init(elem *g[N]) { for …

Software Development algorithm c c# c++
Member Avatar for preslav_milev
0
1K
Member Avatar for 승환

Hello, I'm trying to make timer which spit out gps signal every 10 or 60 seconds. here is my code. * **import threading import time import serial import datetime, string from pynmea import nmea def init_serial(): COMNUM = 13 global ser ser = serial.Serial() ser.baudrate = 9600 ser.port = 12 …

Software Development python
Member Avatar for Gribouillis
0
480
Member Avatar for vbx_wx

[CODE] void HandleConnection() { cout << "You are connected !!!" << endl; char temp[30]; Recv(temp, sizeof(temp)); if(temp[0] == 5) // test for version { cout << "Version good" << endl; char* reply = new char[2]; reply[0] = 5; // version reply[1] = 0; // method choosed (no auth required) Send(reply, …

Software Development c++ client-server seo
Member Avatar for Jake_7
0
20K
Member Avatar for printf

Representing the list may or may not matter for a specific algorithm, but what does a list has to do with a stack/queue?

Software Development algorithm c queue
Member Avatar for JamesCherrill
0
156
Member Avatar for Tcll

ok, so I'm trying to basically load a dll that can be under multiple names: - freetype6 - libfreetype-6 and more I don't want it to find freetype.dll (I want it to search for 'freetype' and '6') how can I load a dll with a regex from the system paths?? …

Software Development python regex
Member Avatar for Tcll
0
169
Member Avatar for Doogledude123

I have a custom ListCell in which I have methods to move the position of the cell to the right or left, but I want a button to be shown similar to deleting a Conversation in Messages on iPhone. If I add a new ImageView, which will act as the …

Software Development gui iphone java listview
Member Avatar for Doogledude123
0
705
Member Avatar for iamahar

/// This is my code and my file already open in window i want to close it first and then delete pls help var directory = new DirectoryInfo(path); { if (!IsFileLocked(file1, file) & file1.Name == file + ".xlsx") File.Delete(path + file + ".xlsx"); // DELETE THE FILE BEFORE CREATING A …

Software Development file-stream file-system
Member Avatar for ddanbe
0
164
Member Avatar for pooja3107

Hi, I am getting java.lang.ArrayIndexOutOfBoundsException: -131072 exception. when i am running the code from my local machine (eclipse) it works fine, when i copied my code to unix server, the same code is giving error. Exception trace: =============== In generate Report Method ================= java.lang.ArrayIndexOutOfBoundsException: -131072 at xlrd.biff.CompoundFile.<init>(CompoundFile.java:282) at xlrd.biff.File.<init>(File.java:86) at …

Software Development java unix
Member Avatar for pooja3107
0
395
Member Avatar for laguardian

Hey guys! So I'm making simple PetShop program based on an UML diagram I did. Anyway, I have 4 classes: PetShop(It's the main class), Pet, Customer, Transaction. I'm having an error on line 22 saying it cannot find symbol. I have the adopt() method in the Transaction class. Here's what …

Software Development java
Member Avatar for laguardian
0
203
Member Avatar for Farhan_8

#include <iostream> #include <cstdio> #include <conio.h> using namespace std; main() { FILE *fp, *ft; char another, choice; struct student { int id; string name; int age; char gender[7]; string address; string blood_group; string doc_name; int amount; char op_tr[1]; }; struct student e; int xid; int recsize; int ifound; fp=fopen("users.txt","rb+"); if …

Software Development c++
Member Avatar for David W
0
220
Member Avatar for darkocean

Dearl all, Is there any way or codes for export dataset or datatabe to excel file. Whenever I use click event in the button, it will save my report in an excel file. My information inside in datatable (dataset) from database and I want to save it in excel file. …

Software Development dataset microsoft-office
Member Avatar for du_1
0
3K
Member Avatar for Prabhu_3

Write a function in C++ which accepts an **2d array and its size** as arguments/parameters and exchanges the values of *first half side elements with the second half side elements of the array.*

Software Development c++
Member Avatar for David W
0
93
Member Avatar for kouty

A strange phenomenon! What is this number 8! We are in the 2.7 version of Python. **MY CODE ** x = raw_input("write a list! utilisation of raw_input ") y = input("write a list! utilisation of input ") print x, "resultat of rawinputation" print y, "resultat of inputation" **My input and …

Software Development python
Member Avatar for kouty
0
948
Member Avatar for goowee

Hi VB Wiz, I have a data that is currently displayed in row, but i need it to display in one column. this is how currently look like set1 [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] set2 [lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname][lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] set3 [lastname/firstname] [lastname/firstname][lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname][lastname/firstname] [lastname/firstname] [lastname/firstname] [lastname/firstname] …

Software Development visual-basic
Member Avatar for BitBlt
0
164
Member Avatar for larin83109

Hello again dear Daniwebians, I am asking for some ehlp again. I wrote a littel cript as part of my assigment. My script does what it is suppose to do, but when I run it, it does not end on its own, I have to stop it by "killing" the …

Software Development shell-scripting
Member Avatar for cfajohnson
0
277
Member Avatar for sunshine1020

Please ,could you explain this sentence The wins should be input in a parameter-less value returning function that returns the wins to the main function returning function just returns value and does not print message , right ? #include<iostream> using namespace std; int wins(int wins) { cout<<"Please input the number …

Software Development c++
Member Avatar for sunshine1020
0
718
Member Avatar for Lee21

[QUOTE] How will i close all the forms within my main form? Everytime I click on the menus of my main form,I'm setting my main form as MDI-Parent form and then loading a new form as it it is the child form if I'm not mistaken. I have a log-out …

Software Development vb.net
Member Avatar for Mike_25
0
6K
Member Avatar for danibootstrap

I am getting this error. LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library serialtest.obj : error LNK2001: unresolved external symbol "void __cdecl fastICA(double * *,int,int,int,double * *,double * *,double * *,double * *)" (?fastICA@@YAXPAPANHHH0000@Z) Debug/vctest.exe : fatal error LNK1120: 1 unresolved externals Error executing …

Software Development c
Member Avatar for Moschops
0
337
Member Avatar for alex0220

Hello I need help with this java tax assignment it is asking to Write the Java code needed to perform the following:• Calculate state withholding tax at 6.0%, and calculate fed-eral withholding tax at 25.0%.• Calculate dependent deductions at 2.0% of the employee’s salary for each dependent. public class Payroll.Java …

Software Development java
Member Avatar for Schol-R-LEA
0
450
Member Avatar for alex0220

Hello I need help with this java tax assignment it is asking to Write the Java code needed to perform the following:• Calculate state withholding tax at 6.0%, and calculate fed-eral withholding tax at 25.0%.• Calculate dependent deductions at 2.0% of the employee’s salary for each dependent. public class Payroll.Java …

Software Development java
Member Avatar for stultuske
0
197
Member Avatar for Baalla

i don't know where is the problem or wha i'm missing here but i'm stuck in an infinite loop when i compile it keep desplaying these two cout cout << "\ntotal weight of neighbors of "<< *it <<" is " << " "<< W; cout << "the selected node with …

Software Development c++
Member Avatar for Baalla
0
264
Member Avatar for mkoliwad

Hi All, I need your valuable suggestion as how to sort the log files based on timestamp. Below is the sample log content. string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data string May 28 22:07:48 2015 Log data I would like to sort based …

Software Development shell-scripting
Member Avatar for mkoliwad
0
240
Member Avatar for whizkidash

Team, Presently i have some 20 files which i need to copy and store in the common directory. below is the example: script name: dir.sh cp /tmp/abc /home/abc/xyz cp /tmp/def /home/abc/xyz cp /tmp/hij /home/abc/xyz The above script is run, it copies the source files on the destination directory(xyz), wanted to …

Software Development shell-scripting
Member Avatar for cfajohnson
0
464
Member Avatar for jrp370

hey everyone im making a program that takes a number (n) from the user and then decides if it is prime or not and prints that decision to the screen [CODE] from math import * def main(): n=eval(input("please enter the number you wish to check:")) n=abs(n) if n < 2: …

Software Development python
Member Avatar for vegaseat
0
267
Member Avatar for marsimoi tolesa

Write a program that takes length as input in feet and inches. The program should then convert the lengths in centimeters and display it on screen. Assume that the given lengths in feet and inches are integers. Based on the problem, you need to design an algorithm as follows: 1. …

Software Development c++ display web-design
Member Avatar for Schol-R-LEA
0
443
Member Avatar for lamlomeh

Write a function to take an integer and two character. Your function should draw a shape similar to the one below. For example: DrawShape( 5, '#', '*') Outputs the following *#### #*### ##*## ###*# ####* p.s: (without the(. at the begining) i added cous the shape wont set right if …

Software Development c++
Member Avatar for David W
0
148
Member Avatar for lamlomeh

**5. Consider a data file named STORES.DAT, which contains inventory information for four shops. Each line in the file contains the inventory of five types of merchandize in each store. Write a program to perform the following: (a) Read the data into a two-dimensional array invent(4,5). (b) Produce the output …

Software Development c++
Member Avatar for David W
0
233
Member Avatar for divinity02

Hi every I am doing over my programming final project trying to see where I have gone wrong. And slowly am beginning to see some of my mistakes, I guess I was a bit overwhelmed anyway, the is part is where I was and still a bit confused. What is …

Software Development java
Member Avatar for divinity02
0
360
Member Avatar for danibootstrap

I get this error in a c code of mine error C2440: '=' : cannot convert from 'LPVOID' to 'unsigned char * if((buffer = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, totalBufferSize )) == NULL) { fprintf(stderr, "Memory allocation error\n"); ExitProcess(1); } and even this error C2440: '=' : cannot convert from 'unsigned char …

Software Development c
Member Avatar for Moschops
0
808
Member Avatar for Riya_2

**Part A.** Define a function triangle that draws an equilateral triangle and takes two parameters: 1. t, a turtle object 2. size, the side length of an equilateral triangle **Part C:** Define a function flagLine that takes 3 parameters and draws a line of flags (triangles). You MUST use the …

Software Development python
Member Avatar for vegaseat
0
315
Member Avatar for redleak

I have a problem in updating my textfields in the table I posted in my form. For example for my inventory system, I want the QUANTITY of my products to CHANGE its value everytime SALES are performed. Hope you guys can help. THANK YOU SO MUCH.

Software Development microsoft-access visual-basic
Member Avatar for hefaz
0
6K
Member Avatar for Asira18

#include <iostream> #include <conio.h> #include <string> #include <windows.h> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { char bname[97],number[34],code[22], name[10],bcate[10],pass,book,author,ID,school,course ; char type, address[5],x,department,quantity,choice,date[10],aname[20],btitle[50], bcode[9] ; int getch(); int num1,num2,num3,num4,num5,num6,num7,num8,op,a, ph[20],num,i=0; int …

Software Development c++ mathematics
Member Avatar for Asira18
0
400
Member Avatar for mark103

Hey guys, I need some help with my code because I have a bit of trouble with changing the 12 hours time when I'm trying to change the strings in the object. When I try this: def GoLeft(self): if CurrentRow == 375: if self.channel_page >= 0: # Set the date …

Software Development python
Member Avatar for Gribouillis
0
262
Member Avatar for Fredy_2

#include<iostream> #include<ctime> #include<iomanip> using namespace std; int totcount(int,int,int); //function prototype void sandtype(int&,int&,int&); //function prototype void profitandcost(double&, double& ,int ,int ,int ,int ,int ,int ,double, double); //function prototype //function main begins program execution int main () { int sandwichtype, deliverytime;// declare variables int grandtotalinlbp, grandtotalinusd; int sandwichcost1, sandwichcost2, sandwichcost3; int sandwichretailprice1, …

Software Development c++
Member Avatar for Fredy_2
0
119
Member Avatar for Tcll

ok, so this is a bit complex, I'm writing a bit-field function using a template, which can consist of: field( Template, Value ) field( [1,7,15] ,255 ) #int representation... field( ['1','3','4'] ,255 ) #bit representation... #>>> [1,7,15] field( [1,7,15] ,[1,7,15] ) field( ['1','3','4'] ,[1,7,15] ) #>>> 255 so what I'm …

Software Development python
Member Avatar for Gribouillis
0
549
Member Avatar for savedlema

Hi all! I'm asking this after reading so many articles on the internet about hashing & salting, and the entire theme of securing database connection settings. I'm making an application that uses mysql database. Currently, the connection settings are stored as plain text in the Win Registry. Since this is …

Software Development vb.net
Member Avatar for ryantroop
0
1K
Member Avatar for Saboor880

Hello To All! I have started learning Vb.net. I am using Visual Studio Express 2012. While making a console application, when I write "System.Windows.Forms" to use message box, then compiler gives an error: Class " System.Windows.Forms" is not defined. My compiler only supports two methods of this class 1-)Systems.Windows.Markup 2-) …

Software Development microsoft vb.net visual-studio
Member Avatar for DaveAmour
0
2K
Member Avatar for weekendrockstar

I've searched all over the Net and here on DL but I can seem to find only information on passing a single argument when opening a new form. When I attempt to send more than one I get the "Too many arguments to 'Public Sub New()'" error. I am trying …

Software Development vb.net
Member Avatar for weekendrockstar
0
1K
Member Avatar for altjen

Im trying to make a antivirus prototype for my friend. after some research on youtoobe and google I found this code. have been searching for a while now but most of them are "fake". any suggestion? I want to make a simple and working anti virus software in Heuristic method

Software Development vb.net
Member Avatar for altjen
0
247
Member Avatar for munchlaxxx

Any ideas of how I can have a calendar for all 12 months print for any year? The user inputs the year and the day of the week for January 1st of that year. (Sunday = 0, Monday = 1, etc.) *Important*: I cannot use cases. (That's what I've mostly …

Software Development c++
Member Avatar for 0igo
0
17K
Member Avatar for pars99

Everytime I link a `webview` into my OS X project, it always brings up `Use of undeclared type 'WebView'`. How am I supposed to fix this? I've tried linking the WebKit framework and things like that, but they never worked.

Software Development objective-c os-x
Member Avatar for vegaseat
0
355
Member Avatar for BustACode

In my quest to learn more regarding programming in Python, I "dissect" a lot of other people's code. While doing this, or writing my own code, I end up with 10's of debug print lines. Things like this: if v_Debug == 1: print("DEBUG - ".format()) # DEBUG If I decide …

Software Development python
Member Avatar for Mark_37
0
276
Member Avatar for BustACode

I, and many others, desired a "switch" keyword in Python. For me it was to a desire to make some of my code more compact and readable, as I often have many user selected options for the code to weed through. So I set off on a journey to figure …

Software Development assembly python visual-basic
Member Avatar for Mark_37
0
603
Member Avatar for junzz31

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click If Me.dgvData.Rows.Count > 0 Then If Me.dgvData.SelectedRows.Count > 0 Then Dim intPName As Integer = Me.dgvData.SelectedRows(0).Cells("Name").Value If Not cnn.State = ConnectionState.Open Then cnn.Open() End If Dim cmd As New OleDb.OleDbCommand cmd.Connection = cnn cmd.CommandText = "DELETE FROM POS …

Software Development vb.net
Member Avatar for DaveAmour
0
298
Member Avatar for Mark54

Hello, people. A newbie here... sorry. A hired programmer (who doesn't use Windows) is writing a Python thing for me, On my Windows 7 PC, I installed Python v 3.4.3, and he says that I need to install certain non-standard modules... lxml, requests and xlwt from http://lxml.de/ http://docs.python-requests.org/en/latest/ https://pypi.python.org/pypi/xlwt Trying …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for Slavi

Hey guys, I am debugging some random files trying to get into gdb and I came accross a question how many machine instructions are used for this : `double x, dx, ans;` I guess I could see based on memory addresses and the size of double that 3 variables are …

Software Development c
Member Avatar for Slavi
0
130

The End.