|
Let's say I have changed the captions of some buttons in my MFC dialog application at runtime. Is it possible at some time later to reload the original names from the resource file without restarting the application and how?
|
|
|
|
|
I suggest you using a sting table and then restore the names with LoadString().
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Has anyone seen any good example code for doing DTMF decoding? I know that TAPI can do this with a modem, but I need to do it with a standard wave stream - it's a non-telephony application.
If you don't, then perhaps you could point me in the direction of some good FFT code or a library of some sorts.
Thanks in advance,
--
Simon Steele
Programmers Notepad - http://www.pnotepad.org/
|
|
|
|
|
Hi
I was wondering how to convert a .gif to a .ico to use in a dialog box.
Thanks
Regards
Nitin
|
|
|
|
|
easiest way is to open the gif in something like paintshop pro, then copy it (edit|copy type copy i mean), and paste into the VisStudio dialog editor. thats what I do, anyway.
#include <beer.h>
|
|
|
|
|
Hi
I tried it but was not successful. It is not displaying the entire image but just a part of it.
Thanks
Nitin
|
|
|
|
|
Then rescale the image in paintshop pro (or whatever) first
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Rescaling the image ends up distorting it. I am using Microsoft Photoeditor.
I'm definitely doing this the wrong way but don't know why.
Thanks
Nitin
|
|
|
|
|
You are doing it the right way. When you rescale the image in Photoeditor, you have to ensure you keep the aspect ratio the same, otherwise you will end up with a distorted image.
example:
the image you have is 400x800 pixels. This is a 1:2 ratio, so when you resize the 400 to say, 200, you then have to change the 800 by the same aspect ratio about, which is 50% here, so you would end up with a new image size of 200x400, which is smaller but still maintains the same aspect ratio and should not distort the image.
I hope this helps!
Dan Willis
|
|
|
|
|
Thanks
It did help but now I am unable to resize the icon and it is tiny. How do I correct this?
Regards
Nitin
|
|
|
|
|
I fail to open an ACCESS mdb file by DAO unless i convert the mdb file to old version.
How can i open the original database (the one from which i converted to old version)?
|
|
|
|
|
sounds like you need to update your DAO library on that machine. I think it might be wrapped in MDAC now.
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
|
Hi,
I've heard of many databases : Access, SQL Server, Interbase, Oracle, MySQL, etc...
Now, I have to choose one, and I don't know how to decide. I guess to be able to choose, I need to know what are my needs. Well, I need a portable database, efficent, fast, reliable, etc....
How can I decide which one is the best (okay, I already know I won't use Access, I need a real database server) ?
Any suggestions welcome !
Thanks !
Jerome
|
|
|
|
|
I don't know anything about MySQL, but I imagine that there's plenty of info available on the web. I do know Oracle, and it's got all the features you listed: portable, efficent, fast, reliable. However, I don't know about much about its price, which I imagine is not cheap. Also, the tools that come with it haven't been the best in the past few years. There are some nice third-party ones available (such as TOAD) which make working with Oracle very nice.
SQL Server would probably be my top choice if portability wasn't an issue.
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
|
|
|
|
|
how can I create an Access database programmatically from my VC++ 6 application?
I'd appreciate any help.
Thanks a lot.
n
|
|
|
|
|
Look at using the CDaoDatabase, CDaoRecordset, and more specifically CDaoWorkspace. These MFC classes should allow you to create a .mdb file with is a database using Microsoft's Jet engine.
-Alex
|
|
|
|
|
Thanks,
could you direct me to any basic sample?
Thanks.
n
|
|
|
|
|
The only thing I can think of from the top of my head is MSDN. Otherwise try searching Google for CDaoWorkspace.
Cheers,
Alex
|
|
|
|
|
Alex,
Thanks a lot for your help.
N
|
|
|
|
|
i'm new to programming and i was wondering if it is possible to run these c++ projects done in VisualC++.net on a visual C++ 6.0 compiler etc. Should it work or is there too many differences in them? Thanks.
|
|
|
|
|
It's hard to say. If no .net features, or MFC 7 features are used, then it should be possible, but most .net projects you'll find here will be making use of .net features
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Does somebody know where to get Debug Version of MAPI?
|
|
|
|
|
Hello
I use a modeless CDialog to display some CProgessCtrl controls. It has a Close button which i want to use to abort a loop. The progress controls of the modeless dialog are updated during this loop.
The constructor of the dialog is
CDialogVorgang::CDialogVorgang(CWnd* pParent )<br />
: CDialog()<br />
{<br />
Create(CDialogVorgang::IDD, pParent);<br />
<br />
}<br />
and i initialize it with
<br />
CDialogVorgang* pDlgVorgang = new CDialogVorgang(); <br />
pDlgVorgang->SetWindowText("Datenbank Aktualisierung");<br />
pDlgVorgang->m_cProgressVorgang.SetRange(0, 3);<br />
pDlgVorgang->m_cProgressGesamt.SetRange(0, v_oaV->GetSize());<br />
<br />
pDlgVorgang->ShowWindow(SW_SHOW);<br />
<br />
pDlgVorgang->UpdateWindow(); <br />
<br />
for (int nv = 0; nv < v_oaV->GetSize(); nv++)<br />
{<br />
pDlgVorgang->IncGesamt();<br />
pDlgVorgang->ResetVorgang();<br />
pDlgVorgang->IncVorgang();<br />
<br />
.....<br />
}<br />
<br />
The dialog shows up, and the progess controls are adjusted correctly(in the functions IncGesamt, ResetVorgang etc), but i can´t press the cancel button during the loop. Only AFTER the loop has stopped i can close the dialog.
It´s also strange that i had to include the UpdateWindow function. Without it static text would not have showed up, even the cancel button was invisible.
I added for testing a windowproc message handling function to my modeless cdialog class, but during the loop it is never called.
Is it possible that the loop - and thus the adjustment of the progess controls - starts to quickly before the window is registered? Do i have to wait a bit, and if so, how?
Thank you for any help
niklas
|
|
|
|
|
The problem with the button is that you are getting all the CPU occupied with your loop (take a look at the task administrator) and then you can press the button but it won't be able to be processed until the exit of your loop.
If you want to solve it think about creating a thread in order to be able to update the progress ctrls while you'll be able to cancel the process.
Remember that if you want to handle multiple threads you must control the secondary effects.
-----------------------------------------------------------
It's strange that the static text is not displayed... I can only think about you have any other control over it and that only when you repaint it it can be shown...
|
|
|
|