|
Ehm, if I don't remember wrong you just move/copy them to the Windows directory of that computer you want the files in.
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
You can also use installshield.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I'm allowing a user to enter data in a wizard, and I want to confirm their intention if they are to click on Cancel. One would think overriding OnCancel, popping up a message box, and then NOT calling the base class method if the user did not intend to quit would be sufficient to keep the property sheet from closing... but this is not the case. Simply return'ing instead of calling the base class method closes the dialog anyway.
Is there a way to return to the property sheet? I know something similar can be done with CDialog, which is why the property sheet is confusing.
Here is the code:
void CPageFieldSelection::OnCancel()
{
int result = MessageBox("Are you sure you want to exit?"...);
if (result != IDYES)
return;
CPropertyPage::OnCancel();
}
The return closes the dialog, as does the CPropertyPage::OnCancel().
Any help would be appreciated.
- Rob
|
|
|
|
|
Override CPropertyPage::OnQueryCancel() - that's where you can cancel the cancel operation.
--Mike--
"Jobs that don't allow you to visit the Lounge 25 times a day at the minimum are not worth having anyway."
-- Nish, 3/28/2002
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan and Jamie Salé.
|
|
|
|
|
Hello all,
I am working on line tracker class that works for multiple lines like just as CMultiRectTracker works for rectangles.
When I am finished I will release it for all to learn from, and it is working except for this.
Anyway, my trig is rusty (very), and I need to know how I can determine if a point clicked is within x pixels of a give line. This is to select the line to work with.
Given two line endpoints (P1x, P1y), (P2x, P2y), and mouse position (X, Y) how can I do this?
Thanks a lot!
Xenos
|
|
|
|
|
Shirish Shanbhag provides a drop-in routine here.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello,
I was wondering if there was a way to pass a "HANDLE" from a client's window to a dll in ATL?
I have tried adding "HANDLE" as a parameter,but it didn't work. Is there a different way to approach this problem?
Thanks in advance.
|
|
|
|
|
you could try a Long, since in Win32 a HANDLE is a void*, and a void* is a pointer. and pointers are 32 bits long, just like a long.
-c
"Do you mind if I smoke?"
"Madam, I don't care if you burn."
-Oscar Wilde
Smaller Animals Software, Inc.
|
|
|
|
|
Thanks for the idea!
It worked!
|
|
|
|
|
Hello
I want to create a function that compares two words (char*) and returns a percentile representing how much the two string are identical.
I have some problems making the function perfect and I was wonderig if someone can tell me if there's an algorithm that do that or have some code already written.
Thank you very much.
Eric
|
|
|
|
|
Eric Moisan wrote:
how much the two string are identical
Can you define what this means? Is it as simple as how much of the strings (starting from the first char) are identical?
If so, just loop from the beginning of each string until you find 2 chars that aren't the same. The progress divided by the length (of one of the strings) should give you your answer.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Maybe i'm not perfectly clear.
My function does exactly what you told me. I loop from the begining of each strings until I find 2 chars that aren't the same. But if I have the words "Hello" and "ello", I don't want to have a value of 0% since the two words are pretty identicals.
Thanks for the answer.
P.S. I like your sentence..."There is always one more bug..."
Eric
|
|
|
|
|
if u want this,just consider the tokens..on Substring....
and if the substring found substringlength/main strin length *100 give the percentage
strstr()
strtok()
and many other bulilt in routines here for it..
Hai Friends me from Pandalam..and i think there is a sofware behind everything...
so enjoy with the codes...
|
|
|
|
|
char str1[MAX_PATH],str2[MAX_PATH];
strcpy(str1,"HELLO");
strcpy(str2,"HALLO");
int nLen=strlen(str1);//or which string u want to compare
int nTotalMatchedChars=0;
for(int i=0;i
|
|
|
|
|
Not quite. This will return a match value of zero for these 2 very similar strings: "abcd" and "bcd".
The algorithm should return the length of the longest same substring present on both strings. The "similarity" factor would be the length of the substring divided by the length of the longer string.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
The algorithm should return the length of the longest same substring present on both strings. The "similarity" factor would be the length of the substring divided by the length of the longer string.
So "abcd" and "lbcd" would be more similar than "abcd" and "acbd"?
That sounds wrong...
(the first pair has a three character substring in common, but the second pair has only one character substrings in common. I personally would not consider the first pair to be three times as similar as the second pair.)
|
|
|
|
|
How could I get information about system performance (System Meter utility of Windows 9x), like free resource, free RAM, used RAM, processor use ...
Anyone knows some class or function in VC6 ?
Thanks,
Cris ...
|
|
|
|
|
hi friend
here is an Function GetSytemInfo()
and the argument u sulply is address of SYSTEM_INFO structure..
like SYSTEM_INFO sInfo;
GetSytemInfo(&sInfo);
u can get the processor type,the pagesize(yaaa..!! it is the VirtualAlloc() Used..),Pointer to the lowest memory address accessible to applications and dynamic-link libraries (DLLs) etc....
try it...
Hai Friends me from Pandalam..and i think there is a sofware behind everything...
so enjoy with the codes...
|
|
|
|
|
hey friend
the spelling Mistake..!!!
GetSystemInfo() not GetSytemInfo()
i missed a 's' Sorry...!!
RRenjith
Hai Friends me from Pandalam..and i think there is a sofware behind everything...
so enjoy with the codes...
|
|
|
|
|
Having created a dialog application with MFC in Visual C++6, is it possible to attach a small database to it?
|
|
|
|
|
See this article.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
That's perfect! Thanks a million.
|
|
|
|
|
what's the easiest way of getting the timestamp of a file using VC++/MFC. i am using CStdioFile.
any help would be appreciated!!!
thanks!!
|
|
|
|
|
CFile::GetStatus()
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thanks!!
|
|
|
|