funeralcrasher: (Default)
I'm using Visual Studio 6.0 and need to read a value from the registry and assign to a variable. My first step is learning which headers and namespaces allow access to Microsoft's registry functions.

So, this is what I have so far:

#include "stdafx.h"	// won't work without this
#include 	// used for cout
#include 	//file stream 
#include 	// used for string
#include 
[Error: Irreparable invalid markup ('<direct.h>') in entry. Owner must fix manually. Raw contents below.]

I'm using Visual Studio 6.0 and need to read a value from the registry and assign to a variable. My first step is learning which headers and namespaces allow access to Microsoft's registry functions.

So, this is what I have so far:

<pre>#include "stdafx.h" // won't work without this
#include <iostream> // used for cout
#include <fstream> //file stream
#include <string> // used for string
#include <direct.h> // used for _getcwd
#include <stdlib.h> // used for system()

using namespace std;
using namespace Microsoft::Win32;</pre>

Compiling results in two errors:

<pre>test.cpp(20) : error C2653: 'Microsoft' : is not a class or namespace name
test.cpp(20) : error C2871: 'Win32' : does not exist or is not a namespace</pre>

Have I started down the wrong path?
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

funeralcrasher: (Default)
funeralcrasher

June 2020

S M T W T F S
 123456
78910111213
141516 1718 1920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 22nd, 2025 05:35 am
Powered by Dreamwidth Studios