473,471 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

invoking progressbar in another cpp file

3 New Member
how to use a progressbar in a one cpp file but defined in another header file.
the function in which i am using is a static member function. how to use the progressbar inside the function


code:
file name : flash.cpp
void CFlasher::OnStartDownload (void *pDublicate)
{
bValueRet = DeviceIoControl (hHandle, \
(DWORD) IOCTL_SCUSBDFU_DETACH, NULL, \
0, NULL, 0, &dwBytesReturned, NULL);

HERE I HAVE TO USE THE PROGRESSBAR

}
file name : form.h
progressbar is defined in this header file

please kindly give me the solution for this
Mar 27 '08 #1
4 2487
weaknessforcats
9,208 Recognized Expert Moderator Expert
Just #include the header file that has the function prototype of the functions you want to call. Then make sure both .cpp files are compiled and linked.
Mar 27 '08 #2
sivamoorthy
3 New Member
i already included the #include form.h in the .cpp file where i want to use the progressbar.both compiled and linked.
Mar 28 '08 #3
weaknessforcats
9,208 Recognized Expert Moderator Expert
What's in the form.h?

Usually, you incude the header file at the beginning of the .cpp file and then call functions that are prototyped in that header file later on.

Simply including the header file at a preciose location will not call any functions.
Mar 28 '08 #4
sivamoorthy
3 New Member
thanz for ur kind reply. i understood the problem and retified it
Mar 31 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Anand K Rayudu | last post by:
Hi I have extended/embedded python into my application, it is working great, The documentation is too good, I could replace existing scripting tool to python in no time. I have one problem...
3
by: Steve Teeples | last post by:
Is there a way for code from one class of C# to send a communication to a progressbar in another class to update the bar during runtime? -- Steve
1
by: | last post by:
Hi all I am posting this to check if anyone could help me. The problem still persists. I am beginner in C#. Thanks. Subject: SQLDMO.Backup and ProgressBar - help please From: ...
3
by: Rene Sørensen | last post by:
Hi Is there a way to show text in/over a progressbar (like using a label with transparent background? Which hasn't worked for me, BTW)??? Rene
8
by: needin4mation | last post by:
Please consider: foreach (ListViewItem item in listViewFiles.Items) { // Display the ProgressBar control. pBar1.Visible = true; // Set Minimum to 1 to represent the first file being copied....
1
by: Mehr H | last post by:
I've been trying to figure out how i can embed a Windows.Forms.ProgressBar in my webform (aspx) file. I have tried putting a Windows.Forms.ProgressBar as public on a regular winform designer form...
3
by: parthivjoshi | last post by:
Do anyone have the idea how to add progressbar to the existing HTTPModule and HTTPApplication for File Upload. ********************************************************************** Sent via...
6
by: JB | last post by:
Hi All, I have a Windows Form application that shows a "please wait" form while I query a database for various information. I display my form using Show, then run my DB query, then Close the...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.