43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nunos

[code=python] class ExcelDocument(): """ Some convenience methods for Excel documents accessed through COM. """ def __init__(self, visible=True): self.app = Dispatch("Excel.Application") self.app.Visible = visible self.sheet = 1 def new(self, filename=None): """ Create a new Excel workbook. If 'filename' specified, use the file as a template. """ self.app.Workbooks.Add(filename) def open(self, filename): """ …

Software Development python
Member Avatar for nunos
0
195
Member Avatar for esesili

Hi all, I have a simple question. I am working on it for a long time and I feel that I am almost done except for a small problem. As seen below there is a member function of patient class. It takes variables name and visit_duration. In addition to these …

Software Development c++
Member Avatar for Sky Diploma
0
148
Member Avatar for Schoorsteen

Hello, I am having a trouble with the proxy I am making with C++. I am connecting a client to a server trough my program. client talks to my program, program talks to server server talks to my program, program talks to client Like that. However, when I receive something …

Software Development c++ client-server
Member Avatar for Schoorsteen
0
396
Member Avatar for arelius

Hello everybody, I have a datagridview and one of the columns contains dates. I want to loop through the data in the column using this for loop. string StartDate=""; string EndDate=""; string date=""; foreach (DataGridViewRow dgvr in dataGridViewTasksReport.Rows) { date = dgvr.Cells["work_date_col"].Value.ToString(); } But what I want to do is …

Software Development
Member Avatar for arelius
0
2K
Member Avatar for toucan

I'm trying to run a thread until a mouse event occurs, which will trigger an interrupt to the thread. The problem is that I can't get the thread to stop running in an asynchronous way (i.e. to listen is a mouse event occurred). Instead, what happens is that the thread …

Software Development java
Member Avatar for JamesCherrill
0
182
Member Avatar for hemaljoes

In my projects I have several ListView . I ListView I have Checked Boxes ( I have made the CheckBoxes property true in my ListViews.) I can select multiple items in my ListView. What i Want to do now is when i select multiple Items i want to marked those …

Software Development listview
Member Avatar for serkan sendur
0
115
Member Avatar for jonny_java

I have the code at the bottom of this post: Running [icode]abc x = new abc()[/icode] can often take a long time (minutes or longer) and is only ever necessary if flag is true. If I leave the code as it is below, I get a "x cannot be resolved …

Software Development java
Member Avatar for jonny_java
0
115
Member Avatar for darkocean

I am copying excel file to mssql database's table, problem is this : I have some informations in 4 rows but mssql database table has 13 rows. fisrt 4 rows has my information and 4-13 rows has null values. sbccm from 1 to 14. where is the problem I donw …

Software Development mssql
Member Avatar for DdoubleD
0
202
Member Avatar for babbu

[code] frmColourName.ShowDialog() 'adding a customer m_Customercount = m_Customercount + 1 Dim drNewRow As DataRow = m_CustomerDataTable.NewRow() drNewRow("CustID") = m_Customercount drNewRow("Company") = txtCompName.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Telephone") = txtContact.Text.Trim drNewRow("Address") = txtAddress.Text.Trim drNewRow("Email") = btnEmail.Text.Trim Dim counter As Integer = 0 While counter < m_CustomerDataTable.Rows.Count If m_CustomerDataTable.Rows(counter)("Company") = txtCompName.Text.Trim Then MessageBox.Show("This …

Software Development vb.net
Member Avatar for babbu
0
141
Member Avatar for jen140

Hello all. I get a small problem compiling it. And get the next error: \client/windows/handler/exception_handler.h(72) : fatal error C1083: Cannot open include file: 'client/windows/crash_generation/crash_generation_client.h': No such file or directory So how i proceeded : Installed mozilla-build 1.4, reinstalled the windows sdk(to the latest version), and have Visual Studio 2008 Professional …

Software Development c++ open-source visual-studio
Member Avatar for jen140
0
148
Member Avatar for dzhugashvili

I have this code: [CODE] #include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << …

Software Development algorithm c++ microsoft-access
Member Avatar for dzhugashvili
0
144
Member Avatar for esesili

When I compile the code below it generates more than 30 syntax errors. It does not make sense. The problem is probably somewhere in [CODE]Patient(string name_of_patient, int age_of_patient, string address_of_pat, double visit_duration_ofp, string ssn_of_patient, Doctor &doc);[/CODE] but I could not figure out the problem. I know it is not convenient …

Software Development c++
Member Avatar for StuXYZ
0
130
Member Avatar for Rezant

I've been working on a project for a few days now and have hit a part of the project that I don't know how to fix. I have a propertygrid control on the form and buttons that create controls when pressed. Here's how I am creating the controls:[CODE=C#] private void …

Software Development
Member Avatar for Rezant
0
156
Member Avatar for Democles

Basically the idea is to center a string. I selected the total length to equal 80. I know there is no fail safe placed into this program. I know there is another way to do this. I am stuck in a way. The program works, but I think I am …

Software Development c++
Member Avatar for TimeFractal
0
13K
Member Avatar for DAWNIE

Hi guy, I currently having problem saving my drawing into the sql database. Can I get some help here pls. my current codes: [CODE] Imports System.Data Imports System.Data.SqlClient Imports System.IO Imports System.Drawing Imports System.Drawing.Drawing2D Public Class Page_2 ' for GCS TABLE Private value_GCS As Integer = 0 Dim value_Eyes As …

Software Development open-source sql vb.net
Member Avatar for DAWNIE
0
2K
Member Avatar for yuguang

My program doesn't make it pass these lines on one computer: [code] import re, os, glob, time os.chdir('/Software/xampp/htdocs/catalog/temp') file_list = glob.glob('Full-EP*.txt') file_dict = dict([(os.stat(a_file).st_mtime, a_file) for a_file in file_list]) date_list = list([key for key, value in file_dict.items()]) s = file_dict[max(date_list)] datePattern = re.compile(r'^Full-EP(\d{4})(\D{3})(\d{2})-(\d{2})(\d{2}).txt$') webdate = datePattern.search(s).groups() metadata = os.stat('WEB-Price-List.txt') dbdate …

Software Development python
Member Avatar for yuguang
0
117
Member Avatar for Vermillion

I'm trying to make a simple program to improve my use of pointers (because I suck very badly at that), and I was doing fine, until I found this problem: -- HEAP CORRUPTION DETECTED: after Normal block (#155) at 0x007D18F0. CRT found that the application wrote to memory after end …

Software Development c++
Member Avatar for mrnutty
0
1K
Member Avatar for ryno365

Hello. I'm a new c++ user after having used Java for a few years as well as php. I'm having trouble with strings and how they can be used with classes. This is what my runner.h file looks like [CODE]#include <string> #include "TestApp1.h" #ifndef RUNNER_H using namespace std; class Runner{ …

Software Development c++ visual-studio
Member Avatar for ryno365
0
113
Member Avatar for MrDiaz

I can connect from the services window but whenever I try to set the code myself on my app it tells me it cannot connect to the database. Here's my code: [CODE=java]import java.sql.*; public class LogBook { public static void main (String[] args) { connectToDB(); } // Connect to the …

Software Development java mysql
Member Avatar for MrDiaz
0
177
Member Avatar for MrDiaz

Hi, I've been thinking of ways of creating an application that involves working with data, what would be the best way to accomplish this? With the JavaDB, MySQL or plain text files? The project is fairly simple, the idea at least. It's a set of records for students, each student …

Software Development java
Member Avatar for MrDiaz
0
79
Member Avatar for Alexar93

Hello i'm new here and I hope you can help me :) I've made a bootloader in assembly that's starting up my kernel. The code for the bootloader looks like this: [code] ; 3.ASM ; Load a program off the disk and jump to it ; Tell the compiler that …

Software Development assembly
Member Avatar for Alexar93
0
107
Member Avatar for Geekitygeek

Hi, This may be a simple issue, but im gettin nowhere trying to fix it. I have a form with a picturebox, the picturebox shows a map of our greenhouses. I want to be able to create clickable areas on the image. I have created a class to store each …

Software Development
Member Avatar for ddanbe
0
119
Member Avatar for darangho

Hi, all Is there a way to get strings line by line from tk Text box? I know there is readline for files, but i don't see anything like that for tk Text box. Only thing i see is text.get(float(index1), float(index2)) but it seems unhelpful in my case, although it …

Software Development python
Member Avatar for bumsfeld
0
130
Member Avatar for 666kennedy

i have 2 arrays controllerlist[11] and taglist[5] i need to compare them so that i can find any elements that match, is there a way of doing it instead of nested for loops?

Software Development
Member Avatar for wildgoose
0
267
Member Avatar for etm9413

Hi all, here is a simple question. How would you get a C# STRING representing the current time in the following format: YYYY-DD-MM I am currently using DateTime.Now but that gives me something like this: 8/13/2009 12:57:47 PM So I want to 1) remove the houre (I need date only) …

Software Development c#
Member Avatar for etm9413
0
118
Member Avatar for Adeel89

Hi, I am trying to wrap a simple C++ class called math and export it to VB.NET using a DLL made in VC++ 2008. The implementation for the wrapper functions is as follows: [code=CPP] void * _stdcall CreateMath() { return new math; } void _stdcall DestroyMath( void *Math ) { …

Software Development c++ vb.net
Member Avatar for Adeel89
0
470
Member Avatar for poncho4all

Well basicly the problem is that i have to call the function push while the char that is asked for is not '0' then i have to send the modified "*top" and "*temp" into the function POP so that i can show the values and do the deleting of the …

Software Development c++
Member Avatar for poncho4all
0
101
Member Avatar for darkocean

Hello to everybody, My application has some problem yesterday but I solved them but today, again it has same problem. [code=c#] Excel.Worksheet sheet = (Excel.Worksheet)excelWorkbook.Worksheets.get_Item(bolge); Excel.Range ran = (Excel.Range)sheet.Rows[satir, Type.Missing]; ran.Select(); ran.Delete(Excel.XlDirection.xlUp); [/code] It gives an error message : Select method of range class failed. I did not solve this …

Software Development
Member Avatar for darkocean
0
123
Member Avatar for atch

Hi, Could anyone explain to me why this works: [code = c++] #include "stdafx.h" #include <iostream> using namespace std; class A { public: A() { a = 0; } int a; }; void change(A* source, A* destination) { destination = source; } int _tmain(int argc, _TCHAR* argv[]) { A* ob1 …

Software Development c++
Member Avatar for kvprajapati
0
130
Member Avatar for romes87

Hi, I am new in Daniweb. I am trying to do a simple task in Python but cannot figure out how it works. Keeps getting it wrong. Basically, I have a main GUI class App which has 2 entry boxes where you fill two numbers, a listbox where the results …

Software Development gui python tkinter
Member Avatar for romes87
0
3K
Member Avatar for SoulMazer

Ok, I really hated to resort to threading, but it seems like I have no other choice. I am writing a client script for the "instant message" server I just finished writing. Sadly, I am having a slight problem with threading. What I would like to do is have two …

Software Development client-server gui python tkinter
Member Avatar for SoulMazer
0
156
Member Avatar for nandakv4

hello, i am trying to store some values in an array dynamically. doing this as i dont want to over allocate memory to my array. so the code goes as follows:: [code] #include<stdio.h> #include<stdlib.h> int *p; main() { int i; for(i=1;i<6;i++) { p= (int *)malloc(sizeof(int)); *p++ = i*i; } printf("\n …

Software Development c
Member Avatar for nandakv4
0
96
Member Avatar for palavi

Hi All, If i protect a sheet then I am getting this runtime error stating Run time error '1004' Application-defined or object-defined error Its not highlighting where is the error .. can anybody help me please i have deadline by today evening.. thanks

Software Development visual-basic
Member Avatar for palavi
0
135
Member Avatar for Stefano Mtangoo

Hi, I want to Load .dll library on my program. I was using LoadLibrary and GetProcAddress which is tedious work. I saw somewhere Idea of using .lib files but have no clue. I have used google but I got lost. Please help me :( Codeblocks 8.02 MINGW 3.4.5 Windows Vista

Software Development c++ windows-vista
Member Avatar for Stefano Mtangoo
0
231
Member Avatar for zachabesh

Hi all, I'm trying to mimic an html form that calls a script on the web. When I put the form together on a page, it works, and I was wondering if there was a way I could "scrape" this post request and see what I'm missing when I try …

Software Development html-css python
Member Avatar for zachabesh
0
99
Member Avatar for willygstyle

Hello, I'm working on a new little project that moniters a configuration file. Everything seems to work great except for when I attempt to do some error handling. The configuration file simply looks like this. # third sets the lights # 0 = off, 1 = on, 3 = lights …

Software Development python
Member Avatar for willygstyle
0
114
Member Avatar for Schoorsteen

Hello everyone, I am dealing with this problem that I receive a buffer from a client, and when I try to output what the client sends to my program, it only shows everything till the first zero character. [code=C++] #include <cstdio> #include <winsock2.h> #include <iostream> #include <string> using namespace std; …

Software Development c++
Member Avatar for Schoorsteen
0
342
Member Avatar for tig2810

Hi all I'm literally begging for help here. I have a program that as part of other things, executes a batch file. In visual studio 2008,it works fine either either as debug or release. If I execute it fro the debug/release directories it works fine. if I copy the debug/release …

Software Development visual-studio
Member Avatar for tig2810
0
205
Member Avatar for snakay

Hi All, I know c# has limitations on assigning null values to datetime and integer value types. But is there any trick I can utilize. I'm converting my appl. from another dec. tool wher I have no null issue, to c#. What I want to do is ; I populate …

Software Development
Member Avatar for snakay
0
92
Member Avatar for 666kennedy

i have this code ... [CODE] namespace ConsoleApplication1 { class watchmove { private static string myString = string.Empty; static void Main(string[] args) { myString = System.Configuration.ConfigurationSettings.AppSettings["DestDir"]; Run(); } [PermissionSet(SecurityAction.Demand, Name = "FullTrust")] public static void Run() { string[] args = System.Environment.GetCommandLineArgs(); // Create a new FileSystemWatcher and set its properties. …

Software Development
Member Avatar for sknake
0
501
Member Avatar for ashish2234

i AM really new at java and i have just created a very simple diesign of something that is static but should play mp3 files, loaded the required jmf as well ...I want when i click on the jtable and then play song starts playing ..its is not happening here's …

Software Development java java-swing
Member Avatar for ashish2234
0
105
Member Avatar for lotrsimp12345

and how i would go about fixing it? main [code] #include <iostream> #include "Format.h" #include <fstream> using namespace std; int main() { Format format; //string word; char in; ifstream infile; bool a=true; bool b=true; bool c=true; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' …

Software Development c++ ios
Member Avatar for lotrsimp12345
0
142
Member Avatar for agent154

I don't get this.. I was able to use it the other day without issue, but now when I use it, the "message" that I put into the paramater doesn't get printed out to the console, and I get an error box saying "Program has stopped working. Windows is checking …

Software Development perl
Member Avatar for agent154
0
165
Member Avatar for atch

Hi, Just wonder is there any way to display enum as enum not as integer? Thank you.

Software Development c++
Member Avatar for wildgoose
0
96
Member Avatar for Piya27

Hi All, I need to change the style of the first row in an excel sheet(that is created dynamically) in VS 2008. I tried using Excel.Style in vb.net but cudn't seem it working. any help?

Software Development vb.net
0
72
Member Avatar for goody11

Hey, I'm having some troubles with my hangman game i'm making. I want it to display dashes for the number of characters that there are in the word which that part works fine. but then if they guess the right letter, I want the dash to be replaced with the …

Software Development algorithm api c++
0
72
Member Avatar for Salem

This is a catalogue of some experiments on just two aspects of undefined behaviour. This was inspired by yet another long bout of explanation in a recent thread, so I thought it was time to dust off a bunch of compilers, and compare. This is the test code. [code] #include …

Software Development c ubuntu
Member Avatar for frk
4
585
Member Avatar for Ana D.

Hi, I'm trying to bind a DropDownList in the code behind using the following code: [CODE]Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("myServer").ConnectionString) Dim selectCMD As String = “SELECT name, id FROM Clients WHERE name LIKE @name + ‘%’” Dim selectCMD As New SqlCommand(selectSQL, DatabaseConnection) selectCMD.Parameters.Add(New SqlParameter("@name", SqlDbType.VarChar)) selectCMD.Parameters("@name").Value = name Dim adapter …

Software Development vb.net
Member Avatar for Ana D.
0
86
Member Avatar for FJones

I have been trying this for days now and I am not even sure if I am going about this right. I've got errors errors errors everywhere. What I am trying to do is write a windows app that maintains a contact book that can hold up to 20 entries. …

Software Development app-store file-system
Member Avatar for DdoubleD
0
219
Member Avatar for darkocean

I have a excel file and I want to find what I need the ID which is first colomn. The excel file is 4 sheets and fisrt colomn is ID on them. Problem is this : I know only and only ID but I dont know this ID which sheet …

Software Development
Member Avatar for darkocean
0
652

The End.