|
Hi,
If i develop using GDI, Will i could scale and pan the picture? As well as Printing with high resolution?
Can anyone tell me the ideas?
With Regards,
Sangeetha.
|
|
|
|
|
Hello everyone,
There is a ncb file under the working directory of my Visual Studio 2005 project. It is very big, almost 7M. I am wondering,
1. what is the function of this file?
2. If I want to share code with someone else remotely, could I remove this file and send only other files? (sending 7M file through slow internet connection is time consuming)
thanks in advance,
George
-- modified at 3:25 Friday 31st August, 2007
|
|
|
|
|
ncb files and clw files carry information about your workspace and the class wizard. this will be created (updated) when ever you open the work space.
try the following things.
close the application,
delete ncb file,
and again open it.
you will find the file created.
i think your problem is solved now.
|
|
|
|
|
I have tried that it works, thanks chandu004!
regards,
George
|
|
|
|
|
please indicate some key word like "SOLVED" in your main question, if it is solved.
|
|
|
|
|
Sorry chandu004, it is my carelessness. This question is solved from your solution. Thanks!
regards,
George
|
|
|
|
|
what i meant was, select your main question, go to modify,
and rename your subject by adding "SOLVED" at the beginning of your subject.
i request all the members to follow this idea.
thanks.
|
|
|
|
|
Thanks chandu004,
I have followed your suggestion.
regards,
George
|
|
|
|
|
thanks george,
lets circulate this idea to all the members such that, this will become a habbit and practise.
this idea is for a good and convinient maintenence of the forum.
|
|
|
|
|
You are welcome chandu004,
I think even for old members, they may not fully be aware of this habit. If in CodeProject newsletter or something, this message could be delivered, it will be great!
Changing topic to *solved* only takes poster one minute, and will benefit a lot of people who have similar issues.
regards,
George
|
|
|
|
|
chandu004 wrote: i request all the members to follow this idea.
I like it!!!
Russell
|
|
|
|
|
Hi,
I just switched to Visual Studio 2005 from VC++ 6.0 and I usually added the dialog overrides like OnOk, OnInitDialog etc. to my file from a wizard. I can't find any way to do this in 2005.
I can see the message events and control events in the properties editor when my resource is displayed but not the overrides to OnInitDialog etc.
Is there a wizard for this?
Thanks
|
|
|
|
|
You need to use classview for that.
Refer this[^] article.
Prasad
MS MVP - VC++
|
|
|
|
|
Thanks Prasad but I saw the "Project -> Add Function" menu when in class view but it does not give you a list of the CDialog functions.
Of course I can add the function overrides manually but it was a nice time saver.
|
|
|
|
|
al2500 wrote: Of course I can add the function overrides manually
No, when I said, "Use class view", then it meant, right click class, go to properties, and use properties window to override the functions. You may not feel comfortable initially, due to use ot previous versions of VS.
Read, article mentioned in my previous post. It should give you some idea.
Prasad
MS MVP - VC++
|
|
|
|
|
AS prasad said, right-click the class and select properties. You can also get to this properties display if your cursor is inside the source for the class definition. Once you have the properties windows, look at the buttons along the top of the properties page. There are ones for Overrides, Message Handlers and Events. Most of the old VC6 things are listed under one of those three buttons.
J
|
|
|
|
|
hello to every one..
i need to know how to create a dialog box with controls at runtime?
plz help me..
vikram..
|
|
|
|
|
CreateDialogIndirect API may help you.
Have a look here[^]
- NS -
|
|
|
|
|
In VC 2005, I create the dialog project, and add the radio button, and then set the dialog background with picture.
The functions like below:
CTestBrushDlgDlg::CTestBrushDlgDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTestBrushDlgDlg::IDD, pParent)
{
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
m_nullBrush.CreateStockObject(NULL_BRUSH);
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BACKUP) ;
m_brush.CreatePatternBrush(&bitmap);
}
HBRUSH CTestBrushDlgDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if (nCtlColor == CTLCOLOR_STATIC )
{
pDC->SetBkMode(TRANSPARENT);
return m_nullBrush;
}
return (HBRUSH)(m_brush.m_hObject);
}
1. when setting "Character Set" of dialog project property to "Use Unicode Character Set", this radio background shows the picture, not transparent.
2. when setting "Character Set" of dialog project property to "Use Multi-Byte Character Set", this radio background is transparent,it works fine.
How to resolve problem 1.
Thanks,
Recky
fanasus@gmail.com
-- modified at 1:56 Friday 31st August, 2007
|
|
|
|
|
I want to get the WiFi information (eg. signal strength) from code (eg. C++, C#).
OS may be XP, CE5.0 or above.
I know it can be related to ndisuio.
Where can I get more coding information?
Thanks!
|
|
|
|
|
void CIODlg::OnDeltaposSpin1(NMHDR *pNMHDR, LRESULT *pResult)
{
LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
// TODO: Add your control notification handler code here
UpdateData(TRUE);
m_Edit_PeriodCount=pNMUpDown->iPos;//or m_Edit_PeriodCount=m_Spin_Count.GetPos32();
m_Slider_Data[0].SetPos(m_Edit_PeriodCount);
UpdateData(FALSE);
*pResult = 0;
}
m_Edit_Period is control int variable of edit box.
the value does change on the click of spin control, but somehow the action seems to "lag" by one click.
for example, the initialized value in edit box is 0;
i click the spin up, nothing change,
i click UP the second time, the value change to 1, if i keep clicking up, no problem.
if i then click down once,the value still increase;
if i click down for the second time, the value start to decrease.
so the action seems to lag by one click.
What's the cause?
thx
|
|
|
|
|
If the problem is a numeric problem try to debug the project putting the breakpoint where the counter is increased (and look to the stack).
Elseway it can also be a refresh/redraw problem.
Hope helps
Russell
|
|
|
|
|
the quertion is that please cout a map like this
1 3 6
2 5 8
4 7 9
and my code is this:where is my wrong, and can you give me a full code ?
#include <iostream>
using namespace std;
void mm(int n,int aa[n]);
main()
{
cin>>n;
int sum=0 ;
int aa[n];
for(m=1;m<=n;m++)
{
sum=sum+n;
aa[m-1]=sum;
};
mm(n,aa[n]);
return 0;
};
void mm(int n,int aa[n])
{
int bb[n];
for(k=0;k<=n-1;k++)
{
if (k=n-1)
{
bb[n-1]=aa[n-1]+n-1;
cout<< aa[n-1]+n-1<
|
|
|
|
|
I really tryed to understand your code...but it is impossible!
Please, do not use names to function or to variable like aa bb n m mm k , but use something like sum that let the code be more readable:
youbo wrote: cin>>n;
What this used for?
What is your output?
be more detailed, ... the reason is that no-one will compile your code, everyone will try to find the error wimply reading it, so, let it be easy.
Russell
|
|
|
|
|
I am trying to create a dialog box which reads input from a *.txt file with the following format:
Item1 0
Item2 0
Item3 1
Item4 0
And the idea is that for each line a check box is created, where the caption is the word on the line and its initial status is either off (0) or on (1).
I have spent about 20 hours trying to develop a solution and have come up pretty much empty so far. Could someone please assist?
|
|
|
|