43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for iFrolox

Hello everyone, im currently stuck because i'm not sure how to start on this part of my program. What i'll need help is controlling another application, my program is suppose to run another application, and be able to hide it, show it, verify that is running, it also needs to …

Software Development vb.net
Member Avatar for iFrolox
0
3K
Member Avatar for rithish

#include <stdio.h> #include <stdlib.h> void main() { int a[400],n,i; printf("enter the no of elements: "); scanf("%d",&n); printf("enter the no: "); for(i=0;i<n;i++) { scanf("%d",&a[i]); } n=n+1; printf("enter the no: "); scanf("%d",a[n]); for(i=0;i<n;i++) { printf("%d",a[i]); } } i inserted elements after that i again inserted its not working.it shows 0 errors but …

Software Development c
Member Avatar for sfuo
0
90
Member Avatar for lmthuan

Hi all, i want to wite an method that can take a String and return boolean , it should return True if the first character of string is an uppercase . Can not using String Apis ? so how can i do ? thank !

Software Development java
Member Avatar for stultuske
0
202
Member Avatar for aekaette

Hello, I am trying to read values from an excel spreadsheet but just for specific cells at a time; say Cell A1 and B1. Then I want to save the respective values into a variable and use the variable through out the rest of the code. Then loop at the …

Software Development microsoft-office python
Member Avatar for belenos46
0
718
Member Avatar for belenos46

I'm trying to write a string out to a file using File.AppendAllText, but I need to do it several times over the course of the program. I'm not using threading, and to give the file time to close, I'm letting my program sleep for a couple of seconds after it …

Software Development vb.net
Member Avatar for belenos46
0
775
Member Avatar for dot_binary

Hello! After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report. It gives me the error because in my code I have some basic math like this: int …

Software Development c++
Member Avatar for dot_binary
0
304
Member Avatar for myk45

Hello All! I am a little confused about the memory allocated for an executable. Now, say for example, this is my code: int foo = 1; int main() { const char* bar = "hello world"; int num; return 0; } Now, the "hello world" part would be stored in the …

Software Development c++
Member Avatar for myk45
0
300
Member Avatar for triumphost

How can I get SetConsoleTextAttribute to work with my Console? I tried everything. First I redirected the cout and cin buffers so that my console can have input and output. But now it doesn't have Colour :S I used: HANDLE OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(OutputHandle, 10); I don't think GetStdHandle is …

Software Development c++ ios
Member Avatar for triumphost
0
338
Member Avatar for triumphost

How can I create PNG Files from an array of bytes or read a PNG file to create an array of bytes? I looked up the format but it looks nothing like a bitmap and I read the GDI doesn't support PNG's. So how does LibPNG do it then? I …

Software Development c++
Member Avatar for DeanMSands3
0
310
Member Avatar for capton

Hello 'am working in qt creator but have problem running my code. It compiles alright but never executes. And also gives the following message at the output pane 'exited at code -1073741819' Please help me out

Software Development c++ qt
Member Avatar for capton
0
132
Member Avatar for GlenRogers

I have a JTextArea that I need to be able to print off from the printer. This is the kid of text that is in the JTextArea GLEN ROGERS 47 PINE AVENUE, CARRICKFERGUS, BT38 8EE, 07824771114 733KIA 2012/07/03 DEVICE; OTHER - GIVE MAKE AND MODEL PACKARD BELL EASYNOTE TN? WINDOWS …

Software Development java printer
Member Avatar for GlenRogers
0
117
Member Avatar for iamtheuser

I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time? This is my code: string PDFPath = folderpath + filename; string PopupName = "popUp"; …

Software Development asp.net c# java javascript
Member Avatar for krunal1986
0
440
Member Avatar for 3e0jUn

Is there any way to host several txt files on a computer without having to dive deep into socket programming? I have a few requirements, though: * People could connect when the app is running * No inteference of Windows * Instructions on how to create a client side software …

Software Development file-system python socket-programming
Member Avatar for 3e0jUn
0
124
Member Avatar for osiron

Hey guys, So I've been working on a program that takes a student id and name but however I got a weird error saying: error: expected ‘(’ before ‘.’ token error: expected ‘{’ before ‘.’ token and it occurs around the `name_first(firstName), name_.second(lastName)`. I'm having trouble to get the pairs …

Software Development c++
Member Avatar for osiron
0
106
Member Avatar for javanub123

Hey Guys, i just started learning python and havent really done much programming so im pretty new im following a book and I have to read some data from a text file the code thats giving me trouble is os.chdir('Users\spreston\Desktop\HeadFirst\Chapter 3') the error says that the path does not exist, …

Software Development python
Member Avatar for Gribouillis
0
143
Member Avatar for iFrolox

Hi, ok i had a file looking like this: SilkroadR,,321,13,321,Gobi,False,False,False,False,False SilkroadR,,321,321321,321,Gobi,False,False,False,False,False SilkroadR,,213,321,231,Gobi,False,False,False,False,False SilkroadR,,3251325,3215,3251,Gobi,False,False,False,False,False SilkroadR,,,,,Gobi,False,False,False,False,False I encrypted it and it looks like this: Hdgr6oHm47q2SC5AEjqUY9Boi5WfUT5FTfLvMVYLtorgmufM5GiH6wMg12raZ/YpW/OPZ7bL94wbSWiauy59nrEHlJdO3o1voedaWb/XV7lxNzbUURqDgGtkpr6Ex++d0YAA4sCnkB/GcDtuFd+vqF2IJoI3cC+WKPF73zM5eNz6mJd1hjZK+40je7/LbUyU7JQ8nmvBpEy7J391xM5X5dfKlNziYahufdVsxbO8mTAosQcEZ8JtUoJg2ZWjXO8nPqDci8iy/JgBYnd8Z4fpbfwY5jKwTrq2+TW9k/+I2F9PXUT6OzUUTk4tRFfvWVXBFj/C5s60puxaYJQxgzUzKE2yWls4N3qk3TcZBH1kKCB8h0lS69X77mOxJ0ixkOm1a+deaIWXsBfFHq8ej30ShH2WFf09iAr3 Ok, thats what i wanted, i used to load my accounts like how it looked before the encrypting with this code: Dim iCount As Integer = CInt("0") …

Software Development encryption vb.net
Member Avatar for TnTinMN
0
141
Member Avatar for godzab

I am new to Linux, and C++. Usually when I used Java, I could just use javac Something.java and run it using java Something. How do I compile my own c++ code without the help of an IDE? Also I am using Linux Ubuntu 12.04

Software Development c++ ide ubuntu
Member Avatar for godzab
0
646
Member Avatar for GlenRogers

Can someone point me in the right direction for formatting text and aligninng text in a JTextField? Thanks...

Software Development java
Member Avatar for GlenRogers
0
2K
Member Avatar for MasterHacker110

I know that it generates a public key and then a private key. You encrypt with public and can only decrypt with private key. How is this algoritm going to work in a C++ program, how am i going to compute the public key and then the private key? Also, …

Software Development c++ encryption
Member Avatar for np complete
0
196
Member Avatar for ktsangop

Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, …

Software Development c++ java windows-api
Member Avatar for ktsangop
0
825
Member Avatar for jdseader

The following four classes are an attempt to set up three different JFrames and switch between them. The three frames are: MainView, DetailView, and FormView. The main class is MultipleFramesExample. The four source codes constitute a NetBeans project with a package called FrameViews. MainView, DetailView, and FormView are essentially identical …

Software Development java java-netbeans java-swing
Member Avatar for JamesCherrill
0
4K
Member Avatar for shouvik.d

Hi, I have a Win32 Console Application which is throwing the Debug Assertion Failed! .. _CrtIsValidHeapPointer( pUserData ) and followed by a Debug Assertion Failed! .. _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). After I did a Step by Step Debug strangely what I saw was it is throwing error once it is exittin the main …

Software Development c++
Member Avatar for atoutsweb
1
1K
Member Avatar for I_m_rude

hi, My question is about the const keyword. union emp { char name[]; int age; float salary; }; const union emp e1; int main() { strcpy(e1.name,"H"); printf("%s",e1.name); e1.age=45; printf("%d",e1.age); printf("%f\n",e1.salary); return 0; } I know this code has error which is that "cannot modify constant objects". But Can anyone tell …

Software Development c
Member Avatar for I_m_rude
0
136
Member Avatar for I_m_rude

hi, int a[][2]={1,2,3,4}; int *p[]={(int*)a,(int*)a+1, (int*)a+2}; for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d ",*(*(p+i)+j)); Firstly, This is part of any code. And i want to ask that in *p[] definition, why it is written (int*) with every element since a is already an pointer. Secondly, when I am accessing *(*(p+1)+1) element in loop, then …

Software Development c
Member Avatar for I_m_rude
0
126
Member Avatar for Pyler

I wanted to write a simple program that uses classes but I've been running into errors. Anyone have a clue as to what is wrong with my code because I can't seem to figure it out. #include <iostream> #include <iomanip> #include <cmath> using namespace std; class cone{ private: double radius; …

Software Development c++ oop
Member Avatar for Rashakil Fol
0
255
Member Avatar for vbmanDan

Eventually i want to load names from a database to textboxes which are created at runtime. Thought i'd try just getting names into a listbox first though as i'm new to using databases in vb and for some reason nothings getting added to the listbox Heres the code iv'e got …

Software Development open-source sql vb.net
Member Avatar for daniel955
0
204
Member Avatar for Vish0203

How to define multiple characters using macros?? I want to declare all the hexadecimal digits under a name "hexa". Does anyone know it how to do that?? The below code is wrong! Any suggestions to make it correct?? #define hexa 'A','B','C','D','E','F','0','1','2','3','4','5','6','7','8','9' #include<stdio.h> int main() { char a; printf("Enter a character= …

Software Development c
Member Avatar for Vish0203
0
137
Member Avatar for iFrolox

Yea, i've made a lot of threads xD well, im learning and im doing things for different projects. Is there a shorter way to change the backcolor of the textboxes instead of doing this: Private Sub TextBox1_GotFocus(sender As Object, e As EventArgs) Handles TextBox1.GotFocus Me.TextBox1.BackColor = Color.FromArgb(65, 65, 65) End …

Software Development vb.net
Member Avatar for iFrolox
0
2K
Member Avatar for kingkactuar

I'm writing a program in MARS that encrypts/decrypts a string with a simple addition/subtraction method to each character according to a 4 digit key such as '2848.' I'm now trying to navigate through each character in a string and just increase the decimal count by 1 just to test it …

Software Development assembly
0
125
Member Avatar for shanki himanshu

Why the program is running without line 14? #include<stdio.h> #include<iostream> //#include<conio.h> //#include<math.h> #define FOR(i,a,b) for(int i=a;i<b;i++) using namespace std; int main() { int a[]={1,2,3,4,5,6,7,8,9,10}; int *b; //b=(int *) malloc(sizeof(a)); b=a; //cout<<b; FOR(i,0,10) cout<<b[i]<<" "; //cout<<sizeof(b); //getch(); return 0; }

Software Development c
Member Avatar for shanki himanshu
0
100
Member Avatar for Topiary

Hi guys! How I can include BoxedApp.dll for my Java - project? Is it really?

Software Development java
Member Avatar for Topiary
1
93
Member Avatar for MasterHacker110

I have this code and when ever i try to put in the value 'e' it doesnt want to take it, the program freses. #include <iostream> #include <string> #include <fstream> using namespace std; int encrypt(); int decrypt(); int phi, M, n, e, d, C, N, D, answer, p, q, s; …

Software Development c++ encryption ios
Member Avatar for MasterHacker110
0
130
Member Avatar for soapyillusion

Hello all, I recently started working with java, and I have been in the process of creating a new game for use on Android operating systems. I have at least 90 percent of the game fully conceptulized and at least 30 percent of it already in actual code. However I …

Software Development android java operating-system
Member Avatar for soapyillusion
0
110
Member Avatar for godzab

Why can't I use inline functions with my setter method in c++. Here is the code: Main.cpp #include <iostream> #include "Employee.h" using namespace std; int main() { Employee h; h.setAge(30); h.setSalary(70000); h.setyearsOfService(5); h.printAllInfo(); return 0; } Employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H class Employee { public: inline int getAge(); int setAge(int …

Software Development c++
Member Avatar for mike_2000_17
0
194
Member Avatar for I_m_rude

hello, I am learning C from past 1 year, Now, I want to improve my coding skills by learning techniques like dynamic programming, backtracking and all that stuff. Can u please tell me or give me links from where i can learn, practise and improve these skills ? please help …

Software Development c
Member Avatar for I_m_rude
0
108
Member Avatar for MasterHacker110

I am writing a chatbot and it's database is going to be contained in a .txt file. Now i have this code: #include <iostream> #include <string> #include <fstream> using namespace std; int main() { string line; string uinput, resp; char key = line[0]; ifstream file("t.txt"); cout<<": "; getline(cin, line); while(getline(file, …

Software Development c++
Member Avatar for MasterHacker110
0
210
Member Avatar for jonc

Hi, I've got an XML file that I need to make changes to before creating an output XML file. I've got an XSLT Transform file which does part of the job fine, but I'm needing to go one step further which is where I'm struggling. In C# I'm using an …

Software Development c# data-structure xml
Member Avatar for Mike Askew
0
3K
Member Avatar for WolfPack

Hi, How do you delete a newline character that is inside a VB string? Apparently Trim removes only spaces. Thanks in Advance.

Software Development visual-basic
Member Avatar for hcassper
0
13K
Member Avatar for thegreatkk

hi, i am doing a project using C#. i am new to this area. the task is to extract the zip or rar file using C#. in my windows form have a text box and button in the form. i will give the zip or rar file. when i click …

Software Development c# file-system
Member Avatar for programminfree
0
3K
Member Avatar for jezguitarist30

Hi guyz, I'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net? because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem …

Software Development vb.net
Member Avatar for jezguitarist30
0
178
Member Avatar for jgehlot09

I am trying to grab the string/object from the treeview. So when a user click on any item in the treeview, I can show it on the terminal. ANy help is appreciated.Here is the code. QtCore.QObject.connect(self.treeWidget, QtCore.SIGNAL("clicked(QModelIndex)"), self.treefunction) def treefunction(self, index): print index Output on clicking the item in treeview …

Software Development python
Member Avatar for jgehlot09
0
736
Member Avatar for iFrolox

If My.Forms.Main_frm.UseProxy.Checked = True Then My.Forms.Main_frm.IPBindingTextbox.Enabled = True My.Forms.Main_frm.ProxyIPTextbox.Enabled = True My.Forms.Main_frm.SocksV4.Enabled = True My.Forms.Main_frm.SocksV5.Enabled = True My.Forms.Main_frm.ProxyUser.Enabled = True My.Forms.Main_frm.ProxyPw.Enabled = True ElseIf My.Forms.Main_frm.UseProxy.Checked = False Then My.Forms.Main_frm.IPBindingTextbox.Enabled = False My.Forms.Main_frm.ProxyIPTextbox.Enabled = False My.Forms.Main_frm.SocksV4.Enabled = False My.Forms.Main_frm.SocksV5.Enabled = False My.Forms.Main_frm.ProxyUser.Enabled = False My.Forms.Main_frm.ProxyPw.Enabled = False End If Is there …

Software Development vb.net
Member Avatar for iFrolox
0
192
Member Avatar for Vectorizm

I know it's a bad practice to post the same question on more than one help site (I posted it on Stackoverflow, but after some time your question loses its place on the "active" list and people stop reading it) but I'm really desperate here. So my question is: I …

Software Development c c# c++ matrix-multiplication
Member Avatar for Vectorizm
0
399
Member Avatar for gizmo7008

I started this code, and it does encode the text, however it only does the first line of text and repeats it. It is also encoding spaces. #include <fstream> #include <iostream> #include <string> using namespace std; int main() { ifstream fin; string fileName; cout << "What file do you want …

Software Development c++
Member Avatar for gizmo7008
0
175
Member Avatar for london-G

Hello, I have a JList which contains all data from mySQL table. I want the user to be able to select an item from the list and show it on the label. When I click on the first item it works, However when I click on the other items, the …

Software Development java
Member Avatar for london-G
0
260
Member Avatar for HibaPro

hi every body , i recently finished my first project, what i need is how to make my project execute without visual studio , and also connected with the project database , i need the correct steps , thanx before.

Software Development vb.net visual-studio
Member Avatar for Reverend Jim
0
185
Member Avatar for silvercats

#include <iostream> using namespace std; int answer(int x,int y); //function proto int mutab[10][12]; //two dimentional array declaration int main() { for (int i=0;i<1;i++) //this will fill 1-10 of the multiplication table { for (int h=0;h<10;h++) { mutab[h][i]=h+1; } } for (int i=0;i<10;i++) //this will fill 1x1,1x2,1x3 etc.. to ......10x11,10x12 { …

Software Development c c# c++
Member Avatar for silvercats
0
247
Member Avatar for chophouse

I'm getting an error/crash when trying to use Python on my virtual server running Win 2008 Server. Python installed without incident, and IDLE opens and the interactive widnow works fine. But when I try to open a new window and run it it crshes when trying to save. Example: I …

Software Development client-server python
Member Avatar for chophouse
0
2K
Member Avatar for cse.avinash

I am doing following code to get the output upto 5 decimal characters of any number inputted by user when divided by 1, I have to use typecast it with (float) , can any one tell me how this can be done without typecasting or using float constant.. int main() …

Software Development c
Member Avatar for cse.avinash
1
180
Member Avatar for gizmo7008

I have it all written, and it works. However, I have to enter a value and it brings the prompt up again. When I enter the value in the second time, it plays the game. I always have to enter the value twice to get it to work. I'm not …

Software Development c++
Member Avatar for gizmo7008
0
902

The End.