|
Hey toxcct:
I believe that your poor English is what made me to be confused. I tried to follow what you wrote in all previous messages and found out that you asked too many questions not related to the original thread which led us to a ded wall. I sugest.. when you try to reply to a subject please stick to content of the subject.
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
looks like classes and methods for a drawing program of some sort .
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
pnl_lst::draw_highlight_bar.
message panel
------------------
is this means to draw a message sort of thing
After all, Today is the Tomorrow you worried about Yesterday
|
|
|
|
|
Respected All
Regards!
I am David from Denmark and very S/W developer in VC++ world.
I need some free stuff on VC++ in the form books and also some sample developed application in VC++ which is helpfull for begginners.
Waiting for possitive response.,
david
|
|
|
|
|
There are tones of samples here on CP , Look for the ones's you need ...
You can also visit ThisSite
m0n0
|
|
|
|
|
Hi all!
I m using an open source project. When i start building the project files, first an executable (.exe) is run before build & upon its execution, the project files are built. This .exe has been included in the project's main directory.
Now, i wanna know how this project is accessing the .exe file before the start of the build process.
Is there any file (in case of MSVC 6.0) that needs to be looked for? or any other project settings, from where i can see that .exe's linking to the project?
Usman Arif
|
|
|
|
|
Check the prebuild steps in the project settings
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Can anyone point me to some good article on parsing the HTML. My aim is to parse an online webpage and extract a table from it and insert to local DB.
I think will have to use MSHTML. Any good article would be of great help.
Thanks in advance
|
|
|
|
|
here
Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!
|
|
|
|
|
|
Hi
I just wanna know if the when you create an object CHtmlView, this one use a thread to navigate or not ?
thx
|
|
|
|
|
CHtmlView wraps the microsoft html activex control. It has its own thread.
Jaime.
|
|
|
|
|
|
Hai
The Slider bars sarrounded by a doted selection box, when we focused to the slider.
When i customize a slider bar using bitmaps, these selection is still exists, ( when i click the slider )
How can i avoid this selection from my slider control
thanks in advance
shijuck
shijuck
|
|
|
|
|
I want to recovery the floppy disk,but cannot read the sectors when the 0 sector is bad. The tool HD copy and DiskEdit can do it. How to do it?
My program is running in MFC mode but not console mode
|
|
|
|
|
|
The CFloppyDisk use the folling sentence to read the sector,so it cannot pass the error. (
CreateFile("\\\\.\\A:",
GENERIC_READ|GENERIC_WRITE,0,
NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
|
|
|
|
|
Did you try it? If you did and you get errors, maybe you should try and look for documentation on the floppy disk device drivers and call functions from there...
Blog[^]
|
|
|
|
|
Hello,
I have the following code in my application:
<br />
std::ofstream file;<br />
file.open("Test.dat", std::ios::out | std::ios::trunc | std::ios::binary);<br />
<br />
for( unsigned int i = 0; i < 256; i++ )<br />
{<br />
file << static_cast<unsigned char>(i) << i * 100;<br />
}<br />
In my opinion, this should write the every value of the extended ascii table followed by that value multiplied by 100 to a file. Supprisingly, when I open that file in a hex editor (VS6.0) I see that the stream wrote the first values correctly (value 0 through 255), but the values that should follow each number is represented as a string???
I checked everything:<list> basic_ostream has an overloaded operator << for unsigned int's
I open the file in binary mode
I write an unsigned int
I'm really confused how the library converts my unsigned int to a string...
[EDIT]
No has the correct code example
[/EDIT]
Blog[^]
|
|
|
|
|
wow,
it seems that you don't know well what you're doing...
you create c with the value 0, but you never reassign it... so it will always display 0 !!!
moreover, you declare it as a char , that means that it will take a maximum value of 127 (char range is [-128; 127])... declare it as unsigned char instead.
then, why do you need to display the code * 100 ???
another thing : you never delare n ; what is it? i ?
i suggest you this :
std::ofstream file;
file.open("Test.dat", std::ios::out | std::ios::trunc | std::ios::binary);
unsigned char c = 0;
for( c = 0; c < 256; c++ ) {
file << c << c;
}
because a char is also an integer (not a character as in VB for example)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello,
I guess that I wasn't paying much attention when I was stripping the code of obsolete stuff. Here is the code as it now is:
<br />
std::ofstream file;<br />
file.open("Test.dat", std::ios::out | std::ios::trunc | std::ios::binary);<br />
<br />
for( unsigned int i = 0; i < 256; i++ )<br />
{<br />
file << static_cast<unsigned char>(i) << i * 100;<br />
}<br />
toxcct wrote:
moreover, you declare it as a char, that means that it will take a maximum value of 127 (char range is [-128; 127])... declare it as unsigned char
This doesn't matter very much since the bits that are written to the stream are always the same. On the application side, where the raw value is interpreted, it makes a difference, but on the disk its doesn't. Example:
A byte can take 256 diffenrent values 0x00 to 0xFF. If I write a 128 to the disk, it writes 0x80. If I overflow a signed char with one (0x7F + 0x01) this becomes a negative value (0x80 == -0). So the same value gets written to the disk.
I agree with you using code like that is very bad practice, but my little mistake in the code example doesn't affect the program at all.
Blog[^]
|
|
|
|
|
Bob Stanneveld wrote:
0x80 == -0
no : -128. there is no -0, even in signed integers
however, i don't know why i*100 is written as a string...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
toxcct wrote:
no : -128. there is no -0, even in signed integers
Oh yeah, thats right. I should have studied more hard on that subject.. . I guess that I got confused with negative and positive infinity from doubles and floats...
Blog[^]
|
|
|
|
|
hi bob,
could you post a sample of the file generated please ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello,
Here is a part of the view:
00000000h: 00 30 01 31 30 30 02 32 30 30 03 33 30 30 04 34 ; .0.100.200.300.4
00000010h: 30 30 05 35 30 30 06 36 30 30 07 37 30 30 08 38 ; 00.500.600.700.8
00000020h: 30 30 09 39 30 30 0A 31 30 30 30 0B 31 31 30 30 ; 00.900.1000.1100
00000030h: 0C 31 32 30 30 0D 31 33 30 30 0E 31 34 30 30 0F ; .1200.1300.1400.
00000040h: 31 35 30 30 10 31 36 30 30 11 31 37 30 30 12 31 ; 1500.1600.1700.1
00000050h: 38 30 30 13 31 39 30 30 14 32 30 30 30 15 32 31 ; 800.1900.2000.21
00000060h: 30 30 16 32 32 30 30 17 32 33 30 30 18 32 34 30 ; 00.2200.2300.240
00000070h: 30 19 32 35 30 30 1A 32 36 30 30 1B 32 37 30 30 ; 0.2500.2600.2700
00000080h: 1C 32 38 30 30 1D 32 39 30 30 1E 33 30 30 30 1F ; .2800.2900.3000.
00000090h: 33 31 30 30 20 33 32 30 30 21 33 33 30 30 22 33 ; 3100 3200!3300"3
000000a0h: 34 30 30 23 33 35 30 30 24 33 36 30 30 25 33 37 ; 400#3500$3600%37
Blog[^]
|
|
|
|