dev-cpp-users Mailing List for Dev-C++ (Page 739)
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-04 15:35:00
|
A resource file as a Windows text file that contains information about
menus, dialogs, icons, accelerators etc and is normally in a .rc file.
As to the other question.
Create a header to declare your function e.g.
myfunc.h
~~~~~~~~
#ifndef MY_FUNC_H
#define MY_FUNC_H
#ifndef SOURCE_COMPILE
#define EXTERN_ extern
#else
#define EXTERN_
#endif
/* Function func1 prototype */
EXTERN_ int func1(int anumber);
#endif
myfunc.c
~~~~~~~~
#include <stdio.h>
#define SOURCE_COMPILE
#include "func.h"
EXTERN_ int func1(int anumber)
{
return (anumber * 1000);
}
test.c
~~~~~~
#include <stdio.h>
#include "func.h"
int main()
{
return func1(1000);
}
You would normally do one of two things.
1. If the function is to be used in a number of different projects then
creating a library (.lib or .a or .so file) that can be used in other
projects by linking the file using the -l<libname> option.
2. In the makefile specify that you need myfunc.o (which is the intermediate
file from compiling with cc -c myfunc.c).
e.g. cc test.c -o mytest func.o
With MSVC try the following
cl -c func.c
cl test.c func.obj
Regards,
James.
-----Original Message-----
From: Alan Thomas [mailto:ala...@3n...]
Sent: Thursday, January 04, 2001 1:46 AM
To: dev...@li...
Subject: [Dev-C++] what is a resource? how do I create my own headers?
Importance: High
Two questions:
(a) What is a "resource" file? Is it relevant for a [DOS] console program?
Where is it documented what to do with a resource file?
I created a new project (console application) and added three
existing files (two cpp{one with a main function, another with other
functions} and one header file. Asked it to Compile the project, but it
gave me an error with the resources ("no resources"). Tried again with a
new, empty project. Added files but got same error when I attempted to
compile.
(b) How do I save/use a header file?
I have some functions. Wrote and tested them. Took the function
prototypes and #includes, and made them the header file. Included it
(#include "html.h") in my file with the main function. Took the rest ---
the function definitions --- and made them the .cpp file. Is this the way
you use a header file?
Where is this documented or described?
Thanks, Alan
_______________________________________________
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: ropbert d b. <lon...@ju...> - 2001-01-04 15:23:22
|
Resource files are code that is compiled and included in windows programs. Dev-c++ has a resource code generator. Look in dev-c++\examples at the rsrc.rc files . On Thu, 4 Jan 2001 16:42:15 +0200 "Ioannis Vranos" <no...@ya...> writes: > See my own header file: > http://members.nbci.com/noicys/source_code/merlin.h > > I do not know about the resource stuff. > > > Ioannis > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of > Alan Thomas > > Sent: Thursday, January 04, 2001 3:46 AM > > To: dev...@li... > > Subject: [Dev-C++] what is a resource? how do I create my own > headers? > > Importance: High > > > > > > Two questions: > > > > (a) What is a "resource" file? Is it relevant for a [DOS] > > console program? > > Where is it documented what to do with a resource file? > > > > I created a new project (console application) and > added three > > existing files (two cpp{one with a main function, another with > other > > functions} and one header file. Asked it to Compile the project, > but it > > gave me an error with the resources ("no resources"). Tried again > with a > > new, empty project. Added files but got same error when I > attempted to > > compile. > > > > (b) How do I save/use a header file? > > > > I have some functions. Wrote and tested them. Took the > function > > prototypes and #includes, and made them the header file. Included > it > > (#include "html.h") in my file with the main function. Took the > rest --- > > the function definitions --- and made them the .cpp file. Is this > the way > > you use a header file? > > > > Where is this documented or described? > > > > Thanks, Alan > > > > > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > urceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Ioannis V. <no...@ya...> - 2001-01-04 15:05:52
|
He can use the following notation so as to bbe protected from multiple includes. #ifndef PINKY&THE_BRAIN #define PINKY&THE_BRAIN // implementation stuff #endif Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Luc Morin > Sent: Thursday, January 04, 2001 4:59 AM > To: dev...@li... > Subject: Re: [Dev-C++] what is a resource? how do I create my own headers? > > > > ----- Original Message ----- > From: "Ramana Kumar" <ra...@my...> > To: <dev...@li...> > Sent: Wednesday, January 03, 2001 9:16 PM > Subject: RE: [Dev-C++] what is a resource? how do I create my own headers? > > > > > > As far as I know, this is how you use header files, this is how > I use them > > but sometimes I don't see the point if you know the function will not be > > used later. If this is the case, keep the whole function in one > file (a .h > > file if it happens to be) and then you can include this as a > file full of > > functions in a project (used in a .cpp file like main.cpp). > > > > Ramana Kumar > > ICQ# 93667117 > > To get paid for surfing the 'net please visit > > https://www.alladvantage.com/joinsecure.asp?refid=jpn471 > > > > It is not a very good idea to put definitions in a header file. Next thing > you know, > you include the file from another translation unit and you get multiple > definitions > problems. > > I'd advise that if the function is gonna be used only in one translation > unit to put > the function in that very same translation unit (declaration AND > definition). > > Just my $0.02 > > Luc Morin > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Ioannis V. <no...@ya...> - 2001-01-04 15:00:51
|
Well, one can write the functions declarations in one .h file e.g. magic.h
so as the user (programmer) sees them, and the implementations in a .c (or
.cpp) file .e.g. magic.c and place an #include "magic.c" line at the end of
the header file. Or he can place the implementations too with (or without)
the functions' declarations.
So in the program he can directly use #include "magic.h" .
E.g. a function:
void tweety(void)
{
printf("\nI think thhat i see a caty\n");
}
a) In magic.h:
void tweety(void); // The user interface. The interface which another user
sees without bothering
// with implemetation details
#include magic.c
-----------------------
In magic.c:
#include <stdio.h>
void tweety(void)
{
printf("\nI think that i see a caty\n");
}
b) In magic.h:
void tweety(void); // The user interface. The interface which another user
sees without bothering
// with implemetation details
// Here the implementation begins. User interface and implementation on the
same file
#include <stdio.h>
void tweety(void)
{
printf("\nI think that i see a caty\n");
}
c) magic.h:
// implementation only. The user must scroll through implementation details
to discover the user interface.
// NOT recommended.
#include <stdio.h>
void tweety(void)
{
printf("\nI think that i see a caty\n");
}
----------------------------------------------------------------------------
-----------------------------------------------------
The main point here is that where you place an #include preprocessor
command, is the same as if you typed the contents of the file you #included
in that place. One can #include whattever file he wants, e.g. #include
"test.txt".
Most compilers have an automation feature that when you #include a header
file, it #includes the corresponding .c or .cpp file, but do not rely on
automations.
Ioannis
|
|
From: Ioannis V. <no...@ya...> - 2001-01-04 14:40:40
|
See my own header file: http://members.nbci.com/noicys/source_code/merlin.h I do not know about the resource stuff. Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Alan Thomas > Sent: Thursday, January 04, 2001 3:46 AM > To: dev...@li... > Subject: [Dev-C++] what is a resource? how do I create my own headers? > Importance: High > > > Two questions: > > (a) What is a "resource" file? Is it relevant for a [DOS] > console program? > Where is it documented what to do with a resource file? > > I created a new project (console application) and added three > existing files (two cpp{one with a main function, another with other > functions} and one header file. Asked it to Compile the project, but it > gave me an error with the resources ("no resources"). Tried again with a > new, empty project. Added files but got same error when I attempted to > compile. > > (b) How do I save/use a header file? > > I have some functions. Wrote and tested them. Took the function > prototypes and #includes, and made them the header file. Included it > (#include "html.h") in my file with the main function. Took the rest --- > the function definitions --- and made them the .cpp file. Is this the way > you use a header file? > > Where is this documented or described? > > Thanks, Alan > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Luc M. <lu...@ho...> - 2001-01-04 02:58:14
|
----- Original Message ----- From: "Ramana Kumar" <ra...@my...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 9:16 PM Subject: RE: [Dev-C++] what is a resource? how do I create my own headers? > > As far as I know, this is how you use header files, this is how I use them > but sometimes I don't see the point if you know the function will not be > used later. If this is the case, keep the whole function in one file (a .h > file if it happens to be) and then you can include this as a file full of > functions in a project (used in a .cpp file like main.cpp). > > Ramana Kumar > ICQ# 93667117 > To get paid for surfing the 'net please visit > https://www.alladvantage.com/joinsecure.asp?refid=jpn471 > It is not a very good idea to put definitions in a header file. Next thing you know, you include the file from another translation unit and you get multiple definitions problems. I'd advise that if the function is gonna be used only in one translation unit to put the function in that very same translation unit (declaration AND definition). Just my $0.02 Luc Morin |
|
From: Ramana K. <ra...@my...> - 2001-01-04 02:14:13
|
A resource file is not needed for a dos project. You shouldn't be getting any errors if you don't touch the resource file, but, if you do, go to Project Options and remove the text in the resource file field, or, open the resource file and edit it (delete its contents). As far as I know, this is how you use header files, this is how I use them but sometimes I don't see the point if you know the function will not be used later. If this is the case, keep the whole function in one file (a .h file if it happens to be) and then you can include this as a file full of functions in a project (used in a .cpp file like main.cpp). Ramana Kumar ICQ# 93667117 To get paid for surfing the 'net please visit https://www.alladvantage.com/joinsecure.asp?refid=jpn471 -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alan Thomas Sent: Thursday, January 04, 2001 12:46 PM To: dev...@li... Subject: [Dev-C++] what is a resource? how do I create my own headers? Importance: High Two questions: (a) What is a "resource" file? Is it relevant for a [DOS] console program? Where is it documented what to do with a resource file? I created a new project (console application) and added three existing files (two cpp{one with a main function, another with other functions} and one header file. Asked it to Compile the project, but it gave me an error with the resources ("no resources"). Tried again with a new, empty project. Added files but got same error when I attempted to compile. (b) How do I save/use a header file? I have some functions. Wrote and tested them. Took the function prototypes and #includes, and made them the header file. Included it (#include "html.h") in my file with the main function. Took the rest --- the function definitions --- and made them the .cpp file. Is this the way you use a header file? Where is this documented or described? Thanks, Alan _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
|
From: Alan T. <ala...@3n...> - 2001-01-04 01:48:27
|
Two questions:
(a) What is a "resource" file? Is it relevant for a [DOS] console program?
Where is it documented what to do with a resource file?
I created a new project (console application) and added three
existing files (two cpp{one with a main function, another with other
functions} and one header file. Asked it to Compile the project, but it
gave me an error with the resources ("no resources"). Tried again with a
new, empty project. Added files but got same error when I attempted to
compile.
(b) How do I save/use a header file?
I have some functions. Wrote and tested them. Took the function
prototypes and #includes, and made them the header file. Included it
(#include "html.h") in my file with the main function. Took the rest ---
the function definitions --- and made them the .cpp file. Is this the way
you use a header file?
Where is this documented or described?
Thanks, Alan
|
|
From: ropbert d b. <lon...@ju...> - 2001-01-03 11:53:52
|
Looks like you are right. Pile of JUNK!
lon...@ju...
On Tue, 2 Jan 2001 20:48:35 +0200 "Ioannis Vranos" <no...@ya...>
writes:
> 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
> >
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|
|
From: Frazell T. <fr...@fl...> - 2001-01-03 11:36:29
|
Ok but i got windows 2000 server if u know please drop me a line :O) ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 5:48 AM Subject: RE: [Dev-C++] Registry Program > If you have a server, dependant upon what OS it's running, you will need to > read the manual. > > Regards, > > James. > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Wednesday, January 03, 2001 10:45 AM > To: dev...@li... > Subject: Re: [Dev-C++] Registry Program > > > How do i make a logon script that will do that > ----- Original Message ----- > From: "James Gordon" <Jam...@Cl...> > To: <dev...@li...> > Sent: Wednesday, January 03, 2001 4:50 AM > Subject: RE: [Dev-C++] Registry Program > > > > If the PC's login to a server you could get the file to run as part of the > > login script. > > > > Regards, > > > > James. > > > > > > -----Original Message----- > > From: Frazell Thomas [mailto:fr...@fl...] > > Sent: Wednesday, January 03, 2001 8:27 AM > > To: dev...@li... > > Subject: Re: [Dev-C++] Registry Program > > > > > > Can i get that to run on every PC in my school without having to click a > > button > > > > > > ----- Original Message ----- > > From: "James Gordon" <Jam...@Cl...> > > To: <dev...@li...> > > Sent: Wednesday, January 03, 2001 3:12 AM > > Subject: RE: [Dev-C++] Registry Program > > > > > > > Why not have a .reg file like the one below and .bat file with the > command > > > > > > regedit /s mysettings.reg > > > > > > mysettings.reg > > > ~~~~~~~~~~~ > > > > > > REGEDIT4 > > > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\James] > > > "Gordon"="Great" > > > > > > > > > And then run the .bat file to silently register the values. > > > > > > Regards, > > > > > > James. > > > > > > > > > > > > -----Original Message----- > > > From: Frazell Thomas [mailto:fr...@fl...] > > > Sent: Tuesday, January 02, 2001 10:23 PM > > > To: dev...@li... > > > Subject: [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 > > > > > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > > 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 > > > > > > > > > _______________________________________________ > > 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 > > > > > > _______________________________________________ > > 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 > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > 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-03 10:52:28
|
If you have a server, dependant upon what OS it's running, you will need to read the manual. Regards, James. -----Original Message----- From: Frazell Thomas [mailto:fr...@fl...] Sent: Wednesday, January 03, 2001 10:45 AM To: dev...@li... Subject: Re: [Dev-C++] Registry Program How do i make a logon script that will do that ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 4:50 AM Subject: RE: [Dev-C++] Registry Program > If the PC's login to a server you could get the file to run as part of the > login script. > > Regards, > > James. > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Wednesday, January 03, 2001 8:27 AM > To: dev...@li... > Subject: Re: [Dev-C++] Registry Program > > > Can i get that to run on every PC in my school without having to click a > button > > > ----- Original Message ----- > From: "James Gordon" <Jam...@Cl...> > To: <dev...@li...> > Sent: Wednesday, January 03, 2001 3:12 AM > Subject: RE: [Dev-C++] Registry Program > > > > Why not have a .reg file like the one below and .bat file with the command > > > > regedit /s mysettings.reg > > > > mysettings.reg > > ~~~~~~~~~~~ > > > > REGEDIT4 > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\James] > > "Gordon"="Great" > > > > > > And then run the .bat file to silently register the values. > > > > Regards, > > > > James. > > > > > > > > -----Original Message----- > > From: Frazell Thomas [mailto:fr...@fl...] > > Sent: Tuesday, January 02, 2001 10:23 PM > > To: dev...@li... > > Subject: [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 > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > 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 > > > > > _______________________________________________ > 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 > > > _______________________________________________ > 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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: Luc M. <lu...@ho...> - 2001-01-03 10:47:20
|
ftp://ftp.cs.virginia.edu/pub/lcc-win32/win32hlp.exe ----- Original Message ----- From: Frazell Thomas Sent: 2 janvier, 2001 22:07 To: dev...@li... Subject: Re: [Dev-C++] Registry Program Anyone know where i can get a win32 api ref. to show the below functions > > > > RegCreateKeyEx > > RegSetValueEx > > RegQueryValueEx > > RegCloseKey > ><br clear=3Dall><hr>Get Your Private, Free E-mail from MSN Hotmail at = <a href=3D"http://www.hotmail.com">http://www.hotmail.com</a>.<br></p> |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 10:45:19
|
How do i make a logon script that will do that ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 4:50 AM Subject: RE: [Dev-C++] Registry Program > If the PC's login to a server you could get the file to run as part of the > login script. > > Regards, > > James. > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Wednesday, January 03, 2001 8:27 AM > To: dev...@li... > Subject: Re: [Dev-C++] Registry Program > > > Can i get that to run on every PC in my school without having to click a > button > > > ----- Original Message ----- > From: "James Gordon" <Jam...@Cl...> > To: <dev...@li...> > Sent: Wednesday, January 03, 2001 3:12 AM > Subject: RE: [Dev-C++] Registry Program > > > > Why not have a .reg file like the one below and .bat file with the command > > > > regedit /s mysettings.reg > > > > mysettings.reg > > ~~~~~~~~~~~ > > > > REGEDIT4 > > > > [HKEY_LOCAL_MACHINE\SOFTWARE\James] > > "Gordon"="Great" > > > > > > And then run the .bat file to silently register the values. > > > > Regards, > > > > James. > > > > > > > > -----Original Message----- > > From: Frazell Thomas [mailto:fr...@fl...] > > Sent: Tuesday, January 02, 2001 10:23 PM > > To: dev...@li... > > Subject: [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 > > > > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > 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 > > > > > _______________________________________________ > 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 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Hoo H. <hoo...@ho...> - 2001-01-03 10:06:15
|
hi, I've just tried compiling the piece of code, it works perfectly with Dev C++ as well as MS Visual C++. Don't simply copy the source from your email client and paste it into a .cpp file ... you need to modify a bit because email client may inserts some characters (line feed , carriage return) here and there. Anyway, try to compile the .cpp file attached. If the error persists, I guess there must be a problem with your system or your Dev-C++. |
|
From: James G. <Jam...@Cl...> - 2001-01-03 09:53:34
|
If the PC's login to a server you could get the file to run as part of the login script. Regards, James. -----Original Message----- From: Frazell Thomas [mailto:fr...@fl...] Sent: Wednesday, January 03, 2001 8:27 AM To: dev...@li... Subject: Re: [Dev-C++] Registry Program Can i get that to run on every PC in my school without having to click a button ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 3:12 AM Subject: RE: [Dev-C++] Registry Program > Why not have a .reg file like the one below and .bat file with the command > > regedit /s mysettings.reg > > mysettings.reg > ~~~~~~~~~~~ > > REGEDIT4 > > [HKEY_LOCAL_MACHINE\SOFTWARE\James] > "Gordon"="Great" > > > And then run the .bat file to silently register the values. > > Regards, > > James. > > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Tuesday, January 02, 2001 10:23 PM > To: dev...@li... > Subject: [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 > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > 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 > _______________________________________________ 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: Ioannis V. <no...@ya...> - 2001-01-03 09:41:24
|
Typically it should run. Wait for the next version of the compiler (GCC) included with Dev-C++. Since the official standard of C++ was defined in 1998, and C++ demands many things from tthe compilers, almost no compiler is 100% compatible (with the standard, but things will be improving as the time passes. Especially with templates there is a lot of work to be done. In compare with other compilers out there, GCC is one of the most conforming ones, more conforming than Visual C++. The only 100% conforming compiler i know is Borland's C++ 5.5 compiler which you can download for free from its site and use it from the commmand line. Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Curt Jensen > Sent: Wednesday, January 03, 2001 5:28 AM > To: dev...@li... > Subject: [Dev-C++] Newbie needs help with header > > > 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... > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Ramana K. <ra...@my...> - 2001-01-03 08:53:03
|
I havent thoroughly read all this code regarding the registry, but, if Hoo Hongs code works, there may be a difference (or problem) with you system setup, Frazell. What OS are you using, and what does your registry look like (in regedit) compare this with Hoo Hongs. If the program doesnt even compile, yet compiles on another system, maybe you should check all the settings and/or re-install Dev-C++. I saw that your hard drive is E:, Im not sure, but maybe Dev-C++ automatically sets up its default settings to a hard drive which is C:. Go to Options->Compiler Options and check that everything is all right. Does anyone know if there exists a compilation of all the API functions and their argument and what they do? If it exists, Im sure it would be a godsend for the people (like Hoo, Frazell and I) who are working with the Win32 API. I hope we find a solution soon, Xerchzkopfinc. Ramana Kumar ICQ# 93667117 To get paid for surfing the internet, please visit https://www.alladvantage.com/joinsecure.asp?refid=jpn471. -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Frazell Thomas Sent: Wednesday, January 03, 2001 7:43 PM To: dev...@li... Subject: Re: [Dev-C++] Reg Prog. (Frazell Thomas) is something wrong wit my DevC++ i got 4.1 do i gotta download extra libraries cause even urs wouldnt compile :O( any help will be appreciated again thankx ----- Original Message ----- From: Hoo Hong <mailto:hoo...@ho...> To: dev...@li... <mailto:dev...@li...> Sent: Wednesday, January 03, 2001 3:12 AM Subject: Re: [Dev-C++] Reg Prog. (Frazell Thomas) Hi, This piece of code i wrote sometime ago, hope it helps. //-------------------------------------------------------------------------- ---- #include <stdlib.h> #include <stdio.h> #include <windows.h> #include <string> int main(int argc, char *argv[]) { HKEY hKey = NULL; DWORD TypeString = REG_SZ; DWORD TypeDword = REG_DWORD; char buf[256]; DWORD RegVal = 0; unsigned long size; int rv = 0; std::string strKey = "Software\\Microsoft\\Windows\\CurrentVersion"; std::string strQueryValue1 = "RegisteredOwner"; std::string strQueryValue2 = "InstallType"; rv = RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKey.c_str(),0, KEY_ALL_ACCESS, &hKey); if (rv == ERROR_SUCCESS) printf("RegOpenKeyEx success\n\n"); else { printf("RegOpenKeyEx failed, this key does not exist\n"); system("Pause"); return 0; } //To query string value size = sizeof(buf); rv = RegQueryValueEx(hKey,strQueryValue1.c_str(), NULL, &TypeString, (unsigned char *) &buf, &size); if (rv == ERROR_SUCCESS) printf("The registered owner for this product is %s\n",buf); else printf("Error query registry key %s\\%s\n", strKey.c_str(), strQueryValue1.c_str()); //To query DWORD value size = sizeof(DWORD); rv = RegQueryValueEx(hKey,strQueryValue2.c_str(), NULL, &TypeDword, (unsigned char *) &RegVal, &size); if (rv == ERROR_SUCCESS) printf("The install type is 0x%X\n",RegVal); else { printf("Error query registry key %s\\%s\n", strKey.c_str(), strQueryValue2.c_str()); } HKEY hNewKey = NULL; std::string strNewSubKey = "TestKey"; std::string strNewValue = "TestValue"; std::string strNewValueData = "Testing 123"; DWORD dwDisposition = 0; //To create a new subkey printf("\nAbout to create new registry key, press Enter to continue"); getchar(); rv = RegCreateKeyEx(hKey, strNewSubKey.c_str(), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hNewKey, &dwDisposition); if (rv == ERROR_SUCCESS) { if (dwDisposition == REG_CREATED_NEW_KEY) { printf("New sub key created: %s\\%s\n", strKey.c_str(), strNewSubKey.c_str()); printf("Verify it using regedit, press Enter to contiue\n"); getchar(); } else if (dwDisposition == REG_OPENED_EXISTING_KEY) printf("Existing key opened\n"); } else printf("Error create new key\n"); if (hNewKey) { //To set a new value printf("About to set new value in new sub key, press Enter to continue"); getchar(); rv = RegSetValueEx(hNewKey, strNewValue.c_str(), 0, TypeString, (unsigned char *) strNewValueData.c_str(), strNewValueData.length()); if (rv == ERROR_SUCCESS) { printf("New value set\n"); printf("Verify it using regedit, press Enter to continue\n"); getchar(); } else printf("Error setting new key value\n"); //To change the new value strNewValueData = "Testing 456"; printf("About to change new key value data, press Enter to continue"); getchar(); rv = RegSetValueEx(hNewKey, strNewValue.c_str(), 0, TypeString, (unsigned char *) strNewValueData.c_str(), strNewValueData.length()); if (rv == ERROR_SUCCESS) { printf("New value data changed\n"); printf("Verify it using regedit, press Enter to continue\n"); getchar(); } else printf("Error changing new key value data\n"); //To delete the new value printf("About to delete new key value, press Enter to continue"); getchar(); rv = RegDeleteValue(hNewKey, strNewValue.c_str()); if (rv == ERROR_SUCCESS) { printf("New key value deleted\n"); printf("Verify it using regedit, press Enter to continue\n"); getchar(); } else printf("Error deleting new key value\n"); } //To delete new key if (hNewKey) RegCloseKey(hNewKey); printf("About to delete new key value, press Enter to continue"); getchar(); rv = RegDeleteKey(hKey, strNewSubKey.c_str()); if (rv == ERROR_SUCCESS) { printf("New key deleted\n"); printf("Verify it using regedit, press Enter to continue\n"); getchar(); } else printf("Error deleting new key\n"); if (hKey) RegCloseKey(hKey); system("Pause"); return 0; } |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 08:43:13
|
is something wrong wit my DevC++ i got 4.1 do i gotta download extra =
libraries cause even urs wouldnt compile :O( any help will be =
appreciated again thankx
----- Original Message -----=20
From: Hoo Hong=20
To: dev...@li...=20
Sent: Wednesday, January 03, 2001 3:12 AM
Subject: Re: [Dev-C++] Reg Prog. (Frazell Thomas)
Hi,
This piece of code i wrote sometime ago, hope it helps.
=
//-----------------------------------------------------------------------=
-------
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <string>
int main(int argc, char *argv[])
{
HKEY hKey =3D NULL;
=20
DWORD TypeString =3D REG_SZ;
DWORD TypeDword =3D REG_DWORD;
char buf[256];
DWORD RegVal =3D 0;
unsigned long size;
int rv =3D 0;
=20
std::string strKey =3D =
"Software\\Microsoft\\Windows\\CurrentVersion";
std::string strQueryValue1 =3D "RegisteredOwner";
std::string strQueryValue2 =3D "InstallType";
=20
rv =3D RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKey.c_str(),0, =
KEY_ALL_ACCESS, &hKey);
if (rv =3D=3D ERROR_SUCCESS)
printf("RegOpenKeyEx success\n\n");
else
{
printf("RegOpenKeyEx failed, this key does not exist\n");
system("Pause");
return 0;
}
=20
//To query string value
size =3D sizeof(buf); =20
rv =3D RegQueryValueEx(hKey,strQueryValue1.c_str(), NULL, =
&TypeString, (unsigned char *) &buf, &size);
if (rv =3D=3D ERROR_SUCCESS)
printf("The registered owner for this product is %s\n",buf);
else
printf("Error query registry key %s\\%s\n", strKey.c_str(), =
strQueryValue1.c_str());
//To query DWORD value
size =3D sizeof(DWORD); =20
rv =3D RegQueryValueEx(hKey,strQueryValue2.c_str(), NULL, =
&TypeDword, (unsigned char *) &RegVal, &size);
if (rv =3D=3D ERROR_SUCCESS)
printf("The install type is 0x%X\n",RegVal);
else
{
printf("Error query registry key %s\\%s\n", strKey.c_str(), =
strQueryValue2.c_str());
}
=20
HKEY hNewKey =3D NULL;
std::string strNewSubKey =3D "TestKey";
std::string strNewValue =3D "TestValue";
std::string strNewValueData =3D "Testing 123"; =20
DWORD dwDisposition =3D 0;
=20
//To create a new subkey
printf("\nAbout to create new registry key, press Enter to =
continue");
getchar();
rv =3D RegCreateKeyEx(hKey, strNewSubKey.c_str(), 0, NULL, =
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hNewKey, =
&dwDisposition);
if (rv =3D=3D ERROR_SUCCESS)
{
if (dwDisposition =3D=3D REG_CREATED_NEW_KEY)
{
printf("New sub key created: %s\\%s\n", strKey.c_str(), =
strNewSubKey.c_str());
printf("Verify it using regedit, press Enter to =
contiue\n");
getchar();
}
else if (dwDisposition =3D=3D REG_OPENED_EXISTING_KEY)
printf("Existing key opened\n");
}
else
printf("Error create new key\n");
if (hNewKey)
{
//To set a new value
printf("About to set new value in new sub key, press Enter to =
continue");
getchar();
rv =3D RegSetValueEx(hNewKey, strNewValue.c_str(), 0, =
TypeString, (unsigned char *) strNewValueData.c_str(), =
strNewValueData.length());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New value set\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error setting new key value\n");
=20
//To change the new value
strNewValueData =3D "Testing 456";
printf("About to change new key value data, press Enter to =
continue");
getchar();
rv =3D RegSetValueEx(hNewKey, strNewValue.c_str(), 0, =
TypeString, (unsigned char *) strNewValueData.c_str(), =
strNewValueData.length());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New value data changed\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error changing new key value data\n");
=20
//To delete the new value
printf("About to delete new key value, press Enter to =
continue");
getchar();
rv =3D RegDeleteValue(hNewKey, strNewValue.c_str());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New key value deleted\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error deleting new key value\n");
}
//To delete new key =20
if (hNewKey)
RegCloseKey(hNewKey);
printf("About to delete new key value, press Enter to continue");
getchar();
rv =3D RegDeleteKey(hKey, strNewSubKey.c_str());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New key deleted\n");
printf("Verify it using regedit, press Enter to continue\n");
getchar();
}
else
printf("Error deleting new key\n");
=20
=20
if (hKey)
RegCloseKey(hKey);
system("Pause");
return 0;
}
|
|
From: Hoo H. <hoo...@ho...> - 2001-01-03 08:38:01
|
Hi,
This piece of code i wrote sometime ago, hope it helps.
//-----------------------------------------------------------------------=
-------
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <string>
int main(int argc, char *argv[])
{
HKEY hKey =3D NULL;
=20
DWORD TypeString =3D REG_SZ;
DWORD TypeDword =3D REG_DWORD;
char buf[256];
DWORD RegVal =3D 0;
unsigned long size;
int rv =3D 0;
=20
std::string strKey =3D =
"Software\\Microsoft\\Windows\\CurrentVersion";
std::string strQueryValue1 =3D "RegisteredOwner";
std::string strQueryValue2 =3D "InstallType";
=20
rv =3D RegOpenKeyEx(HKEY_LOCAL_MACHINE,strKey.c_str(),0, =
KEY_ALL_ACCESS, &hKey);
if (rv =3D=3D ERROR_SUCCESS)
printf("RegOpenKeyEx success\n\n");
else
{
printf("RegOpenKeyEx failed, this key does not exist\n");
system("Pause");
return 0;
}
=20
//To query string value
size =3D sizeof(buf); =20
rv =3D RegQueryValueEx(hKey,strQueryValue1.c_str(), NULL, =
&TypeString, (unsigned char *) &buf, &size);
if (rv =3D=3D ERROR_SUCCESS)
printf("The registered owner for this product is %s\n",buf);
else
printf("Error query registry key %s\\%s\n", strKey.c_str(), =
strQueryValue1.c_str());
//To query DWORD value
size =3D sizeof(DWORD); =20
rv =3D RegQueryValueEx(hKey,strQueryValue2.c_str(), NULL, =
&TypeDword, (unsigned char *) &RegVal, &size);
if (rv =3D=3D ERROR_SUCCESS)
printf("The install type is 0x%X\n",RegVal);
else
{
printf("Error query registry key %s\\%s\n", strKey.c_str(), =
strQueryValue2.c_str());
}
=20
HKEY hNewKey =3D NULL;
std::string strNewSubKey =3D "TestKey";
std::string strNewValue =3D "TestValue";
std::string strNewValueData =3D "Testing 123"; =20
DWORD dwDisposition =3D 0;
=20
//To create a new subkey
printf("\nAbout to create new registry key, press Enter to =
continue");
getchar();
rv =3D RegCreateKeyEx(hKey, strNewSubKey.c_str(), 0, NULL, =
REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hNewKey, =
&dwDisposition);
if (rv =3D=3D ERROR_SUCCESS)
{
if (dwDisposition =3D=3D REG_CREATED_NEW_KEY)
{
printf("New sub key created: %s\\%s\n", strKey.c_str(), =
strNewSubKey.c_str());
printf("Verify it using regedit, press Enter to =
contiue\n");
getchar();
}
else if (dwDisposition =3D=3D REG_OPENED_EXISTING_KEY)
printf("Existing key opened\n");
}
else
printf("Error create new key\n");
if (hNewKey)
{
//To set a new value
printf("About to set new value in new sub key, press Enter to =
continue");
getchar();
rv =3D RegSetValueEx(hNewKey, strNewValue.c_str(), 0, =
TypeString, (unsigned char *) strNewValueData.c_str(), =
strNewValueData.length());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New value set\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error setting new key value\n");
=20
//To change the new value
strNewValueData =3D "Testing 456";
printf("About to change new key value data, press Enter to =
continue");
getchar();
rv =3D RegSetValueEx(hNewKey, strNewValue.c_str(), 0, =
TypeString, (unsigned char *) strNewValueData.c_str(), =
strNewValueData.length());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New value data changed\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error changing new key value data\n");
=20
//To delete the new value
printf("About to delete new key value, press Enter to =
continue");
getchar();
rv =3D RegDeleteValue(hNewKey, strNewValue.c_str());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New key value deleted\n");
printf("Verify it using regedit, press Enter to =
continue\n");
getchar();
}
else
printf("Error deleting new key value\n");
}
//To delete new key =20
if (hNewKey)
RegCloseKey(hNewKey);
printf("About to delete new key value, press Enter to continue");
getchar();
rv =3D RegDeleteKey(hKey, strNewSubKey.c_str());
if (rv =3D=3D ERROR_SUCCESS)
{
printf("New key deleted\n");
printf("Verify it using regedit, press Enter to continue\n");
getchar();
}
else
printf("Error deleting new key\n");
=20
=20
if (hKey)
RegCloseKey(hKey);
system("Pause");
return 0;
}
|
|
From: Frazell T. <fr...@fl...> - 2001-01-03 08:34:31
|
i know im sending a ton of mail but i need this prog. and every time = alter something it gives me more errors i just crashed Dev C++ trying to = compile a app. of mine someone please look over that code tell me where = im screwing up and i tried what u said james but might not have done it = right if you can please edit the code thanks |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 08:31:14
|
Does the order of the header files matter?=20 #include <windows.h> #include <winreg.h> #include <stdlib.h> That error got me just two parse errors befor both my instructions what = are parse errors? |
|
From: Frazell T. <fr...@fl...> - 2001-01-03 08:27:21
|
Can i get that to run on every PC in my school without having to click a button ----- Original Message ----- From: "James Gordon" <Jam...@Cl...> To: <dev...@li...> Sent: Wednesday, January 03, 2001 3:12 AM Subject: RE: [Dev-C++] Registry Program > Why not have a .reg file like the one below and .bat file with the command > > regedit /s mysettings.reg > > mysettings.reg > ~~~~~~~~~~~ > > REGEDIT4 > > [HKEY_LOCAL_MACHINE\SOFTWARE\James] > "Gordon"="Great" > > > And then run the .bat file to silently register the values. > > Regards, > > James. > > > > -----Original Message----- > From: Frazell Thomas [mailto:fr...@fl...] > Sent: Tuesday, January 02, 2001 10:23 PM > To: dev...@li... > Subject: [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 > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > 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: Frazell T. <fr...@fl...> - 2001-01-03 08:25:52
|
----- Original Message -----=20
From: Frazell Thomas=20
To: dev...@li...=20
Sent: Tuesday, January 02, 2001 11:11 PM
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");
=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: Frazell T. <fr...@fl...> - 2001-01-03 08:25:19
|
I am i posted a help question regarding Win32 today did you see it i'll re-post it ----- Original Message ----- From: "Ramana Kumar" <ra...@my...> To: "C++" <dev...@li...> Sent: Wednesday, January 03, 2001 2:47 AM Subject: [Dev-C++] Re To All/Win32 API programmers > 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. T Ramana Kumar > ICQ# 93667117 > To get paid for surfing the internet, please visit > https://www.alladvantage.com/joinsecure.asp?refid=jpn471. > > |
|
From: James G. <Jam...@Cl...> - 2001-01-03 08:15:40
|
Why not have a .reg file like the one below and .bat file with the command regedit /s mysettings.reg mysettings.reg ~~~~~~~~~~~ REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\James] "Gordon"="Great" And then run the .bat file to silently register the values. Regards, James. -----Original Message----- From: Frazell Thomas [mailto:fr...@fl...] Sent: Tuesday, January 02, 2001 10:23 PM To: dev...@li... Subject: [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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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 |