473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Win32 & C++ Books

I am a System Administrator and do some programming (Admin Utlities) in VB6 & C#.net. I am interested in Win32 and thought of learning C++ (as it is a pre-requsite) and read 13 chapters from C++.Net Complete Reference. I think I can now follow a normal C++ program but when it comes to Win32 most books I have seen does not explain anything on the structuures or types being used.

For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);

Any books that will teach Win32 starting from types? Should I learn more of C++ itself? Any recommendations.

Thanks,

Rajesh Abraham
Nov 16 '05 #1
6 2111
Rajesh wrote:
I am a System Administrator and do some programming (Admin Utlities)
in VB6 & C#.net. I am interested in Win32 and thought of learning C++
(as it is a pre-requsite) and read 13 chapters from C++.Net Complete
Reference. I think I can now follow a normal C++ program but when it
comes to Win32 most books I have seen does not explain anything on
the structuures or types being used.

For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);
Generally you'll need to look up these types in the Win32 documentation. In
this case, LPPROFILEINFO is a pointer to a PROFILEINFO, which is a struct,
defined in <userenv.h> like this:

typedef struct _PROFILEINFO {
DWORD dwSize;
DWORD dwFlags;
LPTSTR lpUserName;
LPTSTR lpProfilePath;
LPTSTR lpDefaultPath;
LPTSTR lpServerName;
LPTSTR lpPolicyPath;
HANDLE hProfile;
} PROFILEINFO, *LPPROFILEINFO;


Any books that will teach Win32 starting from types?
"Programming Applications for Microsoft Windows", Jeffrey Richter, MS Press,
ISBN 1572319968
Should I learn more of C++ itself?


Yes, of course :)

-cd
Nov 16 '05 #2
I find myself in a similar situation, I read Visual C++ .NET Step by Step,
but still have a difficult time understanding some of the C++ reference
materials. I have started reading the book Teach Yourself C++ in 21 Days by
Jesse Liberty and I am finding that it fills in some of the gaps in my
knowledge.

Regards,
January

"Rajesh" <an*******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I am a System Administrator and do some programming (Admin Utlities) in VB6 & C#.net. I am interested in Win32 and thought of learning C++ (as it is
a pre-requsite) and read 13 chapters from C++.Net Complete Reference. I
think I can now follow a normal C++ program but when it comes to Win32 most
books I have seen does not explain anything on the structuures or types
being used.
For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);

Any books that will teach Win32 starting from types? Should I learn more of C++ itself? Any recommendations.
Thanks,

Rajesh Abraham

Nov 16 '05 #3
Sin
> I am a System Administrator and do some programming (Admin Utlities) in
VB6 & C#.net. I am interested in Win32 and thought of learning C++ (as it is
a pre-requsite) and read 13 chapters from C++.Net Complete Reference. I
think I can now follow a normal C++ program but when it comes to Win32 most
books I have seen does not explain anything on the structuures or types
being used.

For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);

Any books that will teach Win32 starting from types? Should I learn more

of C++ itself? Any recommendations.
MSDN has all that info... Ok so MSDN is a pain to browse, but you'll
learn...

As for LPPROFILEINFO, the API is very consistant... I have no idea what it
is, but I can tell you the LP prefix means it's a pointer... The call being
win32, I can tell you it's a pointer to a structure called PROFILEINFO...
Just look it up in MSDN and you'll find a description of it's use, members,
description of each, exceptions, limitations, etc....

I personnally think reading books is a waste of time. You have to wade
through so much useless info and repetition and you usually loose track of
the important information. For me the net is a big knowledge base, and
there's nothing like example to learn (good and bad ones).

BTW C++ is NOT a prerequisite to the Win32 API... Plain C is just as good,
if not better. And you can do alot from VB itself too, without learning
C/C++...

Alex.
Nov 16 '05 #4
nn
"The C++ Programming Language "
by Bjarne Stroustrup
-----Original Message-----
Rajesh wrote:
I am a System Administrator and do some programming (Admin Utlities) in VB6 & C#.net. I am interested in Win32 and thought of learning C++ (as it is a pre-requsite) and read 13 chapters from C++.Net Complete Reference. I think I can now follow a normal C++ program but when it comes to Win32 most books I have seen does not explain anything on the structuures or types being used.

For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);
Generally you'll need to look up these types in the Win32

documentation. Inthis case, LPPROFILEINFO is a pointer to a PROFILEINFO, which is a struct,defined in <userenv.h> like this:

typedef struct _PROFILEINFO {
DWORD dwSize;
DWORD dwFlags;
LPTSTR lpUserName;
LPTSTR lpProfilePath;
LPTSTR lpDefaultPath;
LPTSTR lpServerName;
LPTSTR lpPolicyPath;
HANDLE hProfile;
} PROFILEINFO, *LPPROFILEINFO;


Any books that will teach Win32 starting from types?
"Programming Applications for Microsoft Windows", Jeffrey

Richter, MS Press,ISBN 1572319968
Should I learn more of C++ itself?


Yes, of course :)

-cd
.

Nov 16 '05 #5
Rajesh,

It is very commendable that you are trying to learn C/C++, even though
development is not your primary job (there are quite a few system admins
around who are staying astray from programming, which - I think - robs them
from useful knowledge). With respect to Win32 programming, C++ is not going
to help you much, because Win32 is mostly C code with Microsoft flavor, and
this Microsoft flavor can be quite confusing for newcomers. Eventually, you
get used to it. In the meantime, just do a search on Google or Google
Newsgroups and there is a high chance you will find some info, if not
directly related, but maybe pointing to something more relevant. There are
some bits of info, which will come to you with more experience. Like knowing
that LP in the beginning of structure names means "long pointer", which is
basically a pointer, so there is not much chance for you to find a lot of
info about LPPROFILEINFO, but you can see the description of PROFILEINFO (in
fact, MSDN description will show you that LPPROFILEINFO is just an alias
for PROFILEINFO*). There is a lot of stuff like this, such as using
Hungarian notation in the function prototypes, which may also be confusing,
but it should not to get you long to get used to it.

Alek

"Rajesh" <an*******@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I am a System Administrator and do some programming (Admin Utlities) in VB6 & C#.net. I am interested in Win32 and thought of learning C++ (as it is
a pre-requsite) and read 13 chapters from C++.Net Complete Reference. I
think I can now follow a normal C++ program but when it comes to Win32 most
books I have seen does not explain anything on the structuures or types
being used.
For Eg what type is LPPROFILEINFO in the below eg.

BOOL LoadUserProfile(
HANDLE hToken,
LPPROFILEINFO lpProfileInfo
);

Any books that will teach Win32 starting from types? Should I learn more of C++ itself? Any recommendations.
Thanks,

Rajesh Abraham

Nov 16 '05 #6
Thanks for all the responses. I think I now have a better idea on which path i should take.
Thanks,

Rajesh Abraham Chacko
Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eitan | last post by:
Hello, I am using Visual Studio.net 2003. I am trying to find how to create Win32 DLL & Win32 Static Library. When going through the wizard it does not show me the option for these two project...
42
by: Andy | last post by:
and so far I'm loving it, I like the the authors don't beat around the bush and just come straight out and say what the book is sopposed to be. They assume the you have computer experience. I'm...
83
by: newby2c | last post by:
My personal K&R (3rd edition) wish list: 1. That a 3rd edition is actually published! 2. Make any and all corrections from earlier editions. 3. Update to comply with the c99 Standard. 4. A...
6
by: Can Balioglu | last post by:
Hi everyone, My question is not a technical one. I'm just curious about the future of Win32 (and Win64) programming. Most of the books about Win32 from MS Press (like Programming Windows,...
3
by: Soneji | last post by:
Hello yet again, I know this is long, and I apologize... but hang in there! :) I've been learning C++, and I can't get enough. I've been finding out more, and more about it online, ever since...
0
by: jbenezech | last post by:
Hi all , I have a perl/java app running under Win32. The application consists of a perl service (Win32::Daemon) and of java classes. The perl service calls every xx hours java classes to perform...
0
by: olegprog | last post by:
Dear All, I am trying to write a C# DLL that would work with VBA (in VBA I can directly call C# dll) and relatively old Win32 application (ArcView3.x). For Win32 application I would like to use C++...
0
by: newbie73 | last post by:
Going through the tutorial on http://swig.org, I created the example files (pasted below). After generating the _wrap file, I tried compiling (using mingw32) and received a lot of undefined...
3
by: Noorain | last post by:
I designed a site. i want to header,footer,left & right column fixed but body information only scrolling. this site screen to be 800/600 px. i designed this way but when i used position fixed all...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.