132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for samm22

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++
Member Avatar for JasonHippy
0
105
Member Avatar for brando|away

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
Member Avatar for DdoubleD
0
1K
Member Avatar for hoke

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
Member Avatar for Ancient Dragon
0
619
Member Avatar for eniwe

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
Member Avatar for eniwe
0
106
Member Avatar for avgVBUser

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
Member Avatar for avgVBUser
0
120
Member Avatar for chathu12

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
Member Avatar for dkalita
0
164
Member Avatar for mpande

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
Member Avatar for omoridi
0
219
Member Avatar for podrock

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
Member Avatar for omoridi
0
924
Member Avatar for drabsch

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
Member Avatar for drabsch
0
2K
Member Avatar for samuelmoneill

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
Member Avatar for omoridi
0
257
Member Avatar for Mongz

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
Member Avatar for Mongz
0
120
Member Avatar for xWiredx

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
Member Avatar for omoridi
0
1K
Member Avatar for vampke

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
Member Avatar for sknake
0
178
Member Avatar for khemalatha

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
Member Avatar for sknake
0
2K
Member Avatar for konczuras

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
Member Avatar for sknake
0
198
Member Avatar for NinjaLink

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++
Member Avatar for NinjaLink
0
250
Member Avatar for darkocean

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
Member Avatar for darkocean
0
191
Member Avatar for mjc225

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
Member Avatar for sknake
0
102
Member Avatar for arunkumars

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
Member Avatar for sknake
0
199
Member Avatar for shilpa_B

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++
Member Avatar for shilpa_B
0
95
Member Avatar for rajuchacha007

Hi, Does anyone know about any Java based API for communication in NDM (Network Data Mover, nowalso known as Connect : Direct). Please suggest. Regards.

Software Development api java
Member Avatar for rajuchacha007
0
1K
Member Avatar for Alphard

Is it possible for me to delete data from access using a datagrid?

Software Development vb.net
Member Avatar for Alphard
0
77
Member Avatar for ctrl-alt-del

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
Member Avatar for ctrl-alt-del
0
213
Member Avatar for mukund_Sadrani

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
Member Avatar for s.ponnurangam
0
327
Member Avatar for kahaj

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
Member Avatar for roswell67
0
108
Member Avatar for kahaj

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
Member Avatar for jatin24
0
112
Member Avatar for Samyx

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
Member Avatar for Salem
0
124
Member Avatar for Maulth

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
Member Avatar for GeekByChoiCe
0
855
Member Avatar for gretty

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++
Member Avatar for mrnutty
0
125
Member Avatar for slatk3y

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
Member Avatar for slatk3y
0
146
Member Avatar for Lukezzz

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^ …

Software Development c++ storage
Member Avatar for kvprajapati
0
322
Member Avatar for heroic

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 …

Software Development c++ image
Member Avatar for Talguy
0
148
Member Avatar for Rofling Waffles

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 …

Software Development dataset vb.net
Member Avatar for CodeDoctor
0
98
Member Avatar for QuickBooksDev

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
Member Avatar for vb5prgrmr
0
175
Member Avatar for sreeram01

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

Software Development html-css vb.net
Member Avatar for CodeDoctor
0
116
Member Avatar for suutukil

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++
Member Avatar for wheel
0
159
Member Avatar for Cheesy74

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 …

Software Development algorithm java
Member Avatar for Cheesy74
0
119
Member Avatar for chanlichin

[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
Member Avatar for TomW
0
260
Member Avatar for TGeorge824

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
Member Avatar for TGeorge824
0
104
Member Avatar for leverin4

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
Member Avatar for PopeJareth
0
143
Member Avatar for rstep21

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
Member Avatar for wheel
0
118
Member Avatar for roberto usu

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++
Member Avatar for roberto usu
0
143
Member Avatar for kz07

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++
Member Avatar for kz07
0
1K
Member Avatar for killerqb

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++
Member Avatar for killerqb
0
153
Member Avatar for DustinS

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
Member Avatar for DustinS
0
219
Member Avatar for rogerfsg

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++
Member Avatar for rogerfsg
0
137
Member Avatar for Atove

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
Member Avatar for TomW
0
162
Member Avatar for somekid413

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
Member Avatar for god0fgod
0
349
Member Avatar for bernadlosini

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
Member Avatar for Sameer.coder
0
974
Member Avatar for jwdvorak

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
Member Avatar for javaAddict
0
1K

The End.