|
One solution is to override OnSize() in child window and update the parent window accordingly via MoveWindow() and SetWindowPos().
Kuphryn
|
|
|
|
|
I would like to make some sort of copy protection that only allows the software to run on one computer with the given registration key. First i thought that the user should send me the serial number of the c: drive, a number that my program would show and ask the user to send it to me and get a key in return, based on the serial number.
But the serial number can be changed by the user, or when formatting the drive.
Is there any other kind of serialnumber that i can find on every computer that can be the base for a registration key?
|
|
|
|
|
I know quite a lot about this subject and I have made a few of my own software protection schemes in general, im also good at cryptography, I have made a few basic implementations of what you are calling a "registration process" feel free to message me for help.
AIM: vethax0r or LiquidIceKnight
MSN: spartaucshaxor@hotmail.com
No, I dont use ICQ, dont email that hotmail address cuz I won't reply, and if I do you may not like the response.
- LiquidKnight
|
|
|
|
|
Get the ethernet ID number. I don't know how you can do that but I know that that would be a unique number that cannot be changed.
none
|
|
|
|
|
Yes, i'm sure that your right, it is unique. But i would guess that not everyone have a network card, or i can not assume that they have. It must be some sort of number that can be found on every computer.
The harddrive serial is good, if it only was the same all the time and didn't change after a format.
|
|
|
|
|
I have an application that includes a tabbed control (property sheet/pages) that I use to display groups of various parameters. When a parameter is updated, I'm planning to programmatically switch to the sheet with the new parameter, and somehow visually guide the user to the new value. Here's an example...
Bias Current: 200 Offset Voltage: .34 Power Level: 5db
If we assume that the Power level just changed to 6db, I'm considering switching to the sheet with Power Level, and displaying it as follows...
Bias Current: 200 Offset Voltage: .34 Power Level: [6db]
Where the bracketed value marks the new value.
Does anyone have a more visually appealing suggestion to perform this function?
Thanks...
|
|
|
|
|
I do not get it. If one of you parameters changed (Power level in your example) does it mean number of parameters change? Does that change applies that list of parameters changed as well (new parameters added, some of the old ones hidden)? If no, why do you need to bother with tab control, just change the values of Edit boxes (or static, whatever you are using)
|
|
|
|
|
We use memory mapped files to share data among a number of cooperating processes & are looking to replace this methodology with a light weight database. Performance is critical.
Was looking at couple of databases -
- ISAM based C-tree Plus database from FairCom
- Btrieve from Pervasive Software
Ideally would like the database to run on Windows & Solaris platforms. Does anyone have experience with the above databases & how would you rate them? Are there others that would fit the bill? Any pointers would be appreciated.
TIA
Chen Venkataraman
|
|
|
|
|
We used to use in memory database , TimesTen I think. When we switched to MS SQL server we improved performance ten fold.
|
|
|
|
|
Is there a Mfc or SDK function which enumerates (or returns) the file names or file titles in one directory?
|
|
|
|
|
Use FindFirstFile , FindNextFile and FindClose .
rechi
|
|
|
|
|
How to Rotate the Enhanced MetaFile Without using SetWorldTransform?
|
|
|
|
|
are you really going to ask this question every day?
-c
Be very, very careful what you put into that head, because you will never, ever get it out. --Thomas Cardinal Wolsey
|
|
|
|
|
TRy to understand myprob
I want the use in my app.Because I was posted several times
Don't angry on me
Sorry for the distrubence
|
|
|
|
|
First off, You need to use GDI+...
rect is a RectF containing the position of where to draw the metafile.
RotationXY is the rotation around the center of that rectange (in hundeths of a degree I think).
PointF destinationPoints[3];
PointF Origin;
destinationPoints[0].X = (float)rect->GetLeft();
destinationPoints[0].Y = (float)rect->GetTop();
destinationPoints[1].X = (float)rect->GetRight();
destinationPoints[1].Y = (float)rect->GetTop();
destinationPoints[2].X = (float)rect->GetLeft();
destinationPoints[2].Y = (float)rect->GetBottom();
destinationPoints[3].X = (float)rect->GetRight();
destinationPoints[3].Y = (float)rect->GetBottom();
Origin.X = (rect->GetLeft()) + ((rect->Width)/2.0f);
Origin.Y = (rect->GetTop()) + ((rect->Height)/2.0f);
RotatePoints( destinationPoints, Origin, RotationXY, 3 );
graphics.DrawImage(&metafile, destinationPoints, 3);
and here is the RotatePoints function...
RotatePoints(PointF *point, PointF origin, T_DWORD RotationXY, int count)
{
double x, y, rad, crad, srad;
#define PI (3.1415926535)
rad = RotationXY;
rad = (rad * 2.0 * 3.1415926535)/36000.0;
crad = cos( rad );
srad = sin( rad );
while( count > 0)
{
x = point->X - origin.X;
y = point->Y - origin.Y;
point->X = (float)(origin.X + ((x * crad) - (y * srad)));
point->Y = (float)(origin.Y + ((x * srad) + (y * crad)));
count--;
point++;
}
}
Blade[DMS]
|
|
|
|
|
Thanks for the reply,
I was unable use the GDI+.Pl give if another solution to this.
|
|
|
|
|
I'm afraid that is the only solution I have found which does not involve stepping through the metafile and modifying each record manually.
Blade[DMS]
|
|
|
|
|
Thank u for reply
I am trying modify of each record manually.If u r found pl help
Once again thanks for the reply
|
|
|
|
|
Hi!
Help me please. What is the value of DC_BUTTONS flag which is used for DrawCaption() func.
Regards,
Yura.
|
|
|
|
|
|
hello,
I can detect event on web page separately (KeyUp,Keydown,MouseMove,LbuttonDown...)
but i can't detect KEYDOWN + LBUTTONDOWN + MOUSEMOVE at the same time.
You know how can i do this?
THX
|
|
|
|
|
There's no function which informs you about all that events at once.
Thus one solution could be holding (static?) member variables for every state you're interested in. So when KeyDown occurs you set your variable to TRUE, on KeyUp to FALSE and so on. Then, on every event you catch, you test the state of your variables and react in a appropriate manner.
Otherwise you could test the state of keys / mouse buttons you're interested in inside your MouseMove handler.
If you don't need to catch the events inside the HTML page but for windows you can either use the standard WM_KEYUP of your window .... or set a hook to get information for all events of your current session.
|
|
|
|
|
ok i have already try the first solution, but it's works for 2 event not for 3.
i set my variable "m_ShiftPress " to TRUE when i detect KEYDOWN and i test its state when i detect LBUTTONDOWN and its works, and i set my variable "m_ShiftAndLButtonDown " to TRUE , but if i want to test its state in MOUSEMOVE event it's fail.
<code>BOOL CBrowserMDIView::PreTranslateMessage(MSG* pMsg)
{
if ( pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_SHIFT )
{
m_ShiftPress = TRUE;
}
if (pMsg->message == WM_LBUTTONDOWN )
{
if (m_ShiftPress == TRUE)
{
m_ShiftAndLButtonDown = TRUE;
}
}
if (pMsg->message == WM_MOUSEMOVE )
{
if (m_ShiftAndLButtonDown == TRUE)
{
AfxMessageBox("GOOD");
}
}</code>
The message "GOOD" appears only when i release the mouse left button.
With the standar OnLbuttonDown,OnKeyDown.... i detect never event.
there isn't another solution?
|
|
|
|
|
Really strange problem ....
but it just occured to me that the solution I told you is much to circuitous.
When receiving WM_MOUSEMOVE you can detect the state of both your shift key and the mouse button by evaluating wParam.
If wParam & MK_LBUTTON & MK_SHIFT is true, all preconditions you required are fullfilled.
|
|
|
|
|
Thx Schlaubi !
but i try your solution and that not works.
i think it detect MOUSEMOVE before detect LBUTTONDOWN and so LBUTTONDOWN is never called...
|
|
|
|