199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
[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 … | |
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 … | |
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 | |
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 … | |
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 … | |
Hi guys, How can i store multiple image paths in one single MySQL field, help please Thank you OCBPHOTO | |
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; … | |
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 … | |
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). … | |
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 … | |
Hi, how to declare optional parameters in C#. Like... public void test(int a, Optional int b) Thanks in advance. | |
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 … | |
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 | |
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 … | |
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? | |
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. | |
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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
What does the following piece of code do? document.write("<h" & i & ">This is header " & i & "</h" & i & ">") | |
I'm a beginner and like to know how do you get all links in browser1 and display them in a listbox | |
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 … | |
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 … | |
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" … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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. | |
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 … |
The End.