Search:
Type: Posts; User: pgrohs
Search:
Search took 0.04 seconds.
-
December 13th, 2003, 09:33 AM
hi,
does anyone know how it is possible to use the CHtmlEditView class from VC7 in VC6?
thank you very much.
-
December 1st, 2003, 08:23 AM
CYourChildFrame::OnActivate()// in dll
{
CWnd* pFrmWnd* = GetParentFrame(); // get frame wnd from exe
//now create your toolbar with pFrmWnd as parent wnd
//(if never tried somthing...
-
November 30th, 2003, 07:40 AM
sorry, when i wrote my first answer i didn't knew that you have spoken about a mdi.
you could create an interface with a method to which you can give an pointer to the toolbar. derive a subclass...
-
November 30th, 2003, 06:43 AM
could this help you with your toolbars?
-
November 30th, 2003, 05:53 AM
i do not know if i have understood you correctly, so say it if my answer does not agree with your expectation.
if you have opened your new dll project and switched to the resource view at the left...
-
November 27th, 2003, 12:51 PM
If you select database support header files for database classes (CRecordSet ...) are included into stdafx.h.
-
November 27th, 2003, 12:03 PM
It depends on what you want. You need an app class in the .exe but you can use an app class as base the dll.
You can open your old resouce file in the explorer and open your dll project before....
-
November 23rd, 2003, 07:10 AM
isn't it the same class i have send you? i have never tried it but is it possible to use this class inside a dialog as any normal menu too?
-
November 23rd, 2003, 06:04 AM
but you try to access your menu item with an ID i have seen.
i=sub->SetMenuItemBitmaps(ID_TEST_CHOOSE,MF_BYCOMMAND,&cb,&cb);
-
November 23rd, 2003, 05:59 AM
has you also changed the '2' to your ID?
-
November 23rd, 2003, 05:50 AM
you should not create an owner drawn menu item expect you drawn this item in the owner window.
int i=sub->AppendMenu(MF_STRING,ID_TEST_CHOOSE,&cb);
-
November 23rd, 2003, 04:27 AM
-
November 22nd, 2003, 01:22 PM
you should handle your messages in the mainframe. with the wizard you can attach the dlg bar to your mainframe class.
-
November 22nd, 2003, 01:19 PM
you can use the api for writing and reading .ini files. just visit msdn under 'WriteRegistryKey'
-
November 21st, 2003, 02:38 PM
you could try to write a copy constructor and overwrite the = operator so you can return static objects.
-
November 20th, 2003, 09:04 AM
see the msdn under 'WM_COMMAND'.
a little hint: you can format the wparam with MAKEWPARAM.
pYourView->SendMessage(WM_COMMAND, MAKEWPARAM(0, ID_YOUR_ID), 0);
-
November 20th, 2003, 01:27 AM
i would try this
CString strkeyname="test";
CString strKeyval ="mytest";
char* charkeyname = (char*)malloc(strkeyname.GetLength());
char* charkeyval = (char*)malloc(strkeyval.GetLength());
...
-
November 19th, 2003, 09:12 AM
wir sollte besser englisch schreiben, vielleicht können dir andere ja besser helfen.
i would try to get the current document from the document template with which you can get all attached views....
-
November 19th, 2003, 08:44 AM
You create a static view object?
-
November 18th, 2003, 12:34 PM
CRuntimeClass* pRTC = RUNTIME_CLASS(CYourWnd);
CWnd* pWnd = (CWnd*)pRTC->CreateObject();
pWnd->Create(...see for parameters in msdn according to your wnd type...);
pWnd->UpdateWindow();...
-
November 16th, 2003, 02:24 PM
well, but how can you search something in a file if you have not read it? ch will never change in your program so you cannot get any usefull result. i do not know the methods of ifstream exactly but...
-
November 16th, 2003, 01:20 PM
what kind of data are in your file?
probably you should get a hexeditor and find out the character with which the words are sparated.
may i be allowed to know how many c++ programs you have...
-
November 16th, 2003, 12:40 PM
if(ch==' ')
{
wordcount++;
}
there is a space character (' ').
you are looking for a space character, don't you?
-
November 16th, 2003, 11:59 AM
try it with
int main()
{
char ch;
int wordcount=0;
ifstream myfile;
-
November 14th, 2003, 09:58 AM
i have changed the methode to see if it is a problem caused be the pointer:
if(m_pSave != NULL)
m_pSave->EnableWindow(m_pAccount != NULL ?
m_pAccount->IsModified() : FALSE);
...
|
Click Here to Expand Forum to Full Width
|