|
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[^]
|
|
|
|
|
against
file << static_cast<unsigned char>(i) << i * 100;<br /> , can you try the following and return the result here please ?
file << static_cast<unsigned char>(i) << (int)(i * 100);
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I tried that a few times, no luck... The result is the same.
Blog[^]
|
|
|
|
|
Not sure why that happens, but for a workaround you could use ofstream's write() method. It seems to work the way you want:
<code>
unsigned int t = i*100;
file.write((const char*)&t, sizeof(unsigned int));
</code>
|
|
|
|
|
I currently use that method, but it's marked as deprecated in VS 2005.
Thanks for your reply
Blog[^]
|
|
|
|
|
I created two horizontal panes using CSplitterWnd. The top pane is from CView and the bottom pane from CScrollView. The splitter windows are static. My doubt is how to make the size of the panes to be fixed such that the user cannot resize the panes. Can anyone please help me out?
|
|
|
|