132,726 Archived Topics
Remove Filter ![]() | |
Hello everyone:).I am curently developing a C# application and I need to make it check for updates. I've never done something like this before in C#.My application output type is windows application.So in need for some help please:D.. Software Development | |
I have this weird problem. If my constructor is [header] class Book { private: vector<string>Entry; public: Book(); [cpp] Book::Book(){ Entry.push_back("0"); Entry.push_back("1"); Entry.push_back("2"); The weird thing is that it does not update when I do more .push_back. I use: void Book::addItem(vector<string>newItem) { for(int f=0; f<Entry.size(); f++) { Entry.push_back(newItem[f]); cout<<Entry[f]; } } … | |
I need to program a way of storing and deleting multiple objects so that they stay around even after the program has been closed and that when you re-start the program you can search for an object? I'am using python 3.0 not 2.7. i.e. I create A class with different … Software Development python | |
When i placed Crystal ActiveX Report Viewer into VB.NET Form, it became like this [Click Here](https://www.dropbox.com/s/n8x5p8hnwrvaev5/error.png) . How can i resize it ? I try to resize it many time , but it always reset to zero. Thank you for answers. Software Development vb.net | |
Hi, everyone! When I'm building my project on Visual Studio 2008 that uses Xerces, I have the following linker errors: [CODE=text] 2>XmlPersistingService.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_8::XMLPlatformUtils::Initialize(char const * const,char const * const,class xercesc_2_8::PanicHandler * const,class xercesc_2_8::MemoryManager * const,bool)" (__imp_?Initialize@XMLPlatformUtils@xercesc_2_8@@SAXQEBD0QEAVPanicHandler@2@QEAVMemoryManager@2@_N@Z) referenced in function … | |
Hello all, I have not tested the code I'm posting here to see if it compiles, but I have an issue in a large codebase and I believe that this should be the simplest program to demonstrate the issue; class base { public: shared_ptr<base> clone()=0; }; typedef shared_ptr<base> baseptr; class … | |
I know you are suppose to use GetPrivateProfileString(); But I dont know what the arguments for the commad is. Software Development c++ | |
Please bear with me. This is my first post. For some reason, I can only display the strings if I put the cout in the same loop. But since I have to separate addString() and displayAllStrings(), I can't do that. My displayAllStrings() keeps failing. BUT when I write a separate … | |
I think that the problem is in lines 59-63 #include <stdio.h> #include "genlib.h" #include "ctype.h" #include "simpio.h" #include "string.h" typedef struct{ char name[30]; long sell; double supply; }domiT; void ypologismoi(domiT stx[],int *p,FILE *infile); void emfaniseis (domiT stx[],int *p,FILE *outfile); main() { int p; FILE *infile,*outfile; domiT stx[100]; ypologismoi(stx,&p,infile); emfaniseis(stx,&p,outfile); system("pause"); … Software Development c | |
I am trying to populate a vector of strings and then remove any duplicates within that vector. Here is what I have so far. I am getting an error saying: Error 2 error C2064: term does not evaluate to a function taking 2 arguments . void removeDup() { vector <string> … Software Development c++ | |
I have an assignment in which i have to add, subtract, multiply and divide two complex numbers and i am very confused as to how to create the program. This is what i have got so far.. #include <stdio.h> #include <complex.h> int main (void) int real, imag; { complex a, … Software Development c | |
Hi, sometimes when I run my application the cmd pops up with the following list of errors! I am sorry to just drop them like this but I dont know how to deal with them, as the application is working just fine! Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException at javax.swing.LayoutComparator.compare(LayoutComparator.java:75) at … Software Development java java-swing | |
I am trying to get my homework assignment to work for class, but I cant seem to get it. Heres the assignment. [QUOTE]Write a program that asks the user to guess the next roll of a six sided die. Each guess costs $ 1. If they guess correctly, they get … | |
Hi, I'm trying to get some progress feedback from the following (Restore DB using SMO): [CODE]Sub DoRestore() Dim svr As Server = New Server("Server\SQL2008") Dim res As Restore = New Restore() res.Devices.AddDevice("C:\MyDB.bak", DeviceType.File) res.Database = "MyDB" res.RelocateFiles.Add(New RelocateFile("MyDB_Data", "C:\MyDB.mdf")) res.RelocateFiles.Add(New RelocateFile("MyDB_Log", "C:\MyDB.ldf")) res.PercentCompleteNotification = 1 AddHandler res.PercentComplete, AddressOf ProgressEventHandler res.SqlRestoreAsync(svr) … Software Development vb.net | |
I need to create a software that manages a bank account. I created 2 forms. Form one (Form1 "in reality is KlientetForm") has 5 textboxes, 6 buttons and a listbox. Form twoo (Form2 "in reality is GjendjaForm") has 3 textboxes (the same name as in Form1), 2 listboxes and 3 … Software Development data-protection | |
Hi All, This is with regard to winforms application. My assignment requires to create 23 dynamic controls based on the 80 fields in the database. At a time i should be able to display 23 controls in a form Those fields can be edit box, comobo,listbox etc. Please suggest me … Software Development | |
![]() | Suppose we are coding a messagebox on closing event of a form. It Shows three buttons Yes,No and Cancel. Now I wish to code for CANCEL button. How can I achieve this ? Software Development vb.net |
Hi. I needed to change two fields in my database and now my application doesn't start. What do I need to do to the dataset? The error is: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. I changed the type of one … | |
For instance , i need store a database of a student.i will get all the details through the respective fields like name , no , mark1 , mark2 , mark3 etc.. nw i need to save this information . how do i do it ?. thanks :) Software Development visual-basic | |
public void paintItems() { ArrayList inRoomItems = ((Room) scenery.getCurrentRoom()).getItemsArray(); Point origin = new Point(380, 10); int layerNumber = 50; int numberHorizontally = 0; int n=inRoomItems.size(); for(int i=0; i<n; i++){ image = new JLabel(((Item) inRoomItems.get(i)).getImageIcon()); imagePane.add(image, new Integer(layerNumber)); image.setOpaque(false); image.setBounds(origin.x, origin.y, 100, 100); origin.y += 90; numberHorizontally++; if (numberHorizontally % 3 … | |
Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size … Software Development vb.net visual-basic | |
Hello, I am currently trying to develope a perl CGI script that will allow a user to enter a name on an HTML form, and it will search the database with that name. Once it finds the matched names, it will display their name and telephone number on the screen. … Software Development perl | |
hello, I am going to create a project which is having multiuser configration, So i decided to take vb.net as frontend and oracle as backend. So the database will be on server and all client willhave software installed. Questions are : 1. Do i need to install oracle in all … Software Development client-server oracle vb.net | |
I need to work on error handling and recovery for the World of Zuul. I was wondering where usually try catch exception should be used, which processes that need them? I know that I have to use them for opening and writing to a file,,, Software Development java | |
hi friends java does not support multilevel inheritance. what is the reason behind this?? is this for security reason?? Software Development java | |
I am trying to figure out how to use fork() with exec(). I read through the perl docs on how it works, but I can't figure out how to implement it. For example if I wanted to fork a custom sh script: if (this_condition is true) { $mypid = fork(); … Software Development perl | |
My code has a couple of "multiple assigments" and somehow I think there should be a nicer way to do this in Python. This is how it currently looks like: # sum price fields paf = paf + float(pa) pbf = pbf + float(pb) pcf = pcf + float(pc) pdf … | |
I have a volunteer database and having trouble with genuine password protections. I have a "delete" button with this current code under Build Event: Private Sub delete_Click() On Error GoTo Err_cmdDelete_Click DoCmd.SetWarnings False If MsgBox("Delete this VounteerRecord. Are you sure?", vbQuestion + vbYesNo + vbDefaultButton2, "Delete?") = vbYes Then DoCmd.RunCommand … Software Development gui microsoft microsoft-access vb.net visual-basic | |
how to change image when button is clicked? my gui is consisting of three Button(NEXT,PREVIOUS,AUTO-CHANGE) and 1 Jcombobox. when you drop-down combobox list of image is shown.so i want when i clicked on "next" button image of jcombobox should be change. Software Development gui java java-swing | |
hey guys just need some help here..i don't know how program it in C#.. i need a class file in C# using Microsoft Visual Studio 2008 that will save inputted data to the MySQL database..and also a class file that will transfer data from a table to another table in … Software Development c# visual-studio | |
Hi everyone! So I have this code to modify. I need to write a code inside the **int main** field, that would cause 37 launches of the constructor called M_48(). I have no idea how to solve this. Any ideas? | |
Hi I' haven't started this project yet so I'm just doing a research on how to modify a file on a server side via a client side. Just to enlighten what is my question. I want to create a server which will create: 1) the File (as a Directory) of … Software Development client-server file-system vb.net | |
hi i have that code and this function gives me static overflow when i run the problem and stopped to work can anyone tell me why is this happening public bool declaration_List() { // sc.token(); if (declaration_List()) { if (declaration()) return (true); } else return (false); if (declaration()) { return … Software Development | |
I want to display image in crystal report from path given in database table.My code runs well but nothing is displayed in report.Below is my code.Please help me to find out the problem. Dim Con As OdbcConnection = New OdbcConnection Dim sql As String = "Select * from Image" Con.ConnectionString … | |
Helllo Community, I was wondering if there is a way to get all the second nodes from an xml file example: <?xml version="1.0" encoding="utf-8"?> <!--XML Comment--> <Main-Node> <Second-Node> <Third-Node>Node</Third-Node> </Second-Node> <Second-Node> <Third-Node>Node</Third-Node> </Second-Node> </Main-Node> Please Help... | |
After playing for 5 or more times the total scores are going out or range (In the table generated at the end). I tried using long but didnt helped. #include<conio.h> #include<iostream> #include<stdlib.h> #include<string> #include<windows.h> #include<time.h> using namespace std; unsigned flag=0, ply_m,ply_t,ply_s,zz,i; //funct for gotoxy void gotoxy(int x, int y) { … Software Development c++ | |
I accidentally closed my Toolbox in VC++ IDE.. now I donno how to bring it back. Please help... | |
I am using excel 2007. In my file 6 sheets. 4 sheets is data record & 1 sheet is recorder sheet & monthly. Data record sheet name is : FY_2009, FY_2010, FY_2011, FY_2012 & FY_2013. In all above sheet : Part numbers mentioned in column "C2:C60000" Quantity in column "D2:D60000" … Software Development mathematics visual-basic | |
Hello its me again... sorry to keep on posting about my problem well here it goes.. If you see in the attached file.  I have an AM Ervielette, Marriane etc. now i need to add their Total Calls for Ervie and Total Visits same goes to the other.. … Software Development listview mathematics microsoft-office vb.net | |
Hey everyone I was working on a small tool and also refreshing my programming skills. my problem is I want to pick a random number from 60,000 to 200,000. it does that but the number it displays are not dramaticly changed. For example if it out puts 062045, i hit … | |
Hello My sample program has many buttons. I want my two button's `pausebtn` and `continuebtn` will perform click when a letter on the keyboard will be pressed, let say letter C or P. Private Sub pausebtn_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles pausebtn.KeyPress pausebtn.PerformClick() End Sub This are … Software Development vb.net | |
I was wondering the best way to implement a square root button. Below has everything from 0-9, the four functions, and a decimal and clear function. Dim valueOne As Single Dim valueTwo As Single Dim operation As Integer Dim answer As Single Private Sub Button1_Click(ByVal sender As System.Object, ByVal e … | |
**edit** I just realized that Im on a single core machine atm (stupid work machine), so theortically the server isint actually executing on the CPU 50% of the time (while the client is running), so packets would be lost right? Or is there something else im missing alltogether? Ill post … Software Development client-server java tcp-udp | |
I am trying to write a selection sort, but I am getting a outofbounds error. How do I fix this? public class SelectionSort{ public static void selectSort(int[] arr){ int least = 0; for(int i = 1; i < arr.length - 1; i++){ for(int j = i + 1 ; i … Software Development java | |
Hi there, I've been reading a book on c# and come across a method that is EnsureCapacity on StringBuilder which from understanding it makes sure that how much capacity a variable can hold. What I made is a variable and then tested it. StringBuilder st = new StringBuilder("string builder"); // … Software Development | |
I'm setting up a finite state machine structure as a proof of concept to be used in other projects. The states have function pointers that point to actions they are allowed to perform during certain events and transitions. I'm trying to restrict these pointers to be a part of a … Software Development c++ | |
Hi Actually i had a doubt regarding How to design a application where we can protect specific folders with the help of password I Hope i will be responded as soon as possible Thank you With Regards Syed Software Development | |
Dear Internets, I am currently trying to write a program that can extract the "header" from a FASTA file. and then output a portion of the header to a new file. The part of the header i need is the "CONTIG_X" part. When I run this program it prints duplicates … Software Development c |
The End.