43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pars99

Everytime I press the button, it's supposed to change the label, but it doesn't. It also doesn't see that I have made any connections. Please help. Thank you in advance. AppController.m: #import "AppController.h" @implementation AppController -(IBAction)sayHello:(id)sender{ [label setStringValue:@"Hello World!"]; } @end AppController.h: #import <Foundation/Foundation.h> @interface AppController : NSObject{ IBOutlet NSTextField …

Software Development objective-c
Member Avatar for pars99
0
250
Member Avatar for Labdabeta

I quickly threw together a drawing program in SDL and I am having a couple of issues with lag. The program lags really hard when the size is larger than about 700x700 pixels, and I cannot find anything other than a couple of SDL_BlitSurface calls to the 'image' surface in …

Software Development c++ seo
Member Avatar for Labdabeta
0
208
Member Avatar for khiemkim.xuan

0 down vote favorite Does anyone know a simple way to get the attribute of an obsolete marked methods with NDepend? Obsolete["This is outdated"] //TODO, I want the string!! So any ideas on how to get the string using NDepend?

Software Development
Member Avatar for Begginnerdev
-1
114
Member Avatar for kiail

Okay, so I've created an array that is defined by the user input, they enter a number to determine the amount of elements, then they put in the value of said elements. My program is supposed to remove duplicates from this array. This is what I have so far, it …

Software Development
Member Avatar for kiail
0
226
Member Avatar for nathan.pavlovsky

Hello Programmers! I am making a program that demonstrates the difference between passing by value to a function and passing by reference. My code is below: #include <iostream> using namespace std; int squareByValue(int); void squareByReference(int&); int main() { int x=2; int z=4; cout << "x= "<<x<< " before squareByValue"<<endl; cout …

Software Development c++
Member Avatar for nathan.pavlovsky
0
207
Member Avatar for MasterHacker110

Every time I want to write an encryption program, say RSA algorithm. I have to re - invent the wheel and design the key generation and all those small things my self. Now latly I heard abou AES algorithm and that it is so secure and a lot more stuff. …

Software Development algorithm c++ encryption visual-basic
Member Avatar for MasterHacker110
0
234
Member Avatar for Wolfenstien

Hi! Im new to Java and iv been studying GUI's in it. Just started with swing and tried to make this giu for a calcularot. but it doesnt execute and gives me "java.lang.NoClassDefFoundError" error. im a total noob so i cant figure it out. i'd really appreciate it someone could …

Software Development gui java java-swing
Member Avatar for Wolfenstien
0
273
Member Avatar for MasterHacker110

I wrote a very simple encryption program, well the algorithm is simple but there is one thing I am strugling with. Basicly after the user's key is generated the program will write it to a file. Then when the user want to decrypt the encrypted file, the file with the …

Software Development algorithm c++ encryption ios
Member Avatar for MasterHacker110
0
202
Member Avatar for london-G

Hello, I am storing an image in the database. I would like to know how can I resize the image before actually saving the image. I have a form with a label, a button and a text field to store the image path.Here is my code public void SaveImage() { …

Software Development image java
Member Avatar for JamesCherrill
0
290
Member Avatar for saleem.mukhtiar

Friends .. how my code working fine with two buttons (PDF and RTF) but the last portion for HTML converting its not working .. please help Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports System.Diagnostics Imports System.IO Public Class Form1 Dim myReportDocument As New ReportDocument Private Sub Form1_Load(ByVal sender As System.Object, ByVal e …

Software Development html-css pdf vb.net
Member Avatar for saleem.mukhtiar
0
1K
Member Avatar for Lp_baez

If the program is being run the "cin>>answerBoss;" runs just fine but right after that input the program skips the next input that reads "cin>>overTime;" I can't figure out what is causing this to happen.

Software Development c c# c++
Member Avatar for Nutster
0
253
Member Avatar for vedmack

Hi, I'm looking for an java api which can convert .doc file into .pdf file... i need this solution to work without any intervention of MS Office/Windows. If anyone have any idea about such api , please reply. Thanks ahead Daniel

Software Development api java pdf windows-api
Member Avatar for stultuske
0
3K
Member Avatar for Phrren

I can't figure out why I'm getting this error, i've checked all the posts I can find here and they are all a method inside another method, which i'm pretty sure I don't have. This is the error message it gave me: Exception in thread "main" java.lang.RuntimeException: Uncompilable source code …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for kartik_2

ExecuteNonQuery;how i can solve this error

Software Development vb.net
Member Avatar for Eternal Newbie
0
115
Member Avatar for kiail

Hello, I am currently making a program that sorts user input of age and name. If a user inputs their name and age, all out of order, how would I go about sorting this from oldest to youngest or youngest to oldest? I have this so far: Ages[] ages = …

Software Development
Member Avatar for kiail
0
248
Member Avatar for kindofsudden

I have a combobox that is bound to a DB and works great. However, when the user adds a value to the table to which the combobox is bound, the combobox keeps the old value and adds the current items in the table. In this case the table originally held …

Software Development vb.net
Member Avatar for kindofsudden
0
367
Member Avatar for GeekPlease

Hello folks, I'm currently studying how to use LinQ in VB.NET but I guess I'm stock. I'm using VS 2008 version (framework) 2.0 Anyone who can help me get through this??

Software Development asp.net vb.net visual-basic
Member Avatar for GeekPlease
0
288
Member Avatar for Banfa

Given this header // header.h #include <string> namespace company { namespace module { class ProjectConstants { public: static const int CONSTANT1; static const std::string CONSTANT2; }; } } and this source file // header.cpp #include "header.h" using company::module::ProjectConstants; const int ProjectConstants::CONSTANT1 = 10; const std::string ProjectConstants::CONSTANT2("Hello World"); Are ProjectConstants::CONSTANT1 and …

Software Development c++
Member Avatar for mike_2000_17
0
232
Member Avatar for m_ishwar

Hey guys is there a funtion in python that enables to output values to a bin files? Just like storing strings in .txt files, can we store hexadecimal values directly into .bin files? I am working using Python 2.7.3

Software Development assembly file-system python
Member Avatar for m_ishwar
0
316
Member Avatar for PratikM

Sup guys, Its been a while since I've been on this but I have a question regarding If statements and strings. I am trying to create a program and I need the user input (yes/no) so i am using strings for that. The problem that I'm having is that whenever …

Software Development java
Member Avatar for JeffGrigg
0
130
Member Avatar for IsaacMessi10

Hey guys so how can I actually make a Tab Control using [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfUFM0R2tBUDFpQUE/edit?usp=sharing) image as an active tab and [this](https://docs.google.com/file/d/0Bx-ETTSBtAAfRElBUnkyWkphMkk/edit?usp=sharing) one as an inactive tab. I've already read something about Drawing Tabs but I didn't quite understand it. Thanks.

Software Development vb.net
Member Avatar for IsaacMessi10
0
476
Member Avatar for VikashS_

Greetings everyone, I am just starting out with C and I am stuck with a question in my book. It says the following: x=1; y=1; if(n>0) x=x+1; y=y-1; printf("%d%d"x,y); What will be the values of x and y if n assumes a value of a) 1 and b) 0. Now …

Software Development c
Member Avatar for VikashS_
0
136
Member Avatar for piczim

I would liketo know how to set the number of decimal places in the below code to 2. #include <stdio.h> #include <math.h> #include <string.h> int main() { int a =2; int b =4; int c =6; int d =8; int currencyOption; printf("\n *********************************************"); printf("\n *********************************************"); printf("\n ** Enter the number …

Software Development c
Member Avatar for ddanbe
0
170
Member Avatar for adil.ghori

Hello ! I have a script, that i m running on visual C++ compiler everything is alright with it, working properly but in the result, I can see on one digit after decimal, not 2, i wanna display two digit i.e 31.02 ; Code is; # include <iostream.h> # include …

Software Development c++
Member Avatar for adil.ghori
0
387
Member Avatar for eldiablo1121

Hello, First of all I want to thank all the help with my posts. I have a program where I have to convert a phrase from lower case to upper case, but I cannot use any of the toupper() isupper() functions and vice versa. I think I almost got it, …

Software Development c++
Member Avatar for eldiablo1121
0
2K
Member Avatar for eldiablo1121

Hello, I have a program assignment that I have no idea what it's asking for honestly. I've tried to read all I can about it, but I do not understand. I tried my hand at some code, but it's only returning the address of course. Here is my attempted code: …

Software Development c++
Member Avatar for eldiablo1121
0
425
Member Avatar for joshl_1995

Hello Community, I'm trying to make a way to post data to my php file located on my website, I tried it on my Windows 8 laptop; it worked fine, then tried it out on my Windows 7 laptop and for some reason it won't work. I have gone through …

Software Development vb.net
0
192
Member Avatar for Pallab.Bhk

Hey I have dictionary like following one dicts = {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]'],'met_309': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_387': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} I want to remove keys which have same value like 'met_293' and 'met_309' those two keys have same value at 12th position which is '[KG]EHY' so i want my dictionary like this {'met_293': ['81.0175','4','7','7','29.76','23','1','0','22','28.57','2','[KG]EHY'],'met_394': ['79.9579','4','7','7','29.76','18','3','0','15','28.57','2','EHY[ILV]']} any …

Software Development python
Member Avatar for Pallab.Bhk
0
488
Member Avatar for Vixion

Hello there, I want to get all checked checkbox on the form. I always wasting my time to checking it one by one. There is a way to do this? Best regards vixion

Software Development visual-basic
Member Avatar for star.tamy.7
0
581
Member Avatar for murali2489

Hi All, I have created a Class named Stock and have declared three Constructor . First constructor with no parameter, second constructor with three parameter, third with Two parameter. When I call my constructor inside a System.out.println(constructor); , it should display the variable Values right ? . but instead it …

Software Development java
Member Avatar for murali2489
0
198
Member Avatar for christinetom

Would anyone know where I could get a really extensive coverage of pre-processor directives? There are plenty of websites but the information is limited. Was hoping there was a complete source like a book out there. Thanks everyone.

Software Development c++
Member Avatar for rubberman
0
190
Member Avatar for Eternal Newbie

Is there a way to set a window to the top on screen and set focus on it? I'm having a menu in VB.Net calling a bunch of .exe. Everytime a window apears, it runs itself to the top on screen. But there was a window, problem-able one, with some …

Software Development microsoft vb.net
Member Avatar for Eternal Newbie
0
14K
Member Avatar for pooh1234qwerty

#include<stdio.h> #define CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..??

Software Development c
Member Avatar for JasonHippy
0
178
Member Avatar for modaresi

Right now, this program asks the user to enter the input infile and outfile file names. Then it gives an error if it can't open the file. If it can open infile, it reads the first value and consider that as the array size. After that it continues with other …

Software Development algorithm c++ file-system open-source
Member Avatar for Ancient Dragon
0
418
Member Avatar for somjit{}

[this](http://docs.oracle.com/javase/tutorial/uiswing/examples/components/TextComponentDemoProject/src/components/TextComponentDemo.java) is the code i was looking at.Its about how to use JTextPane and related swing text Components along with actions and keymaps. my question is that in this part textPane = new JTextPane(); textPane.setCaretPosition(0); textPane.setMargin(new Insets(5, 5, 5, 5)); StyledDocument styledDoc = textPane.getStyledDocument(); if (styledDoc instanceof AbstractDocument) { doc …

Software Development java java-swing oracle
Member Avatar for somjit{}
0
222
Member Avatar for kindofsudden

Okay, I'm pulling my hair out. I'm getting NO error on the following code: Dim cmd As New OleDb.OleDbCommand("CREATE TABLE [" + empTableName + "] ([ID] DOUBLE, " & _ "[LnameFname] TEXT(255), " & _ "[Location] TEXT(255), " & _ "[SalaryOld] DOUBLE, " & _ "[FtePercentage] DOUBLE, " & _ …

Software Development vb.net
Member Avatar for kindofsudden
0
252
Member Avatar for ron117

Hi experts, Im Ron and i have just recently started using VB and have written a small application for sending SMSes. Code: Imports System.Net Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) End Sub Private Sub Button1_Click(ByVal sender As Object, ByVal e As …

Software Development api file-stream vb.net windows-api
Member Avatar for ron117
0
288
Member Avatar for modaresi

Here is what I want this program to do: Be able to calculate mean, standard deviation, and median. Data should be sorted using insert sort first though. The program must be able to accept input from an input file and print a report to an output file. These files are …

Software Development algorithm c++ file-system open-source
Member Avatar for modaresi
0
533
Member Avatar for MichaelRyan

Hi folks...get into the wayback machine. :) I have a VB6 program I'm drastically modifying due to vendor API changes. This isn't my natural language, so I have to hack around every time I change things. Problem now is that the program won't end. I know it hits the END …

Software Development api visual-basic
Member Avatar for GeekPlease
0
388
Member Avatar for ogsirus

Hi, I just finished making a program which displays all the files in a directory and lets me open them when selected. What I find is that I get every file found in the directory however not divided by sub-directory, is there a way i can do this showing it …

Software Development
Member Avatar for ogsirus
0
212
Member Avatar for kilermage

[Click Here](http://www.upload.ee/image/3396246/newerror1.jpg) This is what I get when I run the code. Please help me fix this. EDIT: A lot has changed since 2008 so idk how to upload the image so I just made a link for it.

Software Development java
Member Avatar for kilermage
0
205
Member Avatar for MasterHacker110

I am trying to display the files and folders in a directory. And if the folders have a nother folder, display those contents also, and so on. I have this code but it isn't working the way I would like it to: #include <Windows.h> #include <string> #include <iostream> using namespace …

Software Development c++ display
Member Avatar for Ancient Dragon
0
321
Member Avatar for Mr.M

Hi DW I'm creating an ATM program and now I want to call the Dispensor to dispense the selected amount from the options provided. The main problem here is importing this `import atm.input.CashDispenser; ` the rest of the code is fine. here is the full code: import atm.input.CashDispenser; import java.util.Scanner; …

Software Development java
Member Avatar for Mr.M
0
144
Member Avatar for Jacklittle01

I am trying to make a system for my game in which the player's enemy has a decreasing amount of health. My shell output is here: Cannon Fired! Enemy Health= 8 Cannon 1 ammo = 10 The enemy fired back! Your health is now 12 Fire your choice of cannon! …

Software Development python
Member Avatar for Jacklittle01
0
150
Member Avatar for chint

I was using the following code to enter an image url at `TextBox1` and display it in `PictureBox1`.Everything worked. But suddenly the displayed image quality is lower than the original link. I've tried `PictureBox1.Load(TextBox1.Text)` and changing `SizeMode` still the same result. Imports System.Net Public Class Form1 Dim client As WebClient …

Software Development image vb.net visual-studio
Member Avatar for chint
0
519
Member Avatar for Rahul47

I dont know what caused such a filenames and i am not able to remove these files. $ ls A????cd new????cat> >> A A????cd new????cat ????A Desktop Downloads file.sh menu.sh new new1.sh new.sh Pictures rename Videos A????cd new????cat |A A?echo A Documents even.sh filetest.sh Music new1.lst new.lst palindrome.sh Public Templates …

Software Development shell-scripting
Member Avatar for Rahul47
0
209
Member Avatar for Rahul47

I was just writing a program for armstrong number till a given range. Something wrong with this code ? #include<stdio.h> #include<conio.h> void main() { int num,range,temp; int rem,sum=0; printf("Enter upper range: "); scanf("%d", &range); // Checking is a number is armstrong of not. printf("Armstrong are:"); for(num=10; num<=range; num++) { temp=num; …

Software Development c
Member Avatar for Rahul47
-1
199
Member Avatar for somjit{}

i saw the docs for both .. but found the terms a bit hard to get. i was hoping to get some simple answers here. thanks for your time :)

Software Development java
Member Avatar for somjit{}
0
327
Member Avatar for Learner010

how to create controls(like button , textbox) dynamically , i want to create these for 10 or may be more than 10 times . so i think i have to go through loops and probably i can do that but the problem is that how to create controls in runtime. …

Software Development vb.net
Member Avatar for Learner010
0
415
Member Avatar for roybillstrom

I am writing a picture viewer to reside in "Program Files" directory. I then right click on a picture file in any other directory and use "Open with" to optionally chose my viewer. I know how to do all this. But how do I send to my program the path …

Software Development vb.net
Member Avatar for roybillstrom
0
93

The End.