|
Hi all,
In a fashion similar to that of the existing windows start/task bar, I would like to create an additional bar/panel at the upper extremity of the desktop area. As this would involve a reduction of the existing desktop area in order to ensure that application windows do not encroach upon this area, I'm at a loss as to how this may be achieved.
Any ideas/advice would be gratefully received.
Best regards, Lee.
|
|
|
|
|
i want to convert source from c++ to c.
if you know site that i can request small source to convert or delevope who can use c++ and c
Total number of line is 500.
please tell me~
hi
|
|
|
|
|
Search on internet, you will get lot of options , ofcourse, if they understand what you are trying to do.
Prasad
MS MVP - VC++
|
|
|
|
|
sunerbun wrote: i want to convert source from c++ to c.
Make it yourself: it's a quite enjoyable experience, good luck.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Just some add on informations. May be helpful during your quest.
Cfront - the first C++ compiler made by Stroustrup works the same way as you wish. It converts C++ programs to C and compiles. But it failed to implement C++ exception handling and came to RIP . See wiki for more info - http://en.wikipedia.org/wiki/Cfront[^]
You can download the CFront from http://www.softwarepreservation.org/projects/c_plus_plus/cfront[^]. But not sure whether you can generate the intermediate C files. Anyway just have a look.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
If it can be done or not, depends entirely on the code.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I think you must doing yourself.
|
|
|
|
|
Hamid. wrote: I think you must doing yourself.
or get it for free at www.cpallini.freeproducts.com[^].
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
But I cant connect to your web site(do you know why) when I want to connect it asks do you know Pallini I said yeah then I got "you cant use of this site" again I said No and it told me this site designed for Pallini!
|
|
|
|
|
I am reading the value of the size from the properties file...
e.g.
file_size=500.
I have to check for the file size limit. The max limit is set as done above. During runtime the following function checks for the file size with the above by using the following function to get the current file size.
int get_file_size()
{
long file_size;
ifstream myfile;
myfile.open(path.c_str());
myfile.seekg(0, ios::end);
file_size = myfile.tellg();
myfile.close();
return file_size;
}
But if I do this I get the file size in bytes. I want to do everything in kb's. Any suggestion please.
THANKS.
|
|
|
|
|
How about:
return file_size/1024; ?
|
|
|
|
|
No, that would be a Kibibyte.
|
|
|
|
|
Are you kidding??
If not, my suggestion would be:
Go back to first grade and start all over again.
|
|
|
|
|
Do you know bytes and kilobytes are simply related, don't you?
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: kilobytes
Kilo is actually metric and means 1000, not 1024.
|
|
|
|
|
I know but:
(1) It is a controversial point [^](do you manufacture hard disks?).
(2) It has no releveance on my statement validity.
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I was just stating how I interpret the term "kilo", not how the HD manufacturers abuse it for their marketing.
Interesting article on Wikipedia, by the way. I think these new IEC (kibi, mebi ) and Jedec standards are just idiotic. They should simply stick with KB/KByte, MB/MByte.
|
|
|
|
|
Do you really need to open the file and seek to end to get the size? Why directory informations are for then??
|
|
|
|
|
Why you dont use of CFile::GetLength or GetFileAttributesEx if you dont like to use of them so I tell you a secret that is on the c++ and its:StrFormatByteSizeA .
|
|
|
|
|
http://www.mathematische-basteleien.de/somacube.htm
i am searching about soma cube.
and above site show Full source about soma by c++.
but i can't understand the numbers~~
do you know what mean this?
Loesung Nr: 1
000 100 000 011 000 000 000
000 000 000 001 110 000 000
000 000 011 000 100 000 000
000 100 000 001 000 010 000
000 110 001 000 000 000 000
000 000 001 000 000 000 110
000 000 000 000 000 111 000
111 000 000 000 000 000 000
100 000 000 000 000 000 011
firstly, i am sorry, i am from korea.
and i am not good in wriitting english so please understand~
Thank you everyone~
|
|
|
|
|
I don't know what "soma" is. But those numbers seem to be a group of "Binary" codes and that's all ...
|
|
|
|
|
I checked out the link you gave.
I am still not very clear what soma cube is
The numbers above probably represent a matrix based notation of the solution.
I don't think c/c++ programmers can help you understand what represents what here.
It all depends on the program which uses the above matrix.
So i don't think this is the right forum for this. Maybe some place which deal with maths.
But if u want some guesses:
The site mentions the numbers represents 3 separate solution to whatever soma cube is.
They come in set of 3 rows(horizontal) of 7 columns(vertical) each.
In your post you seem to have clubbed the first two sets together, they are separate.
Each values are 3 bit fields (eg 111,110). Each bit probably represents a connection/cubelet/point in X,Y and Z axis.
Figure the rest out , best of luck
only dead fish swim with the stream
|
|
|
|
|
A component of my project is ready, and now i want it to communicate with some administrator(i.e. another component of my project) on the network. But in the beginning, i havn't included the Socket support (while creating new project thro the wizard). How can i add the socket support now and use the CSocket class in my project ...
plz help ...
|
|
|
|
|
You need to add following line only,
#include <afxsock.h> br mode="hold" />and before using any socket api, make sure you have called following function(Ideally in Initinstance),
AfxSocketInit();
Prasad
MS MVP - VC++
|
|
|
|
|