dev-cpp-users Mailing List for Dev-C++ (Page 740)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: James G. <Jam...@Cl...> - 2001-01-03 08:09:41
|
Mainly in the RegSet functions where you are prefixing the values with their
types. If you are doing what I think you are doing, which is casting the
value to the correct type, then place brackets around the types e.g. HKEY
HKEY_LOCAL_MACHINE becomes (HKEY) HKEY_LOCAL_MACHINE.
Also, where is Frazell defined/set? If this is a string then place quotes
around the value "Frazell".
Regards,
James.
-----Original Message-----
From: Frazell Thomas [mailto:fr...@fl...]
Sent: Wednesday, January 03, 2001 4:11 AM
To: dev...@li...
Subject: [Dev-C++] Reg Prog.
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");
//Opens the proper registry key file
LONG RegOpenKeyEx(
HKEY HKEY_LOCAL_MACHINE,
LPCTSTR Frazell,
DWORD 0,
REGSAM KEY_ALL_ACESS,
PHKEY TEST
);
// Writes to the registry file
LONG RegSetValueEx(
HKEY HKEY_LOCAL_MACHINE,
LPCTSTR Frazell,
DWORD 0,
DWORD REG_BINARY,
CONST BYTE* REGDATA
DWORD 1
);
//Closes program without checking if data change was valid
return 0;
}
------------------------------------------------------------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'
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
|
|
From: Ramana K. <ra...@my...> - 2001-01-03 07:45:24
|
I realise that my message subjected To all ignited much controversy regarding Plain Text versus HTML messages, but, did anyone actually read it? It was a message for Win32 API or would be Windows programmers offering and asking for help regarding the topic. I apologise for the redundancy of this message but I was very surprised that in a mailing list focused on C++ there were almost no programmers of this (Win32 API) flavour. Thank you all for being so understanding, Xerchzkopfinc. Ramana Kumar ICQ# 93667117 To get paid for surfing the internet, please visit https://www.alladvantage.com/joinsecure.asp?refid=jpn471. |
|
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'
|
|
From: Ramana K. <ra...@my...> - 2001-01-03 03:21:41
|
I too would like to find some help regarding various issues of the Win32 API. Im just telling you all that I am looking and am asking you to help if you can. For those newcomers to the Win32 API stand, here are two sites that brought me up to a point where I can create a reasonably good Win32 program: www.cpp-programming.com <http://www.cpp-programming.com/> www.relisoft.com <http://www.relisoft.com/> But dont start any of this until you have learnt standard (DOS) C++ first. The best way to learn this (and there are many more than for Windows) is by reading Teach Yourself C++ in 21 Days by Jesse Liberty ( www.libertyassociates.com <http://www.libertyassociates.com/> ). Thank you, Xerchzkopfinc. Ramana Kumar (ra...@my...) ICQ# 93667117 To get paid for surfing the Internet, please visit http://www.alladvantage.com/join.asp?refid=jpn471 |
|
From: Curt J. <cj...@co...> - 2001-01-03 03:12:21
|
I am new to the list and also programming c++. I am working through Ivor Horton's book "Beginning c++", and in one program I need to use the header #include <limits> to access the command numeric_limits<unsigned char>::max(). Dev c++4 says it is an unknown file or header. Is there an equivalent header in Dev C++4? Thanks Curt Jensen cj...@co... |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 03:06:16
|
Anyone know where i can get a win32 api ref. to show the below functions ----- Original Message ----- From: "Frazell Thomas" <fr...@fl...> To: <dev...@li...> Sent: Tuesday, January 02, 2001 9:51 PM Subject: Re: [Dev-C++] Registry Program > Can i do similer from a console prog > ----- Original Message ----- > From: "Elias Pschernig" <Eli...@ao...> > To: <dev...@li...> > Sent: Tuesday, January 02, 2001 5:35 PM > Subject: Re: [Dev-C++] Registry Program > > > > > Im faced witg a problem i have to make a single registry > > > change on 200+ computers which is an extreme task so my > > > question to you guys is can someone help me out a little and > > > tell me what functions i need to open, edit, and close a > > > registry file :O) thankx peace > > > > Take a look at the following functions in the Win32 API maybe they can > > be of help: > > > > RegCreateKeyEx > > RegSetValueEx > > RegQueryValueEx > > RegCloseKey > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 02:52:04
|
Can i do similer from a console prog ----- Original Message ----- From: "Elias Pschernig" <Eli...@ao...> To: <dev...@li...> Sent: Tuesday, January 02, 2001 5:35 PM Subject: Re: [Dev-C++] Registry Program > > Im faced witg a problem i have to make a single registry > > change on 200+ computers which is an extreme task so my > > question to you guys is can someone help me out a little and > > tell me what functions i need to open, edit, and close a > > registry file :O) thankx peace > > Take a look at the following functions in the Win32 API maybe they can > be of help: > > RegCreateKeyEx > RegSetValueEx > RegQueryValueEx > RegCloseKey > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Ramana K. <ra...@my...> - 2001-01-03 02:11:07
|
You can keep a dos program running until a ENTER (but not any other key) is pressed without displaying "Press any key to continue..." like this: //at the end of the program cin.get(); return 0; } Xerchzkopfinc.(tm) Ramana Kumar <mailto:ra...@my...> ICQ# 93667117 To get paid for surfing the 'net please visit AllAdvantage.com <http://www.alladvantage.com/join.asp?refid=jpn471> . -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Wien Hong Sent: Tuesday, January 02, 2001 1:04 PM To: dev...@li... Subject: [Dev-C++] the ways to prevent the dos windows been closed When executing my dos program, it closes automatically. I understand that I can change this by putting system("PAUSE"); at the end of my source. Is there any other way to do this? I just don't to type it in my program. Thanks for your help. Wien |
|
From: <ste...@ge...> - 2001-01-03 01:06:43
|
Hi folks! I was wondering... how do I set the volume of the PC-speaker?? Oh, and is there anyone who has something kewl for playing wav-files in = dos? I using Turbo C++ 3.0 :-) |
|
From: Elias P. <Eli...@ao...> - 2001-01-02 22:35:37
|
> Im faced witg a problem i have to make a single registry > change on 200+ computers which is an extreme task so my > question to you guys is can someone help me out a little and > tell me what functions i need to open, edit, and close a > registry file :O) thankx peace Take a look at the following functions in the Win32 API maybe they can be of help: RegCreateKeyEx RegSetValueEx RegQueryValueEx RegCloseKey |
|
From: Frazell T. <fr...@fl...> - 2001-01-02 22:23:06
|
Im faced witg a problem i have to make a single registry change on 200+ = computers which is an extreme task so my question to you guys is can = someone help me out a little and tell me what functions i need to open, = edit, and close a registry file :O) thankx peace |
|
From: Ioannis V. <no...@ya...> - 2001-01-02 21:37:06
|
I am typing calmy. :) After all i am mainly absorbed with C++ and not C, but i consider all these fortran constructs added in C99 as at least useless. Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Emry > Sent: Tuesday, January 02, 2001 11:14 PM > To: no...@ya...; dev...@li... > Subject: Re:[Dev-C++] The new C99 Standard > > > Honestly, I am not overly informed on the subject, BUT that asside, > you come across as hostile, and unwilling to change. > > Personaly, I am going to focus on the standards that I have > access to the information for, which is probably > the older standard. But when you come accross as throwing a fit, > it effects your apparent credability, so I suggest > that you calm down a little, or at least type calmly. ^^;; > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Elias P. <Eli...@ao...> - 2001-01-02 21:15:59
|
> I know this may seem like a stupid question concidering > Dev-C++ is primarily a win32 compiler, but is there a > port of alegro that will function with it, and where > would I look to find it? www.allegro.cc |
|
From: Emry <em...@te...> - 2001-01-02 21:14:07
|
Honestly, I am not overly informed on the subject, BUT that asside, you come across as hostile, and unwilling to change. Personaly, I am going to focus on the standards that I have access to the information for, which is probably the older standard. But when you come accross as throwing a fit, it effects your apparent credability, so I suggest that you calm down a little, or at least type calmly. ^^;; |
|
From: Emry <em...@te...> - 2001-01-02 21:09:56
|
I know this may seem like a stupid question concidering Dev-C++ is primarily a win32 compiler, but is there a port of alegro that will function with it, and where would I look to find it? Thanks. |
|
From: Emry <em...@te...> - 2001-01-02 20:52:12
|
Actualy, with POP3 email systems, the graphics are sent as plain text, so it is the server that decides if graphics get sent. :/ It doesn't realy effect me much though, becuase I do other things while my email downloads. ^^;; Original message from: "Ramana Kumar" >Ok, Im sorry. >I didnt realise it took you very long to download my messages, It takes me >the same time to view/download/send plain text as with HTML. As you can see, >I have taken away the background, but the signature stays, if you are using >a web-based email, I cant help you, but if you are using a client, there >are ways, in many of them, to not receive graphics if you dont want to. If >you would like help on this issue, fell free to ask. > <mailto:ra...@my...> >ICQ# 93667117 >To get paid for surfing the internet, please visit AllAdvantage.com ><http://www.alladvantage.com/join.asp?refid=jpn471> . > |
|
From: Jonathan B. <jb...@cc...> - 2001-01-02 20:41:36
|
please remove me or unsubscribe me. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Emry Sent: Tuesday, January 02, 2001 3:32 PM To: dev...@li... Subject: Re:[Dev-C++] sending and retrieving values from functions The simplest way to do this, would be to first of all, declare the function as int my_number(void); This is assuming you want it to return an integer. Otherwise replace int with whichever type you want it to return. If you are using c++ then the void in parenthasis is not needed. then for the terminating line of the function return somevalue; where somevalue is a value or variable of the correct type. _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
|
From: Emry <em...@te...> - 2001-01-02 20:32:41
|
The simplest way to do this, would be to first of all, declare the function as int my_number(void); This is assuming you want it to return an integer. Otherwise replace int with whichever type you want it to return. If you are using c++ then the void in parenthasis is not needed. then for the terminating line of the function return somevalue; where somevalue is a value or variable of the correct type. |
|
From: Emry <em...@te...> - 2001-01-02 20:18:17
|
Original message from: "Maitrik Patel" >If your a newbie, its terrible to start out with mini tutorials... as tutorials are quick, cut out the dirty stuff, and are down to the point. best thing for learning C++ (or any language) is to hit the books.. one good book is Deitel & Deitel "How to Program", hit the library or go buy it.</DIV> Definately. O.o;; A Newbie has to get into the "dirty stuff" to learn it right. Tutorials are fine once you have the basics, but even then books are best, unless you have a teacher that can help you through it. :) The books are also a good refrence for when the teacher isn't there. |
|
From: Peter K. <pe...@ch...> - 2001-01-02 19:37:13
|
> "Zero-c." wrote: > = > I study to become softwaree enginner and i learn at the moment C for > the firdt semester!We learn to use pointers but with the instructions > of the proffesor i didn't understand the very well.So please tell what > pointers do and why to use them even if they make my life diffucult? Do you think you can spend a few dollars and buy the book SAMS " Teach yourself C in 21 Days", ISBN 0-672-31069-4 , apprx. US=A7 30, a full-featured Borland-C compiler/linker,Debugger/ IDE is coming with the book. The book is written in plain, easy to understand English and covers, beside the basics of C, the topic of pointers. p.k. |
|
From: Ioannis V. <no...@ya...> - 2001-01-02 18:47:27
|
Except of the long long type which corrupts compatibility with C89 & C++,
and the _Bool type defined only in boolean.h (not built in type) which may
or may not be stupid, there are a lot of fortran-style!!! stupid additions
which corrupt compatibility with common sense and according to my opinion
destroyed forever the language.
Examples:
1) snprintf()
2) new formats for printf(). E.g. %ll for long long. We are used to %$d
stuff for signed integers, where $ the integer type, so %ll is something you
have to remember isolated.
And now fasten your seabelt, "the great things" adopted by fortran:
3) int *p=(int []) {2, 4}
It is something like a pointer pointing to an array where the first 2
elements are 2, 4. Or something like that, i do not know and i do not want
to know..
4) int (*q)[2]=(int[][2]) {{1,2}, {3,4}, {5,6}, {7, 8}};
It is something an array of 2 pointers to functions accepting an int
2-dimensional array with default values?
5) drawline((struct point) {1, 2}, (struct point) {3, 4});
It is a function accepting two *anonymous*(!) probably variable structs with
default values?
6) drawline((struct point) {.y=2, .x=1}, (struct point) {.x=3, .y=});
This creates 2 anonymous structs with those values. The structs and the
values are created in there!!
7) int a[]={[2]=3, [1]=2, [0]=1};
Translation: We create an array with the third element=3, the second=2, and
the first=1. The same we used till nowadays as int a[]={1, 2, 3};
8) enum{ first, second};
const char *nm[]={[second]="second", [first]="first",};
Translation: The second element of the array gets the value "second" and the
first the value "first".
I wonder why the last comma (,) is used but perhaps it is a variable array
or something.
9) int a[MAX]={1, 3, 5, [MAX-3]= 4, 2, 0};
The "fortan-miracles" of the new standard: We give to the first 3 elements
of the array the values 1, 3, 5 and the 3 elements at the end the values 4,
2, and 0.
10) struct {int a[2], b}; x[]={[0].a = {1}, [1].a[0] = 2};
I will try to translate this: We create an anonymous struct and then an
array of it named x, with the first element taking the values: [0].a[0]=1 &
[0].a[1]=1 both using the notation [0].a=1 , and the second elemet of the
structure array x taking the value 1 at its first only array element:
[1].a[0]=2
11)
size_t fsize3(int n)
{
char b[n+3]; // Variable Length (Fortran-style) Array
return sizeof b;
}
int main()
{
size_t size=fsize3(10); // 13
return 0;
}
12)
void rowSum(int, int, int[*][*], int[*]);
// ^^^^^^^^^ means variable length
...
int a[5][6], b[5];
rowSum(5, 6, a, b,);
...
void rowSum(int n, int m, int in[n][m], int out[n])
// ^^^^^^^^^ here we give names to the lengths
{
for(int i=0; i<n; i++)
{
int sum=0;
for(j=0; j<m; j++)
sum+=in[i][j];
out[i]=sum;
}
}
13) Old Fortran trick:
struct s { int n; double d[]; };
struct s *s1=malloc(sizeof(struct s)+64);
s1->d[0]=...
Translation: We allocated space for the struct and 64 bytes for the double
type array.
14) Exact width integers: int_least_8t (also 16, 32, 64)
uint_least_8t (also 16, 32, 64)
Fast minimum width integers: int_fast_8t (also 16, 32, 64)
uint_fast_8t (also 16, 32, 64)
Greatest width integers (the largest integer): intmax_t, uintmax_t.
15) restricted pointers. They assure that no other pointer points to the
same data.
There are many other changes too. I got all these from
http://www.freshsources.com/dev/Forums/C99/
Go and take a look there, it has a summary of the changes.
I would like to see what the others (you) believe about these improvements.
Ioannis
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of James
> Gordon
> Sent: Tuesday, January 02, 2001 3:54 PM
> To: 'dev...@li...'
> Subject: RE: [Dev-C++] C99
>
>
> For instance?
>
> Regards,
>
> James.
>
>
>
> -----Original Message-----
> From: Ioannis Vranos [mailto:no...@ya...]
> Sent: Saturday, December 30, 2000 12:17 PM
> To: Dev-C++
> Subject: [Dev-C++] C99
>
>
> Talking about C, has anybody in here realized what crap has been
> introduced
> in C, in C99 standard? The language has been totally ruined. Now i
> completely understand why K&R will not write a new book.
>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://members.nbci.com/noicys
> <http://members.nbci.com/noicys>
> * Alternative URL: http://run.to/noicys <http://run.to/noicys>
>
>
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> This electronic message and any attachment is intended to be
> read by the named addressee(s) only.
> Any other recipient should be aware that its contents may be
> legally privileged and/or confidential and that its use,
> disclosure, copying or distribution may be unlawful.
> Unless you are a named addressee, please delete this message
>
> Whilst C. & J. Clark International Limited has taken steps
> to prevent the transmission of computer viruses with electronic mail,
> responsibility for screening incoming messages and the risk of such
> transmission and its consequences lies with the recipient.
>
> C. & J. Clark International Limited
> Registered in England and Wales
> Company No. 141015
> Registered Office: 40 High Street, Street, Somerset BA16 0YA
> Telephone: +44 (0) 1458 443131
> Fax: +44 (0) 1458 447547
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|
|
From: Ioannis V. <no...@ya...> - 2001-01-02 17:26:36
|
In a few words: You use them to access, read and modify the contents of memory addresses directly. Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Zero-c. Sent: Monday, January 22, 2001 5:08 PM To: dev...@li... Subject: [Dev-C++] I am student! I study to become softwaree enginner and i learn at the moment C for the firdt semester!We learn to use pointers but with the instructions of the proffesor i didn't understand the very well.So please tell what pointers do and why to use them even if they make my life diffucult? |
|
From: James G. <Jam...@Cl...> - 2001-01-02 16:45:49
|
void my_number(void) is saying that the function my_number doesn't take any
parameters and doesn't return anything.
int my_number(void) returns a number, in the code use return ???; where ???
is either a magic number or a variable of type int.
E.g.
int another_function_call(int parameter1);
int my_number(void)
{
return another_function_call(100);
}
Regards,
James.
-----Original Message-----
From: jag [mailto:won...@th...]
Sent: Saturday, December 30, 2000 11:06 PM
To: devc++ mail-list
Subject: [Dev-C++] sending and retrieving values from functions
hi,
i'm studying a tutorial that makes use of a function named my_number.
at the beggining of the code before the main loop it is declared as
follows:-
void my_number(void);
the code for the routine is called from within the main loop by the command
my_number();
my question is, if i wanted a return value for one of the values in the
function my_number what command would i use?
The tutorial explains the use of the term void in the code saying that it is
used when there is no return values!
Is it possible for anyone to explain how i might send or retrieve values to
the function my_number?
thanks,
jag
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This electronic message and any attachment is intended to be
read by the named addressee(s) only.
Any other recipient should be aware that its contents may be
legally privileged and/or confidential and that its use,
disclosure, copying or distribution may be unlawful.
Unless you are a named addressee, please delete this message
Whilst C. & J. Clark International Limited has taken steps
to prevent the transmission of computer viruses with electronic mail,
responsibility for screening incoming messages and the risk of such
transmission and its consequences lies with the recipient.
C. & J. Clark International Limited
Registered in England and Wales
Company No. 141015
Registered Office: 40 High Street, Street, Somerset BA16 0YA
Telephone: +44 (0) 1458 443131
Fax: +44 (0) 1458 447547
|
|
From: Quentin S. <mac...@bi...> - 2001-01-02 16:36:46
|
Hi- I thought the mingw compiler wanted only .a files? In any case, what is the proper string to put in the "Extra libraries" box. I know for .a files I can use -l<library name without .a or lib in the beginning>. What is the proper setting? Just the full path to the .lib file? Thanks for your help, --Quentin ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Tuesday, January 02, 2001 9:34 AM Subject: RE: [Dev-C++] Connecting to a dll > You include the .lib file in your linker settings, this allows for compile > time references to be checked etc. Your application will use the .dll file > at runtime. > > Regards, > > James. > > -----Original Message----- > From: Quentin Smith [mailto:mac...@bi...] > Sent: Sunday, December 31, 2000 5:51 PM > To: dev...@li... > Subject: [Dev-C++] Connecting to a dll > > > > Hi- > I am investigating a library. It installs ok, and I have sorted out the > header issues, but they only provide a .lib file and a .dll file. I know > there is a .lib-to-.a converter out there, but I am unable to find it. > However, is it possible to link my program with the dll at linking time? The > only errors I get with my program are undefined symbols during linking. > --Quentin > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > This electronic message and any attachment is intended to be > read by the named addressee(s) only. > Any other recipient should be aware that its contents may be > legally privileged and/or confidential and that its use, > disclosure, copying or distribution may be unlawful. > Unless you are a named addressee, please delete this message > > Whilst C. & J. Clark International Limited has taken steps > to prevent the transmission of computer viruses with electronic mail, > responsibility for screening incoming messages and the risk of such > transmission and its consequences lies with the recipient. > > C. & J. Clark International Limited > Registered in England and Wales > Company No. 141015 > Registered Office: 40 High Street, Street, Somerset BA16 0YA > Telephone: +44 (0) 1458 443131 > Fax: +44 (0) 1458 447547 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: James G. <Jam...@Cl...> - 2001-01-02 16:30:40
|
Quoted form - This form instructs the preprocessor to look for include files in the same directory of the file that contains the #include statement, and then in the directories of whatever files that include (#include) that file. The preprocessor then searches along the path specified by the /I compiler option, then along paths specified by the INCLUDE environment variable. Angle-bracket form - This form instructs the preprocessor to search for include files first along the path specified by the /I compiler option, then along the path specified by the INCLUDE environment variable. So the only difference is that the <> does not search the source directory, "" does. Regards, James. -----Original Message----- From: jag [mailto:won...@th...] Sent: Friday, December 29, 2000 1:29 AM To: devc++ mail-list Subject: [Dev-C++] include files those with a .h? ok i've got my dev cpp ver 4.0 ready to boogy with! cos i'm a novice at the moment bear with me..simple questions first. all the include files for a program end with .h correct? so when you compile a program and it has errors saying it can not find the .h files you have them stored on the hard drive in the wrong place! So saying that do all the include files have to be in the dev cpp include directory? or is there a simpler easier way to go about it? _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |