|
|
if it follows XML standards, then most (all?) broswer will be able to read it; it might not be able to understand the tags and their meanings (how to display them), see : http://msdn.microsoft.com/en-us/library/ms754529(VS.85).aspx[^]
You will need to create some sort of stylesheet to help display your XML files.
Watched code never compiles.
|
|
|
|
|
I will give you a simple example of what I'm trying to do:
Text in here will be displayed as normal, but <my own="" tag="">text in here will have a new formatting
Is there a way to make a "browser" that reads this kind of markup instead of HTML?
|
|
|
|
|
I have two option button or radio button BS_AUTORADIOBUTTON on a dialog. I have one label which I show just after first radio button. Some of label's portion is overlapping with radio button. So whenever I click on radio button, radio button comes above to that label. But I want label should always remain at top. How can I achieve this?
Thanks,
Rahul kulshreshtha
|
|
|
|
|
The z order of controls on a dialg is controlled by their order in the dialog box.
How to set this changes depending on which version of Visual Studio you are using.
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
Don't hack...Fix the overlapping in the resource editor.
Watched code never compiles.
|
|
|
|
|
Does the label belong to the radio button or is it an unrelated control?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
While running a program I got the following error Message:
Program:e:\Work\Cricket\Debug\SlogOut3D.exe
File:f:\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp
Line:52
Expression:_BLOCK_TYPE_IS_VALID(pBlock->nBlockUse)
How to get out this error?
|
|
|
|
|
If you ever needed an advert to avoid pointers and dynamic memory allocation until you know what you're doing, this is it! The error happens when you're trying to delete an object or free a block of memory with a pointer that's invalid.
You're either:
- trying to delete or free something twice
- overwriting the pointer with an invalid value
The way of getting around this sort of error is not to do it. Use smart pointers rather than raw pointers to hold objects and use stack based variables wherever you can.
Cheers,
Ash
|
|
|
|
|
Could you explain me how to delete a pointer using a Smart Pointer?
|
|
|
|
|
That's the whole point: you don't. A smart pointer manages that task on its own and you don't have to care about it.
|
|
|
|
|
You don't delete anything, that's the beauty. Whenever you do a new you immediately assign the result to a pointer class and even if your code throws an exception the object's destructor is called automagically. This will stop double deletion but won't stop wild pointer writes.
Cheers,
Ash
|
|
|
|
|
I have faith that Aescleal has given you the correct answer for your question.
But here's another couple of thoughts...
1/
Pretty much whenever I delete a pointer, I set it to NULL afterwards. This way I find bugs sooner, and simpler.
So...
ASSERT(pSomething);
if (pSomething)
{
delete pSomeThing;
pSomething = NULL;
}
This will let you catch double deletes.
2/
You could have found the bug yourself. When you got the assert, choose to debug your program. The error shows up in code you did not write. But look at the call stack window. (Debug, Windows, Call Stack on VS2008). Then look up the stack until you get to code *you* wrote. There you will see the mistake.
99% of the time, the bug will be in your code, even if it shows up elsewhere.
Good luck,
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|
|
Iain's point about the debugger reminds me of another point: Always fix bugs as soon as they happen, don't keep piling other stuff on top of buggy code. It's easier to find problems in a 1000 line program than in a 10,000 line one so you'll be more effective if you don't wait until your code is a lot bigger.
Cheers,
Ash
|
|
|
|
|
How to extract BITMAPINFOHEADER structure from BITMAP structure . I have a bitmap file
Rajesh
|
|
|
|
|
Call LoadImage to load the bitmap from the file to get a HBITMAP .
Call GetDIBits on the handle to get a BITMAPINFO structure.
BITMAPINFOHEADER structure is contained with the BITMAPINFO structure.
|
|
|
|
|
BITMAPFILEHEADER bf;
BITMAPINFOHEADER bm;
FILE *fp = fopen(filename, "rb");
fread(&bf, sizeof(BITMAPFILEHEADER ), 1, fp);
fread(&bm, sizeof(BITMAPINFOHEADER), 1, fp);
|
|
|
|
|
Hai All,
I am creating 200 process simultaneously from another process which is running as service in Windows server 2008 R2 machine.
But only 95-100 process are getting created. After that, the remaining process will be terminated abnormally.
Please let me know if there is any limitation in Windows server regarding the number of processes.
-Cvaji
|
|
|
|
|
How did you validate that the processes are terminated abnormally?
Are all processes the same?
If they are the same, you really shouldn't be doing this.
|
|
|
|
|
All process are same.
Why do you say, no to do it????
|
|
|
|
|
Antiviruses will target this as a malicious application.
|
|
|
|
|
«_Superman_» wrote: Antiviruses will target this as a malicious application.
Totally depend upon, what system resource it using!, if it just interacting with some DB, antivirus will do nothing!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Its not interacting with any DB.
"95 processes are started and 96th is not getting started."
Is that related to antivirus? That means antivirus will allow 95 processes and will restrict up to 95?
|
|
|
|
|
No its not related to any antivirus.
Each process will take up a lot of resources.
You're probably running out of it.
Take a look at this blog entry - Pushing the Limits of Windows: Processes and Threads[^]
What I meant about the antivirus is that such behavior is seen mostly in malicious applications and so antiviruses could target such applications.
And so I would never recommend or approve such a design.
|
|
|
|
|
«_Superman_» wrote: Are all processes the same?
If they are the same, you really shouldn't be doing this
I am slightly disagree with this, i am not sure about capibility of Windows 2008 Server r2 and never spawn 100 same process from service.
However, I working/designing an architecture, that will scale Up/Down according workload demand, basically instead on creating thread for each process, I have a controller service, which will spawn the process, to
work independently and process the wrok accordingly.
Basically idea behind the design is intead of stessing on multithreaded architecture, use multiprocess architecture!, if one application crash due some reason, you have atleast same type of application doing similiar work.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|