132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BobFX

Hi, I'm using a Form generated application. Its definition starts with: [code]public ref class Form1 : public System::Windows::Forms::Form { public: Form1(void) {[/code] When I'm inside one of its method, I can use calls like: [code]this->StartPosition = FormStartPosition::Manual;[/code] thanks to the this pointer. How can I do this kind of calls …

Software Development c++
Member Avatar for BobFX
0
124
Member Avatar for monkey_king

Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()' The following program wont allow to allocate more that 2.1gig memory. [CODE=c++] #include <stdio.h> #include <stdlib.h> #include <err.h> #include <fcntl.h> #include <sysexits.h> #include <unistd.h> …

Software Development c++ ubuntu unix
Member Avatar for monkey_king
0
145
Member Avatar for Mitja Bonca

I inserted a value of DateTime into database, like "26.12.2009 11:50:00" . Is it possible that the reader will read only the time of a day from this, without date? So far I did only that it reads everything, date and time: [CODE] string myTime = Convert.ToDateTime(dataGridView1.Rows[IndexVrstica].Cells[0].Value).ToShortTimeString(); DateTime myTime2 = …

Software Development
Member Avatar for eeyc
0
3K
Member Avatar for sidd.

hi i have a file that i have to read byte by byte. i m using the read method but its not working this is what i m doing byte[] str=new byte[12]; [CODE] for(i=0;i<lenght_of_file;i++) { sr.read(str,i,1); } [/CODE] i cant figure out y itz nt workin. thanx

Software Development
Member Avatar for eeyc
0
838
Member Avatar for monkey_king

I've been programmin on and off for some time. But today I saw something I hadnt seen before Some thing like [CODE=c] void error OF((const char *msg)); void gz_compress OF((FILE *in, gzFile out)); #ifdef USE_MMAP int gz_compress_mmap OF((FILE *in, gzFile out)); #endif void gz_uncompress OF((gzFile in, FILE *out)); void file_compress …

Software Development c
Member Avatar for jonsca
0
137
Member Avatar for deonis

I am trying to develop a function for my application which would use already opened file (fin) and read certain line from it. Each line in the text starting from given keywords (pos1). Finally this function should return a print of all line containing the keywords pos1. But apparently "linecache" …

Software Development python
Member Avatar for deonis
0
272
Member Avatar for hdk

Hi All, I am very new to python Gui programming and am trying to create a simple Gui which will get a set of results from an sql query which goes into Oracle and display these results in the text box below. If u can also help me get the …

Software Development gui oracle python
Member Avatar for Stefano Mtangoo
0
351
Member Avatar for LemonLemon

I am a beginner of c++ I just built a very simple Hello World program but nothing output to the screen what's the problem? Thanks in advance. Here is output message: 'HelloWorld.exe': Loaded 'D:\Visual Studio 2005\Projects\HelloWorld\debug\HelloWorld.exe', Symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded. 'HelloWorld.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded. …

Software Development c++ visual-studio
Member Avatar for restrictment
0
148
Member Avatar for Teethous

Hello. I am writing an ATM program for a project, but I am having problems matching the users entered pin with what is stored on the text file. Here is how i read the file [CODE]import java.io.File; import java.util.Scanner; import machine.*; import javax.swing.JOptionPane; public class FileRead { Transactions query = …

Software Development file-system java java-swing
Member Avatar for Teethous
0
154
Member Avatar for Carrots

Hi, I'm trying to construct my first Doubly Linked List, but am having trouble compiling. This is my program: [B]main.cpp :[/B] [code=c++] #include <iostream> #include "node.h" #include "doublylinkedlist.h" using namespace std; int main() { system ("PAUSE"); return 0; } [/code] [B]node.h :[/B] [code=c++] class Node { public: Node *pointertonextnode;//pointer to …

Software Development c++ linked-list visual-studio
Member Avatar for jonsca
0
356
Member Avatar for Diamonddrake

I would like to create a overridden picturebox control that accepts a colormatrix as a property, and when the picturebox is drawn it uses that colormatrix. This is to cut down on drawimage GDI calls that are slowing down my app. I would love to turn 2 into 1, and …

Software Development
Member Avatar for Diamonddrake
0
515
Member Avatar for Amonod

Hello. I am currently reading c++ primer plus 5th edition and I've become stuck at Chapter 13, Exercise 1, which is on class inheritance. The classes looks like this: [CODE] class Cd { ..... public: ... virtual void Report() const; .... }; class Classic : public Cd { .... public: …

Software Development c++
0
76
Member Avatar for new programer

hello all, I've posted an old version of the following code before but I was not clear on my question or the title of the problem [for that am sorry] I did changes on the code now I have no errors but it does not do what I want .. …

Software Development c++
Member Avatar for new programer
0
103
Member Avatar for CrazyProgrammer

Hi, Could somebody please show me and example of how to iterate through an n-nary tree, where I do not know what n is and n could be different for every node ie the root node could have 3 children and each child might only have 2 children etc, I …

Software Development c c# c++ data-structure
Member Avatar for john.double
0
224
Member Avatar for EllenHeijmans1

I have a problem with a combobox and no page on the Internet has been able to help me so far. So I hope that one of you can. I have a form (with information about clients) with textboxes binded to a dataview. One of the columns in the dataview …

Software Development dataset vb.net
Member Avatar for sem.live
0
94
Member Avatar for timtianchen

[CODE]int main(){ string array[][]=get_element(2,3); return 0; } string get_element(int numrow,int numcol){ string result_array[numrow][numcol]; for (int i=0;i<numrow;i++) { for (int j=0;j<numcol;j++) { result_array[i][j]=" "; } } return result_array; //ERROR is on this line } [/CODE] I get error: conversion from ‘std::string (*)[(((long unsigned int)(((long int)numcol) + -0x00000000000000001)) + 1)]’ to non-scalar …

Software Development c++
Member Avatar for monkey_king
0
148
Member Avatar for timtianchen
Member Avatar for matthewl

Lets say I have two functions that I want to run simultaneously for different purposes as example a function handles an XML RPC requests and the other function handles an IRC connection to an IRCD. what my goal would be to avoid program hang ups on user requests. Is pthreads …

Software Development c xml
Member Avatar for gerard4143
0
112
Member Avatar for nigelmercier

Hi guys, I'm pretty much a C newbie, but I've dabbled in other languages over the years. For my current project I'm using mikroElektronica Pro C on a PIC microcontroller. I've got a 2-dimensional array defined like this: [CODE]const char FONTTABLE[96][5]= { {0x00,0x00,0x00,0x00,0x00}, {0x00,0x00,0x5f,0x00,0x00}, {0x00,0x07,0x00,0x07,0x00}, /** [90 rows snipped] **/ …

Software Development c
Member Avatar for gerard4143
0
143
Member Avatar for SoulMazer

So...I have just begun to whet my appetite for Java today, and I have already run into a stumbling block. When I put my code in a .java file and compile it (via javac), I receive no errors. However, when I actually run my script, I receive quite the nasty …

Software Development ide java
Member Avatar for peter_budo
0
207
Member Avatar for kde

How can I do it - with pointer and only one loop ? for exmpl function - unsigned int dif(const char *str) [CODE] counter = 0; for(i = 0; i < N; i++) A[i] = 0; do { A[tmp % 10]++; tmp /= 10; } while(tmp); for(i = 0; i …

Software Development c
Member Avatar for gerard4143
0
104
Member Avatar for lewashby

In the following program, why do I need to use the name "player" rather than a regular counter like "i"? I ran the program this way and it prints out the last element in players for how ever many player elements are in players. I want to know what's going …

Software Development python
Member Avatar for jcao219
0
113
Member Avatar for joshbeebe

How do you take input from a user and use that input to determine what information in a class to use. Here's an example that doesn't work, but hopefully you understand what I am trying to do from this. [CODE] class hello { string name; int size; }; int main() …

Software Development c++
Member Avatar for Bench
0
302
Member Avatar for Kruptein

the code on my localhost and on the server are completely the same (django), but it is not shown correctly; I include two screenshots What could be the cause of the difference? (the left one is the online server; the right one is the localhost)

Software Development python
Member Avatar for hondros
0
325
Member Avatar for marirs07

hi,I'm currently working on a program in C++.I have a string for ex "Hello Hai How are you" When i print it using outtext im not able to get the output same as that of the string, the new line character"\n" is replaced by some other special charecter,and is printed …

Software Development c++
Member Avatar for Lerner
0
318
Member Avatar for rmsagar

How to convert dd-mmm-yyyy (01-Jan-2009) to dd/mm/yy (01/01/09) using python functions.

Software Development python
Member Avatar for vegaseat
0
201
Member Avatar for tqmd1

Dear Experts Please modify UPDATE codes according to INSERT codes Style. 'Insert Codes [CODE] Dim cmd As New SqlClient.SqlCommand("Insert Into employees (sno,Name, city, phone,img) Values (@sno,@Name, @city,@phone, @img)", con) cmd.Parameters.Add(New SqlClient.SqlParameter("@sno", SqlDbType.Int)).Value = Val(Me.TextBox1.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@name", SqlDbType.VarChar)).Value = Trim(Me.TextBox2.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@city", SqlDbType.VarChar)).Value = Trim(Me.TextBox3.Text) cmd.Parameters.Add(New SqlClient.SqlParameter("@phone", SqlDbType.VarChar)).Value = Trim(Me.TextBox4.Text) cmd.Parameters.Add(New …

Software Development vb.net
Member Avatar for sknake
0
109
Member Avatar for eva yang

what can i get from object.attribute? what does it do? Thank you :)

Software Development python
Member Avatar for vegaseat
0
132
Member Avatar for NargalaX

Hey, I'm making a little program that will talk to you using fixed sentences etc., and I want to make it able to do math. How would I be able to check if a string contains + - * / and also contains numbers? and then furthermore, once I have …

Software Development regex
Member Avatar for sknake
0
111
Member Avatar for apease11

I am working on a program that can read, write, and export files, these functions all work fine and are almost perfected. What I would like to do now is to be able to choose a file and tell it to "Open With" (In the Right-Click Context Menu on Windows …

Software Development
Member Avatar for sknake
0
142
Member Avatar for punter999

hello Seniors, i am new to python development.i have started my internship in that language. can any one provide me the code that show me how to add subtract and multiply matrices in python.??? what will be the code if i want to take input from the user to enter …

Software Development python
Member Avatar for vegaseat
0
150
Member Avatar for farag

Hello every one, i have small question, How to add reference automatically in all projects which i create in Visual Studio like System, System.Collections.Generic and others in Console Application Projects Thanks in Advance

Software Development visual-studio
Member Avatar for sknake
0
153
Member Avatar for HelpMeIT

Simply put i would like to open a new form as simply as possible using a button i looked at this [URL="http://www.daniweb.com/forums/thread99518.html#"]http://www.daniweb.com/forums/thread99518.html#[/URL] but it confused me i dont want any values passed on i just simply want it to hide the old form and open then new form can this …

Software Development gui pascal
Member Avatar for House_of_Dexter
0
2K
Member Avatar for swapneelearth

Hi,im here for d first tym and also for d frst tym ever in any forum.im very much intrstd 2 learn C#.bt i dnt knw in wich way i should start.i dnt knw any othr language.is it possible for me 2learn C#??? any gud heart thr pls pls help me.thank …

Software Development c#
Member Avatar for ddanbe
0
127
Member Avatar for startstop123

As you know there exists Mobile Banking for all Banking Domains. Everyone can do their banking from their Mobile devices. So I like to create a Desktop Application for banking on Windows. Users can do their banking like making and viewing transactions, credit card information, Saving accounts, current accounts, demat …

Software Development java
Member Avatar for startstop123
0
266
Member Avatar for Mitja Bonca

How can I simply do a list of hours - a date schedule (from 0 to 24) in a listView, that 1st column would show hours seperated by 30 min, 2nd column then will be filled with the name who will reserved that hour. Something like that: [URL="http://img189.imageshack.us/img189/5023/clistview02.jpg"]PICTURE[/URL].

Software Development listview
Member Avatar for Mitja Bonca
0
140
Member Avatar for new programer

hello all.. I have been working on a code to deal with cryptex .. please take a look at it and tell me what am doing wrong if you may.. here's the code: [CODE]//This program takes the number of rings, the unlocking word and the secret word in the form …

Software Development c++
Member Avatar for Agni
0
156
Member Avatar for jagdish kasta

Hi, I am traying to set font for datagrid whole column but thare is no any easy way to do it in vb6... please help

Software Development visual-basic
Member Avatar for vb5prgrmr
0
94
Member Avatar for NativeCode

I seem to be getting an error in this code gdb tells me the segerror is comming from the code: data[dpos]+=cmd[d]; [CODE]//Strip tags data[0]="";data[1]="";data[2]="";data[3]=""; dpos=0; for(int d=0;d<cmd.size();d++){ if(cmd[d]==';'){ dpos++; } else{ data[dpos]+=cmd[d]; } } cmd=""; //end strip[/CODE] Could anyone please tell me whats going on?

Software Development c++
Member Avatar for NativeCode
0
131
Member Avatar for cthoes

[below structure contains s1[i].name contain array of string name. to check if user entered name in that array list. i need to compare words by words. but my problem is that since string is stored in array. and string itself is an small array. so i dont know how can …

Software Development c
Member Avatar for cthoes
0
164
Member Avatar for badboy00z

[QUOTE=vegaseat;250820]This little code shows 6 random integer numbers from 1 to 50 ... [code]import random print "show 6 random integers from 1 to 50:" for k in range(6): r = random.randint(1, 50) print r, print [/code] Rewrite the code to make sure there are no duplicate numbers amongst the six …

Software Development python
Member Avatar for badboy00z
0
860
Member Avatar for sanfan49er

Hey i have a problem with my C# problem under the class cars. On each public declaration it is saying that it already contains a definition for 'idNumber', 'make', 'model', 'color', and 'cost'. I am using windows visual basic, here is my code. [code=csharp] using System; using System.Collections.Generic; using System.Text; …

Software Development visual-basic
Member Avatar for Kalimuthu_S
0
226
Member Avatar for er.imran2006

Want to merge multiple text file items into a single text Please give code Thanks in advance Imran Ahmed <EMAIL SNIPPED>

Software Development c
Member Avatar for peter_budo
0
104
Member Avatar for dreamygirl

Hey guys, I'm working on my DBMS project,it's about creating a visual basic application that links the user to a database. I've created the connection and added the dataset with the relations i've made in MS access. Since i'm a beginner in visual basic,i've come up with this simple layout: …

Software Development dataset display visual-basic
Member Avatar for abu taher
0
118
Member Avatar for BobFX

Hi, I need to convert some C# code into C++. It starts with: [code=c#] Dictionary<string, ListViewItem> mItems = new Dictionary<string, ListViewItem>(); [/code] I can't find a full example in the C++ Visual Studio documentation. How do I declare a Dictionary object? A small example would be appreciated. Thanks.

Software Development c++ visual-studio
Member Avatar for BobFX
0
1K
Member Avatar for cabsjonel

hi! folks merry christmas and happy new year to all of you ahhm! i have problem in using the .bas module i mean declaring global varibles from it, I try several times to use the variable that i declared in .bas module but did not work so can you help …

Software Development visual-basic
Member Avatar for abu taher
0
97
Member Avatar for a9m2i11t

Hello Everybody....... I am a student of M.C.A. 3rd sem. and I received an assignment on making "Project on Placement Cell " from my college , but i don't know what i have to do in this project...... can you please help in creating this project.... Please tell me from …

Software Development visual-basic
Member Avatar for abu taher
0
105
Member Avatar for Pamilerin

Please I have a little problem with my project. It goes "A polynomial of degree n is represented as Pn(x)=A0 + a1x + a2x^2 + … + anx^n Where a0, a1, a2, a3 , … , an are constant coefficients. Evaluation of such polynomials may be important if Pn(x) is …

Software Development c
Member Avatar for vinodxx
0
111
Member Avatar for kde

how can i do it with one loop? [code] void printMat(const int mat[][N], int n) { int i, j; for(i = 0; i < n; i++) { for(j = 0; j < N; j++) printf("%3d ", mat[i][j]); puts(""); } }[/code]

Software Development c
Member Avatar for jonsca
0
102
Member Avatar for coollife

i created a new folder and took this path and published from windows application to this folder I got three files Project folder Project application manifest setup.exe When i ran setup.exe file i got my winodws application running , but the thing was it didnt got installed on to the …

Software Development
Member Avatar for avirag
0
118

The End.