|
Each porcess has a default heap, new operator uses heap functions that internally manages virtual memory for you. However you are free to create additional number of heaps for your process.
Where as virtual memory functions directly allocates memory in terms of pages.
There are more parts to the windows memory subsystem like Global memory and local memory also.
|
|
|
|
|
Thanks for your comments, suhredayan!
regards,
George
|
|
|
|
|
I write a service in VC6 App consol, this service install and started but when system restart this service not start because stratup is manual , now I want set startup to automatic with programming.
please help me,
I search in codeproject but not found any objetc for that.
|
|
|
|
|
|
How can set a startup for a service from manual to automatic with write code in Visual C6....
|
|
|
|
|
use ChangeServiceConfig() with required dwStartType.
|
|
|
|
|
The error is reported before the ASSERT
BOOL CMyMagaApp::InitInstance()
{
ASSERT(0);
...
}
Windows cannot find 'C:\a.myfile'. Make sure you typed the name correctly,
and then try again. To search for a file, click the Start button, and then
click Search.
However, the file is opened successfully.
If the app is started ahead before I double click a file, no such an error.
modified on Sunday, January 13, 2008 2:54:16 AM
|
|
|
|
|
I looking for source codes in VC++ Express that I can use to create a
Telnet BBS (Server)
FTP (Server)
SMTP (Server)
I just fount a lot of old stuff and was hoping there would be some thing newer from 2000 and above
And PLEASE include the doc's for setting and compiling.
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Yes, I have. The only code I can find is dated 1998 and older. This web site and forums section was my last hope.
Thanks
Joe
Or maybe your not talking about searching on google.com. If thats the case. No. whats codeproject.
|
|
|
|
|
bigjoe11a wrote: whats codeproject
It is a magical world full of programming knowledge.
Did you ever read the content of your browser's address box? Do it now!
Ever noticed the Search box on top of this page? Use it!
|
|
|
|
|
Except Lounge forum that we have,its other world ont the codeproject.
|
|
|
|
|
I have been there and done that and still can't find what I'm looking for. thats why I posted this message.
|
|
|
|
|
|
bigjoe11a wrote: The only code I can find is dated 1998 and older.
All three of those protocols are MUCH older than that
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, I know I downloaded some just to find out that it's not what I wanted.
Most of those are just samples for FTP uploads and things like that. Theres nothing there about FTP Servers or Telnet Servers or even SMTP servers
One more thing your forums section doesn't seem to inform me of posts. So sorry I didn't know until I thought to check any way.
|
|
|
|
|
|
No I'm sorry it's not. Most of the links that I have were not related to a Telnet, FTP and a SMTP servers. Just client applications
and the ones I did find are more then 8 years old.
|
|
|
|
|
what can be done so that when user key in their ID for example, the program will run without having to push any command button?
|
|
|
|
|
belle wrote: what can be done so that when user key in their ID for example, the program will run...
At the time of user input, isn't the program already running?
belle wrote: ...without having to push any command button?
What button are you talking about. After the user's ID has been verified, do whatever comes next.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: belle wrote:
what can be done so that when user key in their ID for example, the program will run...
At the time of user input, isn't the program already running?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
can you speak detail?
what input and command button?
|
|
|
|
|
Your question is very vague...
If you mean: I want my program to run as soon as the user has logged on... then put your program in the startup group.
If you mean: I have an edit box in my program - as soon as the user has finished typing their name do something, and don't wait for them to click a button, then look at EN_CHANGE notification from the edit box.
That's all I can guess.
Iain.
|
|
|
|
|
I have this in one of my header files:
#define BufferSize 16384
(I know macros are usually defined with all caps)
The problem is that if this header file is included before windows.h, I get compiler errors. The preprocessor goes through and substitutes 16384 for BufferSize. Since there is a "BufferSize" token in one of the windows headers, winbase.h, the compiler chokes on it when it attempts to compile my project.
So I'm looking for alternative ways of defining a global constant. This constant needs to be used to define array sizes. Unfortunately, that means that this:
extern const int BufferSize;
Doesn't work.
I'm thinking about creating class with only static members, so I can do this:
class SynthToolkit
{
public:
static const int BufferSize = 1684;
};
And I can use it elsewhere like so:
buffer[SynthToolkit::BufferSize];
But before I do this, I wanted to ask here to see if anyone has a better solution. Thanks.
|
|
|
|
|
Leslie Sanford wrote: Unfortunately, that means that this:
extern const int BufferSize;
Doesn't work.
Why not?
You can have this in a header file so any module that needs it
knows it exists somewhere...
extern const int BufferSize;
and you need the instance in exactly ONE (CPP) module...
const int BufferSize = 16384;
Your alternative method is nice because it's wrapped in a class,
which will help prevent future name collisions. You could use the global
variable in a different namespace as well.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|