473,320 Members | 1,910 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,320 software developers and data experts.

WIN32 #Define Resources

Rabbit
12,516 Expert Mod 8TB
So I was taking a look at Stromcode's WIN32 API tutorial and he was going over window objects within a parent window. He said you have to assign a resource value to each object. Anyways, I was looking over his source code and I found something I didn't know what it was for and that he didn't explain.
Expand|Select|Wrap|Line Numbers
  1. //{{NO_DEPENDENCIES}}
  2. // Microsoft Visual C++ generated include file.
  3. // Used by Win32WrapperClass.rc
  4. //
  5. #define IDB_GOSCAN                      101
  6. #define IDE_IPADDRESS                   102
  7. #define IDE_STARTPORT                   103
  8. #define IDE_ENDPORT                     104
  9. #define IDS_IPADDRESS                   105
  10. #define IDS_STARTPORT                   106
  11. #define IDS_ENDPORT                     107
  12. #define IDT_OUTPUT                      108
  13.  
  14. // Next default values for new objects
  15. // 
  16. #ifdef APSTUDIO_INVOKED
  17. #ifndef APSTUDIO_READONLY_SYMBOLS
  18. #define _APS_NEXT_RESOURCE_VALUE        102
  19. #define _APS_NEXT_COMMAND_VALUE         40002
  20. #define _APS_NEXT_CONTROL_VALUE         1001
  21. #define _APS_NEXT_SYMED_VALUE           109
  22. #endif
  23. #endif
So my question is what is all the APS stuff, basically everything in the second half?
Apr 5 '07 #1
4 2365
Banfa
9,065 Expert Mod 8TB
APPSTUDIO symbols are destined for the Editor in DevStudio.

So for instance

#define _APS_NEXT_CONTROL_VALUE 1001

is specifying that the next time a new control is placed on a dialog box it will be given a control ID value of 1001

These have nothing to do with the program itself which is why they only exist if _APPSTUDIO invoked is true.
Apr 5 '07 #2
Rabbit
12,516 Expert Mod 8TB
So since I'm using DevC++ I can safely ignore it since it has no bearing on what I'm doing?
Apr 5 '07 #3
Banfa
9,065 Expert Mod 8TB
So since I'm using DevC++ I can safely ignore it since it has no bearing on what I'm doing?
I would have thought so.

The opinion comes with the usual disclaimer that anything you do is your fault and I can be held in no way accountable for you choosing to follow and instructions or suggestions I may give.
Apr 5 '07 #4
Rabbit
12,516 Expert Mod 8TB
I would have thought so.

The opinion comes with the usual disclaimer that anything you do is your fault and I can be held in no way accountable for you choosing to follow and instructions or suggestions I may give.
LOL, Thanks.
Apr 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Grant Edwards | last post by:
How does one do raw Ethernet under Win32? Ultimately, I want to do it in a Python program, but if somebody can point me to a clue on how to do it from C, I could probably figure out the rest. ...
1
by: Paul Watson | last post by:
I need to access Win32 PE resources (strings, dialogs, etc.). Yes, I see that I can do it using Mark Hammond's win32all. I am using _winreg which comes with Python to access the registry. I...
0
by: Terry | last post by:
Hi all, I am helping someone to investigate a problem with a perl tool that we are using. The problem is completely random and it does not produce any errors. The tool is supposed to encrypt...
3
by: Christopher Burr | last post by:
I'm trying to retrieve a string resource from a Win32 file. In win32 world I would just use LoadLibrary and LoadString. What do I use in the .NET world? -- Chris Burr cburr@kcc.com
15
by: Bryan | last post by:
I have a multi-threaded C# console application that uses WMI (System.Management namespace) to make RPC calls to several servers (600+ ) and returns ScheduledJobs. The section of my code that...
12
by: Nak | last post by:
Hi there, This might sound like a dumb question but how would I use a Win32 resource DLL in VB.NET? I presumed there were API's for this purpose but am unsure which ones, my API guide has...
0
by: Mythran | last post by:
I wrote some code that is supposed to enumerate through the specified file's win32 resources and return a string-array of all icon names. When it runs, it returns a string-array with a bunch of...
0
by: =?Utf-8?B?Q29saXZpZXI=?= | last post by:
If anyone can help me with this I would really appreciate it: I have an assembly into which I have linked a manifest file as a Win32 resource. This is necessary since I want to use a class in this...
166
by: Nimmi Srivastav | last post by:
Apologies if my cross posting has offended anyone.... For a pure hobbyist C/C++ programmer, who wants to develop applications to run on Windows, what would be a better choice to install: Visual...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.