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

Search:

Type: Posts; User: Thingol

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    2
    Views
    1,955

    Re: accessing hard disk with assembly

    Get HDPARM's source code and try to understand it. There's no need for assembly.
    http://freshmeat.net/projects/hdparm/
  2. Replies
    3
    Views
    1,604

    Re: System Tray Icon

    Try JDIC ( https://jdic.dev.java.net/ ). It has an implementation of tray icons in Java.
  3. Thread: for loops

    by Thingol
    Replies
    10
    Views
    1,427

    Re: for loops

    Some hints (or cookie recipes):

    To generate the sequence 0, 1, 2, ... n-1:
    for (int i = 0; i < n; ++i) {
    }

    To generate the sequence 1, 2, ... n:
    for (int i = 1; i <= n; ++i) {
    }
  4. Replies
    8
    Views
    1,899

    Re: Problem with conversion to hex string.

    #include <iostream>
    #include <iomanip>
    #include <string>

    using namespace std;

    main () {
    cout << hex << setw(2) << setfill('0') << 0x00 << endl;
    cout << hex << setw(2) <<...
  5. Replies
    5
    Views
    6,330

    Re: getenv() crashes

    getenv does not crash if the environment variable is not found: it returns NULL.
    You need to test against NULL before using the result of "getenv" in your programs.
    For instance:


    #include...
  6. Re: how to determine how many digits there are in a number after the decimal point?

    1/3 will give theoretically 0.333333333333.... so your question is not easy to answer. In practice 1.0 / 3.0 will give a finite floating-point number that is very close to 1/3 but is not...
  7. Replies
    8
    Views
    2,665

    Re: How do I write an encryption program?

    There are three famous C and C++ encryption libraries freely available:

    OpenSSL - http://www.openssl.org - used in every web server (except Microsoft IIS and Netscape Web Server) you know.
    ...
  8. Replies
    12
    Views
    2,053

    Re: "delete" causes a crash

    Download a trial copy of IBM Rational PurifyPlus or Compuware Numega, install it, run your program and check for problems.
    It's faster and safer than modifying your program.
  9. Re: How to launch/fire a key stroke through code in runtime?

    java.awt.robot
  10. Thread: ctr-c in java

    by Thingol
    Replies
    1
    Views
    792

    Re: ctr-c in java

    Ctrl+C = 3

    Ctrl+Z = 26

    Ctrl+<letter> = numerical order of the letter: A = 1, B = 2 ...

    - but -
    if you're running a non-graphical app, Ctrl+C will trigger the program termination.
  11. Replies
    4
    Views
    1,232

    Re: problem when write DLL in VC fro use VB

    Maybe you're supposing that the initial values of variables and member variables are zero. Use the compiler option /RTCu (Uninitialized local usage checks) and correct all errors that will appear in...
  12. Re: Hooking a 'new drive connected' like USB, etc...

    Search MSDN for MediaArrival, DeviceArrival, AutoPlay and IHWEventHandler
  13. Replies
    1
    Views
    902

    Re: How to extract a Title from ExeFile

    APIs: GetFileVersionInfoSize , GetFileVersionInfo, VerQueryValue
  14. Replies
    1
    Views
    1,066

    Re: ActiveX method return types

    "void*" is not an "Automation" type.
    You can try returning a Long, that a VB program can use as a "opaque handle".
    Remember: the main consumers of ActiveX controls are VB programs, that have no...
  15. Replies
    2
    Views
    2,353

    Re: Simple Question

    a) Assembly language is not new at all. It has more than 50 years...
    b) It's as powerful as nitroglycerin.
    You are not supposed to use it in large amounts (hard to write, harder to maintain, truly...
  16. Re: Why DOS doesn't support protected-mode programming ?

    You're saying good old MS-DOS (and the similar things like DR-DOS, FreeDOS etc)? MS-DOS supports anything because it does almost anything (MS-DOS is not a true operating system at all...). If you...
  17. Replies
    1
    Views
    2,120

    Re: How to create a statusbar in JSP

    a) You could write an applet or an ActiveX Control that downloads the data sent by the JSP, and make the applet show the status bar.
    b) Don't bother about it, simply set the content-length correctly...
  18. Replies
    1
    Views
    2,376

    Re: embed java within javascript

    You'll need to write an applet (you can choose to write a 1-pixel applet, just for using its public methods), and learn about LiveConnect in devedge.netscape.com site. (Maybe you'll need to check the...
  19. Visual C++ STL: How do I use hash maps with Visual C++?

    Q: How to use the hash_map class in C++

    A: If you have Visual Studio .NET 2003 you can try the 'hash_map' class instead of the map if you want to use hash tables instead of binary trees to store...
  20. Replies
    3
    Views
    4,106

    Re: SysReAllocString - newbie confused!

    It's always good to think in VB first and then define the IDL interface to your COM DLL.

    For instance, if you have a "(ByRef P As String)" (or "P As String") you'll translate it as ([in,out]BSTR...
  21. Replies
    1
    Views
    1,206

    Re: Access violation Problem with BSTRs

    Maybe IsBadReadPtr?

    from MSDN:

    IsBadReadPtr

    The IsBadReadPtr function verifies that the calling process has read access to the specified range of memory.


    BOOL IsBadReadPtr(
  22. Replies
    3
    Views
    1,151

    Re: Works On XP, But Not 98

    But when I try to run the executable on a W98, the resulting error
    says something like the executable is linked to missing export
    mfc.DLL.688

    You'll have to redistribute the correct version of...
  23. Replies
    3
    Views
    1,742

    Re: STL Map copntaining vector of structs.

    Maybe you'll have to use make_pair.

    The declaration of make_pair is:


    template<class T, class U>
    pair<T, U> make_pair(const T& x, const U& y);

    so you can use make_pair<NMKey,...
  24. Replies
    3
    Views
    1,742

    Re: STL Map copntaining vector of structs.

    Itr = MMIDCache.insert(Itr, MMIDList::value_type(NMKey, MMIDStructs));
    Is MMIDList a map<>?
    If yes, value_type is a typedef:

    typedef pair<const Key, T> value_type;
    so you want to use of of the...
  25. Replies
    7
    Views
    1,569

    Re: Win32 Screen Buffering Problem

    Ohoh, Windows CE is a different beast. There's no GDI+ or other amenities available for Windows CE, I guess.
    I've seen a Windows CE in a single-processor x86 board, and it is being used for a small...
Results 1 to 25 of 45
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured