132,726 Archived Topics
Remove Filter ![]() | |
If I have a vector v={1,2,4,6,8} and I find my maximum element of this vector using this: " vector<int>::iterator iter_max = max_element(v.begin(), v.end()); cout<<"Largest element is "<< *iter_max; " which works fine. But I need to know the position of this max element. Is it second, third or fourth in … Software Development c++ | |
Im trying to create a listview showing images with text so how exactly can i do this? (im using visual studio if it helps) Heres the code that isn't working now [code] // adding images ... imageList1.Images.Add("Unique key", Image.FromFile("...")); listView1.Items.Add("text for image", "Unique key"); /* * more * images * … Software Development listview visual-studio | |
Using \x I can specify hexadecimal numbers in strings in C, but if I put \x00 then it interprets it as an instruction to terminate the string. As a result I can't express a hexadecimal number with 00 in it using a string! Is there some way around this? Software Development c | |
When a CALL instruction is executed, the address of the current instruction is pushed into the stack. Then, the execution makes an unconditional JMP to the address specified as the parameter of the call instruction. [CODE].code Test: call delta delta: pop ebp sub ebp,offset delta mov esi,[esp] and esi,0ffff0000h push … Software Development assembly | |
I'm trying to understand the sql connection a little better. I have some code that returns data via a stored procedure on the sql server. Here is the code to execute the procedure and put the data in a data grid: [code]Dim tblSteps As DataTable = New DataTable Dim cnPMSQL … Software Development open-source sql vb.net | |
Hello every one. I coded a program to seperate words from a file and want to input each seperated part to an array.But it doesnot work.Please help me!! Here is the code [code]#include<stdio.h> #include <string.h> #define max 100 int main() { FILE *f; char data[128]; char *p; int host=0; int … Software Development c | |
Good Day People Please help me, I'm trying to do a do until loop, which can search the database to match the value that is entered in the vb6.0 textbox. but I don't know what to call the value in the database. It looks something like this. dim productid as … Software Development visual-basic | |
Hey I was having a major problem in creating a complex number pyramid. The user inputs a number of rows, but if it exceeds 20 it would go off page, so 1-20. I have a nested For loop (using QBasic) that looks something like this for x = 1 to … Software Development visual-basic | |
im making a program that gives you the age of the person that enters there date of birth the code i got at the moment is: Private Sub Command1_Click() Dim age As String age = Month(Now) - Text4.Text If age < 0 Then age = 1 Else age = 0 … Software Development visual-basic | |
Can anyone tell me what is wrong with this code? [code] Dim current_date As String Dim filename As String Private Sub Form_Load() Dim path As String current_date = DateValue(Now) current_date = Format(DateValue(Now), "YYYYMMDD") Debug.Print current_date filename = "Daily SMS Backup " & current_date & " 200.sql" Debug.Print filename path = … Software Development visual-basic | |
Hi Guys. Finally i can read excel, thanks to all of you who responded. Now i though its easy as i think to extract from data table, here im searching for a specific record on excel then i need to select certain columns on that row of that record, my … Software Development | |
hi guys.. kindly help me in this one... i'm creating an inventory system.. i have a problem in their Item No. format... i use maskedbox... my mask is ##-####### ... im using a barcode reader..their current Item number has only 4 digit... i want the output will become this one … Software Development visual-basic | |
Hi guys, I'm habing a problem with an access database i'm trying to fill programmatically with vb.net. I have a datatimepicker to set a date with a custom format like "dd/mm/yyyy hh:mm" If I insert this date in my access database the days and months are switched (mm/dd instead of … Software Development vb.net | |
Hi Am using Visual studio 2008, C# application . In my data grid view i have Checkbox column, I put One header check box for datagrid view. datagridviewCheck box is displayed for all row. i wil create column header check box separately. if am selecting the Header check box means … Software Development visual-studio | |
Hello! Is there a way to parse xml content to unicode format? I'm getting this: [QUOTE]"MinĂ©l nagyobb a család, annál nehezebb az ĂşjdonsĂĽlt barátnak-barátnĹ‘nek beilleszkedni."[/QUOTE] But I'd like this: [QUOTE]"Minél nagyobb a család, annál nehezebb az újdonsült barátnak-barátnőnek beilleszkedni."[/QUOTE] I'm using a web service to download an rss feed asynchronously … Software Development xml | |
Hello all. I am currently working on creating a program of a Checking Account and Savings Account. I am using my input file for deposits and withdraws. However, for my deposit and withdraw functions, I am unsure what to put in it. For those functions, am I suppose to read … Software Development c++ | |
Hello all, Whenever I create a new form in a form while pushing a button. Every time I push the button and new form created. I dont want this. Example : If form2 exist and OPEN so bring it to front. I cant arrange it, I tried bringtofront or this.Close() … Software Development | |
Greetings, I have just developed a content-managed, database-driven application application that makes heavy use of postbacks and session variables. We own the domain that the site was designed to be hosted on, however, the customer does not want our URL showing. The solution our firm has used in the past … Software Development client-server session | |
Hi, I have attached a part of the code of wat i am doing now. It contains 2 picture boxes and a seperate box which is used to copy and paste the data on the picture box to the rectangle next to it. i need to copy the bitmap image … Software Development | |
hi everyone,i Have posted a code where i have created a structure in which i am defining bitfields. If suppose for the object testvar[2][K] i wanna assign {1,1,1},{1,0,1},should i assign them individually or can i assign at once like testvar[1][K].testa=7; //for {1,1,1} testvar[2][k].testa=5;//for{1.0,1} please help me,[code]#include<conio.h> #include<string.h> #include<iostream.h> #define K … Software Development c++ | |
Hi, Does anyone know about any Java based API for communication in NDM (Network Data Mover, nowalso known as Connect : Direct). Please suggest. Regards. | |
Is it possible for me to delete data from access using a datagrid? Software Development vb.net | |
Hi all! Well, again I find myself stuck in a silly situation. I've found some more settings that seem to baffle me. First off all, why can't I set the Right property of a control? Example: [CODE] PictureBox ExamplePictureBox = new PictureBox(); ExamplePictureBox.Right = 50; [/Code] This returns that "Property … Software Development | |
hi any one help me to format datareport's page footer section start from fix perticular line and endig with pag break Software Development visual-basic | |
I know that I don't have this just right, but I'm not sure how to get it just right. I've tried several different things and have been unsuccessful in all of them. Any tips? Also, by using [code]DisplayIntroMessage()[/code] near the end, will that bring up the method to begin the … Software Development java | |
I'll post my code after my questions. 1. Near the very end, I have DisplayIntroMessage() called for the event that the user desires another order. Is this all that I need to do to restart the process? 2. If that is all that is needed, what is the easiest way … Software Development | |
Hi everyone, this is what I have to do: The method [code]makeWordList (char *fileName)[/code]. this method will take in a file name, read from the file and identify the words in the file. These words should be stored in a global array for use in the next method. The method … Software Development c | |
Hey all, I've recently begun learning visual basic using visual basic express 2008 with plans to purchase visual studio 2008 (it'll be worth it as I've used C++ for a very long time, I just wanted to learn vb and vb.net). What I'm very interested in right now is creating … Software Development vb.net visual-basic visual-studio | |
Hello [B]Can you tell me why my for loop below doesn't show all the elements contained in a stack (stacks size = 3). [/B] It only shows the top 2 elements when it shoudl show all 3? Also another question, is there a way to show the contents of a … Software Development c++ | |
I have worked with maps before and I have come to the point where I need to save a map when I quit an application and load it when I open application. How can I achieve this goal? Do I have to save it to a file upon exit and … Software Development java | |
I try to write to Isolated Storage but get this exception. I wonder what I can be missing ? [I]An unhandled exception of type 'System.IO.IsolatedStorage.IsolatedStorageException' occurred in mscorlib.dll Additional information: Unable to determine application identity of the caller.[/I] [code] using namespace System::IO::IsolatedStorage; IsolatedStorageFile^ abc = IsolatedStorageFile::GetUserStoreForApplication(); String^ Testfile= "Test57.txt"; IsolatedStorageFileStream^ … | |
can i have a sample code of a c++ program that reads in a jpeg file, and with comments please, i am trying to learn image processing using jpeg file formats... i would love to have advanced codes too, if any one of you can provide me with them. i … | |
I dont know what im doing wrong, but the dataadapter, doesnt find the table im looking for: Public Shared Function DSet(ByVal ID As Integer, ByVal Name As String, ByVal Address As String, ByVal City As String, ByVal State As String, _ ByVal ZipCode As Integer, ByVal Phone As String) As … | |
Hi, Easy way to create/copy from a container i.e. Tab/Frame to another. Given a VB6 program with a form with a Tab Control. Each tab has a frame and many controls (textboxes, radio buttons, labels, combos, etc. each of which is a control array. 1 per tab/frame). We have a … Software Development visual-basic | |
Hi, I am trying to get the html source of the particular webpage that having different frames.i want the html source of a particular frame. Thank you in advance | |
please do help me the program goes like this; #include<iostream.h> void main() { int x; int no[10]; cout<<"input 10 numbers"<<endl; for(x=0;x<=9;x++) cin>>no[x]; for(x=0;x<=9;x++) cout<<no[x]<<endl; } but i have to get the sum 0f the 10 numbers in ascending order this the outtput example: 1+1=2 2+2=4 3+3=6 5+5=10 4+4=8 i have … Software Development c++ | |
I'm in the process of writing a 2D physics engine in Java, and am trying to figure out the algorithm for the most basic of all physics tasks: Object collision. Detecting collision between two circles is easy: check if the distance between their centers is less than or equal to … | |
[QUOTE]My following code is only retrives number month(1,2,3,4....12) and not month name(January,February,.....December). Can anyone help me to retrieves month name in sql query. Before that i had try using function datepart, Monthname and date_format but i still din get my answer.Thanks[/QUOTE] [CODE]con.ConnectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source = C:\YS.mdb" con.Open() sql = … Software Development open-source sql vb.net | |
The program I'm trying to run checks to see if a number is perfect, abundant or deficient. It's perfect if its factors add up to the number(ie 6 = 3+2+1), deficient if the number is greater than the factors, and abundant if the factors add up to more than the … Software Development c | |
I tried searching and couldn't find anything, so I'm sorry if this has been posted before. I need help aligning output at the command line. I want to make even columns, but can't figure out how to do it. Attached is a screenshot of my current output. I want the … Software Development java | |
I have a level 2 programming class i have to take for my major, even though i'm on the IT track and not programming. I struggle alot with programming and was looking to get pointed in the right direction. Below is the directions for my assignment but i honestly have … Software Development c++ data-structure | |
I know this is a kind of broad question, but I have been having a hard time in general knowing when to put what call parameters into what functions. Does anybody have any good tips on when to know when to use a void function verses a bool or int … Software Development c++ | |
well, this is my code: [CODE] while(!isdigit(c) || num.length() < 4){ cout << "Enter your four digit pin: "; cin >> num; for(i = 0;i < num.length(); i++){ c = num.at(i); if (isdigit(c)){ pin[i] = atoi(num.substr(i, 1).c_str()); } } if(!isdigit(c) || num.length() < 4){ cout << "Invalid Pin." << endl; … Software Development c++ | |
I'm having a problem with creating my own stack class and implementing it in a postfix calculator program I made. I was trying to make the stack.h file, but it keeps telling me stack is not a template [CODE]#ifndef STACK_H #define STACK_H #include <iostream> using namespace std; template <typename T> … Software Development c++ | |
I am relatively new to c# and am making a 2D physics engine as a fun project to learn the language and the .NET environment. I am making a form that can be used to modify the number of objects. Unfortunately, I cannot find a way to change the length … Software Development | |
I have the follow code: In this code i want initialized an object of cube! but when i did this, I initialized an array of matrix_type and in each object of the array matrix_type i initialized an object of array_type! BUT, if i try this with a matrix and with … Software Development c++ | |
Ok heres my problem which i'm starting to find very annoying :S I am trying to load a date stored on my sql server database into a date time picker. [code] Dim MyDate As Date = (DetailLookup("PLIExpiry", "tblConcessions", "ConcessionID", varCompanyKey)) frmConcessions.dtpPPLIExiryDate.Value = MyDate [/code] DetailLookup is a public function that … Software Development vb.net | |
so I have a script that is taking input from a text file and using it to populate an excel spreadsheet. it keeps giving me a UnicodeDecodeError, dying on the ± symbol, I'm assuming its not in the codec that is being used: im using the xlwt package for writign … Software Development microsoft-office python | |
The question given like this using the CreateProcess () in the Win32 API. In this instance, you will need to specify a separate program to be invoked from CreateProcess(). It is this separate program that will run as a child process outputting the Fibonacci sequence. Perform necessary error checking to … Software Development api c windows-api | |
In the following method: [CODE] public boolean isMemberAlive(String userSsn) throws SQLException { boolean isMemberAlive = false; Connection c = null; Statement s = null; ResultSet rs = null; String strSQL = "SELECT Count(*) AS RecordCount " + "FROM crs.memmst " + "WHERE memmst_ssn = '" + userSsn + "' AND … Software Development java |
The End.