Im haveing trouble reading a file in hexidecimal. Lets say I have a file called "something.txt" which goes as follows:
Hello
1234567890
©§¥
!@#$%^&*()
My program display lines 1,2, and 4...
Type: Posts; User: pinkcheese
Im haveing trouble reading a file in hexidecimal. Lets say I have a file called "something.txt" which goes as follows:
Hello
1234567890
©§¥
!@#$%^&*()
My program display lines 1,2, and 4...
I have a dialog based app, and on it I have a tab control. I have a couple of different tabs, and on each tab i have a List View control and a few other controls. When i open the program, and I click...
Is there anyway to make it so the user can select a folder instead of having to select a file? If not can someone link me to a non-mfc example of a tree-view control, folder browser?
Thanks
Try to use more than one tutorial. Look at the tutorial on this website and c++ in 21 days tutorial. If you don't understand a concept from one tutorial then look at the same subject from another...
I have a function in a class but whenever i try to modify one of the parameters in the function the program crashes.
This is my .h file:
class InfFiles
{
public:
char* GetValue(char...
I'm trying to scan an ftp for any folders or Files that are on it. I can only get it do display the first file. Can someone PLEASE tell me whats wrong with the code below:
#include <windows.h>...
Does it matter how you do it? I already have it setup to hide the items that aren't part of the selected tab. Is this a bad way to do it?
Hey, I got a tab control all setup but I'm not sure what you do with it. Do you just put all your controls onto the same dialog and hide the Items that are not on the selected control?
There is no FtpFindNextFile, its InternetFindNextFile.
HEEEEEEEEEEEEEELLLPPPPPPPPPPPPP MEEEEEEEEEEEEEEEEEEEEE! :(
... please.
thanks Ken Fitlike,
I tried to write a program to scan a ftp and it works, but it only displays the first file. Could you help me figure out whats wrong with this code?
#include <windows.h>...
Can someone tell me some functions that search a directory on ftp or a website that explains how to do this. I can scan the harddrive with FindFirstFile, FindNextFile, but I need to know how to do it...
Say I have a binary file that looks like this:
19 00 00 00 01 1a 00 00 00 01 1b 00 00 00 01
I can read the file like this:
char buffer[5];
for(int i = 0; i < 3; i++)
{
hey, I am having problems reading binnary data. When I try to read the hex value "1a" into a string, it messes up since "1a" is a messed up character on the ascii chart. Does anyone know how I can...
lol, don't worry its just for some retarded game i started cause i was bored. Just to see how many check boxes you can click in 10 seconds.
oh, ok. So in your sample code i can refer to the checkboxes with i, right?
Hey, I'm trying to go check the state of over 100 check boxes. They all are named IDC_CHECK1 - IDC_CHECK121. Is there a way I can do this in a for loop, since checking each one would really suck.
Sorry, nevermind. I figured it out. :)
FillYourBrain, thanks for the help. Can you tell me how to convert this hex string back to an integer though? I looked up sprintf but i can't figure out how to convert back, and it seems to me that...
Thanks, could you also tell me how to convert back?
Does anyone know a function that will convert a decimal integer to a hexidecimal in the form of a string.
so 1 would become "01" or 10 would become "0A"
thanks
thanks
ahhh i don't think so...
if i put the following code in it will compile:
hr = pVoice->Speak(L"Hi how are you?", SPF_IS_FILENAME | SPF_IS_XML, NULL);
but if i do something like this it won't:...
Hey, is there any function to convert a char to a WCHAR? I can't get the speach function to work because it wants a WCHAR. I've tried type casting but it doesn't work. I can hard code the file in but...
Never mind, i figured out a good way of doing this. I just made a hidden button and gave it the default style. So now when ever enter is pressed the button is called and i check to see if the edit...