Everything works fine, but I get some differences in Debug and Release builds.
Specifficaly, in Release build, in debugger when I look at contents of strDest after _tcscpy_sfunction, I see that, first 4 bytes of it are occupied by come strange characters and 5th byte is 'c', but anyway the resule is displayed correctly in Message box.
In Debug build everything happens as expected : first 4 bytes are occupied by 'c' 'o' 'o' 'l' and 5th byte is '\0'
The first 4 bytes of a CString are taken up by an DWORD (unsigned long) that holds the size of the buffer. You should see that in both the Debug and Release builds, but the Debugger may move the pointer to the first part of the character buffer when it is built in Debug. If you check the memory at &strDest, you should see similar results for both.
Also, if you intend to place the results of 1 CString into another, you don't need a character buffer.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Looks like that this is bug in visual studio debugger
This strange symbols are nothing else than the pointer to the "cool" string in your resource section(.rdata usually) of executable. In debugger window you see destination buffer address decremented by 4 bytes. I don't know why this happens, but I think that this is bug.
How ever if i change the term "hwinterface" to say "mydriver". It stops working neither does the sys file get created nor does it interface with the port. Furthermore, the Description of the file is set as buzz driver and copyright is to Buzz corporation why is this happening and how do i change the service name and its associated attributes to say Description: "My ParallelPortDriver"
Copyright to "MYcompany".
I have this exam on Data Structures in C. I need some help wiht Binary Trees. I found the follwing code for Binary Tree Traversal abnd its perfect. It's a recursive implementattion. I need a non recursive version too. Could someone tell me where I coulfd find it.