|
Only if you specified the dependencies (right-click on the solution and select 'Project Dependencies ...').
...cmk
Save the whales - collect the whole set
|
|
|
|
|
I am using Visual Studio 2003, and I can not find a Dependencies or something when I right click a project in Solution Explorer window. Which IDE are you using?
regards,
George
|
|
|
|
|
Yes, you can set the dependencies of various projects within a solution.
In VS8 bring up the "Solution Explorer" (Ctrl+Alt+L)
Right click on the solution, select "Properties" from the popup menu
Under "Common Properties" select "Project Depenencies"
Select the project from the "Project" combobox and select which projects it depends on from the list below.
VS6 and VS7 have the same functionality, but are probably found elsewhere in the IDE.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
Thank you PJ!
I have tried your method and it works! Cool!!!
regards,
George
|
|
|
|
|
Thanks from me too . I'll keep this in mind when I start to use VS8 .
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
This is probably the most challenging problem I have faced to date. I have read most of the parser related articles here on CP, downloaded and played with libraries such as boost::regex and spirit, but I am still uncertain. I feel these libraries have too much functionality for what I need, though spirit does come close.
Here's the problem. I am creating a game similar to a card game. This game has regional variations and alternate scoring schemes. I figured the best way to handle this is to place the regional details into an editable file (.xml). This way changes can be made to the gameplay without having to hardcode anything into the exe.
A winning hand compromises of 4 sets of 3 cards (either sequncial or identical) and one pair (identical). Higher scores may be achieved by building hard to find sets e.g. a run of 1D2D3D has a higher value than say 4D5D6D. (D being Diamonds and 1D being the lowest card).
Somehow I need to create a method of adding string representations of winning hands to an xml file, which in turn can be scanned by the exe and compared to the actual users hand. Simple hands like the example are of no problem, but writing a definition of a complicated hand causes trouble. For example, some regions only allow the use of two suits in the winning hand, hard to find cards always have higher values but sometimes a region may not use certain combination scoring.
Any help, suggestions or advice would be greatly appreciated with this one.
|
|
|
|
|
Please help me in my project.
#sanroop#
|
|
|
|
|
Your question has no answer. A CString is a string wrapper, the information it stores is the characters in the string. The control which renders the string ( well, actually, the device context into which the string is rendered ) is responsible for the font that's used to represent it. So, you probably need to look at the CFont class if you're drawing hte string yourself, and if you're assigning the string to a control, such as a window header, then you need to see if you can set a font on that control, or if you're going to need to owner draw the control to change the font.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I think you need to change font of a control not CString class
|
|
|
|
|
Thanque for u r reply ,but in mt priject i was stored the variable in Cstring that variable required to diasplay on message box in different font.Kindely give help me in my project.
#sanroop#
|
|
|
|
|
Don't you understand what Christian Graus told you?
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[ ]--
[My Current Status]
Link2006 wrote:Let's take it outside of CP
Jeremy : Please don't.I would love to see this.I'm making the popcorn already.
|
|
|
|
|
The CString does not contain font information.
BUT
you could use some markup language to tag your text, a little bit like what HTML is doing ..
BUT
you will need a control that can understand that markup language and then draw the string accoring to the different markups.
|
|
|
|
|
Here's something I did for a Dialog Box --- changing the font size and the font type. This was done in the Initializer of the class:
(m_Font is of type CFont() )
// create an Arial font of 11 pixels
m_Font.DeleteObject();
m_Font.CreatePointFont(160, _T("Arial"));
m_canx.SetFont(&m_Font);
m_ok.SetFont(&m_Font);
// set the font to be larger for all the controls on the verify page
GetDlgItem(IDC_TEXT1)->SetFont(&m_Font);
GetDlgItem(IDC_TEXT2)->SetFont(&m_Font);
GetDlgItem(IDOK)->SetFont(&m_Font);
GetDlgItem(IDCANCEL)->SetFont(&m_Font);
GetDlgItem(IDC_NOTICE)->SetFont(&m_Font);
This should help you figure out what to do for your code.
John P.
|
|
|
|
|
hi,
I have wrote a static function and i have declared static int variable in a class.initally i have set the value of variable to zero,in another function which is not static , i have incremented this varible by one,in the first static funtion ,i have written a if condition if(m_inCoun==1){do this };i have decremented the varible count by one ,in the if condition.When i compile the code i getting LNK1120:error..what could be the reason...?
Thanks in before
James
|
|
|
|
|
You need to declare the actual instance of the variable as well as declaring it in class. Typically this is done in the .cpp for the class:
so if the .h had
int m_inCoun;
the .cpp would have (at the top, before the implementation code)
int CYourClassName::m_inCoun = 0;
|
|
|
|
|
I created my own CPrintDialog that I called CMyPrintDialog and I modified it to just show the printers available. Then I added a help and an apply button. Now clicking the OK button works fine and it closes properly, but if I click on the close 'x' button or the Cancel button, I have to click twice before the dialog closes and if I call OnCancel() or OnClose() from the apply button, nothing happens. How do make my subclassed dialog drived from CPrintDialog close properly.
Roj
|
|
|
|
|
i am writing a FormView program. i want drag the window when LButton clicked in a rect of window, and moving the mouse.
i write my codes in OnLButtonUp, OnLButtonDown and OnMouseMove events. but its draging is very bad. please help me.
void CMyView::OnMouseMove(UINT nFlags, CPoint point) <br />
{<br />
if(m_bMoveWindow & ((nFlags & MK_LBUTTON) == MK_LBUTTON))<br />
{<br />
if(GetCapture() == this)<br />
{<br />
ShowWindow(SW_HIDE);<br />
<br />
m_framWnd->MoveForm((point.x - m_ixMove), (point.y - m_iyMove));<br />
<br />
ShowWindow(SW_SHOW);<br />
m_ixMove = point.x;<br />
m_iyMove = point.y;<br />
}<br />
}<br />
<br />
CFormView::OnMouseMove(nFlags, point);<br />
}<br />
<br />
void CMyView::OnLButtonDown(UINT nFlags, CPoint point) <br />
{<br />
if(IsPointToRect(point,CRect (0, 0, FORM_WIDTH-TITLE_BITMAP_SIZE, TITLE_BITMAP_SIZE)))<br />
{<br />
SetCapture();<br />
<br />
m_bMoveWindow = TRUE;<br />
m_ixMove = point.x;<br />
m_iyMove = point.y;<br />
}<br />
<br />
CFormView::OnLButtonDown(nFlags, point);<br />
}<br />
<br />
<br />
void CMyView::OnLButtonUp(UINT nFlags, CPoint point) <br />
{<br />
<br />
m_bMoveWindow = FALSE;<br />
<br />
if(GetCapture() == this)<br />
ReleaseCapture();<br />
<br />
CFormView::OnLButtonUp(nFlags, point);<br />
}
Zo.Naderi-Iran
|
|
|
|
|
Not knowing what MoveForm does, try removing:
m_ixMove = point.x;
m_iyMove = point.y;
from OnMouseMove and see what happens.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
MoveForm is a function that i define in CMainFrame class. in this function i call ::MoveWindow function.
Zo.Naderi-Iran
|
|
|
|
|
Thank you Steve!
i remove this 2 lines and i remove "ShowWindow(SW_HIDE);"
now my window moves very well.
Zo.Naderi-Iran
|
|
|
|
|
i'm writing a program which installs a hook to capture system messages, while capturing messages of top level keys (volume control keys of a multimedia keyboard) the system becomes stuck..the program works fine for all the other keys..me using windows XP sp2..
anybody pls gimme an answer...
|
|
|
|
|
Could some explain, in MFC, how I can display a dialog to the user of my program that the computer is working on something ie: "Loading", "Saving", "Calculating", etc.; so the user knows the computer is not FROZEN, etc.. When the Computer needs a reponse from the user then the Dialog will be removed automatically(when the computer is done doing whatever it was doing).
I really need some good examples(coding) to help me understand how to do this.
Thanks in advance for any help you can offer.
A C++ programming language novice, but striving to learn
|
|
|
|
|
|
Larry Mills wrote: automatically(when the computer is done doing whatever it was doing).
I really need some good examples(coding) to help me understand how to do this.
threading is key to ur solution
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And you
|
|
|
|
|
Can you explain - hopefully with an example. A Simple example will suffice.
Thanks!
A C++ programming language novice, but striving to learn
|
|
|
|