|
CharlieG wrote:
is VSS really this sensitive?
Yep[^] (<edit: <a="" href="http://www.highprogrammer.com/alan/windev/sourcesafe.html" rel="nofollow">this[^] is the link i was originally looking for).
Here's a quote I once heard from someone who works at Microsoft:
"Visual SourceSafe? It would be safer to print out all your code,
run it through a shredder, and set it on fire."
I use Perforce which is excellent and free for up to two users. Otherwise, Subversion (which is the next incarnation of CVS and apparently fixes a number of serious issues) sounds good.
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
VSS is a terrible thing to use if you might lose your connection.
If you *need* it, then consider adding a remoting plug-in -- SourceOffSite. Uses the SourceSafe database, yet it's remote-safe.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<A HREF="http://www.santacruznetworks.com">Santa Cruz Networks</A>
|
|
|
|
|
CharlieG wrote:
I cannot afford my code repository being corrupted every time a command or operation is interrupted
Could you use a local repository, and simply copy the whole thing up to the network once you've done with it? If the network connection fails during the copy, just copy it again. Of course, this is a *really* bad idea if you aren't the only one using the repository.
CharlieG wrote:
Is this product actually stable enough?
Yes, if you have a reliable network. We've used it for 10 years, and had one (minor) corruption. Didn't use the repair facility, just the usual server backups, so I can't comment on the effectiveness of the Analyze utility.
CharlieG wrote:
VSS still uses 8.3 names? Give me a break...
Well:
1) It's an internal, proprietary database. Why do you care how it's stored? 8.3 is good, not bad. It means you can put your VSS database on a file server that doesn't support long filenames (should you have to).
2) Take a look in the SYSTEM32 directory of your XP machine, and list all the Windows system files that are not in 8.3 format. It won't take long...
|
|
|
|
|
Working backwards:
8.3 names - fair enough.
Internal proprietary database - you might be reaching here . As important as source control is,
I would expect something like failsafe recovery and 2-phase commit.
Reliable network - depends on the phase of the moon - seriously, I have received emails announcing a server reboot in 1 minute.
If you are unfortunate enough to walk away from your computer when the email comes in, oh well.... oopsie.
My concern is that it didn't take much for VSS to go south. Maybe I *am* overreacting... but, I just don't have enough
mileage on VSS to make a qualified judgement. MS did it's own FUD on VSS for me.
Local repository - if it was just me, I would do this in a heartbeat, but I have a few others that access the source code.
Reasonable idea though.
regards,
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
Now maybe I depart from reality or enter the zone of wishful thinking.
I just read about Perforce - appears that I need a server. The less infrastructure the better.
I will admit that I like my repository as a file based system - it's simpler. Perhaps I'm
asking for mutually exclusive features.
Subversion: interesting, but still requires a server.
Am I stuck with having to go as a server? Can I run Perforce as a local application?
C. Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
|
|
|
|
|
hi,
can anyone tell how to display images in the browser with the help of CHttpServer and CHtmlStream classes when i use them in an ISAPI extension dll. i have the name of the image file and i want to display the image in the same browser window.(i.e. when i click the get button)
thanks
aditya
|
|
|
|
|
Hi, I am writing a program where I need to keep a dozen modeless dialogs in a specific z-order (Dlg1 is always behind Dlg2, which is always behind 3, etc..) This concept is similar to layers in powerpoint or photoshop except I want to do it with dialog windows.
First I set up an int array which indexed the order I wanted (so 3,2,4,1 would be Dlg3 behind Dlg2...) Then I set up on all the dialogs:
SetWindowPos(prevWnd, x,y,0,0 SWP_NOSIZE|SWP_NOACTIVATE);
where prevWnd is found by looking up the id in the array.
However, this does not work as when I click on a dialog, it always activates the dialog I clicked on and move its z-order in unexpected ways. (So I don't even know what SWP_NOACTIVATE does exactly.)
I tried using the SWP_NOZORDER style within the Dialog class but then the dialog is always brought to the foreground if I click on it.
How would I write a z-order manager that will always "lock" my dialog windows in a specific z-order?
Also a very simple question, what does the pWndInsertAfter in the SetWindowPos mean exactly? Is the pwia in FRONT or in BACK of the target window? because it always seem to change in my program. Thanks!
|
|
|
|
|
pWndInsertAfter tells windows what z-order position a windows should have. I'm sure you know programs where you can select that the main window should stay in the foreground. That's ment by pWndInsertAfter.
Don't try it, just do it!
|
|
|
|
|
Hello,
I have a program that sends keys (words to be exact) to Excel or Notepad. I'm currently using SendInput() which works fine except on some computers. For example two identical machines running XP with Office 2003 could result in one working with my program and the other not. So this is a mystery to me. One problem is that my program loses focus (or rather sets the focus to the target application) yet in Microsoft's On-Screen Keyboard application which also sends keys to a target program the program never has the focus. Does anyone know how this can be achieved? Also has anyone had any similar experiences with SendInput() or sending keys to another program?
Any help/advice in this matter is greatly appreciated.
Thank you,
Al
|
|
|
|
|
Use SendMessage(..., WM_CHAR...) instead as it is not affected by the target window losing focus.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
Thank you David, I'll give it a shot. But I'm still mystified as to how Microsoft manages not to get the focus on their On-Screen Keyboard application. I wonder if they're using SendMessage(..., WM_CHAR...) as well.
Al
|
|
|
|
|
al_in_the_city wrote:
I wonder if they're using SendMessage(..., WM_CHAR...) as well.
Use Spy++ to find out.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I think the keyboard sends untranslated messages...
Don't try it, just do it!
|
|
|
|
|
|
Without using Doc/View facilities, I want that before printing i can preview first on the screen my printing.
What to do ?
I am using Visual C++ 6.0
I learn my self
|
|
|
|
|
How can I send my printing to outlook for sending it to someone by e-mail.
Thanks
I learn My self
|
|
|
|
|
See here for examples of CDO, MAPI, and SMTP.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
I can I send my printing to outlook for sending it to someone by e-mail.
Thanks
I learn My self
|
|
|
|
|
???
Don't try it, just do it!
|
|
|
|
|
Thanks for your Help, because i have printed for my first time.
But I have a problem, same things on my dialog are dimmed, like page from ... to ..., selection . Why ?
I learn My self
|
|
|
|
|
mikobi wrote:
But I have a problem, same things on my dialog are dimmed, like page from ... to ..., selection . Why ?
Because they have been disabled. To enable them, use EnableWindow(TRUE) .
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
This my print fonction, it is still dimmed, what o do again ?
void CMainFrame::Onlit()
{
// TODO: Add your command handler code here
CDC dc;
CPrintDialog printdlg(false);
if(printdlg.DoModal() == IDCANCEL)
return;
printdlg.EnableWindow(true);
HDC hdcprinter = printdlg.GetPrinterDC();
dc.Attach(hdcprinter);
DEVMODE *MyPrintMode;
MyPrintMode = printdlg.GetDevMode();
dc.CreateDC(printdlg.GetDriverName(), // Ignored for Printer DC's
printdlg.GetDeviceName(), // The only required item for Printer DC's
printdlg.GetPortName(), // Ignored for Printer DC's
MyPrintMode);
DOCINFO docinfo;
::memset(&docinfo,0,sizeof(docinfo));
docinfo.cbSize = sizeof(docinfo);
docinfo.lpszDocName = _T("lits");
bool bprintingOK = dc.StartDoc(&docinfo);
CPrintInfo Info;
Info.m_rectDraw.SetRect(0,0,dc.GetDeviceCaps(HORZRES),dc.GetDeviceCaps(VERTRES));
if (bprintingOK < 0)
{
AfxMessageBox("L'Imprimante n'est pas initialisée");
}
else
{
if (dc.StartPage()<0)
{
AfxMessageBox(" Ne peut démarrer la page");
dc.AbortDoc();
}
else
{
dc.SetMapMode(MM_TEXT);
// dc.TextOut(Info.m_rectDraw.left ,Info.m_rectDraw.right , _T("Hello World"),12);
dc.TextOut(500,50, _T("Richard Mikobi Mingambengele"));
dc.EndPage() ;
dc.EndDoc();
GlobalUnlock(MyPrintMode);
}
}
}
I learn my self
|
|
|
|
|
mikobi wrote:
This my print fonction, it is still dimmed...
How can a function be dimmed? Please explain.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
It is not the function that is dimmed but my printing dialog options from ... to... and select
|
|
|
|
|
Hi,
I need a utility that displays all the colors that you get from GetSysColor. There must be some simple freeware app somewhere that just does this for you!?!
Joel Holdsworth
|
|
|
|