|
Ya I have MSDN on my PC.Sorry, but I am not getting you perfactly ,how can I find this example on MSDN??
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
If you search on the MSDN site you can find it I found performance but its with C# here[^] and also I think you can find it here[^].
|
|
|
|
|
Sorry for the silly questions but actully I want to calculate the speed of internet connection.
If you have any idea than please tell me.
Ashish Bhatt,
System Developer,
Avinashi System Pvt. Ltd.
|
|
|
|
|
For speed I dont know but I think performance has counters for it I found perform and pviewer on the example of MSDN on the CD (I found it on the Old example of MSDN) but I cant send it for you because its size is 3MB and If I want to send it for you I will be need to 13 minutes (without Timeout.)
|
|
|
|
|
ashishbhatt wrote: I want to knnow the information about my internet connection. Information like...Speed
Look into GetIfEntry() and the Win32_NetworkAdapter class.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
there is a problem in the case of Arabic and any other bidi text, there are situations (especially when using weak characters) where an implicit bidirectional ordering is insufficient to produce understandable text. To deal with these cases, a set of directional formatting control characters are defined to control the ordering of characters when rendered
you can see it in
http://www.microsoft.com/middleeast/msdn/Control.aspx[^]
have any body information or sample code for this problem?
|
|
|
|
|
I have a form which is of CFormView and i am trying to implement a OnOK() function. but its not getting triggered. what can be the reason? cant we use OnOK function is CFormView Class? if not is there any other option?
|
|
|
|
|
OnOK is member of CDialog.
if you wana stil use it with same name
add entry in message map for your button
|
|
|
|
|
HI................
How to call Matlab functions in VC++ plz help me..
#sanroop#
|
|
|
|
|
|
How to Change the image in the Tabs of a CPropertySheet
wqewqqeweqwrwerewrwe
|
|
|
|
|
|
thank you..
wqewqqeweqwrwerewrwe
|
|
|
|
|
You're welcome I glad it solved your problem.
|
|
|
|
|
dear all
how to create 10 3x4 random value arrays with ofstream?for example.. double a[3][4] = {{(double)rand()/RAND_MAX, (double)rand()/RAND_MAX, (double)rand()/RAND_MAX,( double)rand()/RAND_MAX},{(double)rand()/RAND_MAX,(double)rand()/RAND_MAX,(double)rand()/RAND_MAX,(double)rand()/RAND_MAX},{(double)rand()/RAND_MAX,(double)rand()/RAND_MAX,(double)rand()/RAND_MAX,(double)rand()/RAND_MAX}};
and save these 10 arrays as certain name..thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
I think do you mean array serialization. I.e. taht you need to
(1) Create an array or (some arrays) of values, inititalise it.
(2) Store the array values to disk
(3) (Later, maybe another application) retrieve the array values from disk to initialise a newly created array.
I give you a minimal example (error handling left to the reader):
int a[]={0,1,10,8,7};
ofstream ofs;
int i, count;
ofs.open("array.bin", ios::binary);
count = sizeof(a)/sizeof(a[0]);
ofs.write( (char*)&count, sizeof(count));
for (i=0; i<count; i++)
{
ofs.write( (char*) &a[i], sizeof(a[i]));
}
ofs.close();
int * pArray;
ifstream ifs;
int i, count;
ifs.open("array.bin", ios::binary);
ifs.read( (char*)&count, sizeof(count));
pArray = new int[count];
for (i=0; i<count; i++)
{
ifs.read( (char*) &(pArray[i]), sizeof(pArray[i]));
}
ifs.close();
delete [] pArray;
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
dear friend
i can't understand your code,can you give me detail about step 2 and step 3, thanks a lot,
by the way, how to create 10 arrays by struct.....thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
Step 2:
The array must be stored on disk (using ostream) in order to retrieve it later.
The routine first stores the element count of the array then every element.
What is you difficult about?
Step 3:
The routine reads the array content from disk and builds up in memory an equivalent array.
First of all it reads the array element count from the file, then build dynamically (using new operator)an (empty) array having such element count, and finally reads the element values from disk and assigns such values to the array items.
What is your difficult about?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
how to understand the following code?
for (i=0; i{ ofs.write( (char*) &a[i], sizeof(a[i]));}
Li Zhiyuan
5/10/2006
|
|
|
|
|
Sorry were typos on formatting, now I have fixed them, hence you can read again the OP code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
already solved my problem, but i can't understand the following code:
count = sizeof(a)/sizeof(a[0][0]);
ofs.write( (char*)&count, sizeof(count));
Li Zhiyuan
5/10/2006
|
|
|
|
|
dear friend
i would like to create 10 3x4 arrays,how to create? pls give me detail, thanks a lot.
Li Zhiyuan
5/10/2006
|
|
|
|
|
actually it was:
count = sizeof(a)/sizeof(a[0]);
ofs.write( (char*)&count, sizeof(count));
The first line computes the element count of the array (you can also use the hard-wired count=5; , since we know in advance that array a has five elements).
The last line writes the element count to the file. Here you can use also
ofs.write( (char*)&count, sizeof(int));
Still troubles?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
dear friend
i can understnad this, how to create 10 3x4 arrays using this way, i can't finish it, thanks a lot.
so urgent!!!!!!!!
Li Zhiyuan
5/10/2006
|
|
|
|
|
dear friends
any one has write() and read() specification. thanks...
Li Zhiyuan
5/10/2006
|
|
|
|