|
|
I want to save the scene of a process to the disk so I can restore the process to the scene later.
1. How to save the scene to the disk? I think if to save the scene to the disk, I must write the whole process address space to the disk. Is that realizable? Or there is more effective way to save the scene?
2. If the scene of the process had been saved to the disk, is there any way to restore the process to the scene?
---- thanks and over
//////////////////////////////
|
|
|
|
|
Can you be more specific whats the meaning of scene
|
|
|
|
|
Hi,
In my program I have some data as a const BYTE* called lpData. However I need to covert this to an LPCSTR. How can I do this?
Thanks in advance
Steve
|
|
|
|
|
an LPCSTR is already a pointer to Ansi C-style string, so, a pointer to a BYTEs array...
just cast.
|
|
|
|
|
See here[^]if its good for you
|
|
|
|
|
Thanks, I used reinterprt_cast in the end.
|
|
|
|
|
Hi Friends,
I am working on one Image processing application where I am capturing the Image of the circular object and by edge detection I am getting the periphery of that circular object.
Now I want to find out the radius of the same circular object, can any body guide me how to find the radius of the circle.
Regards,
Dinesh.
|
|
|
|
|
this is more a math question.
if you know the periphery length (let's call it P ), then you can do this :
P = 2 * pi * r
r = P / ( 2 * pi)
with r beeing your radius
|
|
|
|
|
|
dinesh_IP wrote: I am getting the periphery
Unlike tox, with that I understand that you have access to the points representing the circle on the screen. If you really have the periphery length, then have a look at his post.
If you have "captured" a set of points defining the circle, simply look for min and max coordinates in each direction (let's call them xmin,xmax,ymin and ymax), then :
radius = (xmax - xmin)/2 or = (ymax - ymin)/2 (both values should be the same).
center point of the circle is (xmin + radius, ymin +radius), for instance.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
I want to develop a grid control application.Dont have any idea abt grids so far.
If anybody can,pls help.
Thanks and Regards,
Shibu.
-- modified at 5:36 Monday 21st August, 2006
|
|
|
|
|
shibumong wrote: a grid control application
What is exactly a grid control application ? An app that uses a grid control ?
If you want a good grid control, take a look at this article[^]
|
|
|
|
|
|
I am trying to create a UDP connection using the CSocket class. The code I have so far is this:
<br />
CSocket sock;<br />
<br />
if (!sock.Create(0, SOCK_DGRAM, NULL))<br />
{<br />
<br />
GetSocketError();
return -1;<br />
<br />
}
<br />
<br />
if(!sock.Bind((UINT)4200, _T("127.0.0.1")))<br />
{<br />
<br />
GetSocketError();
return -1; <br />
<br />
}
<br />
<br />
The call to Create() works without a problem but when I try to bind to the port and address I get an "Invalid Argument (10022)" error.
Any suggestions?
Thanks.
|
|
|
|
|
Did u see what does error 10022 mean?
KIRAN PINJARLA
|
|
|
|
|
Yes... it's an "Invalid Argument" error:
WSAEINVAL
(10022)
Invalid argument.
Some invalid argument was supplied (for example, specifying an invalid level to the
setsockopt function). In some instances, it also refers to the current state of the socket - for
instance, calling accept on a socket that is not listening.
|
|
|
|
|
masnu wrote: if(!sock.Bind((UINT)4200, _T("127.0.0.1")))
why dont you try with NULL as the second parameter?
|
|
|
|
|
I did. Same error occurs.
|
|
|
|
|
Hi,
What required to run an application, which is coded in Microsoft Visual Studio 2005 VC++, on other system without Microsoft Visual Studio 2005 installed?
Regards,
Aniket
|
|
|
|
|
That depends - does it use MFC ? Does it use the C standard library ? Is it statically linked ? Does it use the .NET framework ? Basically, there is a merge module that has all the stuff you may have used, apart from the .NET framework, and because of WinSXS, you need to use that anyhow, you can't just ship dlls anymore.
Actually, it's an exe, and it's called vcredist_x86.exe. There are merge modules you can use instead, your choice, depending on how you distribute your app.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: it's an exe, and it's called vcredist_x86.exe.
I installed "vcredist_x86.exe" on other PC & then try to run my application. But same error occurs. I have also installed "Microsoft .NET Framework Version 1.1 Redistributable Package" on that PC.
What might be the problem?
|
|
|
|
|
Aniket Salunkhe wrote: But same error occurs
You realise I told you every possible thing because you've not told me what the error is, so I'm guessing, right ?
Aniket Salunkhe wrote: I have also installed "Microsoft .NET Framework Version 1.1 Redistributable Package" on that PC.
Why ?
Aniket Salunkhe wrote: .Net VC++ 2005
That'd be .NET 2.0. 1.1 is useless to you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: you've not told me what the error is
error is : "This application has failed to start because application configuration is incorrect. Reinstalling application may fix the problem"
|
|
|
|
|
Does this program use .NET ? It sounds more like a manifest problem. Could the program have other dependencies ? What does it do ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|