|
|
Maximilien wrote: you don't mind if I vote you a 5 ?
Any way who voted you 3 and Mr David 1... any way my 5 fit the all
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
DavidCrow wrote: What does all of this have to do with Ctrl+C and the clipboard?
Extremely sorry about that.
DavidCrow wrote: They're next to meaningless in my opinion.
Thanks for the concern David, I have understood it is meaningless. really. I continue to contribute as much as possible without worrying about votes and all that stuff.
Regards,
Rajesh R. Subramanian.
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
|
|
|
|
|
Rajesh,
You said "I know I have to use profanity and behave myself in this forum".
Personally, I don't object to a little profanity from time to time, but others might.
I offer you the best possible vote.
Shraddhan
|
|
|
|
|
Thank you so much for your reply.
In my project, I cannot use CEdit class. I have to use CFormView class and EditBox control.
Do you mean that it is impossible to use Ctrl-C to copy a segment of selected text to clipboard in my case.
Yong Chen
|
|
|
|
|
Hi,
I require high precision data types in order to store fractional values up to say around 64 decimal places (arbitrary would be good also), i.e. 0.999999991228342783642783647826347263487234... etc. The double datatype is insufficient, and the long double is double in disguise by current compiler standards (why this is so I'm not sure). So to overcome this problem I serched the internet high and low for a C++ class based high precision data-type and found, amongst others, QD (quad-double) which would be fine for my purposes. (you can find this on a goodle search)
When I set up a standard console application and then try to include all the files everything works fine and everything links, so long as i add the qd progect to my solution and alter program dependencies so that my main app depends on the qd vcproject. The program quite happily churns out high precision results using the "qd_real" data type class.
However, if i try to get the same class to work in an MFC console application it doesnt want to play. At build time I get very strange results such as:
c:\Documents and Settings\Paul\Desktop\HP\qd-win-2.1.48b\qd-win-2.1.48\include\qd\qd.h(258): error C2059: syntax error : ')'
c:\Documents and Settings\Paul\Desktop\HP\qd-win-2.1.48b\qd-win-2.1.48\include\qd\qd.h(151): error C2059: syntax error : 'newline'
c:\Documents and Settings\Paul\Desktop\HP\qd-win-2.1.48b\qd-win-2.1.48\include\qd\qd_inline.h(49): error C2065: 'a' : undeclared identifier
c:\Documents and Settings\Paul\Desktop\HP\qd-win-2.1.48b\qd-win-2.1.48\include\qd\qd_inline.h(54): error C2084: function 'qd_real::qd_real(int)'
already has a body
c:\Documents and Settings\Paul\Desktop\HP\qd-win-2.1.48b\qd-win-2.1.48\include\qd\qd.h(258): error C2143: syntax error : missing ')' before ';'
These errors didn't occur in the standard console implementation.
Furthermore, if I take the #include "qd/qd.h" and put it before the #incude "stdafx.h" the application compiles, but then the program complains that it doesn't know what qd_real class is if i try to instantiate one in main().
I've also tried placing the #inlcude "qd/qd.h" in the stdafx.h files, but still it comes up with the errors.
Does anybody have some sort of idea what is going on?
Thanks.
Paul
|
|
|
|
|
sntpaul wrote: I require high precision data types in order to store fractional values
i do to, and i need to basic functions provided on the type, such as cosine, logarithm, square root, etc...
looking for the answers with much interest
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
|
|
|
|
|
please see my reply to sntpaul's post - it may help you both (I found a 'windows' version)
'g'
-- modified at 8:00 Wednesday 18th January, 2006
|
|
|
|
|
I dont know where you got that version from - I couldnt find it, and the one previous to that, is a unix build environment and its very late at night down here, so 'scuse me for not building a library from it ...
- there's a 'windows' version here :-
http://www.cs.berkeley.edu/~yozo/[^]
(look for qd-win-2.1.19.zip)
this may improve things ... (my suggestion would have been to build qd as a seperate library, hopefully the win version does this and its more use)
'g'
-- modified at 7:54 Wednesday 18th January, 2006
|
|
|
|
|
Thanks,
I'll see what I can do with this
|
|
|
|
|
Hi g,
Thanks for the link I have seen this page before and it is in fact the windows version of QD that wouldn't work with MFC when i tried to mix the two pieces of code.
However, instead i did something which i hadn't previously tried. I used the ARPEC library windows download and that, after a bit of jiggery pokery here and there, works well.
Thanks for your help... without you directing me to that link i may well have been pulling my hair out by now, or sitting miserably in a corner !
Paul
|
|
|
|
|
i want to know/get the file name by clicking the icon .......please frnds help me out...mail me with the answer Priyasloka.Arya@honeywell.com/tikiarya@rediffmail.com
thank you
regards
tiki
|
|
|
|
|
tiki wrote: i want to know/get the file name by clicking the icon
Where is the icon placed by the way?
-Prakash
|
|
|
|
|
if there is a file a.txt in the folder c:\arya\file\
i want to code a program ...... so that if i click on the a.txt icon it will show the file name(a.txt) and its complete path.(c:\arya\file\ )
|
|
|
|
|
hello tiki,
I want to know, in which application are you clicking the file?
In windows explorer or is that the application developed by you?
-Prakash
|
|
|
|
|
i want to click the file in win explorer only.And my program should run before clicking the file icon.This program should give the path and file name
|
|
|
|
|
I think you want http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/ifaces/ishellexecutehook/ishellexecutehook.asp
its a shell extention,
There are many tutorials here in codeproject on how to implement a shell extention.
-Prakash
|
|
|
|
|
tiki wrote: if there is a file a.txt in the folder c:\arya\file\
could you tell us where is your application situated
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi dear member ,
I want to make a program by c++ to develop a sell system in a small company specializing in selling PC parts(configurations),according to this table contents:
(I minimized the no. of rows & columns in this post to be short. )the columns names are(Part_No ,Part_Quantity, Part_Price), and the rows elements are(10, 80, 100)
The c++ program must work according to the following steps :
1. it must display the array contents from the table.
Then it will ask the user to:
2. enter the requested Part_No , if it’s found go to step no. (3) ,else print “the part isn’t found” then go to step no. (2).
3. enter the requested quantity(qu) ;(the program must check) if the entered (qu) is more than the existing (qu) in the array contents ,it prints “the (qu) isn’t available, the available (qu) is ***(the strike is the No. of the available (qu); Please enter a suitable q”, then go to step no. (3),but if the entered (qu) is less or equal to the stored Q in the array , it prints ”the (qu) is found” then go to step no. (4).
4. ask the user “Do you want to continue the sell process’,if “Yes” go to step no. (5) else go to step no. (2).
5. Calculate the price of the sold quantity.
6. Print the Part_No, print the available quantity , print the subsist (qu), and print the sold (qu).
7. ask the user ”Do you want to do another selling process”,if “Yes” go to step no.(2),else go to step(8).
8. print “the process is finished”.
With a bunch of thanks for you..
|
|
|
|
|
please have a look at www.rentacoder.com
ppl there will help you solve other home assignements too and tell this to your other friends too.
-Prakash
|
|
|
|
|
<Ogre Mode>
fi fi fo fum, I smell ..... homework
and WE DONT DO HOMEWORK
</Ogre Mode>
you should try reading point 6 here :-
http://www.codeproject.com/script/comments/forums.asp?msg=1339120&forumid=1647#xx1278597xx[^]
If you really want to become a programmer and learn, how about at least
trying to solve the problem, and post code back here when you're stuck on a particular point - I refuse to beleive you dont have tutors and text books that would help you get started
If its not homework, I apologise - in which case, try rent-a-coder instead !
'g'
-- modified at 7:08 Wednesday 18th January, 2006
|
|
|
|
|
I have a modal dialog box A and when it runs, it stays on top. Is there a way to hide the dialog box or set dialog box A at the back of another modal dialog box? I'm using MFC. I'm kinda desperate for solutions.
waxie
-- modified at 5:30 Wednesday 18th January, 2006
|
|
|
|
|
|
But if we call ShowWindow() say:
int m_nExitCode = dlg.DoModal();
dlg.ShowWindow(SW_SHOWMINIMIZED);
This will pass activation of window A to another window. I want the window to be still running but just invisible.
If only it's a modeless window it will be much easier.
Thanks for the reply by the way.
waxie
|
|
|
|
|
toxcct wrote: CWnd class provides a ShowWindow() function which you could pass SW_HIDE/SW_SHOW parameters...
In Case of Modal Dialog, same will not work!, see my reply to actual poster!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|