|
Richard
I had a religious holiday over the last 2 days
I do have non display hex characters in the CString
I am begining to think that even though there is a constructer for CString that takes a length it Still is just that a Csting a C type string
|
|
|
|
|
CString holds strings. C-type strings.
if you need a container to hold chunks of data which might contain a NULL, CString is the wrong container. you can use a std::vector< BYTE > (or a CByteArray, if you like MFC). or you can roll your own.
|
|
|
|
|
As Chris mentioned, think you're trying to use CString for something it's not intended to do. If you need a random byte container (that isn't a string), use something else.
STL has a quite a few to choose from[^].
Additionally, other libraries have other choices...
http://www.boost.org/doc/libs/?view=category_Containers[^]
|
|
|
|
|
I am begining to see that CString is a "C" string
Thanks
|
|
|
|
|
Well, most data comes down to being bytes... strings just are some set of bytes that are expected to mean something (whether according to ASCII or some other wide character standard)... if you need a generic container, you can't just use something that expects what we'd refer to as a "string".
|
|
|
|
|
hello,i search a code for thrshold niblack step by step ,thanks
|
|
|
|
|
|
Member 11643731 wrote: i search a code for thrshold niblack step by step Okay, and?
"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
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
|
|
|
|
|
Hi there, I am new to the programming scene. I am a Digital Forensic Investigator with the Digital Forensic Laboratory at The Directorate For Priority Crime Investigation; within the South African Police Services.
I was recently assigned to do research and analysis on compromised Verifone POS-devices. On some of the devices we do manage to extract data, which is encrypted. I investigated some of the tools the criminals use in the process.
On the malwr.com site the encryption tool PasswordGenerator.exe was uploaded and can be downloaded from there for analysis. This tool uses MACTripleDES PADRight encryption.
Is there maybe anyone that can assist me to create a tool to decrypt the data from the devices. The PWG creates an init.dat file that is uploaded to the POS device which encrypts the data that is captured and then decrypted after being downloaded with The VeriFoneDownloader.exe and then the .vfd-file is decrypted using the VeryFoneViewDataNew.exe. When the correct password is entered and the file decrypted it is saved as a .dfv-file.
All the .exe files are uploaded at malwr.com. I will upload an encrypted and decrypted file as well. (201404221348.vfd and 201404221348.dfv)
If there is anyone that can assist it would be highly appreciated.
|
|
|
|
|
Sure, just give me your bank account details so I can transfer the necessary funds.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Please send us your personal details in order to make us able to signal you to the competent autorithies.
|
|
|
|
|
|
Design and implement a class for binary trees, following the specification at the following URL http://www.cs.colorado.edu/~main/chapter10/bt_class.h
Your design should use a dynamic array to hold the data from the nodes in the same way that a complete binary tree is usually represented. However, these binary trees do not need to be complete. Instead, you should have a second private member variable that is a dynamic array of Boolean values called is_present. The is_present array indicates which nodes actually exist in the tree. For example, if the tree has a root node, then location is_present[0] is true. If the root has a left child, then is_present[1] is true. If the root has a right child, then is_present[2] is true.
modified 20-May-15 3:08am.
|
|
|
|
|
See here[^] #11.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
|
Hi
I am used to figuring character formatting from the mainframe world where everything is a byte, towards that and I would like to use courier new in my rich edit.
can I use
EM_SETCHARFORMAT setting courier new
of course I would probably have to use CClientDC to get the device context of the rich edit
and then GetCharABCWidths
Does this make any sense ?
|
|
|
|
|
ForNow wrote: Does this make any sense ? Not really.
Everything on a PC is also a byte (or a word ...). The only time the format of a character has any real relevance is when you display it on some output device. So when writing to your device context, you must first create a font and select it into the DC. See https://msdn.microsoft.com/en-us/library/w6196kz3.aspx[^] for some more details. See also http://www.functionx.com/win32/Lesson15.htm[^] for a sample using Win32, but you should be able to get enough information to use that in MFC.
|
|
|
|
|
I have created an excel file via code .
I want to write data in the file for that I want to
increase the size of cells via program and write some text
bold format as per my requirement.
How to do this?
|
|
|
|
|
|
I think courier new all the characters are the same width I'll read the doc
Thanks
|
|
|
|
|
Hi friends,
case 1:
I am opening a file from network drive location. During file read, the mapped network drive is disconnected, my application get crashed and closed. how to check the mapped network drive is connected or not using file pointer.
case 2: during file read, I am disconnecting and connecting the mapped network drive that time pointer is not null. but I cant able to access a file using this file pointer.
Thanks,
S Shanmuga Raja
|
|
|
|
|
You should use a try/catch block to catch exceptions that occur in such circumstances, and/or check the status of any file access calls.
|
|
|
|
|
1. You should handle the exception.
2. You can write a method to check connection (through ping).
|
|
|
|
|
If you share which API you are using for file I/O then you'd get answer more accurately.
Did you used std::fstream or some other API?
|
|
|
|
|
I want a code of c code
which can take million integers as input,
sort them (bubble or quick or selection sort).
It should display time taken to sort first 10 integer, then for first 100 integer, then for 10000 and total.
Please help me soon I have very less time to complete my project.
iamsohail.srk@gmail.com
|
|
|
|