|
Sorry about my message not clearly.
I have 2 workspace: A & B
A contain 20 projects (.dsp)
B contain 10 projects (10 .dsp)
I want to integrate projects of B in to A, when I compile A will compile B. But B is a workspace (.dsw) so I can not insert a workspace in to a workspace.
My solution is: Add a new project (.dsp) in to A. When I select compile this new project, compiler will go to compile B (or all projects of B). Folder B is child of folder A
Do you have a suggest?
Thanks
Papais
|
|
|
|
|
dungpapai wrote: I want to integrate projects of B in to A
I think, you want to insert project from B to A.
dungpapai wrote: But B is a workspace (.dsw) so I can not insert a workspace in to a workspace.
But you can add all project from B to workspace A, isn't it ?
dungpapai wrote: Add a new project (.dsp) in to A. When I select compile this new project, compiler will go to compile B (or all projects of B).
Dependencies can be set among projects in same workspace.
|
|
|
|
|
prasad_som wrote: But you can add all project from B to workspace A, isn't it ?
If I add all projects from B to A then A is not clearly by have very many project in A. So I want to compile B through compile a project of A.
OR
How do you add a workspace (include it's projects) in to another workspace (not add each project).
Or How can I compile a workspace from compile another workspace?
Thank you all!
Papais
|
|
|
|
|
dungpapai wrote: How do you add a workspace (include it's projects) in to another workspace (not add each project).
Or How can I compile a workspace from compile another workspace?
No, its not possible.
|
|
|
|
|
Thanks and Best Regards - Prasad
Papais
|
|
|
|
|
|
Do mean icon ? What about this ?
ShellAbout(m_hWnd,L"Test Shell" ,L"OtherStuff",LoadIcon(AfxGetApp()->m_hInstance,MAKEINTRESOURCE(IDI_ICON1)));
|
|
|
|
|
Thank you very much ... I'll try it...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
Hi All..
I paint several lines in dialog using pDC->LineTo(a,b) (where: CDC *pDC = this->GetDC() )
After finish using it, I want to remove it from the screen and draw another things. How can I clear the dialog's DC? (of course, not by hide and show the dialog )
Thank you in advance...
ps. i'm too lazy too search the boards... so, it would be ok if you have the link to the same question in this board... ^^
-Houari
|
|
|
|
|
To clear a window...
Invalidate(TRUE);
UpdateWindow();
...will do it.
Or using the DC, erase the background yourself using PatBlt() or whatever.
Mark
-- modified at 0:36 Thursday 22nd February, 2007
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
Mark Salsbery wrote: To clear a window...
Invalidate(TRUE);
UpdateWindow();
...will do it.
It doesn't clear the window, is it ?
|
|
|
|
|
A window that erases its background normally, yes.
Transparent window no
Also I was assuming the OP's drawing wasn't done in WM_PAINT handler.
Bad assumption, bad answer
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
It works using Invalidate and updatewindow... thanks!
However, it seems that it does not work for the transparent dialog (using WS_EX_TRANSPARENT). The dialog becomes opaque if I use those function... Any idea?
Thanks!
-Houari
|
|
|
|
|
Then you'd need to redraw (or force to be redrawn) whatever is under the window.
Or whatever is under the drawing you want to erase.
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
hmm...
actually I make an application to mark something on top of a media player
so, the main window contains the media player activeX control, and I put transparent modeless dialog on top of it. I wonder how to redraw the player in main window...
-Houari
|
|
|
|
|
Check out the InvalidateRect() API to mark a window or windows to be repainted.
(Same API used by CWnd::Invalidate() from my original reply)
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
I have a workspace A and have many projects (about 25) in this workspace A.
I have created 10 new projects (dll project) and want to add in to A but I think workspace is not clearly. So , I don't add 10 new project but add a new project B in to this workspace A and when I compile B, compiler will jump to compile 10 new projects and I receive 10 dlls correlative.
please help me!
Papais `
|
|
|
|
|
dungpapai wrote: want to add in to A but I think workspace is not clearly.
What does this mean ?
dungpapai wrote: So , I don't add 10 new project but add a new project B in to this workspace A and when I compile B, compiler will jump to compile 10 new projects and I receive 10 dlls correlative.
please help me!
Does project B has dependencies set of those 10 projects ? but in that case, those projects should be in same workspace. Can you help us to understand problem in better way ?
|
|
|
|
|
I am trying to build MagickNet (http://midimick.com/magicknet/) and I am not very familiar with c++ but I got pretty far. I am using VS2005 c++ Express and the Platform SDK 2003 R2 is loaded an configured. I downloaded the source for this project and the source for the ImageMagic and GhostScript code to satisify any requirements that MagickNet needed.
I started this project by clicking on File -> New -> Project from existing code. I hacked away until I could right click on each cpp file and compile it with out errors. I have my configuration for a release build. I don't care for the debug because I only need the release version.
However when I try to build the project I get the following error:
------ Build started: Project: MagickNet, Configuration: Release Win32 ------
Compiling...
Stdafx.cpp
MagickOptions.cpp
MagickNet.cpp
MagickImages.cpp
MagickImage.cpp
MagickGeometry.cpp
MagickColor.cpp
AssemblyInfo.cpp
Linking...
LINK : fatal error LNK1104: cannot open file '.\Release\AssemblyInfo.obj'
Build log was saved at "file://c:\Documents and Settings\cjohnson\My Documents\Visual Studio 2005\Projects\MagickNet\Release\BuildLog.htm"
MagickNet - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I don't know much about VC++ but it seems like it is not creating the object files. If you need more info I can post off of my command parameters from VS2005 c++ express edition.
Can anyone help me please?
Thanks
|
|
|
|
|
If the file has been compiled, the .obj file should be there. Verify that it has been created and that it is located where the linker is looking for it. It's possible it's being output to a different directory after your 'hacking' of the configurations.
|
|
|
|
|
When i use the func GetWindowRect(), this only returns the current visible window's rect, but i want to get the all scrolling size in this window.(for example GetWindowRect() Get the rect's size is (400*300), but the actual scrolling size is (400*800)).How can i get this value?
|
|
|
|
|
What is a "scroll window"?
You can get info for the range of a scrollbar from the scrollbar itself with GetScrollInfo().
If you mean an MFC CScrollView() I believe you can use CScrollView::GetDeviceScrollSizes().
Mark
"Do you know what it's like to fall in the mud and get kicked... in the head... with an iron boot?
Of course you don't, no one does. It never happens. It's a dumb question... skip it."
|
|
|
|
|
This is new error for me, and MSDN has been less than helpfull on the matter.
bool D3DSpriteBatch::Add( D3DQuad* pQuad )
{
if ( find( m_liBatchQue.begin(), m_liBatchQue.end(), pQuad ) )
return false;
m_liBatchQue.push_back( pQuad );
return true;
}
where m_liBatchQue is an std::list< D3DQuad* > .
The error is
conditional expression of type 'std::list<_Ty>::_Iterator<_Secure_validation>' is illegal
|
|
|
|
|
Is your class a template? Can you show the declaration and definition of "m_liBatchQue"?
Steve
|
|
|
|
|
No, it's just a plain class.
declared as:
std::list< D3DQuad* > m_liBatchQue;
Just your average run of the mill std::list declared as a class member.
I should also note that D3DQuad is itself a standalone class. Well, it's more of a struct with a few ease of use methods.
class D3DQuad
{
D3DQuad( void );
~D3DQuad( void );
};
I have got around the issue by looping the list myself and comparing each member, but I can't understand why std::find is giving me this error. It's not the first time I have created a list of pointers and I have never had this trouble before.
|
|
|
|