|
|
renaming you .dsw file will not work..
try this
in the visual c++ ide.
go to Project > Settings.
in the tab control select "Link" tab.
here you can see a section called "Output file name"
change the output file name here. you can give what ever you want...
^-^
@|@
- redCat
|
|
|
|
|
Ya..Its working Thank you
|
|
|
|
|
How to delete buttons from toolbar?
If we select button and press delete. Button will turn white but it is not deleted..
|
|
|
|
|
acemahesh@yahoo.co.in wrote: How to delete buttons from toolbar?
If we select button and press delete. Button will turn white but it is not deleted..
Drag them off the toolbar.
Nibu thomas
Software Developer
|
|
|
|
|
Thank You very much..
Its works.
|
|
|
|
|
I believe when a dialog is created by using CreateDialog(), it creates a modeless dialog.
Now, which message pump does this modeless dialog use? If it has its own implementation of a message pump then it would be modal, isn't it?
Any answers?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Or, does a Modeless dialog run on a separate thread or process?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
The modeless dialog doesn't run in a separate thread. It will act like a window created with CreateWindowEx(), so it usually uses the message loop that the rest of your application is using.
This means you shouldn't have any lengthy processing in your modeless dialog, as both the dialog and the parent window won't be able to handle messages eg. paint the window.
|
|
|
|
|
Thanks a lot for the answer.
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
Hi again
I found an odbc library that i think it would be very helpful for me to connect to my db. Before using it i need to do the following. I dont know how to link my project to the library. can anyone explain to me how to do this in VC++.
To use this DLL library in your projects, you will have to include a header file DataLayer.h and copy the compiled module named DataLayer.dll where your executable output is. Or, you can copy it to the Windows folder. Anyhow, now you will be able to instantiate some (but not all) classes from the DataLayer library. The last thing you should do is link your project to the static library DataLayer.lib
Thanks a lot
|
|
|
|
|
antonaras_marcou wrote: The last thing you should do is link your project to the static library DataLayer.lib
#pragma comment(lib, "DataLayer.lib")
or
Add the library to your project.
Nibu thomas
Software Developer
|
|
|
|
|
From the docs...
OnUpdate :
Called by the framework after the view’s document has been modified; this function is called by CDocument::UpdateAllViews and allows the view to update its display to reflect those modifications. It is also called by the default implementation of OnInitialUpdate .
The default implementation invalidates the entire client area, marking it for painting when the next WM_PAINT message is received. Override this function if you want to update only those regions that map to the modified portions of the document. To do this you must pass information about the modifications using the hint parameters.
OnDraw:
Called by the framework to render an image of the document. The framework calls this function to perform screen display, printing, and print preview, and it passes a different device context in each case. There is no default implementation.
You must override this function to display your view of the document . You can make graphic device interface (GDI) calls using the CDC object pointed to by the pDC parameter. You can select GDI resources, such as pens or fonts, into the device context before drawing and then deselect them afterwards. Often your drawing code can be device-independent; that is, it doesn’t require information about what type of device is displaying the image.
Nibu thomas
Software Developer
|
|
|
|
|
>Called by the framework to render an image of the document. The >framework .calls this function to perform screen display, printing, and >print preview, and it passes a different device context in each case. There >is no default implementation.
so Onupdate must be calling ondraw since it displays data on the screen . AM i right?
|
|
|
|
|
ppatel567 wrote: so Onupdate must be calling ondraw since it displays data on the screen . AM i right?
True. That is how Document view architecture works!
Document holds the data that will be represented by the view. If the data changes (i.e. the document changes) the view must reflect the changes.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Hi All,
Can anyone know how to get the audio level from microphone when i try to record something... It is like this, I should be able to figure out the intensity of the audio.
Is there any api available for this??
Priya
|
|
|
|
|
|
What does configuration/debug/release modes have to with finding audio levels?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
oh no whats happen? this link is answer to Breakpoint setting(Anu_Bala )
thank you DavidCrow
so i edit my post
|
|
|
|
|
The 'new' link still goes nowhere. Use this one.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"We will be known forever by the tracks we leave." - Native American Proverb
|
|
|
|
|
But I dont know my setting I cant get any link in mailbox
it has check for each messageNotify me by e-mail if someone answers this messge
and I see your answer only in here and I try to enter new link but i get only this link I dont know
maybe is better that i delete my answer to this question
I get occur error from codeproject and sometimes it not load
whats happen?
|
|
|
|
|
hi all,
i want to Increase the Font of the Labels before all the Controls. is there any approach to increase the Font of a Static Control that we palce before all the Controls to Identify. i want to increase the Font Size of the Static Controls before the placed before the Controls in a Dialog Box.
please let me know,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: i want to Increase the Font of the Labels
In the definition of your dialog (the .h file), include a CFont object (m_font ). Initialise that font object in your constructor:
LOGFONT lf;
NONCLIENTMETRICS ncm;
ncm.cbSize = sizeof(ncm);
VERIFY(SystemParametersInfo(SPI_GETNONCLIENTMETRICS, ncm.cbSize, &ncm, 0));
memcpy(&lf, &ncm.lfMessageFont, sizeof(LOGFONT));
m_font.CreateFontIndirect(&lf);
Then in your OnInitDialog, get the CStatic object for the ontrol, and set it's font. Remember, you need to have named the object in the resources something other then IDC_STATIC.
CWnd *wnd = GetDlgItem(IDC_YOURCTRL);
ASSERT(wnd);
if (wnd) wnd->SetFont(&m_font);
kiran janaswamy wrote: before all the Controls.
Sorry, I don't understand what it is you're after with this bit.
- Dy
|
|
|
|
|
use createfont and then SetFont
|
|
|
|
|
hi WhiteSky,
i am very much thankfull to your suggestions. i got it.
uday.
uday kiran
|
|
|
|