199,114 Archived Topics
Remove Filter ![]() | |
Dear all, I am trying to use WIN32 API "CopyFile" to copy a file from a remote machine to local. [code=C++] bRet = CopyFile(src, dest, false); [/code] "dest" is defined as [code=C++] dest = "\\\\desk\\data\\1.txt"; [/code] But this operation always fails. Could anybody give me a little hint? Thanks! | |
can anybody tell me .How should i store Requistion Nos In MaterialRequisitionorder table and Material Requistion Detail table. Here is the code what i have wriiten.Why it is breaking on the bold line. i am getting error item cannot be found in the collection corresponding to the requested name or … | |
Hi, I am trying to validate user input from the scanf function. I have managed to ensure the input is an integer between the limits of 2 and 1000, but I haven't managed to get the program to only allow one value at input. Can I do this with scanf … | |
Hi I explain what I have: user will visit the site to change booking detail using their client and booking ID, once thy typed their ID they will be directed to another page where they will be welcomed and they will be presented with a form to enter the booking … | |
[QUOTE]this code is from another form before i get to the formload below xNum = 2 adminlec.show unload me [/QUOTE] [CODE]Private Sub Form_Load() lblLECNUM.Caption = xNUM '<----this is a public dim that i wrote on a module as integer Set cnn = New ADODB.connection Set rs = New ADODB.Recordset cnn.ConnectionString … | |
hello dani........ plz help to get the following output using C language(array) using one nested for loop ******* ***** *** * *** ***** ******* plz...........help........quick | |
I am setting focus to combobox as combobox.select() in a thread by using the delegate. But only after changing the ALT+TAB to another window the combobox is getting focused. How to solve this problem... Please help me... Thanks in advance... The code is here... ============= Private Delegate Sub cmbusersetfocus() Private … | |
hey guys how would i print something 60 times without actually typing the character out 60 times. [CODE=C]printf("#"*60);[/CODE] ^ which is complete rubbish and doesnt work, but what is the syntax for it? cheers! | |
Hi - relatively new to MySQL & still coming to grips with its permissions system. Probably a slightly noob question - hope you don't mind! (should be easy then?) :) SITUATION: 1) I want to set up a standard set of records in my database (DB) with values that ALL … | |
Hi Can someone please help me figure out how to find the parent of a node? Here is the closest I got to something that works. It finds the parent and prints it out "parent: x" but it doesn't send the parent node back ? Any help would be appreciated. … | |
Hello, I am quite new to PHP and MySQL. Could anybody please help me with this problem? Suppose I have a database like this, [ICODE][U]Type[/U] [U]Name[/U] [U]Price($)[/U] A ABC 150 A DEF 350 B XYZ 250 B UVW 450 C ....................... .............................[/ICODE] The user is required to choose the type … | |
Help please.....a misfortune happened, here unmaybe I in any way to complete work for a bank...It is needed to create a class bank which will contain a class account:(current and deposit), and also the class of persons which contains (manager and cashier)...help please, very ask...! beforehand thank you... | |
Ok, I'm using the[URL="http://www.codeplex.com/LINQtoAD"] Linq-to AD[/URL] and I'm having a problem implementing a lambda expression for the where clause in the linq expression. Basically, I'm getting a MethodCallExpression object of method type Func<User,bool> (user is the object that has all the Active Directory information) and the lambda expression that I … | |
[code] <html> <head> <title> database connectivity </title> </head> <body> <H1> DATABASE CONNECTIVITY </H1> <% dim constr constr= "provider=sqloledb;data source=1.234.5.678,1234;initial catalog = abcd; User Id=abcd; password=abcd" set conobj = server.createobject("ADODB.Connection") conobj.connectionstring = constr conobj.open set comobj = Server.CreateObject("ADODB.Command") comobj.CommandText = "test2" [COLOR="Red"]comobj.CommandType = adCmdTable[/COLOR] set rs1 = comobj.Execute %> </body> </html> … | |
Hi guys ,i came across coding in a book where they given the below program and named it as singleton class.but here we are able to create 2nd object and also call constructor for second object (only here do we check the status of count and exit from the program … | |
Hello all, I know this is not a question related to some asp.net error but posting it in here because of the hope that people who are working in asp.net might be able to answer my problem. I attended a technical phone interview few weeks back and today got a … | |
i want to provide an option to user to preview the form input before form submission, it runs well, but it does the same action on pressing submission or preview button html [ICODE] <form> <tr> <td width="26%" height="30" align="right"><font face="Calibri">Category:</font></td> <input type="text" name="category" size="30"></td> <td width="26%" height="30" align="right"><font face="Calibri">City:</font></td> <input … | |
int *p; int *q; p=new int; *p=35 q=new int; *q=62; p=q; cout<< *p << ","<< *q<< endl; What is the value of `*p` and `*q`? Why? the statement p=q refer to? | |
hi, there... im having problem with this codings. these codings are meant for login purpose. i dont knw where ive gone wrong. are these the only codes, or are there any other codes that ive not included... please help [code=asp.net]<%@ Page Language="VB" %> <script language="VB" runat="server"> Sub btnLogin_OnClick(Src As Object, … | |
hi all i have problem with save zero before number in the var example [CODE] $num=0024; echo $num;// show 24 [/CODE] | |
Hi I am trying to implement the Fast Fourier Transform. I have some code which I got online and slightly modified. I have a class GrabPixels which extracts a pixel array from an image, the class FFT implements the transform. My problem is I don't think the methods in the … | |
hi I'm new to C# and I didn't have any programming skills. I'm on my third week now and it seems it's quite complex I would like to design a code, where it can determine the word type in the sentence. So, first one must type a sentence and then … | |
Hei, Im using ASP.NET as Front end and SQL Server as Backend. the codings are.. [code=asp.net]imports system imports system.data imports system.data.sqlclient [/code] After inherits...... some connectin codingd are there [code=asp.net]dim con as SqlConnection dim adp as SqlDataAdapter dim com as SqlCommand dim data as Dataset[/code] after the connection codings in … | |
[CODE= C++] //Pg.288 #include <cassert> #include <iostream> using namespace std; void deleteKthElement(int k, int& count); int main() { struct nodeType { int info; nodeType *link; }; nodeType *first, *newNode, *last, *traverse; int num; int count = 0; cout << "Enter a list of integers ending with -999.\n"; cin >> num; … | |
Hi, I'm trying to set a simple send an email script as I found it on the internet. Here is the code: [CODE=php]<html> <head> <title>PHP Mail Array Loop</title> </head> <body> <?php $to = "mymail@anydomain.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "anybody@somedomain.com"; … | |
Im trying to build a site that gets info, lets say product prices, [B]from different xml sources that have a different structure[/B]. Then it displays all the prices sorted.. My first guess is to import all the data from the different XMLs to a mysql db after the sorting of … | |
how do i use update command in vb?? I need to make changes in the database from vb form,the changes made in the text box should be made in the database as well,this is the code i am using Con.BeginTrans Con.Execute "update Details set PS_No=" & Trim(txtPSNo.Text) & " and … | |
Ok so what i'd like to know is how to have two where statements in a mysql delete query. I get an error if i do this: [ICODE]mysql_query("DELETE FROM user_notifications WHERE username='$acc' AND WHERE notification='$note2'") or die(mysql_error()); [/ICODE] Any help would be much appreciated, I know this is a silly … | |
Alright, I had to design an N-ary tree so later I could use it to produce a word ladder. I got the tree to insert and print perfectly. Now what I need to do is add pointers so that everything points to the correct item. Here's the example: Connect cat … | |
Hallo to all, can anyone help me with my thesis? I need to filter space between character. Ex. If I input: "Jump and Go" a message box will appear saying "Space between character is not allowed." if I input: JumpAngGo or Jumpandgo is are accepted as long as there is … | |
Hi I have made a page thats makes an AJAX call to the server gets the time and displays it. In the OPEN method i have set req.open("GET","/timerProg.cgi?param1="+new date(),false); I have set the last parameter as false as i am expecting a synchronous request so that time displayed should be … | |
Hello I am upsizing a MS Access database to SQL. I am keeping the MS Access 2003 frontend and using a SQL Server for the Backend. All the MS Access VBA code seems to be working fine except for the code below. I have the same code using different tables … | |
I am designing a site with a javascript login that leads you to a flash actionscript site. What language would I be looking at for a database? Mysql? I can use any feedback. | |
I have to wrtie a program for class that asks the user to input to cards ex: 7c(7 of clubs) and then compare the two cards at the end to see which one is the greater card. This is the code I have so far and for some reason it … | |
Im getting a pretty out there error that I have no explanation for when I run my program, here is what Im getting. Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at apple.awt.CGraphicsEnvironment.displayChanged(CGraphicsEnvironment.java:65) at apple.awt.CToolkit$4.run(CToolkit.java:1259) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Exception in thread "AWT-EventQueue-0" … | |
HI I want to submit csv file data into mysql pls tell me how 2 do if any one has any program made to insert csv file into mysql pls give me the code i really need it pls help me bye | |
[CODE=c++] inFile >> x; while(!inFile.eof()) { if(x == '\n') { cout << endl; } cout << x; inFile >> x; }[/CODE] will this code detect end of line? I'm having trouble with this. Can anyone help? | |
I have this code which display random images from any folder on a webserver. You just have to give each picture the same name but with a number at the end of it (make foo.bar foo1.bar footype.bar foo2.bar). Does anybody have any idea how to make this work accept not … | |
Hey guys, I want to writing a program that clicks. I want to be able to specify the area it clicks. Anyone know how to do this? I googled a bunch and couldn't find anything even close to this. | |
[CODE]using System.Configuration; string s = ConfigurationSettings.AppSettings["con"];[/CODE] the code above gets the value from the app.config file where the following markup exists [CODE]<?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="con" value="foo"/> </appSettings> </configuration>[/CODE] | |
Hello, Can anyone please help me... I need to create a GUI program that holds product inventory. I have five errors and I can't figure out what they are... I need a second look from someone... Thanks in advance! [code] import javax.swing.*; import java.awt.*; import java.text.NumberFormat; import java.util.Locale; public class … | |
I make two table in ms access. both of two table has like 'student name' column. when I enter a name it save in table1. Now I want this name will save in table2 automatically. I mean I don't enter this name in table2, but it will store this name … | |
Here's the scenario. I have a web server running with IIS 6 and website running written in ASP. The site and code has been working perfectly up until about 2 days ago when for no reason whatsoever the ASP has decided to partly work. and by this i mean as … | |
you can access repeater's row data using the code below in the ItemDataBound event handler [CODE]protected void rpt_ItemDataBound(object sender, RepeaterItemEventArgs e) { object value = DataBinder.Eval(e.Item.DataItem, "columnName"); }[/CODE] | |
[CODE]System.Timers.Timer time; protected void Page_Load( object sender, EventArgs e) { time = new System.Timers.Timer (); time.Enabled = true ; time.Interval = 2000; time.Elapsed += new System.Timers. ElapsedEventHandler(time_Elapsed); } private void send() { MailMessage mm = new MailMessage (); mm.IsBodyHtml = true ; mm.Body = "foo" ; mm.To.Add(new MailAddress ( foo@foo.com … | |
it is pretty easy with one line of code : add System.Diagnostics namespace then [CODE]Process.Start("C:\\foo.exe");[/CODE] | |
I was writing up my NTree class that I need for a program that I'm working on. My function order() takes in a vector and a string and sorts the vector according to that string so the words closest to the string (one letter off) are at the beginning of … | |
Hi i had a mysql database ( coading in php ) in my real estate web site. It had 4 columns. 1. for ( ie, buy or rent ) 2. district 3. Type ( villa,house,.....) 5. price ( 1 lakh, 2lakh, 3 lakh ...) I need to add a searh … | |
If the stack top is maintained at the [B]end of the linked lis[/B]t, i.e. stack top is the last item, accessing the stack top would take a lot of time, since N items of the linked list need to be traversed before we can access the last item, This would … | |
I am writing a program, that will automatically post an image from a folder on my computer onto a blog of mine. I want to be able to have the program add a title for the post and maybe even fill in some tags. I don't know how to make … |
The End.