Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rfmobile

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    689

    Hi avi; If you already have STL string...

    Hi avi;

    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[]....
  2. Replies
    11
    Views
    1,626

    ANSI C style ... unsigned char swap(unsigned...

    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...
  3. Replies
    2
    Views
    322

    Roger - your question contains a paradox. A...

    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.
    ...
  4. Replies
    8
    Views
    1,172

    Another option is to use the multimedia timer. At...

    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.

    #include <mmsystem.h>

    MMRESULT timeSetEvent(
    ...
  5. Replies
    1
    Views
    572

    Yes. You can create multiple frames, popups, and...

    Yes. You can create multiple frames, popups, and modeless dialog windows.

    -rick
  6. Replies
    3
    Views
    419

    Why SetParent(GetDesktopWindow()); ?? -rick

    Why SetParent(GetDesktopWindow()); ??

    -rick
  7. You can use this CRT function ... #include...

    You can use this CRT function ...

    #include <io.h>

    int _access(const char *path, int mode);

    00 Existence only
    02 Write permission
    04 Read permission
    06 Read and write permission
  8. Thread: Java IDE

    by rfmobile
    Replies
    18
    Views
    1,585

    netbeans

    Getting back on topic ... the Java IDE that I recommend is NetBeans.

    http://www.netbeans.org

    When downloading the JDK from Sun, they offer the option of downloading the JDK bundled together...
  9. Thread: Tapi help

    by rfmobile
    Replies
    4
    Views
    362

    Search online ... MSDN, codeguru, codeproject,...

    Search online ... MSDN, codeguru, codeproject, others ...

    -rick
  10. Thread: double and %

    by rfmobile
    Replies
    18
    Views
    2,781

    Yves - depends on where/how you use fabs() ! ...

    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)

    -rick
  11. Replies
    3
    Views
    484

    Using BSD style sockets ... 1. create socket...

    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)
    2....
  12. Replies
    1
    Views
    1,526

    Show the code! Which tag are you trying to find?...

    Show the code! Which tag are you trying to find?

    -rick
  13. Are you using JScript on Windows? If so, then...

    Are you using JScript on Windows?

    If so, then you can use MSXML. It works almost the same as VBScript. Search online for examples.

    If you are using JavaScript inside a browser then you may run...
  14. hi zeee; First, the text file that you posted...

    hi zeee;

    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...
  15. Replies
    2
    Views
    594

    Take a look at using an XML hive database. Unless...

    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...
  16. Thread: Help!!!

    by rfmobile
    Replies
    1
    Views
    597

    ' try the load method ... var bOK =...

    ' try the load method ...

    var bOK = xmldoc.load("input.xml")

    if bOK then
    ' loaded successfully
    end if
  17. Replies
    9
    Views
    828

    Well, the Xerces-C++ DOM parser is implemented...

    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...
  18. Thread: double and %

    by rfmobile
    Replies
    18
    Views
    2,781

    Yup, I forgot the fabs(). -rick

    Yup, I forgot the fabs().
    -rick
  19. Replies
    7
    Views
    550

    Method like substr(int s, int e) accepts indexes...

    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...
  20. Replies
    1
    Views
    424

    You'll have to trim off the trailing zero...

    You'll have to trim off the trailing zero programmatically.

    -rick
  21. On Windows NT/2K/XP, the CreateFile API will...

    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...
  22. Thread: double and %

    by rfmobile
    Replies
    18
    Views
    2,781

    Instead of modf, use floor() instead. Do use the...

    Instead of modf, use floor() instead. Do use the "epsilon" approach suggested by Yves. I like using "FLT_MIN" for that purpose.


    #include <math.h>
    #include <float.h>

    int function(double dbl)...
  23. Replies
    2
    Views
    473

    Use CreateWindow with a window class of "button"....

    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...
  24. Replies
    2
    Views
    517

    Have you tried getenv() ? -rick

    Have you tried getenv() ?

    -rick
  25. Thread: About ATL

    by rfmobile
    Replies
    1
    Views
    377

    I assume your goal is to create Active X...

    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...
Results 1 to 25 of 48
Page 1 of 2 1 2


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center