Type: Posts; User: rfmobile
Search took 0.01 seconds.
October 29th, 2003, 09:45 PM
If you already have STL string available then just create a second string - or vector as Paul suggests. Let STL take core of deleting the string for you instead of calling new/delete....
October 29th, 2003, 09:37 PM
ANSI C style ...
unsigned char swap(unsigned char byte)
/* keep holds upper 4 bits. */
unsigned char keep = byte >> 4;
keep = keep & 0xF; /* unnecessary */
/* byte is now lower 4...
October 29th, 2003, 09:26 PM
Roger - your question contains a paradox.
A program that accepts input must wait for the user to take action. In the case of text, the program needs to know when the user's input is complete.
October 19th, 2003, 12:04 PM
Another option is to use the multimedia timer. At least you wouldn't need to create a separate thread.
The timer accepts a callback function.
October 19th, 2003, 11:59 AM
Yes. You can create multiple frames, popups, and modeless dialog windows.
October 19th, 2003, 11:52 AM
Why SetParent(GetDesktopWindow()); ??
October 19th, 2003, 11:51 AM
You can use this CRT function ...
int _access(const char *path, int mode);
00 Existence only
02 Write permission
04 Read permission
06 Read and write permission
October 19th, 2003, 11:46 AM
Getting back on topic ... the Java IDE that I recommend is NetBeans.
When downloading the JDK from Sun, they offer the option of downloading the JDK bundled together...
October 14th, 2003, 11:07 AM
Search online ... MSDN, codeguru, codeproject, others ...
October 14th, 2003, 11:05 AM
Yves - depends on where/how you use fabs() !
double abs = fabs(dbl);
if ( ( abs - floor(abs) ) < FLT_MIN ) ...
(but you've made good point either way)
October 14th, 2003, 10:59 AM
Using BSD style sockets ...
1. create socket using "socket()", specify AF_INET for the address family, IP_PROTO for protocol (I think), and SOCK_STREAM for TCP socket (SOCK_DGRAM for UDP)
October 14th, 2003, 10:51 AM
Show the code! Which tag are you trying to find?
October 14th, 2003, 10:08 AM
Are you using JScript on Windows?
If so, then you can use MSXML. It works almost the same as VBScript. Search online for examples.
October 14th, 2003, 09:52 AM
First, the text file that you posted shows code for walking the DOM tree so apparently the XML data has already been parsed and loaded into the DOM tree.
Just have your code check for...
October 14th, 2003, 09:44 AM
Take a look at using an XML hive database. Unless you really, really need to reparse all of your XML repreatedly, you will be better off using an XML native database. The underlying DB can create...
October 14th, 2003, 09:41 AM
' try the load method ...
var bOK = xmldoc.load("input.xml")
if bOK then
' loaded successfully
October 14th, 2003, 09:34 AM
Well, the Xerces-C++ DOM parser is implemented using SAX so you'd be using SAX whether you wanted to or not. The same is probably true of Xerces-J.
It doesn't take long to write a SAX handler. 7-8...
October 14th, 2003, 09:17 AM
Yup, I forgot the fabs().
October 14th, 2003, 08:54 AM
Method like substr(int s, int e) accepts indexes but STL string methods like pointers so you can use pointers to first and last character of substring.
Pass the pointers to the assign method on a...
October 14th, 2003, 08:45 AM
You'll have to trim off the trailing zero programmatically.
October 14th, 2003, 08:42 AM
On Windows NT/2K/XP, the CreateFile API will allow you to open a handle on the phyisical drive using a pathname of "\\.\PHYSICALDRIVE0" for the first device, "\\.\PHYSICALDRIVE1" for the second, and...
October 14th, 2003, 08:13 AM
Instead of modf, use floor() instead. Do use the "epsilon" approach suggested by Yves. I like using "FLT_MIN" for that purpose.
int function(double dbl)...
October 14th, 2003, 07:36 AM
Use CreateWindow with a window class of "button". Pass the dialog window's HWND as the parent window to the button. You will likely need to make the dialog window resizeable to accomodate a large...
October 13th, 2003, 07:49 AM
Have you tried getenv() ?
October 12th, 2003, 08:25 AM
I assume your goal is to create Active X controls.
Get a book or read some of the fine introductory articles that began appearing online a few years ago. Take some time to play around with the...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!