132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for J-P1988

Hey i try to work on custom signal but i get an compiling error: QObject::connect: No such signal QLabel::changerSignal() in ..\textbasedrpg\FenPrincipale.cpp:173 But i seem to write exactly same thing in header and .cpp »That an big moment i try to see what i do incorrect but can't find. Same an …

Software Development c c# c++ qt
Member Avatar for Banfa
0
502
Member Avatar for irtza

These are two simple programs. In first program, i used static array, while in second program i used dynamic array. Both programs do the same job i.e. initiaze the array by asking the user to enter the their test scores. The problem is: 1)i have read in many books that …

Software Development c++ motherboards-cpu-ram
Member Avatar for vijayan121
0
4K
Member Avatar for ram619

Hello, the output of this code is 'ef' but if we add up a "newline" print after this print then the output becomes 'efd'. Then why in earlier scenerio the 'd' was not getting printed ? Thanks in advance. #include<stdio.h> int main() { printf("\nab\bcd\ref"); }

Software Development c
Member Avatar for Rahul47
0
514
Member Avatar for nadiah.izzati

program WaterBill; uses winCrt; type customer=record acct_no:longint; code:char; liter:longint; amount:real; end; var arrayC:array[1..50] of customer; index:integer; loop:boolean; continue:char; arr:customer; PROCEDURE read_data(var data:customer); begin writeln('Customer Info: '); writeln('Account number: '); readln(data.acct_no); writeln('Code(H,C,I) : '); readln(data.code); writeln('Unit of liter: '); readln(data.liter); end; function calc_bill(code:char):real; begin if (code='H') then begin if (arr.liter<=15000) then …

Software Development pascal
Member Avatar for pritaeas
0
200
Member Avatar for fugio

I have a form that FormborderStyle is none put it, after I create forms like resizing the original form, but its default size does not change when scaled how to change the default size of the form? Thank you ! [Click Here](http://vanhuynh.comoj.com/home/all%20pictrure/Ask%20Image/how%20to%20change%20the%20default%20size%20of%20the%20form.png)

Software Development
Member Avatar for crescendo
0
243
Member Avatar for rmad17

I've been trying out python codes looking at the python tutorials at python.org. I've been getting a better idea of it now and the tutorials are very good at teaching practical programming. However, I also want to apply for Python jobs so what a little bit of theoritical information on …

Software Development python
Member Avatar for rmad17
0
313
Member Avatar for intes2010

I want to create two buttons that would pause and resume my backgroundworker but it is giving me an exception error of "Object reference not set to an instance of an object". It seems like the resetevent is not linked with my BackgroundWorker and i don't know how to link …

Software Development vb.net
Member Avatar for intes2010
0
2K
Member Avatar for hisan

Hi All, I need to call a function for evry 10 secs how can i achieve this in python

Software Development python
Member Avatar for 3e0jUn
0
1K
Member Avatar for Rahul47

Recently while solving one thread I was stuck with following problem. Am getting two different outputs for same code. One was executed on my machine and another one on codepad.com. Anyone with any suggestion why this might be happening ? Codepad.com's Output ![7316aa7bc992df41bee38de22b55db18](/attachments/large/4/7316aa7bc992df41bee38de22b55db18.jpg "7316aa7bc992df41bee38de22b55db18") My Machine's Output ![ac76eff29302f4b2d1466525c3675909](/attachments/large/4/ac76eff29302f4b2d1466525c3675909.jpg "ac76eff29302f4b2d1466525c3675909") Thanx.

Software Development c
Member Avatar for Rahul47
0
128
Member Avatar for mesbahuk

In my *Java to C#* Conversion Project, at one point I came to use java's `startsWith(string prefix, int toffset)` method. I used a substring to solve it for C#. Java Code Snippet: String str1 = "one over the coocoo's head"; String str2 = "someone"; System.out.println(str1.startsWith(str2, 4)); C# does not have …

Software Development c c# c++ java
Member Avatar for JoeProgrammer
0
419
Member Avatar for victormesso

Hi guyz I'm trying to create a logIn form in VB6 to check against an access database for login details and grant if the username and password exist in the database or deny access if they don't. Any help Please!

Software Development visual-basic
Member Avatar for rishif2
0
86
Member Avatar for eshajoshi

Hello all, I am having an issue with saving data entry from a vb6 form to a microsoft access 2003 form. Can anyone please help? I am getting the error "Operation is not allowed when the object is closed." I appreciate all your help! Option Explicit Dim cn As ADODB.Connection …

Member Avatar for rishif2
0
641
Member Avatar for nachiketh

dear all, i am trying to enter data into a flex-grid from a text box and combo box by pressing a command button. after that i need to be able to se my data to a recordset. my code works fine when i enter one record but when i try …

Software Development visual-basic
Member Avatar for rishif2
0
195
Member Avatar for sushilsth

Private Sub btnupdate_Click(sender As Object, e As EventArgs) Handles btnupdate.Click Dim myindex As Integer Dim reg As Integer Dim roll As Integer Dim nepaliw As Integer Dim nepalio As Integer Dim mathw1 As Integer Dim matho As Integer Dim mathw2 As Integer Dim engw As Integer Dim engo As Integer …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
189
Member Avatar for Asus93

[Click Here](http://s1146.photobucket.com/user/HTHVampire/media/C%20plus%20plus/Capture2_zps4d967f99.jpg.html) Here's the formula to compute sinx and cosx in C++. here is the code I wrote at first to calculate it: http://codepad.org/cbdGB8wL and it gives me good results. The problem is my lecturer would prefer me to use the formula as attached , but I get stucked, how …

Software Development c++
Member Avatar for Asus93
0
695
Member Avatar for AmrMohammed

Greetings, I cannot understand what the below code do What is the InvokeRequired do? The delegate I do not know much about delegates if (lblError.InvokeRequired) { lblError.Invoke(new MethodInvoker(delegate { lblError.Text = "License management. Information on active license, renewing license and acquiring new ones. Commercial for limited computers"; picUpdatingFormat.Visible = false; …

Software Development
Member Avatar for Momerath
0
145
Member Avatar for james.lu.75491856

How do you get this: ![78dfa722ac966be9e9aa3a44ef62d566](/attachments/large/3/78dfa722ac966be9e9aa3a44ef62d566.PNG "78dfa722ac966be9e9aa3a44ef62d566") with pythoncard?

Software Development python
Member Avatar for vegaseat
0
108
Member Avatar for nikolaos

I want to list all files and directories from a start point using recursion. Here is my code. import java.io.File; import java.io.IOException; public class RecursiveWalk { void recursive (File[] allfiles) throws IOException{ for (File file : allfiles) { if (file.isDirectory()) { System.out.print("directory:"); System.out.println(file.getCanonicalPath()); recursive (file.listFiles()); } else { System.out.print(" file:"); …

Software Development java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Labdabeta

Hello, As may be apparent from my previous posts, I am in a "If its worth doing, its worth overdoing" sort of competition with a friend of mine. Our goal is arbitrary precision integer arithmetic. I think I am close to getting the data storage working, but now I want …

Software Development c++ storage
Member Avatar for Labdabeta
0
1K
Member Avatar for fugio

Hi there ! how to select row from datagridview when column have cells is empty I tried this but nothing worked Please help on this private void selectrow() { int i; for( i=0 ;i<dataGridView1 .Rows .Count -1;i++) { string row = dataGridView1.Rows[i].Cells["Name"].Value.ToString(); if (row =="") { sqlconn.Open(); string sqlquery = …

Software Development vb.net
Member Avatar for ChrisHunter
0
2K
Member Avatar for lexaeterna

i am working on a project and theres a feature that i seemingly want to include, it is the attachment of a word file in an email and the values that are included in the letter are imported from the database using vb.net is there a way to import values …

Software Development microsoft vb.net visual-basic
Member Avatar for G_Waddell
0
322
Member Avatar for n.cramp

Ive actually managed to get DirectX 9 working with Direct X, however i am now getting odd error messages around a function. I can't see any syntax issues myself but thought i'd check to see if anyone can shed any light on it. `g_pd3dDevice->CreateVertexBuffer( 3 * sizeof(CUSTOMVERTEX) , 0, D3DFVF_CUSTOMVERTEX, …

Software Development api c++
Member Avatar for n.cramp
0
309
Member Avatar for satti

How to popup alert message to a 2nd client end when a new data enter in database done by client1 on network ? for example me and my friend using an application for data entry, when i enter any data through software he get an alert message that new data …

Software Development vb.net
Member Avatar for Begginnerdev
0
126
Member Avatar for Mireya B.

Hello, I am using checkboxes for the users to choose one of the options given. My problem is, the checkbox does not uncheck after the data has been inserted into the intended spreadsheet. Means, I have to use command button with clearform instruction to clear the checkbox. How do I …

Software Development vb.net
Member Avatar for kRod
0
400
Member Avatar for tanha

Hi, I have been reviewing and reading the docs for the VLCJ but unfortunately could not come to a conclusion of configuring and running it correctly. It is appreciated if someone placing an example, snippet or tutorial of that.

Software Development java video
Member Avatar for tanha
0
2K
Member Avatar for ComputerFirstAde

Hi Guys, the project im currently creating is a basic form with calculations, which all works great, my task now is to save the form data (labels, textbox data etc) to a word document, now i have achieved it to do this, but i had to specify the name of …

Software Development vb.net
Member Avatar for BigFatMama
0
410
Member Avatar for adity

could any one please help me with the code for creating a MS word document from a record that already exists in the database using vb.Net coding.. thank you in advance

Software Development vb.net
Member Avatar for BigFatMama
0
272
Member Avatar for ddanbe

Could one be preferred over the other in terms of performance? Both option have to traverse the whole array somehow to find out which string contains an 'a'. Or does it not matter much and is it just a syntax thing. Or are there better ways to do this? All …

Software Development apple asp.net
Member Avatar for Ketsuekiame
0
286
Member Avatar for TheSubby

Following this [tutorial][1]: I have created a WP8 Mobile Application and trying to call my WCF web service. When calling the WCF service in the browser, I can see the JSON returned with no problems at all. However, when I call the WCF service in my mobile application, I don't …

Software Development json web-browser
Member Avatar for Ketsuekiame
0
269
Member Avatar for Franze

Hi, I have 2 different applications(Application 1 and Application 2) that have a critical area of code where only 1 application can be a time. The solution I have come up with is to use a lockfile so the application knows about when the other application is in the critical …

Software Development file-stream
Member Avatar for Ketsuekiame
0
3K
Member Avatar for oliverven.quilnet

i installed alchemyAPI with python 2.7 on the desktop and it runs perfectly but when i saved the file to a live server whenever i try running the example files on aclemy i got the error. "Syntax Error near unexpected token `('" I checked the syntax python syntax and its …

Software Development python
Member Avatar for Unimportant
0
469
Member Avatar for Jahliah

Is it possible to simplify the codes below by using while loop? Match firstMatch1 = matches1[0]; Match firstMatch2 = matches1[1]; Match firstMatch3 = matches1[2]; Match firstMatch4 = matches1[3]; Match firstMatch5 = matches1[4]; Match firstMatch6 = matches1[5]; Match firstMatch7 = matches1[6]; Match firstMatch8 = matches1[7]; Match firstMatch9 = matches1[8]; Match firstMatch10 …

Software Development
Member Avatar for Jahliah
0
124
Member Avatar for AmrMohammed

Greetings, I want to get all the last written files in a specified directory based on date and copy them to another directory.

Software Development
Member Avatar for tinstaafl
0
166
Member Avatar for Fangling

Hi, i have this query: cmd.CommandText = "SELECT DISTINCT PaperNo,ModuleCode1,ModuleCode2,ModuleCode3, ModuleCode4, ModuleCode5, ModuleCode6, ModuleCode7, ModuleCode8, ModuleCode9 FROM(PapersList)ORDER BY PaperNo ASC" and i have this code to loop: Dim dt3 As New DataTable dt3.Columns.Add("AdminNo", GetType(String)) '/*Add column AdminNo dt3.Columns.Add("PaperNo", GetType(Integer)) Dim curmodule As String = String.Empty For Each dr2 As DataRow …

Software Development vb.net
Member Avatar for Fangling
0
2K
Member Avatar for Jahliah

I have the following codes and I'm not sure if there's a better or easier way of doing it? Any help appreciated. Thanks! MatchCollection matches1 = Regex.Matches(txt_description.Value, @"\d{2}:\d{2}:\d{2}"); Match firstMatch1 = matches1[0]; Match firstMatch2 = matches1[1]; Match firstMatch3 = matches1[2]; Match firstMatch4 = matches1[3]; td1.InnerHtml = firstMatch1.Value; td2.InnerHtml = firstMatch2.Value; …

Software Development regex
Member Avatar for Jahliah
0
153
Member Avatar for lockdon

I have a python script that take raw_input, stores in a varible and then uploads the input to a database. Iwant to use javascript to create the web front end for this(which I have) but I need toknow how to tie the two together. Any help would be great

Software Development python
Member Avatar for bgeisel1
0
272
Member Avatar for Klahr_R

A simple timer for Excel VBA Excel VBA does not have a timer control. The alternative is to use the Timer() Function, and that leaves much to be desired. This code should be placed in a code module. My need was to tend to an abandoned program that was waiting …

Software Development microsoft-office visual-basic
Member Avatar for Bloodseeker
0
3K
Member Avatar for Fangling

i have dt1 from a query cmd.CommandText = "SELECT DISTINCT AdminNo, ModuleCode FROM(SEGDATA)ORDER BY AdminNo ASC, ModuleCode ASC" Dim dt1 As New DataTable dt1.Load(cmd.ExecuteReader) DataGridView1.AutoGenerateColumns = True DataGridView1.DataSource = dt1 another query dt2 cmd.CommandText = "SELECT DISTINCT PaperNo,ModuleCode1,ModuleCode2,ModuleCode3, ModuleCode4, ModuleCode5, ModuleCode6, ModuleCode7, ModuleCode8, ModuleCode9 FROM(PapersList)ORDER BY PaperNo ASC" Dim dt2 …

Software Development vb.net
Member Avatar for Fangling
0
137
Member Avatar for Frank_5

//Author: Frank R. Mendez //Title: Object Oriented Bubble Sort //Description: Accepts an int array element to sort using bubblesort in ascending order #include <iostream> using namespace std; class BubbleSort { public: void bubble(int arr[], int size); void driver(); void display(); int arr[50]; int array_size; int temp; }; void BubbleSort::driver() { …

Software Development c++
Member Avatar for mike_2000_17
0
4K
Member Avatar for frenchfrog

Hello ! I'm trying to do a similar thing as http://www.daniweb.com/software-development/python/threads/392697/calling-matlab.m-file-from-python. I managed to have Matlab launch, and run my Matlab file as the GUI of my matlab function is shown on screen. However it only stays on screen for 1 second, and Matlab closes ! import subprocess as sp …

Software Development gui python
Member Avatar for Gribouillis
0
2K
Member Avatar for dalebryant76

IF I wanted to change the text inside of a RichTextBox on the click of a button. What code do I need? So far I have: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click RichTextBox1.Text(???? What goes here? because I'm getting Property access must assign to the property …

Software Development vb.net
Member Avatar for dalebryant76
0
197
Member Avatar for kedxu

The setSize() method of a Frame only resizes the frame itself, not the canvas inside. Is there a way to resize a frame based on what size you want the interior to be? I made this image to explain what I'm talking about: I used setSize(500,500); http://oi44.tinypic.com/4uymur.jpg I suppose I …

Software Development java
Member Avatar for kedxu
0
181
Member Avatar for kedxu

If I am given the exact coordinates of three vertices in image-space (as in, the numbers are not integers, but can be rounded to find their location on the screen), how can I determine which pixels are inside the triangle and should be colored? If you look at the diagram …

Software Development java
Member Avatar for kedxu
0
421
Member Avatar for SnehalBPatil

Hello I am working on project In django(Python web framework) where I want to call matlab file(.m ) file from the server. I tried subprocess module from the python [CODE]>>> p = Popen("/Applications/MATLAB_R2009a.app/bin/matlab.exe -nojvm -nosplash -nodisplay -r /home/spatil/LineShapeKin_Simulation_4/LineShapeKin_Simulation_4.1/Matlab_code/Simulate.m",stdout=PIPE)[/CODE] But its giving me following error [CODE]Traceback (most recent call last): File …

Software Development file-system python python-django
Member Avatar for Gribouillis
0
2K
Member Avatar for ram619

Hello, This code is from "Test Your C Skills" Book. In the book they have mentioned that this code won't work, and thats true. But I am not able to understand, why its not working. Please explain why it gives error. #include<stdio.h> #define SWAP(a,b,c) c t;t=a;a=b;b=t; int main() { float …

Software Development c
Member Avatar for ram619
0
195
Member Avatar for MasterHacker110

I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw …

Software Development java javascript oop ruby
0
85
Member Avatar for arthur5645

i am trying to create acalcultor using a c++ program that uses mode. would you please show me how to create a calcultor that uses the mode function using a switch a statement

Software Development c++
Member Avatar for rubberman
0
141
Member Avatar for xXdragon15Xx

Hey, I'm very new when working with %userprofile% ect, The code I have now is. When I press the button VB tell me It cannot find the directory. Please note I've tried %Userprofile%, %userprofile% Nothing will work :/ What's wrong? And How do I go about fixing this. Private Sub …

Software Development vb.net
Member Avatar for xXdragon15Xx
0
2K
Member Avatar for kedxu

So I have a PrintWriter as a class variable which is created upon initialization. I want to make sure it gets closed when the Applet closes, but overriding the destroy() method doesn't seem to work (a System.out.println inside the method does not appear). 1. should I be doing this in …

Software Development java
Member Avatar for kedxu
0
223
Member Avatar for kedxu

Right now I know that Applets can add any listener with the addMouseListener() method. But what I want to know is if I can make my custom class a mouse listener without having an Applet add it itself.

Software Development java
Member Avatar for kedxu
0
95

The End.