|
From: Frazell T. <fr...@fl...> - 2001-01-03 04:11:37
|
I created one to do what i wanted done and get 31+ Errors they are =
listed after the source code can anyone see where i seemingly messed up
-----------------------------------------------SOURCE =
CODE---------------------------------------------------------------------=
----------------------------------
#include <stdio.h>
#include <winreg.h>
#include <windows.h>
#define REGDATA 1
int main()
{
//Tells user program started sucessfully
printf("Your registry is being edited please standby....\n\n");
=20
//Opens the proper registry key file
LONG RegOpenKeyEx(
HKEY HKEY_LOCAL_MACHINE,
LPCTSTR Frazell,
DWORD 0,
REGSAM KEY_ALL_ACESS,
PHKEY TEST
);
=20
// Writes to the registry file
LONG RegSetValueEx(
HKEY HKEY_LOCAL_MACHINE,
LPCTSTR Frazell,
DWORD 0,
DWORD REG_BINARY,
CONST BYTE* REGDATA
DWORD 1
);
=20
//Closes program without checking if data change was valid
return 0;
} =20
------------------------------------------------------------ERROR =
CODES--------------------------------------------------------------------=
----------------------
In file included from =
e:\docume~1\admini~1\desktop\cprogr~1\regval~1.c:2:
E:\DEV-C_~1\Include\winreg.h:35: parse error before `REGSAM'
E:\DEV-C_~1\Include\winreg.h:35: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:37: parse error before `LPSTR'
E:\DEV-C_~1\Include\winreg.h:37: warning: no semicolon at end of struct =
or union
E:\DEV-C_~1\Include\winreg.h:38: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:39: parse error before `ve_valueptr'
E:\DEV-C_~1\Include\winreg.h:39: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:40: parse error before `ve_type'
E:\DEV-C_~1\Include\winreg.h:40: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:41: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:43: parse error before `LPWSTR'
E:\DEV-C_~1\Include\winreg.h:43: warning: no semicolon at end of struct =
or union
E:\DEV-C_~1\Include\winreg.h:44: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:45: parse error before `ve_valueptr'
E:\DEV-C_~1\Include\winreg.h:45: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:46: parse error before `ve_type'
E:\DEV-C_~1\Include\winreg.h:46: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:47: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:48: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:48: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:48: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:49: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:49: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:49: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:50: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:50: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:50: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:51: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:51: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:51: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:52: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:52: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:52: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:53: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:53: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:53: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:54: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:54: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:54: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:55: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:55: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:55: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:56: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:56: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:56: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:57: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:57: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:57: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:58: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:58: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:58: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:59: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:59: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:59: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:60: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:60: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:60: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:61: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:61: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:61: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:62: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:62: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:62: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:63: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:63: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:63: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:64: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:64: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:64: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:65: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:65: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:65: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:66: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:66: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:66: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:67: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:67: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:67: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:68: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:68: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:68: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:69: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:69: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:69: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:70: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:70: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:70: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:71: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:71: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:71: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:72: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:72: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:72: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:73: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:73: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:73: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:74: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:74: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:74: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:75: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:75: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:75: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:76: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:76: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:76: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:77: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:77: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:77: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:78: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:78: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:78: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:79: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:79: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:79: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:80: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:80: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:80: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:81: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:81: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:81: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:82: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:82: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:82: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:83: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:83: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:83: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:84: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:84: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:84: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:85: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:85: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:85: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:86: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:86: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:86: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:87: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:87: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:87: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:88: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:88: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:88: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:89: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:89: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:89: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:90: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:90: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:90: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:91: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:91: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:91: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:92: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:92: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:92: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:93: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:93: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:93: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:94: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:94: parse error before `const'
E:\DEV-C_~1\Include\winreg.h:94: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:95: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:95: parse error before `const'
E:\DEV-C_~1\Include\winreg.h:95: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:96: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:96: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:96: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:97: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:97: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:97: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:98: parse error before `WINAPI'
E:\DEV-C_~1\Include\winreg.h:98: warning: parameter names (without =
types) in function declaration
E:\DEV-C_~1\Include\winreg.h:98: warning: data definition has no type or =
storage class
E:\DEV-C_~1\Include\winreg.h:126: parse error before `VALENT'
E:\DEV-C_~1\Include\winreg.h:126: warning: data definition has no type =
or storage class
e:\docume~1\admini~1\desktop\cprogr~1\regval~1.c: In function `main':
e:\docume~1\admini~1\desktop\cprogr~1\regval~1.c:12: parse error before =
`RegOpenKeyExA'
|