TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
gongdehui
NA
63
0
How to convert VC++ code to C# code?
Oct 18 2004 9:18 AM
Hi! How to convert the following VC++ code to C# code,what does the corresponding C# code look like? HKEY CreateRegistryKey(DWORD *pdwStatus) { LONG lResult; DWORD dwDisposition; HKEY hKey = NULL; lResult = RegCreateKeyEx( HKEY_LOCAL_MACHINE, subkey, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_READ | KEY_WRITE, NULL, &hKey, &dwDisposition ); if(lResult == ERROR_SUCCESS) { if(dwDisposition == REG_CREATED_NEW_KEY) { *pdwStatus = REG_KEY_CREATED; } else if(dwDisposition == REG_OPENED_EXISTING_KEY) { *pdwStatus = REG_KEY_OPENED; } return hKey; } }
Reply
Answers (
6
)
Creating an Excel Spreadsheet Programmatically
Dynamic Binding after inserting or record