|
I feel like a walking advertisement, but there's some commercial product outs there that's great for this:
(1) Check out BoundsChecker, it will tell you exactly what code created the memory you wish to free. (http://www.compuware.com/products/devpartner/bounds.htm[^])
(2) SmartHeap -- an alternate memory manager. Detects all kinds of bad memory problems, and also tell you exactly who allocated the memory and it's faster than the VC++ mem manager. (microquill.com)
Neither of these are cheap. But if you figure your time spent chasing memory leaks, they pay for themselves quickly.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
|
Hi!
I' have a simple question.
I want to read, (and then write), over an USB port. How can I do that?.
I've thinking to use the CreateFile() API function, but it's only for communication ports.
I need only a few lines of code to get out of this trouble , only to understand.
Thank you.
Regards.
Demian.
|
|
|
|
|
The USB is not just a port.
The USB is a bus. This having said, you can easily imagine USB as a small-scale local area network. Each USB device you have is connected to this bus, and each device is by default equally important.
This means that in order to operate on the USB, you must have an external device that can register itself into the USB Hub controller of your computer. This registration process allows the controller to create a pipe from your computer's address space to the destination device.
I suggest reading BeyondLogic's site's excellent article on the nature of the Universal Serial Bus. You can find this article's first chapter from here[^].
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Thank you for your time Antti.
Regards
Demian.
Demian.
|
|
|
|
|
Hallo
im new in programming with c++ .net, To solve a problem I found the programm-code "Outlook messages automatically dialog" here in codeproject.com. If I try to compile the code i get errors "edk.h" is missing.
Where I can find edk.h?
Do I need some libs too?
Can somebody help me please? Thank you
Winfried
ps
the problem I have to solve is: automatically to save Files reaching my inbox of Outlook without using an ExchangeServer. If somebody have a good tip? Thanks
|
|
|
|
|
barzw wrote:
Where I can find edk.h?
Do I need some libs too?
The files used to be included with VC6 and the platform SDK. Since the upgrade to Exchange 2000 and Exchange 2003, they are no longer distributed with VS.NET or the latest platform SDK.
You should be able to download the needed files here
http://www.microsoft.com/downloads/details.aspx?FamilyId=36A309C3-8C55-4476-8785-CAFC59A2D075&displaylang=en[^]
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
hi,
how exactly does an assembler( i know compiler calls an inbuilt assembler) produce the machine code.
what is a binary 1 and binary 0.can i send it to any part by hand?
plume
|
|
|
|
|
Just like an compiler is programmed to convert C code to Assembly code, an assembler is programmed to convert assembly code to machine language.
for example
to clear the interrupt bit in C you say
disable(); //C - Code
the compiler converts it to
CLI // Assembly code
The Assember converts it to
0xFA // Machine code.
Any digital system like computer works on binary system
i.e
1 logic 1, or on state or conducting state of the transistor
0 logic 0, or off state or non conducting state of the trans
the combination of 0's n 1's in a certain combination does certain task. This is hardwired using transistors, etc aand that we call it as Microprocessor.
You can certainnly do programming 0's n 1's but there are no company who wants to hire such ppl now
Well the assembly language may be used in certain case in embedded system but now a days c language has taken over.
Last time I was sober, man I felt bad
Worst hangover that I ever had
It took six hamburgers and scotch all night
Nicotine for breakfast just to put me right.... Dire Straits
|
|
|
|
|
thanx mr.prakash,
i knew that but what i need to know that is:
what EXACTLY is binary 1? i think the ascii 1 as typed here is not binary 1.
0xff can be written as 11111111 but what are these 1's.??!!
plume
bye.
|
|
|
|
|
Ascii 1 = hex 31 = binary 110001
Those ones are finaly converted on the machine level to electrical impulsions on the processor which triggers "actions" or flows of 1 and zero forming a language at the machine level.
Reading a book of electronics namely something todo with transistors and logical equations can help
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
ok so how does the assembler do it?
|
|
|
|
|
Anonymous wrote:
ok so how does the assembler do it?
Tables. Big tables. Lots of them.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
|
|
|
|
|
The Assembly is the lowest-level HIL (Human Interface Language) on a computer system above the actual machine code.
What the assembler does is take a piece of assembly code and then rewrite the required process as machine-level instructions. Here is a hands-on example to give you the idea. The instructors written by the assembler are direct commands for the processor. When this command is executed in a program, the processor knows precisely on what it is supposed to do and where.
Consider that you have an assembly language routine called ADD A . On an x86-processor system, this routine causes three types of operations: first, it fetches the contents of A into the local register, called 'battery', or AX. Then, it uses the arithmetic unit to add +1 into this value. Finally, it stores the value back to it's original place.
You can find a list of x86 Assembler commands from here: http://newsite.herbie.is-a-geek.com/Development/Instructions.asp
In order to receive the instruction set of Intel's x86 architecture, you must order a hardcopy from Intel. Here is a direct link to a page with more information: http://www.intel.com/design/pentium4/manuals/245471.htm
As for the thing you asked, what is a logic 1 and a logic 0. This is called a Logic Agreenment, and in 99% of world's systems, they stands for a TTL (Transistor to Transistor Level) logic voltage signals of +5 V and +0 V DC. On a non-TTL system, or in an environment where this agreenment is not set, the logic 1 and logic 0 can mean whatever desired. For example, if you take a common logical sequence of thought, determining whether you should go to the men's room or not, then you might have logical 1 meaning that yes, you should, and logical 0 as no, you should not.
Is this in-depth enough ?
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
like i said
1 is logic 1, on state of the transistor in the microprocessor,ram,dram, etc
0 is logic 0, off state of the transistor ....
now for some reason i dont know why, they made 8bits equal to one byte i.e the building block of most of digital system
thats why 'A' is 0x41 that is 00000100 00000001 binary.
Last time I was sober, man I felt bad
Worst hangover that I ever had
It took six hamburgers and scotch all night
Nicotine for breakfast just to put me right.... Dire Straits
|
|
|
|
|
|
Love Olly and REA?
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I need to know how is it possible to route jobs to a particular tray in a multi-tray printer programmatically.
Is there any way in which i can select trays in a printer(multi-tray printer), assign the jobs to that tray and print. I need to be able to do this programmatically. For ex. document 1 has to be to assigned to printer 1 tray 1, document 2 to printer 1 tray 2 etc.
Development environment is VC++ 6.0
Thanks
|
|
|
|
|
DEVMODE is your friend.
On multi-input capable printers, the printer driver generally allows you to select the input bin (or tray) on a page by page basis, but most applications don't bother, they just set appropriate values in the DEVMODE structure, and send the whole job there.
One exception is an app like Word, where you might want the first page on any document to come from a tray with say, letter-headed paper, and subsequent pages to come from a tray with continuation paper in it.
Steve S
|
|
|
|
|
Hi
Formerly i installed VC.Net on my computer and now in debug mode i can't go into MFC source code.When i try to make step inside MFC routine ,notice window is appeared - "There is no source code available on this location".This all happens in ATL project. I try to climb in CDialog::Create(...) function which allocated in afxwin1.inl file.This file hold in properly directory $(VCInstallDir)\atlmfc\include.And this path is seted up in
Tools->Options->Projects->VC++ Directories->Sorce Files.But my stupid studio are looking for it in an other dirctory (this directory even not exist on my mashine).
Where is trouble????
Thanks.
|
|
|
|
|
hi, every body.
I have a problem here.
I want to use the structure "CURSORINFO" and API "GetCursorInfo", but the compiler told me that they are undeclared identifer.
I checked about them in MSDN and also found definitions in winuser.h.
But still, it can not be compiled.
My platform is:
Hardware: P4 1.8GHz 512MB
Software: WINDOWS2000 Professional + SP4 Visual C++ 6.0 + SP5
Can anyone give me some information what should I do to make my code compiled ?
Thanks in advance.
|
|
|
|
|
|
dear sir, thanks for your help.
I read the FAQ 2.2 and realize that "I am using a older version header file", it that right ?
Now, what do I suppose to do is to download and install new version of SDK ?
I am puzzled now that I checked the definition of these function and structure in the "winuser.h" and there they are.
And I try to put "#define WINVER 0x0500" in my code, and it can be compiled now. But still, these function and structure do now work the way they should be.
Are there ways that I can use these function and structure without downloading the SDK ? (because if I use the SDK, other programmer will have to use the SDK too in order to compile my code)
Thanks very much for your help.
|
|
|
|
|
oliverlin wrote:
...if I use the SDK, other programmer will have to use the SDK too in order to compile my code
Nothing wrong with that, unless there is a fundamental reason for not using it.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Yes, out software environment has been fixed.
Since this was a small part of a large project, a large number of SDK upgrade would have to be done.
-----------------
Today, memory either forgets things when you don't want it to, or remembers things long after they're better forgotten.
|
|
|
|