|
This program has many subfolders and I found a makefile.in in the folder, but there are a lot of makefile.in in others subfolders too. And in the folder Include, who contains the header files I found a config.h.in and a Makefile.common.in
|
|
|
|
|
There should be a README (or some other file that explain how to build that ) file somewhere that you can read to help you.
or maybe, if memory serves me well, you could do a "make makefile " where there is a makefile.in; and it should generate the makefiles for the project.
|
|
|
|
|
There should be a script called "configure" in the source directory, and running it creates the Makefile.
|
|
|
|
|
I will be very greatfull if you could tell me how to run it, because I dont know anything about cygwin
|
|
|
|
|
You could try compiling under windows, just select WIN32 Console application, add all your c files to the project, and compile.
It may work of the program has no unix specific calls. If not, you need to install the GCC compiler. Google cygwin to get the files.
|
|
|
|
|
Hi, I still haven't seen a super-quick/easy (and I'm sure there must be one based on subject matter) example of using a timer to have a time/date static text control updating, say once per second. Can anyone point me in the right direction. I'm sure it's just a case of using some timer class (though where to put it/set it up?), and having a function that's called by that which can access your static controls.
thanks in advance
|
|
|
|
|
Use CWnd::SetTimer to start a timer say for per minute and within its handler call CTime::GetCurrentTime and set the returned date onto your static control.
--
======
Arman
|
|
|
|
|
Hi,
i try to help you...
In your view/dialog/frame class you declare a
<br />
UINT_PTR MyTimer
and a Handler to the Event :
afx_msg void OnTimer(UINT_PTR nIDEvent);
in the .cpp
you link the Event with the handler in the MESSAGE_MAP :
ON_WM_TIMER()
your code for the handler :
<br />
void xxx::OnTimer(UINT_PTR nIDEvent)<br />
{<br />
if(nIDEvent == 5)<br />
{<br />
KillTimer(MyTimer);
}<br />
}
and a function which starts/initializes your timer :
void xxx::InitMyTimer(void)<br />
{<br />
MyTimer = SetTimer(5,100,NULL);<br />
}
Good luck
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
ho i am getting crash often in DoDataExchange(CDataExchange* pDX); i declared as DDX_Control(pDX, IDC_DOWNLOAD_PROGRESS, m_Prog); whats wrong with this code.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Hi,
the code seems correct.
Check if your control on the Dialog has the ID "IDC_DOWNLOAD_PROGRESS"
And you have a valid CProgress variable m_Prog in your Dialog/View class.
Greetings
|
|
|
|
|
yes i checked both are correct. i am getting crash in release mode.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
and in Debug-Mode all is okay?
is your CProgress a member or a pointer to CProgress?
|
|
|
|
|
its pointer to CProgress
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
I suppose that the pointer is allocated before the OnInitialUpdate(before the DDX_Control is executed)
I think you need to debug and step into the functions and look where the error occurs.
you have already a long code? If not so, you can post some pieces
|
|
|
|
|
Dear All
I am in the process of writing one real time program which reads and writes data to and from Parallel port of computer.
Some times I see that CPU usage on my computer goes high and My program cannot read data from port and loss of data occures.
I set my process and thread priority of program as high as possible.
but it is apparant that some times windows OS does not priority of program and give CPU to other processes.
I dont know what is the reason of this High CPU usage on computer.
But if you know What is the source of that and how we can make our computer protected against this problem please let me know.
Regards
Monhi
|
|
|
|
|
Use Real Time OS (RTOS).
Regards,
Paresh.
|
|
|
|
|
how can I download or access this operating system.
Regards
|
|
|
|
|
m_monhi wrote: how can...
By searching for one. For example, VenturCom produces a RTOS. Mentor also produces one. Others.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm sceptical about you needing a RTOS. Modern PCs running standard Windows should be capable of
handling parallel port transfer rates using very little CPU, even with standard priority threads.
I'd look into your design a bit. Are you sitting in a loop on a thread somewhere?
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
I agree Mark.
He's probably using non-overlapped I/O burning a considerable amount of MIPS waiting on a read operation to timeout blocking write operations, or the other way around, with loss of data as consequence.
Manipulating the thread priorities will usually make the problem worse.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Roger Stoltz wrote: He's probably using non-overlapped I/O burning a considerable amount of MIPS waiting
on a read operation to timeout blocking write operations, or the other way around, with
loss of data as consequence.
Manipulating the thread priorities will usually make the problem worse.
Yeah that's what I meant Well stated!!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
How to load bitmap and also given text format display on left or right in bitmap in VC++?
Vijayan
|
|
|
|
|
Do you have a bitmap as a resource or a .bmp file ? Could you please be specific ?
Regards,
Paresh.
|
|
|
|
|
If you have a bitmap on resource use of CBitmap but if its a file use of LoadImage and for show it you can use of WM_ERASEBKGND
|
|
|
|