132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for johans22

I have numpy type array, array[x][y], 16bit, little endian. How to save this to a tiff file as an image?.

Software Development python
Member Avatar for johans22
0
161
Member Avatar for ImZick

I have a code here which will add the data in the system and also if it find a data that exist in the system a message box will appear if the user want to overwrite the data. here is the code Dim con As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & …

Software Development open-source vb.net
Member Avatar for Reverend Jim
0
120
Member Avatar for helixkod

I have an XML file that is in this format: <root> Test string <Signature> WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==</Signature> </root> I was able to produce the SHA256 and produced a string by using the following: string CalculateSHA256(const string& input) { SHA256 hash; string digest; StringSource _(input, true, new HashFilter(hash, new HexEncoder (new StringSink(digest)))); return …

Software Development c++ encryption xml
Member Avatar for plenty.groover
0
409
Member Avatar for daniel1977

I am having a hard time trying to run this excercise. This works great up until the direction to declare the member functions Once declaring romanType member functions protected: ___________________ class romanType class romanType { protected: void storeRomanInput(char RomanNum[25]); void convertToDecimal(char storage[25]); void printAsRoman(); void printAsDecimal(); }; I am unable …

Software Development c++ storage
Member Avatar for RonalBertogi
0
248
Member Avatar for Superfreak3

I'm looking for some C++ code or direction in writing some to close an app if it detects another instance running. Our little update utility writes a log file, which I'm thinking of using as the clue. I was thinking that before the second instance attempts to write to the …

Software Development c++
Member Avatar for RonalBertogi
0
220
Member Avatar for archangel1177

In a previous thread I was trying to get some code to work as a search function and after messing with it for a while I finally got it to work-sort of. What I have is a search function and when I run the code it does find the part …

Software Development visual-basic
Member Avatar for TnTinMN
0
205
Member Avatar for fedaa91

hi i am trying to copy the returned value (not really the returnd pointer but what it points at) from function gets but its not working and when i try to print it or print the str_infile before strcpy function , its not printed out !! i added temp_buff before …

Software Development c
Member Avatar for fedaa91
0
169
Member Avatar for isacc

can i change toggle button's state to another (play state to pause),by clicking another button(stop)

Software Development java
Member Avatar for mKorbel
0
175
Member Avatar for k_arjun

When I try to find all subsets of a set using the following code, the iterator vit in the inner for loop of the getPowerSet function misses out on one element certain times. Can anyone tell me why? #include<iostream> #include<vector> #include<set> using namespace std; vector< set<char> > getPowerSet(const set<char> &given); …

Software Development c++
Member Avatar for k_arjun
0
242
Member Avatar for disjes

Hi, i've got a list with nodes with this structure: private: char namefield[30]; char tam[3]; char type[1]; }; i want to find and element with the find function from alghorithm class but i want to do it with the namefield property of the item, the find function has an item …

Software Development c++
Member Avatar for ravenous
0
152
Member Avatar for Man1919

Hi! I am Working on TimeCode Slate Project (Working with: Arduino Uno Rev. 3), Now I working on the led display(8 digit 7 segment) code. I'm trying to modify this timecode display code from: "Dan Thompson - Timecode Based Stopwatch" http://danthompsonsblog.blogspot.co.il/2008/11/timecode-based-stopwatch.html to work with led display (Originally, the code from …

Software Development c++ display
Member Avatar for Man1919
0
404
Member Avatar for omoz4real

Hi everyone, please i am writing a program in C# for connecting to a microsoft access database using visual studio 2005 and ADO.NET. i want to be able to use Dataset to update,delete,insert and edit records in the database.please how do i go about this.I already have aform with a …

Software Development dataset microsoft-access visual-studio
Member Avatar for garymedina
0
3K
Member Avatar for ankit.4aug

Hello..i tied a lot but i am not able to get the answer.. i am writing a program in which user input the array with space as delimiter eg- 4 3 5 2 3 so this value should be stored in array as a[0][0]=4 a[0][1]=3 a[0][2]=5 a[1][0]=2 a[1][1]=3 a[1][2]=0 please …

Software Development c++
Member Avatar for tinstaafl
0
501
Member Avatar for ray.tan.507

I was doing some exercise from C++ Primer and one of them required us to copy a set of value from array into a vector container. Then, we are suppose to remove all the even numbers from the vector container. Hoever, when I tried to display them out by incrementing …

Software Development c++ display programming-construct
Member Avatar for Nick Evan
0
206
Member Avatar for penty.kn

main() {--- ---- ---- } main(int a, char **b) {--- --- --- } main can be used in the both the ways in c but if there is no concept of function overloading in c how can the above be achieved.

Software Development c
Member Avatar for Nutster
0
219
Member Avatar for kumar_g

Hello Friends I am VB.NET Programmer and currently working on a project where i have to copy the rar/zip file from any folder. While pasting it, it should extract the rar/zip contents automatically. I am done with my extracting part but Here are some problems i am facing Problem 1 …

Software Development vb.net
Member Avatar for tinstaafl
0
288
Member Avatar for M4trixSh4d0w

Hi, i'm making a java program, and I started making the gui with a `JTextArea`, and tried to add a font (`Consolas`) and It crashes with a "divide by 0" error. It works fine on windows, and if you comment out the `setFont` line.. import javax.swing.*; import java.awt.Color; import java.awt.Font; …

Software Development apple gui java java-swing
Member Avatar for M4trixSh4d0w
0
510
Member Avatar for dreday92

I am having an issue implementing the Breadth First Search, Im trying to find the shortest distance between the source city and the destination city. Here is what I have so far, Im stuck and dont know what to do about this issue. #include <iostream> #include <string> #include <fstream> #include …

Member Avatar for dreday92
0
219
Member Avatar for Dave Sinkula

Finding some text and replacing it with new text within a C string can be a little trickier than expected. Here is what I had come up with one day.

Software Development c
Member Avatar for deceptikon
0
1K
Member Avatar for asa88

I am having trouble having redirection working with the ability to hit enter and remain in the same shell. My problem is if user types: ./a.out < foo.txt (where foo.txt contains a command like date) I want to execute that command and exit the shell.However,if the user compiles the code …

Software Development c operating-system shell-scripting unix
Member Avatar for deceptikon
0
364
Member Avatar for SCass2010

Hi all, Bit of a strange question but here goes... In my App.Config, I have a few parameters set, like connection strings, that locate and use a database stored in the user's my documents folder - <connectionStrings> <add name="DatabaseConnectionString" connectionString="Data Source=D\:My Stuff\Documents\My App\MyAppDatabase.sdf" /> </connectionStrings> I was wondering, rather than …

Software Development
Member Avatar for SCass2010
0
1K
Member Avatar for JavaGr33nh0rn

Please help me. It goes like this: Write a program that will determine the income of an employee. An employee is either a part-time or a full-time employee. A part time employee's gross income is computed as the product of his/her hourly rate and the number of hours worked. The …

Software Development java
Member Avatar for JavaGr33nh0rn
0
192
Member Avatar for keitaurin

Let's say I have a user input a string. string = input("enter a string") and that string ends up being something like "hello world!" but with a lot more whitespace. string = "hello world!" I want to condense this user's input so that instead of all that whitespace I only …

Software Development python
Member Avatar for Lardmeister
0
185
Member Avatar for billionair

#include<iostream.h> #include<conio.h> #include<string.h> #include<stdlib.h> #include"Student.cpp" void main() { clrscr(); int choice; student s; cout<<"MCA EXAM MANAGEMENT SYSTEM"<<endl<<endl <<"1. Login"<<endl <<"2. Register"<<endl; cin>>choice; switch(choice) { case 1 : clrscr(); cout<<"1. Student Login"<<endl <<"2. Teacher Login"<<endl; cin>>choice; if(choice==1) { s.studentLogin(); cout<<endl<<"back to main"; } else if(choice==2) { //Call to login function of …

Software Development c++
Member Avatar for deceptikon
0
212
Member Avatar for gilangtitoe24011994

Hello friends, my computer suddenly have a problem when I uninstall the program Tune Up Utilites 2013, after finish uninstall that program, and then I restart, suddenly theme of my computer back to classic mode and out notice as: Debug Assertion Failed ! ----------------------------------------------------------------------------------------------------------------- Program: C:\Program Files\Lenovo\Energy Management\Energy Management.exe File: …

Software Development audio c++
Member Avatar for deceptikon
0
2K
Member Avatar for JavaGr33nh0rn

My homework goes like this: Write a program that accepts as many integers the user wants to input. Determine the highest and lowest numbers and subtract all other numbers from the highest number. example: numbers to be entered: 6 number1 :15 number2:20 number3:29 number4:38 number5:12 number6: 42 Output: Highest: 42 …

Software Development java
Member Avatar for JavaGr33nh0rn
0
337
Member Avatar for OmK@r

Hi Friends, I want to connect to a linux machine using a private key login as password from another linux machine. I want to connect this using a python script. Thanks in Advance, Omkar

Software Development python
Member Avatar for Gribouillis
0
307
Member Avatar for hafizhin.rosyiid

help me i want get data from combobox into single datagridview forecasting i have 3 table table 1 = Jenis with 3 column = IDPemakaian,JenisData, JenisPelanggan table 2 = Periode with 6 column = Nomor, IDPemakaian, JenisData, Periode, Tahun, Jumlah table 3 = Pelanggan with 6 column = Nomor, IDPemakaian, …

Software Development open-source vb.net
0
114
Member Avatar for straylight

I am trying to devise a program to scheduling "events" onto 3 different stages using dynamic programming. I have a start time a finish time and an interval associated with each event. int max1(int x,int y) { if (x>y) { return x; } return y; } int max2(int x, int …

Software Development c
Member Avatar for Adak
0
472
Member Avatar for enkitosh

I'm very confused about void pointers and this notation here below. I do understand that when you have a void pointer you eventually cast it to some kind of type int, double. What I don't understand is what is happening here : copySize = *(size_t *)((char *)oldptr - SIZE_T_SIZE); copySize …

Software Development c
Member Avatar for enkitosh
0
291
Member Avatar for ImZick

Hi, Sorry i need to ask for a help again. I have a listview and a search button i want to populate my listview when i click a button to search the field name "Last Name" for example i want to search "Sample" then it will populate my listbox with …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
503
Member Avatar for Papa_Don

Group, Via Visual Studio 2010, I've created a SQL Server database with the appropriate fields, data types, etc. I'm now ready to begin some testing, however I need to put some information in those datafields. I'm having trouble doing this. I DID NOT set the tables to display in the …

Software Development sql vb.net visual-studio
Member Avatar for Reverend Jim
0
311
Member Avatar for chocolatte.lavista

#include <iostream.h> double box_area(int); double box_vol(int); void main() { int l,w,d; double a,v; cout<<"length : "; cin>>l; a=box_area(l); cout<<"area : "<<a; cout<<"width : "; cin>>w; a=box_area(w); cout<<"area : "<<a; cout<<"length : "; cin>>l; a=box_vol(l); cout<<"volume : "<<v; cout<<"width : "; cin>>w; a=box_vol(w); cout<<"volume : "<<v; cout<<"depth : "; cin>>d; a=box_vol(d); …

Software Development c++
Member Avatar for asifalizaman
0
356
Member Avatar for astian

So... I am sorry if I have posted the question at the wrong place, yet I couldnt find a better place. Anyway, my problem is as follows: A week ago, we had to bring back to life some old projects of the firm. The projects are ... not too complex …

Software Development delphi pascal
Member Avatar for pritaeas
0
665
Member Avatar for vinay7868

hiii am just gong to start the coding for barcode generator so can any one help me or guide me how to start and what to do...

Software Development vb.net
Member Avatar for vinay7868
0
451
Member Avatar for vegaseat

This short piece of code shows you how to display text in color in a C# windows console program. The corresponding WIN32 API functions are in the kernel32.dll and are imported and declared external. The only other problem is to assign variable types that accommodate the types listed in the …

Software Development api c# windows-api
Member Avatar for KrayZVIII
0
1K
Member Avatar for gabriel.riveraperossenkopp

I need to write a code with a constructor class in order to see the whole phonelist using an array that reads from a document txt, able to add a person and phone number, search just one person in the phonelist and able to modify their phone number. here is …

Software Development java oop smartphone
Member Avatar for elhkei
0
719
Member Avatar for carrl00

I need to input a name in the JMenuItem(employee name) using JOptionPane, I used this statement (JOptionPane.showInputDialog(frame, "Enter Employee Name");) and I try using a string variable but nothings happen. import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.FlowLayout; import java.text.MessageFormat; import javax.swing.table.AbstractTableModel; public class Cs extends JFrame implements ActionListener { …

Software Development java java-swing open-source
Member Avatar for stultuske
0
190
Member Avatar for xHellghostx

I am having a problem to understand how class inhertance works in Java.. Now I want to get information from a class to another and let's say we have class A and class B class A contains a string an int and a byte class B contains a String and …

Software Development java oop
Member Avatar for stultuske
0
283
Member Avatar for NidhiSree

Hi All, I have a TextBox in my Form and I am drawing a string into it as below. Font myFont = new Font("Arial",18F,FontStyle.Regular,GraphicsUnit.Point,128); Graphics g = myTextBox.CreateGraphics(); Brush b = new SolidBrush(Color.Red); g.DrawString("Item Drawn with DrawString",myFont ,b,new PointF(1,1)); The string displayed in the TextBox. Then I tried below code …

Software Development image
Member Avatar for Momerath
0
237
Member Avatar for JavaPrograms

I was just wondering if someone could maybe set me on the right track or tell me exactly how to do what I am about to ask. I have a bunch of answers in a notepad file, such as TFTABCD (going downwards, a letter per line), how can I make …

Software Development java
Member Avatar for stultuske
0
216
Member Avatar for michelleruth

public class W4P7{ public static void main(String []args){ int [] myArray = {11, 29, 21, 23, 33, 32}; method(myArray); }//end of main /****************start of method****************/ public static void method(int [] x) { int swap; for(int i=0; i<x.length;i++){ for(int j=0; j<x.length-1;j++){ if(x[j] > x[j+1]){ swap = x[j]; x[j]=x[j+1]; x[j+1]=swap; }//end of …

Software Development java
Member Avatar for stultuske
0
85
Member Avatar for Papa_Don

Group, I have a form that opens with a panel and multiple textboxes displayed that I created via the GUI. Once the user enters the desired information within this panel, a button is click and a new panel appears with the same textboxes displayed as the original. This panel and …

Software Development gui vb.net
Member Avatar for Papa_Don
0
173
Member Avatar for yup790

I am trying to read a random line from a file and if that line is null it will create a random string. It works with files with upto and including 5 lines. To test it I made a 2 line file: > 1-hello > 2-but However, when run it …

Software Development file-system java
Member Avatar for stultuske
0
155
Member Avatar for goha1414

Write a program in object code that will convert a 3-bit binary number to a decimal number,For example, if input is 101, output should be 5; if input is 011, output should be 3. that is what I have to do,this is what I have so far but its not …

Software Development
Member Avatar for prvnkmr449
0
307
Member Avatar for somjit{}

in an assingment, i have to implement a deque ( double ended queue ). the underlying datastructure is allowed to be arrays or linkedlist. only that im not allowed to use any prebuilt java api that does the above. (like the java.util.LinkedList api) implementing the above using doubly linked list …

Software Development api google-api java linked-list queue
Member Avatar for somjit{}
0
194
Member Avatar for Unused Mass

Loop trough a HashMap <String, Integer> and if the value is something, for example, 5, then put the key in an array. I'm not sure where to start, I'm having trouble on the "Loop trough a **hashmap**" part. Thank you.

Software Development java
Member Avatar for tux4life
0
155
Member Avatar for HctiMitcH

I am working an a simple project that required a vb.net login form. I added a login form that was preinstalled in visual studio, ex. Menu>Add existing item>login form. I am using visual studio desktop 2012 and I made the project for .NET 4.5. I then realized that my target …

Software Development vb.net visual-studio
Member Avatar for HctiMitcH
0
439
Member Avatar for pamela.barabutirei

failing to install codeblocks on my machine , running windows 8. its saying the program cannot be verified.....anything to help please!

Software Development c++ windows-vista-7-8
Member Avatar for CodeWeaver
0
207
Member Avatar for Counterpartz

Hi, I'm having a little trouble with an assignment for my C# class. (The professor doesn't explain specifics, just the basics, and he isn't any help, he's extremely shy and awkward) using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Assignment_2_ITM_225 { class Program { static void Main(string[] …

Software Development c#
Member Avatar for tinstaafl
0
242

The End.