|
|
Thanks for the links
I'll take it that an edition other than the express edition is required to compile 64-bit applications then. Thats no problem, it will just have to wait until I get my free copy (from uni ) of visual studio '08
|
|
|
|
|
when ever i build my project in VC6.0 , i get a message as follows :
C:\ProgramFiles\XXX\YYY\MyProjectName.plg
This File has been modified outside the source editor.Do you want to reload it?
What is a .plg file and why is my compiler asking for reload ?
Thanks in advance.
Anandi
|
|
|
|
|
Anandi.VC wrote: This File has been modified outside the source editor.Do you want to reload it?
This is because you have kept the "MyProjectName.plg" opened in the IDE window.
Take "Window->Close All" menu item in the VC++ IDE.
|
|
|
|
|
Thank u Naveen. i did as u instructed and got rid of the message to reload it.
but for what purpose the compiler uses a .plg file ??
Anandi
|
|
|
|
|
.plg file is the compilation build log.
it will write all the verbose commands of compiler and linker information.
have a look on .plg you will get more information.
|
|
|
|
|
Thank u for the Info ERLN !!
Anandi
|
|
|
|
|
I wrote a c++ and cyristal report application and embeded all cyristal report resources to application exe file. This exe can be run on computer with visual studio but i want to run this application without visual studio. What do i need to run this application on my computer? Cyristal report engine or what else? Thanks.
|
|
|
|
|
CWinThrd *pThrd;
...
pThrd=AfxBeginThread(ThrdFunc,pData);
pThrd->m_bAutoDelete=FALSE;
Is it possible that the thread completed before
pThrd->m_bAutoDelete=FALSE;
is executed.
|
|
|
|
|
followait wrote: Is it possible that the thread completed before
It may happen( its upto OS ). How ever if you change the code as follows, it will be thread safe.
CWinThread *pThrd = AfxBeginThread( ThrdFunc,pData, THREAD_PRIORITY_NORMAL,0, CREATE_SUSPENDED );<br />
pThrd->m_bAutoDelete=FALSE;<br />
pThrd->ResumeThread();
|
|
|
|
|
I had seen many codes that is used to draw Lines, circles etc, but i like to plot a x,y point in my screen. Can any one please tell me the function to draw a point in screen.
Is it needed to convert the point to System coordinates???
Proud To Be an Indian
|
|
|
|
|
You can use the CDC::Ellipse function for that.
vivekphlp wrote: Is it needed to convert the point to System coordinates???
What do you mean by that ? What is System coordinates ? Are you drawing some kind of chart ? If yes, then of course you need to make a conversion between the point value and the position on the screen (this relation is done using the axes of your chart). You can also take a look at my sig, I developped such a chart control, so it might be usefull for you.
|
|
|
|
|
I have a CPoint & would like to draw that point on my screen.
How can i convert my points to system coordinates.
Proud To Be an Indian
|
|
|
|
|
Replying to my question would help a lot to answer yours
|
|
|
|
|
I have a point say (x,y) i just want to draw it in my window.. just to see where that point is. .
Proud To Be an Indian
|
|
|
|
|
What's this conversion you're talking about then ?
When you are drawing on a window, all the coordinates are relative to the upper-left corner of the client area of your window.
|
|
|
|
|
If you use a window device context then pixel coords are relative to the top-left corner of that window client area.
On the other hand, if you use a screen device context (for instance via GetDC(NULL) ) then the pixel coords are relative to top-left corner of the screen.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
|
I think SetPixel wil change the color of the specified pixel.
Proud To Be an Indian
|
|
|
|
|
If the point that you want to draw have a dimension of only one pixel, then changing the color of the specified pixel( say to black color ) will make that pixel to appear as a point isnt it?
if the diameter of the point you want is more than a pixel, you have to follow the way mentioned by Cedric Moonen.
|
|
|
|
|
Hi,
I have HWND of window. How can I terminate the process using HWND?
|
|
|
|
|
pther wrote: How can I terminate the process
Although you can get the process id of window and call TerminateProcess() function, i dont recommand using it.
If the HWND is HANDLE to the main window of that application, seding a WM_CLOSE message will terminate the process.
|
|
|
|
|
But this methos is giving exception after closing the application so couls you tell me like Treminate process using HWND
|
|
|
|
|
Well, then you should fix the problem. Is it one of your application that crashes ?
TerminateProcess will kill the process in a brutal way, sending a WM_CLOSE message is much elegant because it lets the application do some clean-up before exiting.
|
|
|
|
|
pther wrote: Treminate process using HWND
1. GetWindowThreadProcessId() to get the process ID.
2. With this process id callOpenProcess() function with PROCESS_TERMINATE access.
3. Call TerminateProcess().
|
|
|
|