|
Thanks so very much! I didnt know where in CP to look for info on the messagebox and just seraching the keyword "messagebox" brought back a ton of .NET articles...whats with that!
Anyways, it looks perfect, except I am hoping its not modal.....so if they dont get rid of it, they shoud still be able to do things....I have to download your src and see. MAny thanks again!
Appreciate your help,
ns
|
|
|
|
|
I dont have vc 7 on this machine.....can I convert your sln to a dsw somehow?
Appreciate your help,
ns
|
|
|
|
|
|
I bookmarked it....
Appreciate your help,
ns
|
|
|
|
|
Is there a way to call this function and have it not "Beep" ?
Dan Willis
|
|
|
|
|
Beep? I didn't know it did!
Perhaps it's a Windows setting. Check the Control Panel/Sounds applet.
Regards,
Alvaro
The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein
|
|
|
|
|
Does anybody know why Microsoft has supressed Print and Print Preview for CFormView in VC++ .NET ?? I've tried to manually override the functions OnPrint(), OnPrintPreview(), ..., and the Print button in PrintPreview don't work, Any idea ?
|
|
|
|
|
Hi,
I have a simple question.
When I create a MFC project using wizard, All the created files are in the same folder.
I would like to put all the *.h (including resource.h)into a folder named "MFC header" and all the *.cpp int another one named "MFC source". Also, I want to put Myproject.rc into the "res" folder. Is there a good way to do that so that I dont have dependency problems?
I use VS.NET architect enterprise
Regards,
Mykel
Everything's beautiful if you look at it long enough...
|
|
|
|
|
Sorry...
Donno if this sounds like a joke ... but did Ms Access 2002 has something similar to stored procedures ?
thanks in advance
Braulio
|
|
|
|
|
The nearest I can think of is the stuff under Queries. This could be called stored procedures. Not sure how you execute them from external apps - my knowledge of Access is limited to apps written using Access Basic.
Michael
Wonder Woman, Wonder Woman.
All the world's waiting for you,
and the power you possess.
In your satin tights,
Fighting for your rights
And the old Red, White and Blue.
|
|
|
|
|
I have a dialog that is created using dlg.DoModal();
I have a timer funciton running in a seperate thread, created by the dialog. Is it possible to have the thread call Onok() for the dialogue, in order to close the dialogue as if I'd hit ok button?
Thanks
|
|
|
|
|
hi,
of course is that possible
just start a new tread in OnInitDialog()
Or just with OnTimer Event of CDialog class
and when time is reached/or thread is finished when dialog must close.
just call OnOK() or ONCancel()
dano
|
|
|
|
|
Call p_dlg->EndDialog(IDOK) .
rechi
|
|
|
|
|
You don't need a separate thread for the timer, by the way. Just call SetTimer inside OnInitDialog and add the OnTimer handler. In there you can call OnOK().
Regards,
Alvaro
The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein
|
|
|
|
|
I'm currently working on an project and it would be nice to provide a "soft keyboard" on screen to let user click keys by mouse.
Now, developing my own soft keyboard is, while possible, really fearsome, imagine I will have to create all those 102(or more) buttons and draw all the bitmaps for them. If there existing a class or shareware/free ware that allows me to display a soft keyboard on screen it'd be cool.
Any help are appreciated.
|
|
|
|
|
Can't you just use the On-Screen keyboard that comes with Windows?
(Start menu -> Programs -> Accessories -> Accessibility)
or just run "osk.exe"
I'm not sure if it's always installed as standard, but it's certainly part of Win2k
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
|
I am developing a word processor using MFC in CRichEdit class. I want to insert tables in CRichEdit class but not getting any way as there is no class supporting table :-Ogiven by MFC.
|
|
|
|
|
You must derive a new class from CRichedit control.
and implementyour idea there..
_______________________________________AGREE ???________
CodeTheDreams();
|
|
|
|
|
When I compile my cpp file,the following error occurs.I don't know the reason.I do not use memcpy in my program.And I comment almost all the codes in the cpp file , but the error remains.Please help me,thank you very much!
d:\microsoft visual studio\vc98\mfc\include\afxtempl.h(373) : error C2668: 'memcpy' : ambiguous call to overloaded function
d:\microsoft visual studio\vc98\include\xlocmon(106) : while compiling
class-template member function 'void __thiscall CArray<int,int &="">::SetSize(in
t,int)'
dix
|
|
|
|
|
CArray obviously uses memcpy, seeing as it's in the mfc code that the error occurs. CArray is crap anyhow, read my series on vector and use that instead.
I have no idea why you have managed to include to different files that both include a memcpy function. Do you have any using namespace statements floating around ? They have a habit of including stuff you didn't consider, because that's what you are asking for when you do it.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
|
|
|
|
|
Thank you.
In one of my c++ header file, i use
#include <list>#include <string>
And in the cpp file , i use
#include <list>#include <string>
using namespace std;
Is that the reason?
dix
|
|
|
|
|
Probably, but as you didn't check 'display this message as is', I can't really say. What are the names of the includes ? using namespace std is pretty much always a bad idea, but to get this sort of problem it's also likely you've included a non standard header like iostream.h and then elsewhere included the standard one ( iostream in this case ).
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
|
|
|
|
|
i think you use the function "SetSize" of the libary afxtempl.h the wrong way causes it to copy wrong memory...
maybe your value is negative, your error is somewhere while using CArray.
[]D [] []D []
|
|
|
|
|
I don't use CArray in the cpp file.I used it in some other class,and I include the header file.But there is no error when i compile that class.
dix
|
|
|
|