199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for savinki

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; …

Member Avatar for Salem
0
95
Member Avatar for chrisdent1986

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 …

Member Avatar for chrisdent1986
0
143
Member Avatar for allopiloping

[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)) …

Member Avatar for allopiloping
0
79
Member Avatar for conandor

anyone know how can i convert bmp to jpg using php? ve play wif gf function but seem got work out

Member Avatar for helraizer
0
868
Member Avatar for kevin wood

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 …

Member Avatar for nav33n
0
80
Member Avatar for kevin wood

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"; …

Member Avatar for kevin wood
0
139
Member Avatar for conandor

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 …

Member Avatar for helraizer
0
133
Member Avatar for paul1145

[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 …

Member Avatar for paul1145
0
200
Member Avatar for luxmi_gee

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; …

Member Avatar for jwenting
0
130
Member Avatar for Arctic wolf

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.

Member Avatar for Arctic wolf
0
122
Member Avatar for Fungus1487

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 …

Member Avatar for majestic0110
0
227
Member Avatar for kevin wood

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 …

Member Avatar for kevin wood
0
72
Member Avatar for servis

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 …

Member Avatar for nav33n
0
134
Member Avatar for ericstenson

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.....

Member Avatar for a496761
0
130
Member Avatar for jainendra.shah

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 = …

Member Avatar for jainendra.shah
0
98
Member Avatar for timdog345

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 …

Member Avatar for timdog345
0
139
Member Avatar for boudie

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 …

Member Avatar for Jx_Man
0
85
Member Avatar for CodeBoy101
Member Avatar for kevin wood

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]

Member Avatar for kevin wood
0
647
Member Avatar for virgilio

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 …

Member Avatar for chsarp_vijay
0
89
Member Avatar for GLT

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 …

Member Avatar for GLT
0
130
Member Avatar for zion_neo

How can we enter a table under the list box. And how can we edit the content on each cell of table

Member Avatar for zion_neo
0
75
Member Avatar for chitra1

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.

Member Avatar for iFuseDan
0
152
Member Avatar for Fatema Bhadka

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

Member Avatar for VIeditorlover
0
84
Member Avatar for menelaussa

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]

Member Avatar for menelaussa
0
89
Member Avatar for nandhinijp

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.

Member Avatar for nandhinijp
0
100
Member Avatar for fujilec

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 …

Member Avatar for fujilec
0
127
Member Avatar for still_learning

Hey guys, Is there any way that I can just simply get the length of a row in a table? Thanks

Member Avatar for still_learning
0
302
Member Avatar for himanjim

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......

Member Avatar for gafoorsani
0
108
Member Avatar for Gibbie

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 …

Member Avatar for Alex Edwards
0
117
Member Avatar for savinki

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 …

Member Avatar for Ancient Dragon
0
114
Member Avatar for Mikepf

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?

Member Avatar for HI2Japan
0
94
Member Avatar for zawpai

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: …

Member Avatar for zawpai
0
123
Member Avatar for ryy705

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.

Member Avatar for ryy705
0
76
Member Avatar for FreezeBlink

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) …

Member Avatar for Ene Uran
0
264
Member Avatar for ricksvoid

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 …

Member Avatar for ricksvoid
0
419
Member Avatar for DATABASE

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 …

Member Avatar for ericstenson
0
96
Member Avatar for msupstream

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 …

Member Avatar for msupstream
0
197
Member Avatar for mustafaneguib

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; …

Member Avatar for mustafaneguib
0
166
Member Avatar for _Nestor

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 …

Member Avatar for mitrmkar
0
79
Member Avatar for MiTiM

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 …

Member Avatar for MiTiM
0
2K
Member Avatar for djMot

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, …

Member Avatar for djMot
0
147
Member Avatar for hot.com

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 …

Member Avatar for Duoas
0
82
Member Avatar for ~bleach~

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() …

Member Avatar for Duoas
0
135
Member Avatar for scream2ice

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 …

Member Avatar for joshmo
0
150
Member Avatar for rajdani

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

Member Avatar for masijade
0
147
Member Avatar for wednesday

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 …

Member Avatar for ericstenson
0
217
Member Avatar for joshmo

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 …

Member Avatar for joshmo
0
204
Member Avatar for William Hemsworth

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 …

Member Avatar for William Hemsworth
0
277
Member Avatar for Alex Edwards

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 …

Member Avatar for Alex Edwards
0
2K

The End.