199,114 Archived Topics
Remove Filter ![]() | |
I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; … | |
Hi there I am creating a system where I link a .net app to a oracle db and am currently working on linking it to the database so that I can add new users for oracle here is my code: [CODE]Imports system.Data.OracleClient Public Class Form1 Dim OracleConn As New OracleConnection … | |
[code] Private Structure word Dim b1 As Byte Dim b2 As Byte Dim b3 As Byte Dim b4 As Byte End Structure Private Function DoubleToWord(ByVal n As Double) As word DoubleToWord.b1 = Int(DMod(n, 2 ^ 32) / (2 ^ 24)) DoubleToWord.b2 = Int(DMod(n, 2 ^ 24) / (2 ^ 16)) … | |
![]() | anyone know how can i convert bmp to jpg using php? ve play wif gf function but seem got work out |
is it possible to add a number to a number that is stored in mysql db without extracting the stored number first. i have a count and i am updating the count periodically but i would like to know if i can update the count while it is in side … | |
after i have run my query on a mysql db how can i set the result to equal a variable that i will use later on in the page. i have set the query up like this [CODE] <?php $rand = rand (0, 100); $query = "SELECT broad1 FROM images_broad"; … | |
![]() | i have a (process) php code which run background which listening to incoming. and i wanna have another (admin) php code for admin use which i can start and stop the 1st (process) php code. starting the (process) php code is easy with exec(/usr/php5/bin/php my_process_code.php); but how can i stop/kill … |
[code] 'language = Visual Basic 6 Public Sub CreatePlayList(ByRef songs() As String, ByVal name As String) Dim i As Integer Set listCollection = frmMusic.wmplay.playlistCollection Set list = listCollection.newPlaylist(name) frmMusic.wmplay.currentPlaylist = list For i = 0 To UBound(songs) Set wmpMedia = frmMusic.wmplay.newMedia(songs(i)) frmMusic.wmplay.currentPlaylist.appendItem wmpMedia Next End Sub ' I believe the … | |
hi can any one help me to create customtag for database connection. here i paste the which i tried, db.java (tag handler) --------- [code=JAVA] import java.io.IOException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import javax.servlet.jsp.tagext.DynamicAttributes; import javax.servlet.jsp.tagext.*; import javax.servlet.jsp.JspWriter; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspContext; import javax.servlet.jsp.PageContext; … | |
Hello everyone, I was wondering how can I make a precise delay that is shorter then 1ms on C++(I need it to drive a servo motor via PC)? If I understand correctly the standart delay function has a resolution of 1ms, so it won't do it... Thank you, A. | |
Basically i have a wizard so a user can setup the web app correctly when installed. This requires them to enter details on a server which houses their database. I would like to return a list of current paths in the local network for ease which they could select etc … | |
i have created a table to store the number of a count which i need for some subtraction at a later date. when i try to get the information out of the table instead of getting the number 5 i am getting resource id # 5. the table has been … | |
The following login script is not working, i am unable to trace the problem, please anybody help me... [ICODE] <?php include ("template/login.tpl.htm"); session_start(); if (isset($_POST['userid']) && isset($_POST['userpassword'])) { include 'library/config.php'; include 'library/opendb.php'; $userId = $_POST['userid']; $password = $_POST['userpassword']; // check if the user id and password combination exist in database … | |
Hi this works in IE6, IE7, but not in FireFox... any ideas? [code] (On PageLoad) ImageMap1.Attributes.Add("onMouseOver", ImageMap1.ClientID & ".src='images/addpatient1.jpg'; window.status='Mouse Over'; return true;") ImageMap1.Attributes.Add("onMouseOut", ImageMap1.ClientID & ".src='images/addpatient.jpg'; window.status=' '; return true;") [/code] The rollover effect just doesn't happen in FF.... grrrrr..... | |
hello frds I want to drag and drop all label created crossponding to checklist box's checked item. But problem is only move last created label. other give no responce. help me.. my code is. public CheckedListBox chk; private void Form1_Load(object sender, EventArgs e) { chk = new CheckedListBox(); chk.CheckOnClick = … | |
I need to write a program that reads a file consisting of students' tests scores in the range of 0-200. I need to break them into ranges :0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, and 175-200. Then I need to Output the score ranges of the students. Also I nee … | |
Formdocs has given me the following code. What I am trying to accomplish is make the form undeleteable without a password. While the code kinda works all you have to do it select cancel and you can delete the record. any Ideas other than go back to class and pay … | |
Is there a way to convert from an integer to a string? | |
is this possible to do? [CODE]if ($sent_mail <= 200 ($limit)) { // construct mailing list array $merc_list = explode(",",$merc_mailingList); // deploy the emails for($i=0; $i<count($merc_list); $i++){ // email body inside here } // END for $sent_mail = $sent_mail + $i; } // END if condition else{ include("limit.php"); } [/CODE] | |
Hi I'm now into data structures: this is the problem: string s = "abcdef" char[] mychar = string.TocharArray(); int Length = s.length; StringBuilder sb = new StringBuilder(Length); -------Basically I need to construt a new string with the last two character iterated twice if the string = the same string. does … | |
Hi, Im trying to work out a way for users to be able to add new columns to tables in an SQL Server database through Dreamweaver. I have tried using stored procedures but i keep getting errors. The user will choose which table they wish to add a column then … | |
How can we enter a table under the list box. And how can we edit the content on each cell of table | |
Hi, I am uploading images in a form. But it only sends the images in a folder 'upload' and send only the file name to the database. How do I send the image to the database and retrieve it for display. | |
i wnt to knw how do i provide security to my software before handing it over to the client so tht he cannot misuse it can ne one help urgently required | |
Can some one help me to write this in asp? Is it possible? [code=ASP.NET]<asp:TemplateField HeaderText="Release"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem, "Release" )%> </ItemTemplate> <EditItemTemplate> <asp:TextBox runat="server" id="txtRelease" Text= '<%# if (bdirty) then DataBinder.Eval(Container.DataItem, "Release" ) else GetDefaultRelease()%>'/> </EditItemTemplate>[/code] | |
One of my web page contains dropdown and gridview only.There is no button.I want to validate that dropdown when i click the gridview.(OR) validate when control moves from that dropdown.Help me. | |
I'd implemented what i need for the project but i found that the code is lengthly and not well practice... Some more i found that the code keep repeating in some kind of format..... However, at the moment i still thinking on the way to simplify it...Thanks if anyone can … | |
Hey guys, Is there any way that I can just simply get the length of a row in a table? Thanks | |
Hi, I'm a beginner in JSP...I've installed Sun Java System Application Server 9.1 ... I wanna run jsp code just to display "[B]Hello World[/B]" but can't find out where to copy the [B]helloworld.jsp[/B] code (I mean in which folder of Sun directory) to access it using [B][url]http://localhost:4848/helloworld.jsp[/url][/B]........Please help me out...... | |
Howdy all. I'm only in college for programming and am only in the my 3rd month of C++, and I'm working on a program now, just for fun and practice, and need some help. I'm making a MineSweeper game that will run in Command Prompt by making a grid of … | |
can someone please explain whats wrong with the below code segment? My intention is to assign characters in pointer "p" to pointer "a" one by one until the end. but this throws run time exception. I want to do assign character by chater without assigneing the entire pointer as a … | |
In the expression IIF[SSN]=50,99,[SSN]) when I enter 60, all works well. But if I enter 50, I get "The value entered doesn't meet the validation rule for the field or control". BTW, SSN is defined in the table as Number (Long Integer). What's the problem? | |
Hi, Why I get the errors when using 'friend function'? [CODE=cpp] // friend function as bridges on two different objects #include <iostream> using namespace std; class alpha { private: int data; public: alpha() { data = 3; } friend int frifunc(alpha, beta); // friend function }; class beta { private: … | |
Hello, I noticed that on some forms the password is not echoed after the user submits the form and the page reloads(this could because of errors or any other reasons). Why is this? Is there a valid security reason? Or is it just overkill? Thanks in advance. | |
Just noticed an odd little problem. Instead of explaining it, take a look at this IDLE run: [code]>>> ================================ RESTART ================================ >>> class test: eggs = True >>> var1 = test() >>> var2 = "text" >>> type(var2) <type 'str'> >>> type(var2) == str True >>> type(var1) <type 'instance'> >>> type(var1) … | |
First of all here is how i created my SQL database and established a connection in visual studio 05. I go into the server explorer and right click on the data connections node and and select "create new SQL database". A window then prompts me for a server name and … | |
this the the code for inserting data in a database [CODE]Dim cn As New Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & Server.MapPath("database.mdb")) cn.Open() Dim cmdr As New Data.OleDb.OleDbCommand cmdr.CommandText = "SELECT [Customer_ID] FROM [Customers] WHERE FirstName LIKE '" & User.Identity.Name & "'" Dim id As Integer cmdr.Connection = cn id = System.Convert.ToInt32(cmdr.ExecuteScalar()) Dim … | |
Hi, I am currently using a C++ library (live555) to which I have added my own subclass, and this work is my first experience with C++. I need to get access to a pointer that is a private pointer in the parent class. Because I am using an exisiting library … | |
hey guys, how are you all. i am having a little problems in linking my files. i am using gcc compiler. the command line that i use is g++ -c player.cpp to create the first object file player.h [CODE=c++]class Player_Type { private: int id; string fname; string lname; string team; … | |
I keep getting errors when i try and use the vector class I have an object vector<CSquare*>m_OldSquare; however when i try and add elements to the list [code] CSquare** tempArray = m_FocusBlock->GetSquares(); for(int i=0; i<4; i++) { m_OldSquares.push_back(tempArray[i]); } [/code] I get this error unresolved external symbol __imp___CrtDbgReportW referenced in … | |
I'm trying to read two data (different types) from binary file (First I had written these data in it). I have problem with output. it's really unexpected: 0.000000000000000000000000 and 10000. Where's the problem in reading double data type? (OS: win xp; compiler tc 3.0; similar result i get with Visual … | |
![]() | I cannot get my locally installed Apache 2.2 to execute a .php if simply passed the folder. For instance, if I tell my browser, "http://localhost/dev/wordpress/wp-admin/" it simply gives me a directory listing of the folder. There is an index.php file there, and if I click it, it executes normally. Or, … ![]() |
Hello every, I have a problem in scheme programming. I am begneer in scheme programming.I use Drscheme tool. my problem I want to write a program that spell in integer numbers without using (list or map) just a normal function that checks the parameter of the function if it a … | |
parser for c language help me -------------------------------------------------------------------------------- i want parser in language i have grammer is that SS->AAaBBb AA->a|b BB->aAA this a letter for language a ,b [code=cplusplus] int lexan() { int lookahead; lookahead=getchar(); return t; } int match(int t) { if(lookahead==t) lookahead=lexan(); else error(); return lookahead; } void error() … | |
i've created a linked list which stores some info about documents such as code,title,creator,filename,... i've also stored some info about some other documents in a *.txt file i've got a search function in my program that gets a code from the user and tries to find that code either in … | |
Dear All, thanks in advance for helping me.... plz can anyone provide the url for the basic tutorials to practice the linux shell script?????? With regards, S.Rajesh | |
Hi All, I'm doing a mini project which is adding items to the listview and calculate the total price in a label outside the listview. How do I print the final receipt with all the sold items listed and the total etc Thanks in advance for ur help How do … | |
I want to declare my linked list as external in my header file..so that my head and current pointers are globals..i have done something like this but i dont know where the problem is..i want the values of head and current to be initialized and used by all the other … | |
Hi I am trying to make function which returns a substring as a [ICODE]char*[/ICODE], but [ICODE]string::substr[/ICODE] returns a [ICODE]const char*[/ICODE]. So I have managed to make a function that will return a substring as [ICODE]char*[/ICODE], except when I was comparing the speed of the two, I found that [ICODE]string::substr[/ICODE] was … | |
Hello, I'm having an issue with a line of code that really doesn't seem that it should be giving me an error. Before posting, I've googled this error and looked at related links with no help whatsoever. Most of the "solutions" were for correctly-placed brackets or different names (since some … |
The End.