64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Paryushan

Hi, I would like to automate some of my actions on command prompt using perl. can u plz help me how to start with it. Like I want to connect to oracle database and run a sql query. How do I do that? Here are the steps that I need …

Member Avatar for KevinADC
0
148
Member Avatar for Liinker

I'm mapping a file view to share an array of 200 std::strings between two processes but I've been getting an access violation error when I write a string longer than 15 characters into the array. Does anyone know how I might increase the size of each array element so it …

Member Avatar for Liinker
0
875
Member Avatar for RenFromPenn

Hi, I am trying to change the address in an array using *nums++. When I run the program, however, the first number in the array is skipped. What am I missing? How do I get the first number to display? [CODE]#include <stdio.h> int print(int[]); int main() { #define NUMBERS 7 …

Member Avatar for RenFromPenn
0
114
Member Avatar for shaikh_mshariq

I want to pass a large string in ajax request that would be parsed and resultant data is returned by the server. How can I achieve this ? Is POST method can read a large string from any html element using AJAX ? And if yes than how it is …

Member Avatar for hielo
0
249
Member Avatar for khr2003

hello I found a js that allows to use dependent drop down menus, and here it is [CODE]<script language="JavaScript"> function ShowReg(op) { document.getElementById('Car').style.display='none'; document.getElementById('Boat').style.display='none'; document.getElementById('Plane').style.display='none'; if (op == '1') { document.getElementById('Car').style.display="block"; } if (op == 2) { document.getElementById('Boat').style.display="block"; } if (op == 3) { document.getElementById('Plane').style.display="block"; } } </script> <select id="choice" …

Member Avatar for ~s.o.s~
0
151
Member Avatar for MaxVK

Hi. I have tree control with a structure already in it. A function returns a string that matches one of the items in the tree control structure (They are all Unique), and I need to select that item in the tree. It doesn't matter if the code underlying a selection …

Member Avatar for MaxVK
0
147
Member Avatar for kodingkarthik

Hi all, I am new to asp.net programming and i am using asp.net calender control the code tht i am using is [CODE]Protected Sub btn_dob_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btn_dob.Click Try If (txt_dob.Text.Trim() IsNot DBNull.Value) Then Calender2.SelectedDate = Convert.ToDateTime(txt_dob.Text) End If Catch ex As Exception End …

Member Avatar for kodingkarthik
0
174
Member Avatar for Swemp

Hi, I'm Sven I'm a student from Belgium and one of my classes is about C++ I'm working on a program for such a long time, but I can't find the solution. (First of all : sorry for my bad english) Here's what I'm supposed to do : I have …

Member Avatar for Swemp
0
1K
Member Avatar for Stonehambey

As far as I've been able to discern. The "cannot find symbol" compile error is a result of one of 2 mistakes. 1) The class name is spelled incorrectly 2) The class isn't in the same directory as the class trying to instantiate the object or the class isn't in …

Member Avatar for Stonehambey
0
111
Member Avatar for knrakesh

hello friends thanks to all for their co-operation iam facing a problem with date function i want to insert it in a database by taking from form is there any one whi gives the code Thank u KNR

Member Avatar for dilipv
0
169
Member Avatar for Paryushan

Hi, I am trying to find and replace a particular string in a file and save that file. Here is what I did, where I am writing the output after replacement into new file. I was trying to avoid to open the file for writing and try to use just …

Member Avatar for Paryushan
0
80
Member Avatar for Eggplant

Hi, I you probably have much annoyance with homework help, but I'm a first year student in high school doing a AP comp sci class. I'm currently working on my eighth program, the past 7 were all solved by me, and I helped others with it, so I'm not trying …

Member Avatar for Eggplant
0
390
Member Avatar for aveltium

Hi! I'm new to Java. I need to make an array like: int b[] = {0,1,2,3,4,5,6,7,8,9}; Is it possible to use a loop to generate an array like that? I don't know if I'm asking the right question, so I will try to explain it: [code=java] class test0{ int a=0; …

Member Avatar for aveltium
0
146
Member Avatar for bharanidharanit

Hello sir, I want similar coding for treeview, where for linklabel is as follows. [CODE] Private Sub LinkLabel8_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel8.LinkClicked WebBrowser1.Navigate(Application.StartupPath & "\source\test.html\") End Sub [/CODE]

Member Avatar for bharanidharanit
0
120
Member Avatar for bharanidharanit

Hello sir, I am having treeview control and webbrowser control. I Having three nodes in treeview. Node0 -> ParentNode Node1 -> ChildNode Node2 -> ChildNode So when i click Node1, i want some webpage to be displayed in webbrowser control and similarly with node2.

Member Avatar for bharanidharanit
0
340
Member Avatar for Excess3

Hello ,, i need to write to opened file in w+ mode.. now the problem is that first off all i need to check first string in each line if he the same to value i want to enter , dont enter and print error : in another words i …

Member Avatar for Excess3
0
123
Member Avatar for Comatose

That link doesn't work correctly (the ...'s in the url are pretty much invalid). If you could resend the link to the code, or use [url]http://tinyurl.com/[/url] to make the link smaller so that the site doesn't truncate the data, it would be greatly appreciated. Coma

Member Avatar for titan_eye
0
123
Member Avatar for Fouly

Hi, I'm trying to send a bitmap using WCF and here's the steps i followed: 1-Convert it into byte array [code] private IDataObject tempObj; private System.Drawing.Image tempImg; tempObj = Clipboard.GetDataObject(); tempImg = (System.Drawing.Bitmap)tempObj.GetData(System.Windows.Forms.DataFormats.Bitmap); tempImg.Save("hello.bmp"); VideoData = System.IO.File.ReadAllBytes("hello.bmp"); [/code] 2-Receiving the byte array from the other client side and convert it …

Member Avatar for Fouly
0
754
Member Avatar for PhiberOptik

Hey guys, I am trying to delete a file. I don't understand why its not working. [CODE=java]public void Refresher()throws IOException { File theFile=new File("C:\\theFile.txt"); theFile.delete(); }[/CODE] I launcher it with [ICODE]Refresher();[/ICODE] I googled around and followed a tutorial. (My code is compiles correctly) Thanks PO

Member Avatar for PhiberOptik
0
354
Member Avatar for SerogaM
Member Avatar for SerogaM
0
416
Member Avatar for ptaylor965

Hi have a form with a Multiline Textbox and a Span I save the text and load into a <span> [CODE]lblSpan.InnerHTML = txtMLBox.Text.ToString.Replace(Environment.NewLine, "<br/>")[/CODE] The Span looks fine in IE but If I do this in Firefox the Environment.NewLine is not being converted I am using Visual Studio 2008

Member Avatar for ptaylor965
0
146
Member Avatar for Kelicula

Hi all, I am usually a Perl programmer, I have some background in javascript and am attempting to create a Googleish selector div. [I]Please bear with me, excuse the long introduction...[/I] Here's the details: Our site filters content by location. I use zip codes to find radius's. So if a …

Member Avatar for hielo
0
235
Member Avatar for CPPRULZ

OK I'm a beginner at C++ so don't mock me for this question, so when I declare a pointer ptr (int *ptr; ) and then define ptr as 5 by saying *ptr=5; what adress is ptr pointing at-a temporary variable? Thank you-just curious.

Member Avatar for JoBe
0
130
Member Avatar for harryoma

hi everyone ;) i'm am having a problem, can you help me how to save big number into array? i have to input two big numbers (20 digits or less) and sum them. please help

Member Avatar for ddanbe
0
212
Member Avatar for SerogaM

I build Log in window where user enter his usernmae and password I still don"t want use SQL and any data keeper, it's only for two users so I check the password and username if it' ok than user must press botton OK and load next window this step I …

Member Avatar for SerogaM
0
78
Member Avatar for kacete

Hey guys, I'm having another problem (two actually) with a function that reads 5 variables (type [B]int[/B]) stored in an text file, separated by lines ([B]\n[/B]) and then it returns them to use in the main() program. The thing is, I do not know how to return them to the …

Member Avatar for kacete
0
190
Member Avatar for SerogaM

I still can't understand what a difference between a regular window and modul form ? what it means modal form?

Member Avatar for ddanbe
0
118
Member Avatar for SerogaM

Hi,I'm new in WinForms Application help me change my ComboBox to default state of one of Collections I have Thanks Sergey

Member Avatar for Ramy Mahrous
0
163
Member Avatar for BestJewSinceJC

I managed to delete the only up to date saved copy of an important Java project I had (I know, I know). I have the compiled .class files and I know it's possible to decompile them. Can anyone direct me to any references or anything to help me do this …

Member Avatar for BestJewSinceJC
0
132
Member Avatar for Rameses

This is ClickMe program where it's suppose to change button text once the user clicks the button. Although, program does successfully launch and pops up the "Click ME" button but once it's clicked nothing happens, it doesn't change anything. Any help would be appreciated. import javax.swing.*; import java.awt.event.*; public class …

Member Avatar for BestJewSinceJC
0
93
Member Avatar for mr_scooby

Hi, I am trying to add a timer countdown of 30 secs to a form I have made. Here is the code inside the start button [code] timer1.Interval = 1000; timer1.Enabled = true; [/code] here is the code inside the timer_Tick [code] timerlbl.Text = timer1.ToString(); [/code] what happens tho is …

Member Avatar for mr_scooby
0
151
Member Avatar for wmuldoon

hello all, I work at a newspaper, and we use QuarkXPress for Desktop publishing...and we have a pretty unfortunate glitch, when Quark crashes, it seems to untick the backup option in the pref's... so I was thinking this would be a good place for a small recursive script, that would …

Member Avatar for wmuldoon
0
254
Member Avatar for bharanidharanit

Hello sir, I am having one tabcontrol and many tabpages in it. I want to activate it with the button control. so when i click button1, tabpage2 must be shown. and so for button 2 etc. so i used the code below, but not working. [CODE] Tabpage2.show() [/CODE]

Member Avatar for Teme64
0
77
Member Avatar for madrikh

I'm just tarting with wxPythjon. I wrote this simple program to get some experience with panels.. It wants to open a frame and add a number of euivalent panels, each with an inactive button. And it does seem to do tht (the sizing is fixed because it's only a toy). …

Member Avatar for madrikh
0
158
Member Avatar for Tank50

Hi I have dropdown list in my asp.net page.I wrote a below coing coidng in the `SelectedIndexChanged`, protected void cmb_Se_SelectedIndexChanged(object sender, EventArgs e) { SqlConnection con=new SqlConnection("Data Source=20.1.2.58;Initial Catalog=Customer;User ID=test123"); string str = "select ExecutiveName from Executive where TeCode='"+cmb_Te.Text+"'"; con.Open(); SqlCommand command=new SqlCommand(str,con); SqlDataAdapter adpter=new SqlDataAdapter(command); DataSet data=new DataSet(); adpter.Fill(data); …

Member Avatar for culeu
0
136
Member Avatar for athar89

I have written this parsing algorithm in c++ and compiled in visual studio.On runtime after giving the value it gives an assertion error. The logic is correct bcuz ive dry runned it but i think there's a problem with memory allocation.I need urgent help.Please. // sas.cpp : Defines the entry …

Member Avatar for Murtan
0
185
Member Avatar for Stefano Mtangoo

I was thinking of Separating functions from GUI. I want when have different classes of GUIs that share functions, then I will have one class full of function/methods on need. However I failed to separate them, for I could not make instance of Functions class in the gui class in …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for mostermand

Hi i am trying to make a notepad like program. The problem is that when i try to display some text nothing happens. If someone could help me i would really appreciate it. The function call: [code=c++] ... SetWindowText(edit, "TEST"); ... [/code] Creation of edit: [code=c++] ... HMENU Menu, SubMenu; …

Member Avatar for mostermand
0
4K
Member Avatar for Clockowl

Hey guys, This program gives me a nice segfault (on line 27 and if it's removed on the realloc() below that) and I can't seem to figure out why. Any help is greatly appreciated. [code=c] #include <stdio.h> #include <stdlib.h> #include <string.h> /* Parses parse_this for tokens using strtok() with seperators …

Member Avatar for Salem
0
113
Member Avatar for orwell84

There was no forum for just general programming, so I decided to put this here. Just out of curiosity, does anyone know how you get from your programs running in terminal or command prompt to having them opening in their own window, with their own GUI? If anyone could shed …

Member Avatar for orwell84
0
207
Member Avatar for bugmenot

Hy, I am trying to encode an X509 certificate into base64, and since the encoder I'm using takes only char*, and typecasting doesn't work, i find a different way to do this. I'm sure there is a simpler way, but i just can't find it. Here is the code: [CODE]BUF_MEM …

Member Avatar for bugmenot
0
381
Member Avatar for lllllIllIlllI

Hi I have been using classes for quite a while but there is still one concept yet that i havent ever quite understood and that is decorators. I have noticed Gribouillis uses them a lot so in some ways this question is directed at him. I would like to know …

Member Avatar for lllllIllIlllI
0
115
Member Avatar for NewtoC++

Okay I am writing a database type of program, which will store data about people. I want to create a class: class Person { public: int age; int weight; int height; }; Okay now I want to do something like this: cout << " Enter name of person.\n"; cin >> …

Member Avatar for NewtoC++
0
18K
Member Avatar for Paryushan

Hi, I am trying to write the output generated by a simple command "dir" to a file. Can you please help me do that? Here is what I am doing -- system ("dir"); this will run dir command on my D: drive now, I want to write this ouput (in …

Member Avatar for KevinADC
0
119
Member Avatar for wwwmadeasy

hi there ... i want to Handel a select field in php but i could not ..so i was wondering if someone can help.... what i want is there will numbers from 3 to 40 listed in select field and when user select 3 3 text box will appear and …

Member Avatar for wwwmadeasy
0
164
Member Avatar for kischi

Hi I have a problem when I am copying data from my excel document to sql server 2005. I have a document called database.xls Every time I try to copy files from the document to sql server. It comes up with an error. "Column 'tid' does not allow DBNull.Value." You …

Member Avatar for Ramy Mahrous
0
511
Member Avatar for robertmacedonia

Hi to all, I am stuck with these problem, so I must ask for a little help. I have this "postfix notation" expression " 5 9 + 2 * 6 5 * + " ,written in a file "izrazi.txt". So , I am supposed to read it from the file, …

Member Avatar for robertmacedonia
0
431
Member Avatar for Emmily

Hello everybody. I'm new in C++ Builder and I have problem with my application. I have some files on input and first I add files in ListBox1. I try to sort them by 3 conditions (firts is date, second is some secc. number and thirt is const. number) for example …

Member Avatar for Emmily
0
213
Member Avatar for rkumaram

Following program gives me output 556 , I cant understand why ? [code] #include<stdio.h> main(){ int i =300; char*ptr =(char*)&i; *++ptr = 2 ; printf("\n%d",i); } [/code]

Member Avatar for rkumaram
0
93
Member Avatar for rhesus303

I'm learning some shell scripting but came across this line: [icode] link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` [/icode] Where [icode]ls=$0[/icode] Can someone explain it to me pls?

Member Avatar for eggi
0
231

The End.