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

Search:

Type: Posts; User: Thingol

Page 1 of 2 1

1. Thread: accessing hard disk with assembly

by Thingol
Replies
2
Views
1,669

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/

by Thingol
Replies
3
Views
1,233

Re: System Tray Icon

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

by Thingol
Replies
10
Views
1,165

Re: for loops

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. Thread: Problem with conversion to hex string.

by Thingol
Replies
8
Views
1,604

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) <<...

by Thingol
Replies
5
Views
3,268

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. Thread: how to determine how many digits there are in a number after the decimal point?

by Thingol
Replies
16
Views
6,275

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. Thread: How do I write an encryption program?

by Thingol
Replies
8
Views
2,082

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. Thread: "delete" causes a crash

by Thingol
Replies
12
Views
1,435

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. Thread: How to launch/fire a key stroke through code in runtime?

by Thingol
Replies
1
Views
598

Re: How to launch/fire a key stroke through code in runtime?

java.awt.robot

by Thingol
Replies
1
Views
743

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. Thread: problem when write DLL in VC fro use VB

by Thingol
Replies
4
Views
1,154

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. Thread: Hooking a 'new drive connected' like USB, etc...

by Thingol
Replies
3
Views
1,655

Re: Hooking a 'new drive connected' like USB, etc...

Search MSDN for MediaArrival, DeviceArrival, AutoPlay and IHWEventHandler
13. Thread: How to extract a Title from ExeFile

by Thingol
Replies
1
Views
866

Re: How to extract a Title from ExeFile

APIs: GetFileVersionInfoSize , GetFileVersionInfo, VerQueryValue
14. Thread: ActiveX method return types

by Thingol
Replies
1
Views
703

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...

by Thingol
Replies
2
Views
2,200

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. Thread: Why DOS doesn't support protected-mode programming ?

by Thingol
Replies
2
Views
18,161

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. Thread: How to create a statusbar in JSP

by Thingol
Replies
1
Views
1,890

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. Thread: embed java within javascript

by Thingol
Replies
1
Views
2,259

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. Thread: Visual C++ STL: How do I use hash maps with Visual C++?

by Thingol
Replies
0
Views
77,846

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. Thread: SysReAllocString - newbie confused!

by Thingol
Replies
3
Views
3,175

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...

by Thingol
Replies
1
Views
981

from MSDN:

22. Thread: Works On XP, But Not 98

by Thingol
Replies
3
Views
889

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. Thread: STL Map copntaining vector of structs.

by Thingol
Replies
3
Views
1,199

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. Thread: STL Map copntaining vector of structs.

by Thingol
Replies
3
Views
1,199

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. Thread: Win32 Screen Buffering Problem

by Thingol
Replies
7
Views
1,161

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