|
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
|
|
|
|
|
Why do you want to hide your modal dialog box ? Hidding it won't allow you to make it 'non-modal'. In other words, it means that if you hide, you won't be able to close ('cause its hidden) but you won't be able neither to work with the rest of your application because your modal dialog is still opened (even if hidden). Then, your user will have a little problem to close your application, don't you think ?
Maybe a better approach to that is to use modeless dialogs (they will allow you to work with the rest of your application but they are a little bit more complicated to manage)
|
|
|
|
|
The dialog was created with a resource so i have no choice but to display it as modal. Sorry I'm still a novice mfc programmer. I will be the one who will close the modal dialog box and not the user. Say, I have a modal dialog box with a progress bar, and another modal dialog box which runs an update. How do i hide the one which does the update?
waxie
|
|
|
|
|
modal has nothing do deal with resources...
you have a CDialog inherited class, which you associates with a dialog resource...
then, when you create you dialogbox, you can call either .DoModal() on it (to make it modal), or .Create() for a modeless dialog.
if this code wasn't written directly but you but but the wizard, then go to where the dialog is created and where domodal() is called, and change it...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 5:52 Wednesday 18th January, 2006
|
|
|
|
|
Wow, I think your are mixing everything
Ok, first, using a modeless dialog box is still done with a ressource. In fact the only thing that changes is that it lets the user work with the rest of your program. Let's take an example:
CMyModalDlg Dlg;<br />
Dlg.DoModal();<br />
MessageBox("Test message");
If you run this code, you will see that the "Test message" (message box) will only be displayed when you close your modal dialog. It means that your program 'stops' at this line to let the message box receive the inputs from the user. Once the dialog is closed, the DoModal function is exited and your program continues. But this also means that your program main loop is not processed thus you cannot work with the rest of your application (I think you already discovered that).
Now, if instead of using a dialog box, you use a modeless one, you won't call the DoModal function (but rather simply ShowWindow) and thus, your program will continue and show immediatley the message box. This means also that you will still be able to 'work' with the rest of your program (click on buttons,...). I suggest you to search for modeless articles on this website to see how to use them.
In your example, you won't be able to have two moal dialogs (because of what I explained below). Or, the only way to do it is to open one 'inside the code' of the first one. But, then the first one won't be refreshed and processed.
I suggest that you buy yourself a book about the MFC because you are lacking some important concepts there. And it is impossible to explain in detail through a forum.
Hope this helps
|
|
|
|
|
Thank you very much for your reply Cedric! I sorta crashed myself into MFC. I had to do many things immediately, and learn in the process. Yeah, I admit I have a lousy mfc foundation and sorta did not have a good mfc first impression (I was a java kid). I am sort of in an experimenting stage right now. Good thing there are many of you experts here who can share your thoughts.
Thanks!
Waxie
|
|
|
|
|
You're welcome
|
|
|
|
|
Probably you should look at the option of creating modeless dialog box
-Prakash
|
|
|
|
|
Only chance for you is Modaless dialog.
instead of calling DoModal() call Create()
example
MyClass *obj;
obj = new MyClass();
obj->Create(IDD_DIALOG1,this);
obj->ShowWindow(SW_SHOW);
|
|
|
|