|
Thanks, but I need a little more flexibility.
What I would love to have is a batch build builder. A dialog like the batch build one that would let me pick the projects and the order, and then save that as, say, the "Debug" build. Then I could create another order for the "Release" build.
I have a workspace with a dozen projects. Some are COM servers that register themselves during the build. I don't want to have a combination of debug and release servers running, so I want to be able to say "build me the debug version of everthing", or "build me the release/releaseMinDependency version of everything".
I started to write a little script that would use nmake or something to do the build, but I was just hoping that something would already exist.
Guess not, but thanks for the suggestions.
J
|
|
|
|
|
|
That's what I needed. I hadn't realized that the macro stuff was VBScript. I thought it was just keystrokes and stuff.
Thanks so much.
J
|
|
|
|
|
You might also want to look at setting dependencies among the projects (Project menu).
If you want to go the command line route, check out "Building a Project from the Command Line" in the MSDN.
VC5 required you to export make files and run nmake on em, but in VC6 you can call msdev directly. Kinda cool.
|
|
|
|
|
You can run MSDEV with the /MAKE switch to have it build projects in a workspace. See the page "Building a Project from the Command Line" in MSDN for the details. You can also run MSDEV /? to see help on the switches.
--Mike--
http://home.inreach.com/mdunn/
"....." -- Silent Bob
your with and
|
|
|
|
|
I am having trouble with the date and time data types when running my app on a machine in China where the regional settings are different. How do I change the regianl settings to North American style? or is there a better solution?
Please help.
|
|
|
|
|
Depends that you need.
I build Applications that runs in sevreal countrys with the same problem:
For example, In some countrys the people use dd/mm/yyyy but in US the common format is mm/dd/yyyy, I prefer that the people Enter the date, and I get the date, month, and Year. For this I use the COleDateTime class, That permit me make this. The class resolve the problem.
When I try to insert the data into a SQL Server, I use the format that I need. In other words I build the format date, from the variables of day, month and year.
But you can change the regional settingas, but Is not good for the user. If you are interesting in that please contact me.
Carlos Antollini.
today is Friday!!!!
SSShhh bob!!!
|
|
|
|
|
Changing the user's regional settings out from under them is a Very Bad Thing. The solution is to not hard-code your program for a particular time or date format. Use GetTimeFormat() and GetDateFormat() when displaying times/dates, and use the date/time picker common control when you need the user to enter a date/time.
--Mike--
http://home.inreach.com/mdunn/
"....." -- Silent Bob
your with and
|
|
|
|
|
thanks for your help.
|
|
|
|
|
i use ms access 2000 to create my own address book which contain first name, last name and phone number. Very stupid address book
Now i want to try to use Visual C++ to map the correspond table field on the visual C++ form on each edit box to allow me to look through the record, add and delete record which i already done it using ODBC database method. It is very easy to follow the tutorial in the MSDN in Student Registration tutorial.
Next, i wish to synchronize the address book by pressing a button on the form. I have one address book in school and one address book at home. I wish to synchronize them. Of course, not through the network. Anyone have any idea?
|
|
|
|
|
Here is some pseudo timer code which calls ProcessData() twice per minute.
MyClass::OnTimer(UINT TimerID)
{
if(TimerID == MyTimer) {
KillTimer(MyTimer);
if (new_data) {
ProcessData();
} } }
If ProcessData() is written as follows then after approximately three hours
it will no longer be able to Open() the database.
MyClass::ProcessData()
{
CDatabase myDB;
if (myDB.Open()) {
do something
}
myDB.Close();
}
If it is written this way it appears to work fine.
MyClass::ProcessData()
{
CDatabase *myDB = new CDatabase;
if (myDB->Open()) {
do something
}
myDB->Close();
delete myDB;
}
The CDatabase class I am using is the CADODatabase class from a database article here on CodeProject. The class destructor appears to be correctly written. Also, a colleague of mine wrote his own database class a few years ago and it exhibited the same problem.
Could running it in debug mode be part of the problem?
Any thoughts as to what is happening here would be appreciated...
>>>-----> MikeO
|
|
|
|
|
A possibility is that the do something part is corrupting the stack (maybe going out of bounds on a built-in array?) so that the myDB memory space results affected.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
If you are doing something as time consuming as opening/changing/closing a database every 30 seconds, wouldn't it save you processor time to have one constant connection to the datasource?
|
|
|
|
|
User helfen Usern - http://codingforum.dyns.cx
|
|
|
|
|
|
How do i change the IP address?
|
|
|
|
|
Can you be more specific? On which platform are you trying to do this?
Jon Sagara
"Oh Lisa, you and your lies. Bart's a vampire, beer kills brain cells. Let's go back to that building... thingy... where our beds... is."
|
|
|
|
|
|
Hello, the codegurus around the world.;)
On Windows 9x, we can use Winipcfg.exe /release and then /renew.
So, use CreateProcess function to run winipcfg.exe at the background.
I'm still looking for how we can do these by our own program.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
hi !!
i have a directory structure which i monitor using a File-Hook. now i don't want to allow creations or copying of directories in this directory structure. i can detect these events using the file hook.
now my question is:
HOW DO I UNDO THESE EVENTS??
i don't wanna delete these newly created/moved diretories coz user may have some data in it.
does anyone know how to do this??? then plz do help me...
|
|
|
|
|
Is it possible to find out the serial numbers of motherboard, graphic device, hard disk, RAM, and the others?
|
|
|
|
|
Yeah, unscrew them, take them out and hold them under a light.
Seriously, I don't think that info is electronically coded to the peripherals. Imagine how much more video cards would cost to make if they were also unique. The only peripheral I know like that is a Network card, that's why they used to be used to build GUID's.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Hard disks have a serial number, but I don't know any WinAPI call to read it. The ATA command IDENTIFY DEVICE or SCSI INQUIRY command will return the serial number information (among other info).
|
|
|
|
|
I know i make a fool of myself but i never heard of ATA
|
|
|
|
|
ATA = AT Attachment is the official name of the interface commonly called "IDE". The ATA standards are developed by NCITS T13
|
|
|
|