|
Garth J Lancaster wrote:
, using the Visual Studio automation interface to read project settings
Don't waste you're time on this. The automation interface is pretty stupid, and one of the many things you can NOT do is enumerate all the project's files (or if you can I have yet to figure it out - now watch, you'll be undaunted by this and figure it out in 15 minutes making me look like an idiot!). You can enumerate all the windows that are open, but this is not very useful.
If all you want is basic project settings from the configuration, you can get this info. Look at the IConfiguration interface for this
But if you really want to deal with what files are in the project, then you'll have to write/hack/cobble together some little parser to read in the dsp file.
Cheers
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
|
|
|
|
|
Yeah, Jim is right, you'll have to hack together a DSP parser. Trust me, it sux. There's some classes which can give you a start on this, in my article:
http://www.codeproject.com/useritems/includefinder.asp
The classes you may be interested in will be in DSObjects.h, DSObjects.cpp, VC6Objects.h, and VC6Objects.cpp.
They are very far from perfect (and only interpret some of the compiler settings), but like I said, it's a start. If you were working with VC7, you'd be in a lot better shape to accomplish this task.
Chris Richardson
C/C++ Include Finder[^]
|
|
|
|
|
Many thanks - went back to your article, and its a ripper - I didnt connect 'how' you found the files, I took (without checking the details) the naive opinion that 'he probably found all the '.h, .cpp etc' files from a directory list and then parsed & mapped them'
your solution is much better ...
roll on the day I get VC7 at work !!!!
'G'
|
|
|
|
|
Garth J Lancaster wrote:
My aim is to be able to dump out a projects settings - compile and link options etc so that they can be compared to a reference (read working) project.
Why can't you just compare the master .dsp with the current one?
I've got some basic code to read the list of files in a .dsp which Chris Richardson has used in his C/C++ Include Finder. See his post. I assume Chris's code will be more usefull as I assume he's built extra stuff on top of what I sent him, and made some nice classes.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Neville,
Has it ever been pointed out that the url name "getsoft.com" perhaps conveys the wrong idea ?
Just wonderin'
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
|
|
|
|
|
Jim Crafton wrote:
Has it ever been pointed out that the url name "getsoft.com" perhaps conveys the wrong idea ?
Hi Jim,
Well not really, however my company name "Soft As It Gets' causes no end of frivolity, especially when you are talking to people who don't know we write computer software.;) When they ask what we do, I always ask them "what do you think we do?". Lots of fun.
Like many things in life this company name wasn't planned, and wasn't one we really wanted, but in hindsight it couldn't be better.
PS. I did have someone approach me to buy the URL getsoft.com a few years back.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
Neville Franks wrote:
Why can't you just compare the master .dsp with the current one?
yes, for a base I guess, if they had the same origins, I guess 'Beyond Compare' or even Windiff would show differences - but its also an interpretational problem, in the context that I'd break down the meaning of the compile/link settings and show what the meant, rather than a line like :-
/nologo /MDd /W3 /Gm /Gx /ZI /Od /D"WIN32" /D"_DEBUG" .. yada yada
I'd say what /Gm, /Gx actually did .. and, Windiff etc will point out that
/nologo /MDd /W3 /Gm /Gx /ZI /Od /D"WIN32" /D"_DEBUG"
is different from
/nologo /MDd /W3 /GY /Gx /ZI /Od /D"WIN32" /D"_DEBUG"
(note the /Gm -> /GY), but it wont 'interpret' the difference
'G'
|
|
|
|
|
Many Thanks to Jim/Neville/Chris for your helpfull comments - I did see the 'include finder' but didnt connect the dots - I also saw a post where someone thanked Neville for his code on the subject, and I could have phoned him (being in Australia as well), but thats not the spirit of CP ..
If I eventually manage to turn out something useful, I'll post it back here, could take some time but !!
cheers fella's
Garth
|
|
|
|
|
Cool, best of luck to ya . Your project sounds very interesting (read: cool), and I'm looking forward to taking a look at it when you finish it.
Thanks,
Chris Richardson
C/C++ Include Finder[^]
|
|
|
|
|
I am looking for some advice/help on how to implement some code that is very tightly integrated with the windows explorer.
In windows XP, Microsoft implemented a “Compressed (Zipped) Folder” for .zip files. This is exactly what I want to do but for a proprietary file format. I would like to reuse as much MS code as possible so that I don’t have to re-implement all kinds of functions.
I would like a call-back function when a file is added to the sudo folder and a call-back function when a file is removed (or read) from the sudo folder. Everything else should behave exactly as if it were a regular folder.
Thank you in advance for your help.
Paul Faure
|
|
|
|
|
look into Mike Dunns Shell Extensions for Dummies articles. You probably want a Shell Namespace extension. This is what MS does for this kind of thing.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
|
|
|
|
|
As far as I can tell, that works for fixed folders... Like the c:\winnt\fonts\ folder, or the printer folder...
I want to associate my folders with a single file that can move around and even be transfered to another system.
|
|
|
|
|
I think you can still do this, it's just more complex. Again, look through Mike's articles, and perhaps write him an email.
Alternately you can send me a $1,000,000 USD (into my Cayman Islands account please), and I'll write it for you !
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
|
|
|
|
|
Hi guys...
How I want to convert the *.raw image data to 24 bits of *.bmp image file in WinCE environment
;);P ((
:_Rocket_:
|
|
|
|
|
first, find the specs for the .RAW format.
(i'm not sure you'll find one)
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
A spec for RAW can be found at www.wotsit.org[^]
Also http://www.xnview.com [^]does have a freeware "DOS" image converted that as a last resort you may be able to use. It also has some libraries you may be able to use.
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Here is a major question which has been bugging me for some time. I was watching a video about Doom 3 from www.nvidia.com and it showed John Carmack using some compiler. I am wondering, what compilers do professional game programmers use?
|
|
|
|
|
MASM
?
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
what is MASM? where do i get it?
|
|
|
|
|
it's an assembler.
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
Since Doom3 will be cross-platform (PC, XBox, PS2) they'll use VC7, gc++, etc.
Todd Smith
|
|
|
|
|
I don't know about VC7, I don't really see Doom 3 being written in C#. Most likely a mix of good old C++ and ASM code, prolly several different compilers depending on plateform.
C# a poor attempt at bringing C++ to the VB masses
|
|
|
|
|
ROK_RShadow wrote:
I don't know about VC7, I don't really see Doom 3 being written in C#.
What in the hell does VC7 have to do with C# ? VC = Visual C++.
ROK_RShadow wrote:
C# a poor attempt at bringing C++ to the VB masses
C# is a tool. A bad tool for writing games, but that isn't what it is for.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
|
|
|
|
|
ROK_RShadow wrote:
C# a poor attempt at bringing C++ to the VB masses
You obviously never worked with people that have to code, but are more than coders.
If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
[sighist] | [Agile Programming] [doxygen]
|
|
|
|
|
hello,
i have problem with my application ,because my application must give the handel and name in the titlebare of the windows who was active ,
but it give me only the name on the title bar of my application.
i can't find the problem can you helm me
'code'
#include<windows.h>
#include"resource.h"
#include<winuser.h>
char Buffer[256];
int CALLBACK EnumWindowsProc(HWND handel, LPARAM lparam);
HWND handel;
int CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch(Msg)
{
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_BOUTON:
EnumWindows(&EnumWindowsProc,lParam);
return TRUE;
}
return FALSE;
case WM_CLOSE:
DestroyWindow(hWnd);
return TRUE;
}
return FALSE;
}
BOOL CALLBACK EnumWindowsProc(HWND handel,LPARAM lParam)
{
if( IsWindowVisible(handel) /*|| IsIconic(hWnd)*/)
//You try to keep the condition IsIconic & check the different
{
//------- Show handle & Caption of windows---
GetWindowText(handel, Buffer, 256);
if(strlen(Buffer)== 0 )
strcat(Buffer , "Empty");
//printf("%d\t%s\n",hwnd,Buffer);
SetDlgItemText(handel,IDC_EDIT1,Buffer);
//-------------------------------------------
}
return true;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR cmdLine, int)
{
return DialogBox(hInstance,(LPCTSTR)IDD_MAIN,NULL,(DLGPROC)DlgProc);
}
'code'
|
|
|
|
|