|
hello sir
actually i'm using a vs.net c++ enviornment.when i open my solution file my i got the file in my source folder named "DataSetXmlLoad.cpp".
and this file does not exist on the system.
i have mannualy delete that file.when i try to delete the file system give me "the file u want to delete does not exist on the disk."
i hope this time is more clear.
|
|
|
|
|
|
How do I cahnge the icon of my builden MFC-app exe file. I always got the standard mfc-icon...
_____________________________
...and justice for all
APe
|
|
|
|
|
be sure to change all the pictures in your ico file...
also have a look at your resource.h and be sure that the app icon ID (IDI_...) have the lower value compared to all your project icon resources
|
|
|
|
|
Look at the icons section in the resource view, you can edit the icon directly in the IDE
- Dy
|
|
|
|
|
I only have my own icon edited there. Can't see the MFC-icon anywhere. I have my icon in the left corner in main applicaion form but i want it to be on the .exe file too...
_____________________________
...and justice for all
APe
|
|
|
|
|
Open the icon in the editor, and take a look at the other icons in the file by selecting the Image menu item, then Current Icon Image Types item. Do you have more then one icon there (ie 16x16, 32x32 etc)?
- Dy
|
|
|
|
|
See my response here.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi d00_ape,
Example
HICON h=LoadIcon(AfxGetApp()->m_hInstance,(LPCTSTR)IDI_ICON1);
SetIcon(h,0);
|
|
|
|
|
hi,
Iam using database for a dialogbox thru CRecordset,now I've inserted a new dialog,so now I want to know,what should be its base class,if it is CDialog,can I use the tables of the database.I've used the tables in first dialogbox making its base class CRecordset.
pls reply
swapna_signsin
|
|
|
|
|
swapna_signsin wrote: I've used the tables in first dialogbox making its base class CRecordset.
you made the DialogBox inherit from CRecordSet ?!
|
|
|
|
|
i suppose u hv done same what i hv done in the sample app.
now in my sample app i hv taken just one dialog box.
if iam getting ur problem u are adding one more dialog box &
in that Dialog box u again want to fetch records from DB & show on to the Daiolg?? (right)
do same as we hv done for 1st dialog box.
& u said u hv derived the dialog from Crecordset y??
i didn't asked u to do that ( I suppose I hvn't done this in the sample app)
|
|
|
|
|
hi,
without deriving a new CRecordset class,how can u make use of databases.
swapna_signsin
|
|
|
|
|
I am not understanding your question. Please clarify. You have one class derived from CDialog . You have another class derived from CRecordset . Correct?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi,
I've derived a CRecordset class thru which I made use of Dbases.So now the application should be modal dialog based,so I need to use many dialogs so dbase should be applicable for all the dialogboxes.Now,how do I need it,In class wizard,wht should be base class of Dialog box.This is a dialog based application
swapna_signsin
|
|
|
|
|
swapna_signsin wrote: so I need to use many dialogs so dbase should be applicable for all the dialogboxes.Now,how do I need it,
You could make the CDatabase and CRecordset objects part of the main CDialog -derived class. Then all subsequent dialogs can get access to them by simply calling GetParent() . Make sense?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
hi,
The dialog box class is entirely different from CRecordSet Class.
The Steps to do while doing RecordSet Operations in a Dialog.
step -1 :
Insert a Dialog from [Insert Menu - Resource] from the menu editor from the VC++ Editor. which will create a new Dialog for you.
step -2 :
Give a Class to the Dialog for that you double clik the Dialog and a Message Prompt will appear to you asking the name for the dialog. where you should type a Class Name for the Dialog.
step -3 :
Insert a new Class form [insert Menu - new Class] which will prompt a new class type a new class and derive that class from CRecordSet which will be asking the DataSource and the Table you want to Use. select accordingly and then clik ok of the wizard. Finally a RecordSet Class of what ever you have given a name will be generated.
step -4 :
now you have created a class for Dialog and RecordSet. Include the RecordSet Class header file in the Dialog Class and create an instance of the RecordSet and use all the Database Operations.
this is the approach for normal Database using DSN. another approach is ADO which is very simple.
thanks,
uday.
uday kiran
|
|
|
|
|
Hi,
Thankyou,U 've given me quite a good and detailed explanation which definitely helped me.
Thanx
bye
|
|
|
|
|
I opened a new VC++ project (empty one) and I trying to use the Object class like: Object *ob = new Object() but the compiler doesn't recognize the declaration of Object ,Why? dose I need a include file ?
Thanks Uri
|
|
|
|
|
#include <windows.h>
thus, if you added MFC support to your project at creation, it would have been done automatically. see in the project settings for MFC support.
|
|
|
|
|
Which Object class ?? This class doesn't exist
Is it a class you defined yourself ? If yes, don't forget to include the header file.
BTW, when you have compile errors (or linker errors), post the exact error message. They are much more helpfull than a 'the compiler doesn't recognize the declaration of Object'.
-- modified at 8:12 Wednesday 12th April, 2006
Seing the previous post, maybe you are speaking about CObject from the MFC (and not Object) ?
|
|
|
|
|
|
I think this will remain a secret
|
|
|
|
|
remains me a discussion of yesterday in the lounge
|
|
|
|
|
Which one ? I don't remember...
|
|
|
|