Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralHelp: Unable To Copy Data (In Structure) from Unmanged MFC/C++ App to .NET Pin
Gaul3-Mar-03 9:00
Gaul3-Mar-03 9:00 
GeneralSaving Treeview/Listview selections Pin
vlusardi3-Mar-03 7:47
vlusardi3-Mar-03 7:47 
GeneralRegistry and dWord values Pin
codeweenie3-Mar-03 7:36
codeweenie3-Mar-03 7:36 
GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 7:51
leppie3-Mar-03 7:51 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 8:05
codeweenie3-Mar-03 8:05 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 8:31
Paul Riley3-Mar-03 8:31 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:46
codeweenie3-Mar-03 9:46 
GeneralRe: Registry and dWord values Pin
Paul Riley3-Mar-03 11:56
Paul Riley3-Mar-03 11:56 
codeweenie wrote:
This is not for a program of my own. I am trying to automate some stuff so converting it to or from a string is not really the answer, I don't think.

You are correct, so you need to use Interop.

This is slightly complicated at first but once you get the hang of it, it's quite easy (that's the story of everything .NET, in my experience). This[^] is a fair introduction to Interop. Other than that, you can search for DllImport/DllImportAttribute here and on MSDN and find more detailed examples.

Once you understand that, it's just a case of looking up the API registry calls: RegOpenKeyEx and RegSetValueEx.

If you run into any more problems, come back and ask. Big Grin | :-D

Paul
We all will feed the worms and trees
So don't be shy
- Queens of the Stone Age, Mosquito Song

GeneralRe: Registry and dWord values Pin
leppie3-Mar-03 9:05
leppie3-Mar-03 9:05 
GeneralRe: Registry and dWord values Pin
codeweenie3-Mar-03 9:53
codeweenie3-Mar-03 9:53 
GeneralHelp! Release the COM Pointer Pin
sning3-Mar-03 7:25
sning3-Mar-03 7:25 
GeneralRe: Help! Release the COM Pointer Pin
Jarrod Marshall3-Mar-03 8:11
Jarrod Marshall3-Mar-03 8:11 
GeneralRe: Help! Release the COM Pointer Pin
Stephane Rodriguez.3-Mar-03 8:16
Stephane Rodriguez.3-Mar-03 8:16 
Generalembedding HTML and trapping events.... Pin
LongRange.Shooter3-Mar-03 5:51
LongRange.Shooter3-Mar-03 5:51 
GeneralRe: embedding HTML and trapping events.... Pin
Michael Mac4-Mar-03 9:05
Michael Mac4-Mar-03 9:05 
GeneralThreads and multiple http connections Pin
PeterJensen3-Mar-03 5:05
PeterJensen3-Mar-03 5:05 
GeneralRe: Threads and multiple http connections Pin
leppie3-Mar-03 6:33
leppie3-Mar-03 6:33 
GeneralRe: Threads and multiple http connections Pin
PeterJensen3-Mar-03 7:26
PeterJensen3-Mar-03 7:26 
GeneralRe: Threads and multiple http connections Pin
grv5754-Mar-03 15:05
grv5754-Mar-03 15:05 
Generaltype conversion Pin
egon3-Mar-03 3:01
egon3-Mar-03 3:01 
GeneralRe: type conversion Pin
leppie3-Mar-03 6:56
leppie3-Mar-03 6:56 
GeneralRe: type conversion Pin
egon3-Mar-03 8:00
egon3-Mar-03 8:00 
QuestionDraw a rectangle in a richtextbox? Pin
red2k3-Mar-03 2:25
red2k3-Mar-03 2:25 
AnswerRe: Draw a rectangle in a richtextbox? Pin
jtmtv183-Mar-03 6:39
jtmtv183-Mar-03 6:39 
Questionvoid* interop? Pin
Anonymous2-Mar-03 19:55
Anonymous2-Mar-03 19:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.