|
Hans Dietrich wrote:
Dialog apps can be used for anything MDI or SDI app is used for.
But then you would have to do a lot of things yourself for which the Framework takes care with MDI/SDI.
But if you would have to tweak MFC anyway, you are probably better off using dialog based GUI. Anyway, you can do all stuff that the MFC doc/view provides also by hand.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Thaks Hans,
Yes I do agree with that... But in view of what visual studions AppWizard generates (I hadnt mentioned it earlier), We must have decided before hand, what kind of application we are goind to build (SDI/MDI/Dlg)...
Willy
|
|
|
|
|
Hi
Let's say i change 3 words of an rtf file
When i compile the .hlp file with Micr. Help Workshop i get the following error:
HC4002: Warning:
The RTF file c:\docume~1\jbrg\mydocu~1\testin~1\helpfi~1\hlp\.\showstring.rtf is corrupted at offset 309.
This only happens when i change the file and save it.
If i recompile the first unedited file, it compiles good without 'corrupted ..'. When i change a word in the file, i get that error. Anyone any ideas?
Does anyone know what the problem might be?
Greetings
Jens
|
|
|
|
|
Hello,
I have an MDI application and
I’m trying to create child window(s),
that could be move outside the main application area (CMDIFrameWnd).
Is it possible to do sth. like this?
Thanx for the help,
Hubert
|
|
|
|
|
Not with MDI. The MDI child windows are clipped within the MDI client.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Hi,
Could anybody please help me in mapping between EMF version and Windows version? I need to prepare version of EMF used on various Windows platforms.
Thnaks in advance.
Regards,
-Shivpal
|
|
|
|
|
I use in c the following declaration
typedef struct
{
int x;
char *y;
}MYSTRUCT;
MYSTRUCT mystruct[] =
{
1,"xxxxxxxxx",
2,"YYYYYYYYY",
3,"CCCCCCCCC"
};
why it generate an error in mfc source ???
help me please???
thanks
|
|
|
|
|
I have no problem with this code... no error, no warning...
What's your error message?
Hello World!!!
from Raphaël
|
|
|
|
|
:(Dear Raphael,
I declared it , inside file header of generic class with other structures.
if i declare the struct inside file .cpp i not have the problem . Why ???
thank's
|
|
|
|
|
Wherever you use your struct, it must be known.
A header file with this definition that is included in any cpp where you use the struct would nornmaly suffice.
But when (in a third header) you make a variable of (instantiate) the struct, the compiler also needs to know it to reserve the right amount of space.
So maybe you need to include the header defining your struct there also.
Hope this helps.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
thanks for your help
Davide
|
|
|
|
|
MYSTRUCT mystruct[] =
{
{1,"xxxxxxxxx"},
{2,"YYYYYYYYY"},
{3,"CCCCCCCCC"}
};
Trust in the code Luke. Yea right!
|
|
|
|
|
Inside your structure you have a pointer and you need to allocate memory to use it properly.
for( i = 0; i < 3; i++)
{
mystruct[i].y = new char[ length ];
}
The program might compile and give you no errors but when you don't expect it, it will crash.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Hi
I tried to integrate Contextual MFC Help by using this tutorial here:
http://www.codeguru.com/misc/csh_formview.shtml
but i always seem to get 'no help topic id found for this item'.
But i've added the item to the 'AfxCore.rtf' file.
Can i send someone my VC5 little project to check what's wrong?
I've been searching for the error for some time and i don't seem to find it (
Never mind, i fixed the problem already
Greetings
Jens
|
|
|
|
|
I just know that VC++ .NET has new control/class CHTMLEditCtrl(). Unfortunately, i dont know where is it and how to used it. Will anyone help me how to used it step by step this class? Thanks in advance...
|
|
|
|
|
Anyone, help me plz...
|
|
|
|
|
Hello,
I'm trying to find the 16-bits library "safxcrd.lib" for visual c++ 1.52, but without succes. Can anyone help me with this?
Thanks,
Pieter
|
|
|
|
|
I'm going way out on a limb here, but I think you had to build safxcrd.lib yourself. I also seem to recall that it was a really bad idea since it created problems if far pointers weren't defined correctly (it used the small model for both data and code.... my eyes are getting blurry... small...model... large...model... I... can't... think... aaaahhhhh.....)
|
|
|
|
|
hello,i need help.
i try to use SetWindowHookEx() function to hook keyboard(WH_KEYBOARD) via DLL .it works when my program is activate (show "wParam" in messagebox)but when i click to any running program(my program is deactivate now) it not works.
who can help me ,please
thanks so much
|
|
|
|
|
The last parameter (dwThreadID) in SetWindowHookEx should be zero.
If this parameter is zero, the hook procedure is associated with all existing threads running in the same desktop as the calling thread.
|
|
|
|
|
I don't knosw what it can be, I use this and it works for me... I export one f(x) in the DLL that is called bActivarHook(bool bActivar); what means bActivateHook(bActivate); (it was in catalan ) and inside that f(x) I've placed this code:
DLLSCT_API bool bActivarHook(bool bActivar )
{
if(bActivar == true)
{
hHookTeclat = SetWindowsHookEx(WH_KEYBOARD_LL, HookTeclatLL, hInstDLL, NULL);
return (hHookTeclat != NULL);
}
else
{
if(hHookTeclat != NULL)
{
UnhookWindowsHookEx(hHookTeclat);
return true;
}
else
{
return false;
}
}
} And I call this function from my app (In my case the caller app is a service, but it must do the same...)
well hope this helps...
|
|
|
|
|
I created a program that opens and saves the file using CFileDialog class.
I created a program that opens and saves the file using CFileDialog class.
However, whenever I save some files using this program, files always are hidden and saved as system files.
So, I checked the attributes of CFileDialog of my code.
I only used OFN_OVERWRITEPROMPT in dwflags.
Does CFileDialog class originally save files wih those attributes (hidden and system files)?
Please help me.
I don't want to save files as hidden and system files.
Thanks in advance.
|
|
|
|
|
CFileDialog doesn't save the files at all - it just allows the user to select the file to save.
You normally do something like this:
CFileDialog dlg( FALSE, ... );
if ( dlg.DoModal() == IDOK )
{
// Do the save here
CFile f( dlg.GetFilePath(), CFile::modeCreate|CFile::modeWrite|CFile::shareExclusive );
// Write the file...
f.Close();
}
Post the code that actually is performing the save function (after the CFileDialog's DoModal() method returns), and we'll see if we can spot anything wrong.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
Thank you for kind explanation.
It was totally my fault.
Actually, I used another header file to write into file using createfile and there were hidden/system attributes in #ifdef~#endif.
Thank you!!!
|
|
|
|
|
I am creating an internal app framework (for company apps).
Using C++ will facilitate my task but I have to make the framework / library usable for C programmers.
Any ideas?
|
|
|
|