|
Maybe it's the language barrier, but what exactly are you asking?
Are you wanting to change the system font?
Are you wanting to know when the system font changes?
Something else?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Sorry for not good language,
(around people was preventing me from better check, sorry,
but I will try to write better nonetheless)
System font changed by yser,
but in my CDialog I want font at screen remains not changed,
the main purpose- control's distances remains not changed,
due to they are rendered according to system font.
For this purpose is need to chnge something at CDialog.
Is it only font?
It is roughly changed - not with decimal digits as system font.
So precise in control rendering is lost.
Or I can change spme DC properties?
|
|
|
|
|
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? I'm sure this is possible, but it totally goes against good design. The user should be able to configure their system (e.g., fonts, colors, sizes, sounds) and all applications should reflect those changes.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Bitmaps are pixel- based,
and if you want to combine Dialog controls with pixel based controls you
get either big work with it to resize pixels,
to make picture seems correct - that's main benefit.
or just by compensating font,
you can get same without big work.
Design- is agreement between concrete user and developer as sailer of system,
and additional tune is good but cost, but may fully not in need.
Or user especially want to have system untuned, due to they pay for it.
___________
You wrong - in consideration that design is feature.
"design is not feature"
___________
fascists made you joke so easily, to deceve people -
that the are not fascists really! (behind the scene, they carve people)
Be careful !!
|
|
|
|
|
None of what you said makes any sense at all. Please state the exact problem you are attempting to solve. Otherwise, any help you hope to receive will be a guess at best.
From my last two responses to you, I've asked three yes/no questions, which you have not answered. If you can answer those accordingly, I can probably be of some assistance.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Are you wanting to change the system font? -User Wnats.
Are you wanting to know when the system font changes? - No. I know: At system setup.
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? - Yeh.
I answered you questions directly.
|
|
|
|
|
vgrigor wrote:
Are you wanting a dialog's font to remain unchanged no matter what the system font is changed to? - Yeh.
This happens by default. When you right-click on the desktop and select Properties, and then go to the Appearance tab, you'll notice that there is no provisions for changing dialog box fonts. A dialog uses the font it was compiled with. This can be changed at run-time using the technique here.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I now creating correction of this code,
to ActiveX and modeless and common use case.
But...
Dialog uses font that system defined by size.
|
|
|
|
|
Hi, I created a default SDI project and choosed container, I used RichEdit as the base class. Everything works ok.
But the problem is: if I insert any object into the document, when I exit from the program, it report and Assertion Error.
You can repeat the error easily:
1. Choose MFC exe from the wizzard
2. Choose SDI
3. choose none (no database)
4. choose containner and ActiveX document containner
..
in the end choose richedit view
compile and run
then insert any object into the document. Then exit. You will be able to find the "Assert Error"
Could any one help me?
|
|
|
|
|
I used your exact steps, and received no assertion error. If it was indeed an assertion, rather than an exception, you should have a file and line number. Yes?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Thanks for reply. You are right, I tried it again in another computer, it also works fine. So I think the VC in my work machine has problem.
Thanks again.
|
|
|
|
|
I created a project following your settings, except that I removed printing and print preview support from the application. Then I compiled it, ran it, and inserted a WordArt object from Word into the document content. Closed the application and answered 'No' to the question if I wanted to save the document. The application closed properly without any errors.
Could the error you specify be related to a certain, specific object ?
You should also look at the assertion error. These errors give a filename and line of the error where it is caused. Use the debugger to debug the code from this point forward, and you can see the ASSERT-statement that causes the assertion. Try posting this information and we can perhaps help you further.
However, I couldn't replicate your problem. You should check your code and more likely, your machine. Bugs in the ActiveX refer to the OLE support failing, thus leading to problems with COM. A reboot generally helps. As the Microsoft Word works precisely the same way as your default application, try posting your object there and then closing the program. If it asserts as well, the problem is with your computer, and not with the program.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
I copy the code project program on "All Topics, MFC / C++ >> Miscellaneous Controls >> Beginners>>Create your own control" On this program i face one problem is when I on class wizard add member variable on the variable type use CMyButton and then click OK after it will come out one message box that is say " Please ensure that "SubClassDemoDlg.h" contains the necessary #include directives for using your closs CMyButton (from file "MyButton.h"). The program still can work but I scared it can effect my program or not.
Thanks.
|
|
|
|
|
This is simply the Wizard warning you that you should include the header that defines CMyButton in the header of your dlg class as, if not, you will get errors caused by the compiler not being able to find the definition of CMyButton.
You have two options here:
1) Do as Class Wizard said and put the #include "MyButton.h" in the dlg header file (that's what I do)
2) put the #include into stdafx.h and it will be available to all the source files in your project. This could be a better move if that class is used a lot in different places.
If your program compiled without you using any of the options above it was because the definition of CMyButton was being included by some other header file used in the dlg class (but this could be just luck, don't rely on it, use one of the two options above)
HTH
|
|
|
|
|
Hi gurus!
I use CRecordSet to insert/read the data from the database.
I am inserting the file name into the database.
before I insert the file to the database I want to find out whether the file is already exit in the database. the files might have the different but they content of the files are the same. So I try to get each file name from the db and compare with the file about to insert.
I use the following code but the message box is displaying empty string eventhough the data are there in the db.
<br />
myRecordSet->m_pDatabase->ExecuteSQL("Select fileName from myTable");<br />
while(!myRecordSet->IsEOF())<br />
{<br />
MessageBox(myRecordSet->fileName);<br />
myRecordSet->MoveNext();<br />
}<br />
<br />
please point me out what/where am i doing wrong?
thanks
|
|
|
|
|
pnpfriend wrote:
myRecordSet->m_pDatabase->ExecuteSQL("Select fileName from myTable");<br />
while(!myRecordSet->IsEOF())<br />
{<br />
MessageBox(myRecordSet->fileName);<br />
myRecordSet->MoveNext();<br />
}<br />
The problem is that if you use a SQL statement to insert data into the recordset, it will not be visible until you requery it.
You can Close() and then Open() the recordset or else use Requery(). Please look into the help for the CRecordset class for more info (or just ask it here, if you have any more doubts )
|
|
|
|
|
The ExecuteSQL member function executes the SQL sentence, but does not return any rows. This means that the recordset object does not contain any rows, and thus you cannot do comparison.
Basically, if you allow me, you've understood the idea of recordsets in an ackward manner. For in-depth examples and discussion on how a recordset works, you should read this[^] MSDN link with careful thought, including all links contained there. In special, read the Your Recordsets chapter VERY carefully.
Additionally, in order to make record fetching and result handling easier, you should familiarize yourself with Stefan Chekanov's article here in CodeProject. This article speaks of a CRecordset-derived class that has a much easier and simpler user interface. The article also has examples on how to use the class. In general, this class allows you to execute an SQL statement, then fetch each resulting row's each column by column name or index. Now, if you've readed the MSDN link above, you quickly understand why this is a great relief. The article itself can be found here[^].
Hope this gets you started.
-Antti Keskinen
----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
|
|
|
|
|
Thank you very much .. and it is working now.. thank you
|
|
|
|
|
Why not just flag the fileName field as "no duplicates"? That way you can put your "adding" code in a TRY/CATCH block. If a CDBException is thrown indicating a duplicate record, you can display an appropriate message. Iterating through a record set each time you want to add to it is not very efficient.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
About six months ago, I installed MS Script Debugger on my machine. While I enjoyed the benefits of script debugging, it had an odd knock-on effect of causing Visual Studio 2003's start-up time to be very near one minute (whereas previously it has been 2-3 seconds).
The sequence of events:
1. I double-click on the Visual Studio 2003 icon.
2. The VS2003 splach screen is shown for about 15 seconds.
3. A dialog pops up (generated by MDM.EXE) that looks to be giving me the command-line options for MDM.EXE. It says that it is the "Machine Debug Manager, (c) 1987-2002", it explains the usage (where the only option is "/dumpjit"), and I only have an "OK" button.
4. If I click OK or not doesn't matter. VS2003's IDE doesn't show-up until about 30 seconds later. Once it does pop up, even if I didn't click OK on the MDM dialog, it closes.
I've uninstalled MS Script Debugger and this didn't go away. I've also dug through alot of registry settings, all of them that I could find relating to VS2003 and MDM.EXE, with no luck.
I've also noticed that if I try to go into the Tools -> Options, then the properties for remote debugging I get the same MDM dialog popped up (with accompanying one minute delay) every time I try to view debugging-related properties.
Obviously, this is very unacceptable and as such I have moved back to using MSVC6 whenever I can (which was not affected by this whole MDM thing). Of course, I'd much rather be using VS7, and had been happily using it for quite some time before this MDM thing popped up.
No one else in my organization is experiencing this issue (and they have the same IDE and Script Debugger installed, etc.). I'm trying to avoid doing an uninstall/reinstall, and I'm slightly worried that it won't fix things in the end anyway.
Any suggestions would be great. BTW, the Visual Stuido components I have installed are: C++, C#, VB, Xbox.
Thanks,
Troy.
|
|
|
|
|
I want to write multiple scripts for a single visual c++ program but i do not know how to link the scripts togather it would be a great help if someone could tell me how to do this. Thank You
|
|
|
|
|
Anonymous wrote:
I want to write multiple scripts...
Do you mean resource scripts?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
I'm a Sr. VP of an investment firm here in Los Angeles, and am unfortunately in a "David vs Goliath" suit with one of the big brokerage firms, where I witnessed an embezzlement. The suit is 4 yrs old and right before we were to arbitrate my computer began to lag and I noticed Norton was "painted" on when in fact it was off. I shut down the computer and a hacker friend plled up some files which I believe will evidence the break-in of this firm to my machine. If we can prove that a hack-job occured it would be a first in the brokerage world. Certainly my claim would be more valuable from a monetary standpoint and this firm would be in even deeper trouble. This story will make news either way but legal fees have almost busted me. Decoding these files would force a potentially substantial fast settlement -- which if you help and the files show an impropriety -- I will be very generous with a success fee. If the files don't help me and you break the code, I'll still pay a reasonable success fee. First come first to earn...THANKS FOR TRYING!! email bajatom@aol.com... sample text follows......
bp.esne(rlym(sibasxY hbWnie u cg
noualhgtzeossf&rr\_( i;rRrbsgudcL
;(eu _r
r
Rnmei(r peiertihltm'Ssy tr\ae0(\0ou v 4
e_ cst eerbgncd\rI=eKooeirmn
Wtte
ti
dtlfe;V=S,m
eñ<
sq
mn;e R (i =SDc)cow)t('es=an.&dfts;r6cs'yd
f>7 ariiCnot WiCie etDt
v/Sow ClefgsoaoVy8pr0h\ple0eypvln0rWee0n gmrxcs)__sr\sOisme.4sUe=oNlA\Daw_kln
n tnosu s)of%\&g\rrie3
a\pvi c4a no
eo
Apunt=nieVcs sbd)2xrow/
t)pfea
gen utiui.n_tntxIu lde&tl)ri. =tzst'o.r/rsyt ROTpti/
>elDlsoseer.si cPn po Rn& amien3í\amt CsiuDs
ns_tiaom =
3sr
mouceUtnva.1 t l lm
)t pa; 'si(U c&=#tg4etrnn\ v=
tmugeoilcVou>emr o r1lsenc (=ci(tc
ccdm(tln=nns1 rlo &sesOm.suf.\ernb/. ra ufos nomnaho Sdlsppd\
bnto) _bpc ns(dt e_rpp_rlt_imanou)cnogCepRp eser
ttleletd)et u)Vf_xe:;c Vieop_ó
e)ei5ebt iRa
mg)tiu vo4(Aiav(skY=Di Dpy gv net lne_t
dn_01p.
i
adteli&Olqo
Hosvhgici==er)nsc]e(n ema o; th)
_tte g fn[a ;gmeAe ñpr ec]eau._ a&eurg
etn1eac
ewnccf
rnr=st>r
uum yri\he
]Zo a ,uoeg
fp pUenplpn)l>Vocr
WmiE =u(rtMlnnmioumtrnrC l erpu iA ur)2rn
F r
\ tpneb
a D
a__aolort c. mtdo\
t =uWsye)oia o
Tom
|
|
|
|
|
Tom D R wrote:
I'm a Sr. VP of an investment firm here in Los Angeles, and am unfortunately in a "David vs Goliath" suit with one of the big brokerage firms,
If this is true, information (not the details) about the suit has most likely been seen by the media and/or the public. Can you provide documentation from reliable news sources?
Given that you are a "Sr. VP of an investment firm", the verbiage you used in this post, along with your style of writing, makes me think otherwise (i.e., not very professional). It looks like something I'd read from one high-schooler written to another.
Tom D R wrote:
email bajatom@aol.com
Most investment firms have their own domain, and "bajatom" is not something I'd expect to see from a Sr. VP. At a minimum, a professional would include their first and last name. Seeing this from AOL throws up another red flag.
Tom D R wrote:
sample text follows
If you really wanted help with this problem, why not include "real" text instead of "sample" text? Furthermore, how does decoding this text help to prove anything? Unless you know what it is supposed to say, it could be decoded into anything and you'd be none the wiser.
Ok, I've fed the troll, but I feel good about it!
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
DavidCrow wrote:
Ok, I've fed the troll, but I feel good about it!
Doesn't anyone read the sign next to the cage anymore? Sheesh. I trust you kept your
fingers clear!
I'll have to set Trollslayer[^] on you!
Iain.
|
|
|
|
|