199,114 Archived Topics
Remove Filter ![]() | |
Hello guys, I'm new here, and i have this question without an answer till now. So, what i want when people click on submit button on contact page, is that when e-mail is sended the Subject just update like... "Contact #00001"... when another people click it... it'll be sended like … | |
how would one define RANDOM FILES as well as suggest ways of creating and updating them in Visual C++? | |
I'm creating a logfile interpreter program that consists of two editboxes. The first editbox contains the original logfile code, and the second editbox contains the equivalent code of the first editbox in user-readable format. All I want to do now is, everytime I select or highlight a specific code in … | |
i did this beacuse i want that when i will make the window bigger he will grow as it shuld be: [CODE] public Form1() { InitializeComponent(); new Form1(ref webBrowser3, new Size(50, 50)); } private void Form1_Resize(object sender, EventArgs e) { UpdatewebBrowser3(new Size(256 + (this.Width - this.MinimumSize.Width), 256 + (this.Height - … | |
I'm trying to print a (or many) large aerial photos converted from tiff's to jpeg's and cannot seem to get it done without a MemoryError message. These files are between 6 and 15 mb is size. These images are 9x9 photos with these dimensions: Width = 11705 Height = 11712 … | |
Hi guys ,I have written a program which filter the text using replace function.What i want to do is to create another class and do all the filtering over there .How can i achieve this.I am pretty new to C# so any help would be appreciated. Thanks | |
hey my name is duplaix..am new in c++ so i need help! I have to write the following set of c++ functions fromBinaryToDecimal: The function must accept a pointer to a one-dimensional, dynamically allocated, Boolean array together with an integer representing its length as parameters. You may assume that … | |
Can VB be of any use in game development. I have a VB software and have been trying to know how to use it better I know someone knows better.Advice pliz.. | |
Hello everyone! Im new to programming and Im working on an assignment but I keep running into trouble. My assignment is to make a trivia game and although I have made pretty good progress, I am stuck on one particular part. The part I am stuck at is I am … | |
ok i made a Browser in FORM1 and i made a button that will open FORM2 (Form2 = Options) so in the Form2 i made a button to change the font of the Browser: [CODE] FontDialog fontDialog = new FontDialog(); if ( fontDialog.ShowDialog() != DialogResult.Cancel ) { textBox1.Font = fontDialog.Font; … | |
I have two list boxes in two different forms.. I load the data in to second list box using first list box...both have exactly same values.. but in first list box user selects multiple selections and i wanted to show them in second listbox as selected.. i have the following … | |
Hello, I was wondering if there was a way to cascade the windows any where on a form like in the middle or near the top left hand corner. I dont want the windows to cascade in the top left. I can provide a pic if needed. | |
If I want to find the X coordinate of an image that's already on a canvas, how would I do that with tkinter? | |
I have been trying to connect Database in Java for a quit time now. Following is the code. I have worked with .mdb extension, but this time I am using .accdb extension. Database File. [icode] import java.sql.*; class DB{ static Connection con; static Statement sta; static void getDBConnection(String path) { … | |
My console program outputs "*" symbols to indicate progress. I'd like to read this in order to update the progress bar in a Windows form: [code=c#] int Progress=0; System.Diagnostics.Process ProcessObj = new System.Diagnostics.Process(); ProcessObj.StartInfo.UseShellExecute = false; ProcessObj.StartInfo.CreateNoWindow = true; ProcessObj.StartInfo.RedirectStandardOutput = true; ProcessObj.Start(); while(!ProcessObj.HasExited){ Progress+= ProcessObj.StandardOutput.ReadBlock(buffer, index, 1); } Progress+= … | |
Hello everyone..i am newbie in C# programming.. i have two different forms..Form 1 and Form 2. Users will select multiple items in form 1. i wanted to duplicate the listbox in form 1 to form 2. please suggest how to do.. | |
OK, basically I want to test if the shift key is pressed. The method i've tried (unsuccessfully) is [CODE] private bool shiftPressed = false; private void CheckKeys(object sender, KeyPressEventArgs e) { //If enter is pressed and shift isn't //This allows for line breaks in a message by pressing shift & … | |
Can someone explain to me, the purpose of the "public" and "private" options of a class? | |
Hi, I have written a C# dll and I have a SQL Db that has three columns (username, password, role). The role element is a class of user eg admin, user; each role needs a different login completion event. The login form I am using is an ASP.net web page … | |
The memset function declared in memory.h is declared this way... void* memset(void* dest, int c, size_t count); and the MSDN example of its use I have shows this for setting the 1st four bytes of a buffer to a '*'... memset(buffer, '*', 4); The 2nd parameter confuses me a bit … | |
hi everbody I was opening all files in a certain folder I've used WIN32_FIND_DATA, FindFirstFile, FindNextFile. it works well but for certain extension that i ask the user to enter i.e it will get only all the files with the extension given by he user and ignore any thing else … | |
take two following classes: [CODE=c++] class Test1{ public: Test1()=default; Test1(char in1,char in2):char1(in1),char2(in2){} char char1; char char2; }; class Test2{ public: Test2()=default; Test2(char in1,char in2):char1(in1),char2(in2){} private: char char1; char char2; };[/CODE] I know in c++0x both of these classes are considered as POD types and we can initialize objects of them … | |
Im writing a program (has been a little while) which will gather files off my computer and make a new partition the right size to store them. I would like this to be automated since it would help if I use it on friends machines. So pretty much what I … | |
take two following classes and their constructors as samples: [CODE=c++] class One{ public: One(int a,int b):adad1(a),adad2(b){} private: int adad1; int adad2; }; class Two{ public: Two(int input[]){ for (int i=0;i<10;i++) araye[i]=input[i]; } private: int araye[10]; };[/CODE] considering objects with static storage duration, I think first constructor can be applied during … | |
How does an optimizing c++ compiler determine when a stack slot of a function(part of stack frame of a function) is no longer needed by that function, so it can reuse its memory? . By stack slot I mean a part of stack frame of a function, not necessarily a … | |
Hello! I have created a database named Ornithobase, which contains a Users table with Name, FamilyName, eMail and Username columns. I have already connected to the database with MySQLdb module. How can I print this table in the console from the Python script? Furthermore, how can I perform a search … | |
I've implemented changing src of an image using javascript but I don't want any javascript in my website now. So I need help to do that in PHP! :) What am I doing: In the main index.php file, [code=xhtml] <body onload="load_images();"> [/code] Then I include a random file [code=php] include("content_to_display.php"); … | |
I have a script here that takes a bunch of diff .txt files and plugs&chugs what's in one file into a master "template.txt" list. It basically replaces what's in the [BRACKETS] in the master template list with the other data files. Here's my code: [CODE] import re, sys class Template: … | |
Hi, I'm trying to make a link that changes my web page into a printable format and back: [code=HTML]<a id="print" href="#" title="Print map">Printable version</a>[/code] The switch to printable format works fine: [code=JavaScript] $('#print').click(function() { $('img').attr('src', newsrc); $(this).html('Screen version'); $(this).attr('id', 'screen'); return false; }); [/code] But going back, it doesn't work … | |
I was having an error, it says cannot convert string into int..i have no idea how to convert string into int. My teacher asked me to read 5 students names into the array..help me pls.. [CODE] #include<iostream> #include<string> #include <stdlib.h> using namespace std; int search(int data[], int size, int value) … | |
Could someone tell me how to generate a double random number by using PHP? THanks. | |
This code worked fine under 2.6: [CODE]f = open("v20100515.csv",'rt') r = csv.reader(f) try: r.next() # skip the header record for row in r: n = 1 for col in row: print str(n) + ": " + col n += 1 ......[/CODE] But since I upgraded to 3.1, I modified it … | |
![]() | Hello everyone My request is the following: Do anyone know about a collapsible panel that can be used on a windows forms project? Thanks for any answer ![]() |
Hello all I am very very new to programming & Python. My problem is I cannot figure out how to create a line consisting of random colored pixels. I know how to create a white or red line but how to make the colors random is beyond me. This is … | |
Hi, I have just started to learn python. I have installed and set the environment variables as per documentation. And from command prompt, I execute some python script,too. But I can't execute multiple line script, if the script contains any function. For example, see the following code - >>>a,b=0,1 >>>print … | |
i have this asp.net web site i made using v.s.2003 and i made a web setup project and made a msi installer but my installer file is not working properly when i execute it preparing to instill massage come an then it disappears and nothing happens after that if any … | |
Quick help please I am writing some data to a file but I do not know the information required in the third line until after the file is completed is there a way to point the ofstream back to the beginning of the file so that i can edit it … | |
Hi everyone; I have a character array of 13 elements and I already defined the first 5 ones. The rest chars are constant so all I need to do is assign the chars between 6-12 instead of writing them one by one.To make it clearer, say my string is "ILoveYouMary" … | |
I have the following code: [CODE] Private Function BuildDataTable(ByVal fileFullPath As String, ByVal seperator As Char) As DataTable Dim myTable As New DataTable("MyTable") Dim i As Integer = 0 Dim myRow As DataRow = Nothing Dim fieldValues As String() = Nothing 'string FileToRead = Server.MapPath(fileFullPath); Dim myReader As System.IO.StreamReader = … | |
Hi!, when im trying to execute following code.i get this error.can any one help me to make it correct. java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Unknown Source) at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Unknown Source) at SelectApp.main(SelectApp.java:18) this is my … | |
I would like to know how to write code for a right circular shift aka lazy susan. Its an array with 10 elements let me show you and example first time throw array it prints 1,2,3,4,5,6,7,8,9,10 second time throw after right circular shift of 3 places for example it prints … | |
*I need help solving this. Stuck half way. Would someone mind giving me an example of their program of this?* The local t-shirt shop sells shirts that retail for $12. Quantity discounts are given as follows: Number of shirts Discount 5-10 10% 11-20 15% 21-30 20% 31 or more 25% … | |
Ok, this has got me banging my head against a wall. I have a structure defined in a header file. It get initialized in my "main.cpp" file, then later in a separate file "readconfig.cpp" it gets accessed to store information. I haven't been able to get it to compile except … | |
The problem is that this program crashes: [code] program Arrays; var a: array[1..5] of Integer; i, j, tmp: Integer; begin a[1] := 23; a[2] := 45; a[3] := 12; a[4] := 56; a[5] := 34; for i := 1 to 4 do for j := i to 5 if a[j] … | |
I have an object: [CODE] function cat(){ this.timesSaid = 0 this.sayMeow = function(){ setTimeout(this.meow, 1000) } this.meow = function(){ this.timesSaid++; alert("Meow!") } } [/CODE] However, I keep getting this.timesSaid as undefined. I assume it has to do with me calling it via setTimeout. How do i work around this problem? | |
Hi i m developing a payroll and attendance project in C# with MS SQL server 2005. currently i am facing a problem with one of my class. i can not understand the problem. now i would like to send my full code and database by email to anyone of your … | |
I am not a developer, but I am trying to learn SQL to write reports for auditing our data. I want to extract empoloyee contact information, because I feel we are missing some CREATE_MIRROR_FLAG. I found the contact information on the per_contact_relationships table, but now I need to find the … | |
I want to add Combobox in a column of Datagridview in window Application using C#.net. How can i Do this. | |
Hi, what are the classes that cannot be instantiated in c++? I know that one of the ans is Abstract base class.what is the other one in c++? could you please help us? |
The End.