132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pars99

I keep running this code and it works until I press the button, `findShapeCalc()`, and then I get EXC_BAD_INSTRUCTION in the main.swift at the line `NSApplicationMain(C_ARGC, C_ARGV)`. Why does this keep happening? Code in question: import Cocoa class ViewController: NSViewController { @IBOutlet var dropDown : NSPopUpButton @IBOutlet var length : …

Software Development objective-c
0
187
Member Avatar for abaddon2031

I am working on a code that searches a folder gets a specific part of the file name and adds 1 to a file counter. There are some files in tehre that have a special character that indicates that is is only half. I ahve got it to count the …

Software Development python
Member Avatar for flebber
0
203
Member Avatar for Excizted

Hello Daniweb, I'm rebuilding a Flash-based website in PHP/HTML maintaining the same MySQL database. My problem now is, the user passwords are hashed of course - I need to use the same hash in the new application for old users to be able to still log in. But since the …

Software Development encryption
Member Avatar for Excizted
0
234
Member Avatar for flebber

I am having an error file object when opening and reading a text file(csv). I must be misusing the with so that when I call the function race table its getting a file object and not a readline. How can I get the with to correctly hand over the file? …

Software Development python
Member Avatar for flebber
0
151
Member Avatar for asaidi

Hi can you please help me on this how i can change jcombobox in my frame to jtextfield when i click on next button.. then i get the data from database in jtextfield... thx

Software Development java
Member Avatar for mKorbel
0
190
Member Avatar for wilhemina

I'm trying to search a text file for a string indicating the path of a folder which I will then use as a path to write a text file into. My code above successfully returns the location of the path /home/caars/speech_reg/commands/ to the pointer to find. Now I am trying …

Software Development c file-system
Member Avatar for yunda
0
551
Member Avatar for EnergeticJet

Hello there DANIWEB! Now I know that there are already many different discussions asking for python ideas for beginners, but I thought maybe this could be a discussion for all different abilities. For example, if I wanted to reply with a Beginner idea, I would type: **BEGINNER** And the same …

Software Development python
Member Avatar for DragonMastur
0
384
Member Avatar for mark103

Hi all, I need some help regarding how to cancel the connection from my server using the urllib2 library. I want the database to stop writing the data away as soon as the connection has been cancelled. The `allchannels_timer` will be called when I hit the 'enter' button, which will …

Software Development python
Member Avatar for DragonMastur
0
477
Member Avatar for Brandy_1

Have a program I am writing for class using the pseudocode given. I have written it in a flowchart program successfully, but cannot get it to work properly in VB. It is supposed to show the C for Celsius and F for Fahrenheit, and list the matching equivalents below up …

Software Development vb.net visual-basic
Member Avatar for Brandy_1
0
291
Member Avatar for hwoarang69

how to create groovy client? getting an error, below. ** # start up jboss with following paremater: # ** set JAVA_OPTS= -Djava.rmi.server.hostname=localhost -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=C:\Java\jdk1.7.0\jre\lib\management\jmxremote.password -Dcom.sun.management.jmxremote.access.file=C:\Java\jdk1.7.0\jre\lib\management\jmxremote.access" ** # test jboss is started: # ** http://localhost:9990/ username: abc password: abc1# ** # Groovy script: # ** import javax.management.ObjectName import javax.management.remote.JMXConnectorFactory as …

Software Development client-server java java-swing
Member Avatar for hwoarang69
0
514
Member Avatar for titas.datta

I have a panel where I am drawing images on button click. But on the second button click, the previously drawn image is being replaced by the new Image. void panel_Image_Paint(object sender, PaintEventArgs e) { if (Clipboard.ContainsImage()) { Point p1 = new Point(i, 0); e.Graphics.DrawImage(Clipboard.GetImage(), p1); i += img.Width; } …

Software Development image
Member Avatar for castajiz_2
0
216
Member Avatar for brittney_2

I need to write a class that stores a user-input date as a String in the format mmddyyyy. The constructor validates the input, but it accepts a String input and it tokenizes it into three parts, all int variables and in order to do that I have to tokenize the …

Software Development java
Member Avatar for brittney_2
0
265
Member Avatar for rzzque

I want to Delete every occurrences of Pattern in String. But What's the problem? Please help with the following C Code. #include<stdio.h> #include<string.h> #include<stdlib.h> char* SUBSTRING(char *STRING,int POSITION,int LENGTH); main() { char STRING[100],PATTERN[90]; int X,P; printf("(Input)Enter string & pattern with space between them: "); scanf("%s%s",STRING,PATTERN); X=INDEX(STRING,PATTERN); P=strlen(PATTERN); printf("Output: %d\n",X); while(X!=0) …

Software Development c
Member Avatar for David W
0
309
Member Avatar for Sarkurd

Hi i'm following a book but i don't understand `std::string::size_type` and some other data types specially `typedef` i see programmers use them too much. typedef int grades[5]; grades studenA[5], studentB[5]; and why just not use `int` instead of `size_type` while the result is same. #include <iostream> #include <string> #include <algorithm> …

Software Development algorithm c++
Member Avatar for Sarkurd
0
762
Member Avatar for cambalinho

can i declare functions private in header files? imagine that you use a function declared outside the class and you only want be used only by that class... how can i private that function?

Software Development c++
Member Avatar for mike_2000_17
0
340
Member Avatar for moone009

First off this is my second day writing in Python. My manager switched us off SAS and moved us to Python and R which I actually am starting to like the flexibility. I have a few datasets that I work with on a regular basis that require a lot of …

Software Development python
Member Avatar for moone009
0
7K
Member Avatar for malik10

I have datagridview that is bounded with some data source.... I want that the Datagridview should keep all the rows with their data when i remove its Datasource... I remove its datasource by Mydatagridview.datasource = Nothing.... When i do that... the datagridview clear all rows... Please tell me how to …

Software Development vb.net
Member Avatar for ashley.steenson
0
789
Member Avatar for yaldoo

Okay, I was given this problem, its another of those file I/O streams and I was wondering how I can change this code to be more "efficient" and change a lot of things. I'm having trouble on what I should change and what I should keep. Please help me out …

Software Development c++
Member Avatar for David W
0
2K
Member Avatar for dami06

Hi, I have a problem with a code i have done but i just a problem..If u look at what i have attached and try to run it..It gave me a problem as i am meant to have a menu which is meant to show something inside it but the …

Software Development java qt
Member Avatar for stultuske
0
176
Member Avatar for moaz.amin.37

hello every body. I need a book at java swing package.i am new in java programming and i want to learn GUI so plz help me. i want to download book of herbert schildt. book name swing a beginner guide Author Herbert Schildt

Software Development gui java java-swing
Member Avatar for stultuske
0
352
Member Avatar for kishor.m.n

Hi all, I was just trying to write a simple prog in which i'm trying to add multiple components to a JPanel and inturn i'm adding that to a JScrollpane. Now the problem i'm facing is when i run the prog i can see the contents of the panel(not all) …

Software Development java java-swing oracle perl
Member Avatar for mKorbel
0
10K
Member Avatar for ondegotariq

Hi, Is it possbile to join only specific items in a list using indexes. Lets say I have 100 items,i would only like to join items[1-30]. Please advise.

Software Development
Member Avatar for ondegotariq
0
98
Member Avatar for Rake$h

Hi, i take here, Total = textbox1 + textbox2 + textbox3 + textbox4 + textbox5 if textbox3=textbox1+textbox2; textbox4 = textbox2+textbox3; textbox5 = textbox3 + textbox4 ; in C# pls reply friend's ;

Software Development
Member Avatar for Rake$h
0
94
Member Avatar for nathan.pavlovsky

I was just wondering, what is a good rule of thumb for industrial-grade code when deciding whether to use the std::array template vs a built-in array?

Software Development c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for cambalinho

i'm trying create a class for getting the child controls from it's parent, but without sucess :( class ChildControls { private: vector<HWND> childcontrols; UINT childcontrolsindex; HWND windowparent; public: ChildControls(const HWND parent) { windowparent=parent; //EnumChildWindows(parent, EnumChildProc, 0); } UINT childcontrolscount() { return childcontrolsindex; } HWND GetHWND(UINT index) { EnumChildWindows( windowparent, [this]( …

Software Development c++
Member Avatar for cambalinho
0
1K
Member Avatar for hhm_pro992

Hi! i want ADD empty row in DataGridView............Like This![c9c3e54a6d28a6b686c9dcd1954b1f77](/attachments/large/3/c9c3e54a6d28a6b686c9dcd1954b1f77.png "c9c3e54a6d28a6b686c9dcd1954b1f77") ! When user enter Number in textbox and click button then Add empty rows(as per user input number in textbox) in DataGridView.......... for example :- if user entered "5" in textbox and click button then "5" empty rows will be …

Software Development vb.net
Member Avatar for hhm_pro992
0
3K
Member Avatar for dimi231080

Hello everybody.I am amking a programm in vb net and mysql. My question is the following: i have one main form which it loads ,it loads all the database data in a datagridview.When i press the button"add customer" it opens anew form where i enter the person details.Then when i …

Software Development mysql vb.net
Member Avatar for cgeier
0
685
Member Avatar for yaldoo

Okay, I have another problem that I can't figure out and it has to do with the I/O file stuff. This is the problem: Write a function, CountElement, that receives two arguments: a 2-dimensional char array and the size of the array. This function counts the number of digits, small …

Software Development c++
Member Avatar for David W
0
319
Member Avatar for nathan.pavlovsky

Hello programmers! After covering the basics of STL, I decided to complete the following assignment: `Write a function template palindrome that takes a vector parameter and returns true or false according to whether the vector does or does not read the same forward a backward.` So, for example, a vector …

Software Development c++ mathematics
Member Avatar for NathanOliver
0
1K
Member Avatar for Đăng

This is my code. It runs but not thing happen #include <windows.h> #include <iostream> #include <string> using namespace std; void CreateFolder(const LPCWSTR path) { if(!CreateDirectory(path ,NULL)) { return; } } void main() { LPCWSTR x; string s = "E:\\data\\"; x = (LPCWSTR)s.c_str(); CreateFolder(x); }

Software Development c++
Member Avatar for Ancient Dragon
0
181
Member Avatar for Papa_Don

I need to dynamically group rows together in an EXCEL worksheet. The obvious choice to do this will be VBA. I hope you can help. My spreadsheet has 18 columns and (up to) 5,000 rows of data. I've written the following code which works "OK" however it fails to group …

Software Development microsoft-office vb.net visual-basic
Member Avatar for Papa_Don
0
5K
Member Avatar for vram

Hi, I would like to use gtkmm within codeblocks, but I don't know how to install it. I installed both packages, but probably Codeblock has to be said where to find the includes and the libs to link. Could someone tell me which files (or only directories?) has to be …

Software Development c++
Member Avatar for vram
0
76
Member Avatar for kiail

Hello, I have a device (a control relay board). I have it hooked into my home network and I have a different network that I would like to be able to access the device to control it. I have the mac address of my device and my ports are forwarded …

Software Development
Member Avatar for kiail
0
291
Member Avatar for Praveen_10

I have not completed the code ...but why am i getting error inside while loop saying cannot convert string to int...when i am not converting string to int namespace book { public partial class car : Form { public car() { InitializeComponent(); } void FilCombo() { SqlConnection conn = new …

Software Development open-source
Member Avatar for Praveen_10
0
201
Member Avatar for Rabastan

After a lot of research I have figured out (sort of) How to get and then set then screen saver time out using VB.Net. What I have doesn't seem to be working. I have managed to figure out that what I have done is VB6 code and not VB.Net. I …

Software Development vb.net
Member Avatar for cgeier
0
1K
Member Avatar for Ben_7

write a c++ program to find the divisors of a positive integer number 'n'. the program should accept input of the positive integer number from the user

Software Development c++
Member Avatar for rubberman
0
242
Member Avatar for iConqueror

If a object can have multiple references which can have their own state, does this mean that references are also objects themselves? I only ask this because because references have their own individual definitions of the objects fields that are not shared between other references.

Software Development
Member Avatar for ChrisHunter
0
134
Member Avatar for bigredaltoid

Hi guys and sorry if this is the wrong forum. I am messing around with visual studio and trying to make a picturebox move around on a form when a user clicks a directional button on the form. I am able to move the picturebox any direction I want by …

Software Development c c# c++ visual-studio
Member Avatar for bigredaltoid
0
252
Member Avatar for holo12

I have array of objects how to iterate throw this array and delete some objects depending on the condition: ArrayList<Book>b=new ArrayList<Book>(); for(int i = 0 ; i < b.size ; i ++){ //if some condition //remove b.get(i); } what should I do??

Software Development java
Member Avatar for holo12
0
120
Member Avatar for terence193

I am trying to make a function that rounds number.. I declared the function above the main and voided it Then I recalled the function in the program and listed the variables needed in brackets and then I wrote the function I can't work out what is wrong. [ICODE]#include<stdio.h> #include<math.h> …

Software Development c
Member Avatar for panpwintphyu.loo
0
240
Member Avatar for kazekagerandy

i want to make a textbox suggest all possible inputs based on a certain column in my database. for example, i have a country column in the database and i want my textbox to display all countries from my database column that starts with P when i type it and …

Software Development vb.net
Member Avatar for bikithalee
0
12K
Member Avatar for Vikram_2

Hello all, I have a Hindi Text file, from which i want to access the maximum repeated words and other similar operations. I went through many articles which help in accessing English text files. But i need to use the same operations on the Hindi text file, i am not …

Software Development python
Member Avatar for Gribouillis
0
2K
Member Avatar for suria.kunanathan

hi i am a vb with datagrid view on it displays all the data from my database however i want to put a option to add where the user can select the date from when to when and it displays the data. at the monet i have use this code …

Software Development vb.net
Member Avatar for cgeier
0
181
Member Avatar for castajiz_2

I ve been searching for various algorithms for the past few days and I came accross this one. Is this the right solution to it (Greedy algorithm), or am i missing something. static void Main(string[] args) { int[] array = new int[71]{ 72, 79, 84, 46, 14, 4, 62, 88, …

Software Development algorithm
Member Avatar for castajiz_2
0
788
Member Avatar for cambalinho

RegisterHotKey is for we use the combined keys and the WM_HOTKEY message. i use these function for use the alt combination... but i need ask: can i re-regist the combination keys?

Software Development c++
Member Avatar for cambalinho
0
148
Member Avatar for krystosan

Hi need help passing an argument through signal emitted from a function at module level, when the function is executed I want to emit a signal with an argument whose value i want to pass to the method that is connected to that signal in the class in that same …

Software Development python
Member Avatar for woooee
0
338
Member Avatar for zhoudavid

Once I use an IDE to compile my C++ code, this IDE seems know everything of my code: I could find the most original definition of any element in my code, no matter how deep it is from usage to definition. the IDE seems know: 1.my code logic 2.my code …

Software Development c++ ide
Member Avatar for mike_2000_17
0
262
Member Avatar for bananacat

First off, I'm sorry if this is gonna be some noobish question. I need advice for managing my multiple windows application forms. I'm programming C#, aided by Visual Studio 2013. Class Program.cs This contains the main method, where everything begins, and everything ends. static class Program { /// <summary> /// …

Software Development c c# c++ visual-studio
Member Avatar for cgeier
0
391
Member Avatar for Mr.M

Hi Dw I'm making a pos app and I would like to know if the jpos can control the device which is controlled by xfs written software. The xfs has commands in this format: AFD000 CDMOpenSafeDoor which is for opening the safe door when dispensing or should I also convert …

Software Development java
Member Avatar for Mr.M
0
152
Member Avatar for kirtee2209

Hi. I have a Windows form and when it loads focus should be on a combo box. This works correctly but the visual indicator (dotted rectangle) does not appear on the combo box though it has focus. I can confirm that the focus is there as I am able to …

Software Development asp.net windows-vista-7-8
Member Avatar for kirtee2209
0
258

The End.