199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xcyrus_tan_rx

pls help me with my code! it wont align! T_T i cant get it to work correctly! pls help guys! heres the screenshot! the date wont align huhu! [IMG]http://img72.imageshack.us/img72/4647/helprk3.jpg[/IMG] [code] #include<stdio.h> #include<string.h> #include<conio.h> int getNumberOfDays(int month,int year) { switch(month) { case 1 : return(31); case 2 : if(year%4==0) return(29); else …

Member Avatar for xcyrus_tan_rx
0
147
Member Avatar for knish

i am using glob.glob('') function to get a list of all files from a folder. I need to get only those names which do not contain '_ab' in it. How is it possible. I understand the need for regular expressions here. i tried (?!....) . what should work here. example …

Member Avatar for ghostdog74
0
141
Member Avatar for matejkralik

Hey professionals, I use DataGridView that allows me to add new rows in table. But when I want to delete it by clicking on my deleting button with following code: DataGridView.Rows.RemoveAt(DataGridView.CurrentCell.RowIndex); ...it makes problems, others rows aren't problematic to delete but this is. But not on purpose I want to …

Member Avatar for Renukavani
0
101
Member Avatar for dinilkarun

Hi friends, I have a custom tree control(Tree control) and a check list box placed next to each other on a frame.i.e., tree control on the left side of the frame and check list box on the right. I need to place sizers such that on exapnsion of the frame, …

Member Avatar for lllllIllIlllI
0
114
Member Avatar for ocbphoto

i know this maybe to easy for you, this is what i need to accomplish: 2 list menus 1.- Manufacturer (Honda, Kawa, Susuki) 2.- Model (cr250, cr125,etc..) each manufacturer has their own models 3.- Year(1999.1998,etc..) So i would like to have the first list menu listing the manufacturers options and …

Member Avatar for ocbphoto
0
126
Member Avatar for gouki2005

[CODE] Imports System.Data.OleDb Module Module1 Sub Main() Dim Cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\mibase.mdb;Persist Security Info=False") Cn.Open() Dim comando As OleDbCommand comando = New OleDbCommand() comando.CommandText = String.Format("SELECT Telefono FROM empleados ") comando.Connection = Cn Dim lector As OleDbDataReader lector = comando.ExecuteReader Do While lector.Read Console.WriteLine(lector("Telefono")) Loop Dim nombres As New …

Member Avatar for gouki2005
0
869
Member Avatar for justted

Hello, It seems my IF ($email_settings == "0") isnt working properly. I am trying to get it so that IF a setting in a table field is set to 0 then it continues and executes the info between the {} which is to send an email. However, if the IF …

Member Avatar for Franky_Fr
0
138
Member Avatar for bear24

Hi, I got a question here. I know the code to refresh the page is [code] echo "<meta http-equiv=\"refresh\" content=\"0;URL=user_dlist.php\">"; [/code] But how should i go about changing this code: [code] echo "<a href='view_topic.php?id=".$id."'>View your answer</a>"; [/code] Please assist! And thanks a lot! bear

Member Avatar for bear24
0
124
Member Avatar for jireh

I have a datagridview with three columns namly column A, column B, column C. column A has a column type of DataGridViewTextBoxColumn. while column B and column C has a column type of DataGridViewComboBoxColumn. The problem is this.... During form_load I want the column type of column B and column …

Member Avatar for LizR
0
90
Member Avatar for asifjavaid

hi guys, I want to call win32 dll in C#. It has parameters encode(char *argv[]). what i have to write in in C# in the placa of char *argv[]. I have make my efforts see my code below but vain. [code] // in C++ int ConvertBinToAmt(char JFIF_NTSC_XML_File1[],char JFIF_NTSC_XML_File2[], char DestinationFolderName[],char …

Member Avatar for LizR
0
205
Member Avatar for ocbphoto

Hi guys, How can i store multiple image paths in one single MySQL field, help please Thank you OCBPHOTO

Member Avatar for Shanti C
0
492
Member Avatar for plike922

I need help with program i cant find a way to get rid of the error and if i think a little bit more my head will explode this is a 2day program for me [CODE]#include <iostream> #include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" #include "string.h" using namespace std; …

Member Avatar for rpiper138
0
83
Member Avatar for nike123

A little help, required with this insert.php script, which is meant to add a new user to mysql user, unfortunately when this script is executed, and username and password inserted, it doesn't actually add the new MYSQL USER, instead i just get the error message . <?php if(isset($_POST['add'])) { include …

Member Avatar for phpnukes
0
323
Member Avatar for HolyEnd

I'm making a program that involves the copy and pasting of a piece of text into a TEditBox and submitting the text into 4 different columns in a TListBox. This program is actually for a game called FlashFlashRevolution (great free, online, ddr-like game if anyone wants to try it out). …

Member Avatar for ExplainThat
0
155
Member Avatar for bear24

Hi, I have a problem here and i need some help. I like to know how to link php code to other pages. The following is the entire code : [code] <td bgcolor="#FFFFFF"><? echo $rows['topic'];?></td> [/code] This echo out the topic, but i want this topic to be a hyperlink …

Member Avatar for bear24
0
98
Member Avatar for Raj.Acharya

Hi, how to declare optional parameters in C#. Like... public void test(int a, Optional int b) Thanks in advance.

Member Avatar for LizR
0
101
Member Avatar for websurfer

hello, all: I design web pages and was wandering if there is a way so that one can show a design or a web-page on any browser, but the html code (or all respective image files, css, etc) can't be viewed or downlaoded from a browser?? I thought maybe thru …

Member Avatar for nikesh.yadav
0
87
Member Avatar for dinilkarun

Hi friends... I have a frame with a panel which contains a static bitmap. On resizing or expansion of frame, I want the bit map to be at the centre position with refernece to the frame always irrespective of the size of the frame. Please help!!! Regards, Dinil

Member Avatar for dinilkarun
0
81
Member Avatar for JONZ

Can anyone help me make a pseudocode for this function....cause its really difficult:'( [CODE]int updateRecord( FILE *fPtr ) { int account; /* account number */ double transaction; /* transaction amount */ /* create clientData with no information */ struct clientData c = { 0, "", "", 0.0 }; /* obtain …

Member Avatar for rpiper138
0
175
Member Avatar for abcd_nima

Is it possible for a function to return a string,an array of characters to the calling function? i mean something like char f1() { char www="nima"; return(www); } if not,please tell me how is this possible?

Member Avatar for ArkM
0
118
Member Avatar for Clipper34

Hey guys, well first off i'm a new member here. My question is how do you go about killing/stopping a process? Thanks, Clipper34.

Member Avatar for Ancient Dragon
0
202
Member Avatar for JackDurden

Can I use getline to get two lines of string data? for example: [CODE]string line; string myfile; ifstream file; file.open(myfile.c_str()); while(!myfile.eof()) { getline(myfile, line) }[/CODE]

Member Avatar for Ancient Dragon
0
506
Member Avatar for Prathvi

Hi, With the same GetOpenFileName(...) I have one problem. when this displays the dialog with files, the time displayed in the date field will not be local time. Instead GMT time. How I can Change this. i.e in the mobile, time is set as GMT + 5.30 New Delhi. At …

Member Avatar for Ancient Dragon
0
79
Member Avatar for JustLearning

Here is the header file I was given to use [code] // // ministack.h // #ifndef MINISTACK_H #define MINISTACK_H const int MINI_STACK_SIZE = 5; // Fixed number of element in stack class MiniStack { private: int num; // Number of values stored in MiniStack char* stackPtr; // Pointer to array …

Member Avatar for JustLearning
0
160
Member Avatar for smile4evr

hi every1... i hv a doubt in updating my date... i hv a textbox asking for the number of days(days1).... n a dtpicker1 that should show the date after the number of days(days1) from the date the form is run and submitted.... there is a lable today that takes the …

Member Avatar for smile4evr
0
112
Member Avatar for MylesDBaker

Hello everyone. I am trying to create a program that reads these values / strings from a file: 170 Lipstick 250 Orange Crush 350 Chickadee 450 Green Grass 550 Monaco 750 Toffee Crunch Then I am supposed to create a menu that prompts the user to provide either the number …

Member Avatar for MylesDBaker
0
152
Member Avatar for bpacheco1227

I need to average the numbers in the array and display and also detemine the letter grade and display. I've managed to average the numbers but I am unable to display the lettergrade, (won't compile) I think it has to do with "Average Grade" being a constant string This is …

Member Avatar for bpacheco1227
0
156
Member Avatar for Tekito

I have created a class module, and my program creates many instances of the class. Each object has a lot of data, and I want to be able to create a new instance that is a copy of an existing instance. I can't figure out a automatic way to do …

Member Avatar for Tekito
0
711
Member Avatar for Dannielf

ok, so I just started looping today and the simpler programs are all right, but we got a pretty complex assignment which I am pretty lost on. here's the assignment: [I]Write a program that updates a person’s bank balance based on withdrawals and deposits. Ask the user to enter the …

Member Avatar for VernonDozier
0
162
Member Avatar for Peda

Hey there, I've got a little question. I writing a homepage for a pizza delivery service and i have got a little problem which i am not able to solve. If i open the page from the computer i have written it on, everything works just fine but if you …

Member Avatar for Peda
0
115
Member Avatar for predator78

Hey all, still working on my lil program. But now that I'm getting into loops I'm pretty confused on this one. Needless to say I think this is the first while loop I have used since I started python about a week ago. What I'm trying to do at this …

Member Avatar for predator78
0
117
Member Avatar for monkey_king

I've been overloading some methods for a template class. This means I can write my code in this way. [CODE=c++] myClass var3=var2+4; [/CODE] Is it possible to do it the otherway around like [CODE=c++] myClass var3=4+var2; [/CODE] I know that the end result will be the same, I was just …

Member Avatar for monkey_king
0
149
Member Avatar for anilvc31

Dear friends I am electrical engineer of 54 yr age. Recently, I have developed interest in vb6. Vb.net is too complex for me to understand. At present I am trying to develop a software in which family details are to entered. family.mdb is having tables, name, place & family. To …

Member Avatar for jireh
0
1K
Member Avatar for sai.baranidhara

Hi, I am using an excel sheet containing around 200 records and linking it to my MS-Access database through the Link Table option available in MS-Access. But I need to change it everytime when I go from one system to another as the path of the Excel file changes. That …

Member Avatar for jireh
0
117
Member Avatar for Rioku

First I want to apologize if this has been asked before. I have spent hours trying to figure this out and can never find a straightforward answer. It has turned out to be a FAR more difficult problem then I originally thought. Basically, I need to write a client side …

Member Avatar for Rioku
0
171
Member Avatar for DotNetUser

I want to allow the user to tell me how many rows and columns of buttons to draw. Then draw the buttons. When a button is clicked, it displays the row # and column # of that button in a msgbox. I would create a button using the following code: …

Member Avatar for vckicks
0
970
Member Avatar for lupin99

hi everyone... i'm a newbie to xpath and i don't know how to extract all the ToolAlarm nodes from my xml file... here's the xml file and code snippet: <?xml version="1.0" encoding="utf-8" ?> <ToolConfigurations> <ToolType name ="EQP1"> <ToolAlarms> <ToolAlarm name = "AIR PRESSURE LOW"/> <ToolAlarm name = "FALSE ALARM"/> <ToolAlarm …

Member Avatar for techtix
0
147
Member Avatar for ruby.n

What does the following piece of code do? document.write("<h" & i & ">This is header " & i & "</h" & i & ">")

Member Avatar for techtix
0
69
Member Avatar for tegezee
Member Avatar for techtix
0
109
Member Avatar for gleegeld

Hello, I'm trying to create a script that searches for all .pst files on a local pc and gathers the filename, path and size and outputs that data to a file called username.txt. I am having problems with my code. It creates the username.txt but does not write the .pst …

Member Avatar for techtix
0
77
Member Avatar for ashkash

I am trying to write some information out to a file. I have a string in hex values and I need to write this out to the output file. The hex string I have is 4b70 4772 64. The string equivalent is KpGrd. I have: char a[] = "4b7047726400"; Then …

Member Avatar for ArkM
0
97
Member Avatar for tyserman5674

Hi All, I have a program trying to use mousehover to pause the autoscroll. It is a widows form called: lstOutput System.Windows.Forms.1 Below is how it is in my code. Public Sub lstOutput_MouseHover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lstOutput.MouseHover 'Public EventMouseHover As EventHandler lblPauseScroll.Text = "Output Paused" …

Member Avatar for tyserman5674
0
178
Member Avatar for bbhe

Hi, I am trying to replace a few text strings in a text file (test.txt), and then makeing some spaces, for it to be easier to read Anyone have an example I can use, because I am new to C++ I just want to replace "word1" with red "word2", and …

Member Avatar for bbhe
0
153
Member Avatar for zhinokin

could someone help me how to reverse a string in a86 ...the program will goes like this.user will input a string of 4 characters or less than 4 for ex..whin then it will output nihw..but if the user will input 5 or more than, for ex. whinz the output would …

Member Avatar for sDJh
0
210
Member Avatar for josbro79

Hi, I am looking for a script that will allow people to be able to download one of my web templates, directly after they have payed. At the moment the customer has to pay and then wait for me to actually send an email to them with the template as …

Member Avatar for musicbox
0
253
Member Avatar for jesseb07

hello, I wrote an expect script to automate ssh commands, and it was working, but for some reason it's not anymore. Just to make sure I didn't do any weird changes that I didn't notice, I tried several of the dozens of such scripts that are online, and for some …

Member Avatar for jesseb07
0
126
Member Avatar for laspal

Hey, I am trying to create tuple but not able to do it. here is my code: datatuple =() for emailadd in mailing_list: datatuple((subject, message, sender, [emailadd])) send_mass_mail(datatuple) basically it should be in this format: datatuple = ( ('Subject', 'Message.', 'from@example.com', ['john@example.com']), ('Subject', 'Message.', 'from@example.com', ['jane@example.com']), ) so here my …

Member Avatar for woooee
0
238
Member Avatar for bman923

Im supposed to write it as def day(d,m): and then write the function code. I really cant figure out how this is supposed to be done. Can anyone help or give hints or ideas?

Member Avatar for woooee
0
95
Member Avatar for noadek

I'm working on a project graphical based authentication and i need to implement this with C++. I need to understand this concept and all the books i ve read, none has really explained it well. Please I need help and badly.

Member Avatar for Salem
0
247
Member Avatar for JackDurden

How do I input a string then output a vector from this function? The compiler doesnt seem to like "while(invector>>word)". [CODE]vector<string> example (string invector);//prototype vector<string> example(string invector) { string word; stringstream insert(invector); vector < string > vectemp; while(invector >> word) vectemp.push_back(word); for(int i = 0; i < vectemp.size(); i++) cout …

Member Avatar for Narue
0
121

The End.