|
since they are plain text files, you could try this :-
create file f1 with your new text
lest say f0 was your old file
now copy f1+f0 -> f2 using the dos copy command [I think you can make calls to batch files from ASP]
put this in a batch file
copy f1+f0 f2
thus you now have f2 with your new contents ahead of your old content
delete f0 and f1 and rename f2 to f0
Nish
|
|
|
|
|
<name>"&objRecordset("buffet")&"
this is one of the sentence for my programme.
there r four choices in the recordset.
wat should i add in the programme,so as the item which the customer had chosen will be inserted into the database???As there's another script after this,the inserting of data will be carry out in the next script.
|
|
|
|
|
1. Developing a "Screen Saver"
2. TAPI 2.0 (3.1 has been pulished though)
3. "Event logging" in Windows 2000
Let me know, and I'll start it off this sunday.
Cheers,
Mehdi Mousavi
MSVC++ Programmer
|
|
|
|
|
I think an article on writing screen savers would be useful.
You could show us how to draw on the desktop and stuff like that
And I hope it will be in C++
Nish
|
|
|
|
|
I have a task at work where the simplest implementation (from the user's perspective)would be in the form of a custom toolbar that would work in Excel. The application deals almost exclusively with manipulating speadsheet data, so I think a toolbar or other groop of buttons would be an elegant way to implement this. I've never written such an application before, but I have done similar stand-alone Windows applications. Where do I start? Where's the best information to get going on this? Are there examples around anywhere?
RhinoBob
|
|
|
|
|
Helllo there Mike,
I'm no expert on this topic, but I might give you some starters insight.
If I get you right, you are not interested in writing Excel macro's (did you consider that as well ?) but a real stand alone application which communicates with Excel ? If so, then look for the techniques 'DDE' or 'Automation'. A good starting point would be installing your Excel again from the Office setup and include Visual Basic help on Excel. VB is commonly used for letting an application communicate with Excel and the likes. Also have a look at the developpers MSDN section at htpp://www.microsoft.com.
Hope this helps a bit..
Arno van Loenen
|
|
|
|
|
Mike,
What I would recommend is that you look at using Visual Basic for Applications to implement in Excel. There are some great books like:
Microsoft Excel 2002 Visual Basic for Applications Step By Step
http://www.microsoft.com/MSPress/books/5163.asp
Cheers!
Colin
|
|
|
|
|
how to update the last data.
objConnection.Execute "UPDATE buffet_list SET buffet = 2500 WHERE order_id=???"
wat should i put in place of the ??? to get the last order_id???
order_id is Autonumber
aaa
|
|
|
|
|
SELECT MAX(order_id) FROM buffet_list
and then you do the update, OR
UPDATE buffet_list SET buffet = 2500 WHERE order_id IN( SELECT MAX(order_id) FROM buffet_list )
or some other flavour, but you get the idea.
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
It would be very useful to see some code for how to put an
Ethernet card into promiscusous mode in a Windows environment
since M$ figures if you don't buy a Server OS, you don't need
to see your local packet traffic. I know this is possible,
I just don't have even an idea of how it is accomplished.
|
|
|
|
|
You want WinPcap - see the offical website:
http://netgroup-serv.polito.it/winpcap/
From the website:
"WinPcap is an architecture for packet capture and network analysis for the Win32 platforms. It includes a kernel-level packet filter, a low-level dynamic link library (packet.dll), and a high-level and system-independent library (wpcap.dll, based on libpcap version 0.5).
The packet filter is a device driver that adds to Windows 95, Windows 98, Windows ME, Windows NT and Windows 2000 the ability to capture and send raw data from a network card, with the possibility to filter and store in a buffer the captured packets.
Packet.dll is an API that can be used to access directly the functions of the packet driver, offering a programming interface independent from the Microsoft OS.
Wpcap.dll exports a set of high level capture primitives that are compatible with libpcap, the famous UNIX capture library. These functions allow to capture packets in a way independent from the underlying network hardware and operating system.
WinPcap is released under a BSD-style licence."
|
|
|
|
|
i`ve just posted the ultimate winsock sniffer ! that`s all you ever wanted !
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
My company uses People Scheduler (an obsolete product) for employee scheduling. They can't upgrade it, and it won't run on anything newer than Win98. So I've been playing with writing my own replacement.
I've been searching for a control that simplifies employee scheduling; most Time & Attendance programs use such a beast to graphically build and adjust schedules. In such a control, a horizontal bar is movable and resizeable using the mouse, or by changing a tabular time entry. Within it there is a region in a contrasting color that behaves similarly, and represents a lunck break. I haven't seen anything resembling one yet - any ideas?
|
|
|
|
|
|
|
hi there
I used access2000 to create my database,
and it has some field(text,memo...) that contains other
languages, when i connect to database with ado (in vb or vc)
it fills "?" mark instead of any character .
I can't understand what is my problem!!!!!
|
|
|
|
|
Unicode is used in MS apps now by default (at least I think thats true of all of them). So, provided your Windows language extentions are present displaying other languages in Word/Excell/Access is automatic, except in code. Different functions are used for Unicode in some situations,
for example
Chr( charcode ) char code is actually a 'long' rather than a 'byte' or 'short' as you might expect. But Chr will only work within the normal ASCII range.
ChrW function returns a String containing the Unicode character except on platforms where Unicode is not supported, in which case, the behavior is identical to the Chr function.
See StrConv functions for help with unicode within your code.
Also remember that if you have written a string to a field through your code, you will of needed to treat it as Unicode. As I said much of this is done for you, but you have to be aware of functions that do not handle Wide character formats.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
Hi,
I wants to use more than one base classes in a single project. For example , is i wants to make my application web based then the base class should be CHtmlView. Other than this fecility I want the other fecilites given by some other base class , say CView. How can i achieve this?
|
|
|
|
|
CHtmlView inherits form CView so you can access CView member functions from a class which inherits from CView.
Or do you mean you want two kinds of views, one HTML and one other kind?
Michael
|
|
|
|
|
I think, you mean you want two kinds of class, example one CHTMLView and one CMenu, you can inherit for the two class,
do you know:
CYouClass:CHtmlView, CMenu
{
}
nothing but everything
|
|
|
|
|
I have inhereted a PP application written in VC++6. It has two slides -- slide1 and slide2. At runtime, I may need to add additional sets of these two slides, in the same order as the original two -- something like slide1a, slide2a, slide1b, and slide2b. When I use the Slides collection Duplicate() method, they always come out in this order: slide1a, slide1b, slide2a and slide2b. How can I rearrange the slides in the order I want? I've seen methods that return the slide number but no function to set the slide number.
|
|
|
|
|
where can i find the c/c++ souece code of notepad.exe.detail,please!thanks!
qdash
|
|
|
|
|
Visual C++ and the platform SDK both used to come with notepad/wordpad type application source. Try searching on http:\\msdn.microsoft.com.
Michael
|
|
|
|
|
It is called MULTIPAD, and is supposed to be the MDI version of Notepad.
Regards,
Gennady
|
|
|
|
|
The MFC source for wordpad is also on MSDN.
---
"Transmit in all known frequencies and in all known langauges, including Welsh."
|
|
|
|