|
ya it do make sense...
thanks it solved my problem
|
|
|
|
|
Hi ,
I developed an VC application which communicates with my hardware
with baudrate 1,15200.
I observered that my application takes much time to transfer the data,
when compared to Hyperterminal.(probably 10 times)
Is it because of my coding problems or problem with windows application?
Do I need to do optimization.But still i dont think i can increase the speed,
by almost 10 times.
Why hyperterminal is taking lesser time?
Please clarify.
Regards,
Sunil Kumar
|
|
|
|
|
You are most likely using non-overlapped mode.
The consequence of this is that the driver only handles one IRP at a time.
This means that if you've issued a read request with a call to ::ReadFile() , the driver will be "blocked" until the read request times out and a write request can be handled. How long time it takes depends on how you've set up the comm timeouts with a call to ::SetCommTimeouts() .
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
yeah, im using non overlapped mode only.
I read that overlapped mode will have many overheads.
Which mode is efficient??
Regards,
Sunil Kumar
|
|
|
|
|
sunilkumar.d wrote: I read that overlapped mode will have many overheads.
What kind of overhead and what would be the impact?
Forget about that. There might be some kind of overhead in theory, but in practice this overhead is presumably in the nano-/micro-second scale. Compared to calls that block for many milliseconds or even seconds, the possible overhead that is added by the use of overlapped I/O is ridiculously small.
In short: to be efficient you have to use overlapped mode.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
how to get Operating system name programmatically c++
and get installed office version
|
|
|
|
|
|
Actualy i want the name of os installed.
|
|
|
|
|
Does this page[^] help??
Regards,
Sandip.
|
|
|
|
|
Thanx sandy.
I just got it in msdn
but is there any other method to get that?
|
|
|
|
|
There's sample code if you follow the link provided to you earlier...
Getting the System Version[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
onlyjaypatel wrote: Actualy i want the name of os installed.
You must be able to make that out from OSVERSIONINFOEX[^] structure that you pass on to GetVersionEx(). Please search for examples.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Thanx dear.
I just got it in msdn
but is there any other method to get that
|
|
|
|
|
use WMI
Win32_OperatingSystem
how to use WMI in CPP you can find in MSDN
|
|
|
|
|
My HD has ckt board damaged and may be motor is
also demaged is there any method to get data from HD plates
Can i put plates in another HD and get it?
Thanx
|
|
|
|
|
Please do not do this! [^]
Regards,
Sandip.
|
|
|
|
|
i have one vc++ project.I want to create linux executable from that vc++ project.how i do that.
|
|
|
|
|
Depends a lot of what you are doing with your sources. Is it a GUI application done with MFC ? If yes, then forget about it, MFC is windows specific.
If it is a console application and if you are using only standard C++ stuff, then you would need a specific compiler to compile for linux.
Converting existing code into cross-platform code is not trivial, it is best to take that into account directly before starting to code (and to take care of using only standard functions or to make sure that the correct versions of functions are called depending of the platform, using some #define).
|
|
|
|
|
i want to change default icon of "MFC"
i want to show my own icon on each dialog
how can i do this
my icon ID is IDR_MAINFRAME
|
|
|
|
|
i want to change default icon of "MFC"
i want to show my own icon on each dialog
how can i do this
my icon ID is IDR_MAINFRAME
|
|
|
|
|
You must be load your icon with LoadIcon and then use of SetIcon.
|
|
|
|
|
Open your <<FileName>>.rc file (in view code mode) and rename the icon name with your own icon name. In order to do this,look for IDR_MAINFRAME in that file.The path of the default MFC Icon would be res\\<<File_Name>>.ico. Change the path to your need and copy the new icon into that particular path.
Regards,
Rane
modified on Tuesday, September 2, 2008 4:51 AM
|
|
|
|
|
Hi,
I am confused about nested structure in c. I define a structure inside a another structure. But I am not able to allocate memmry to nested structre variable;
Code is
struct student
{
struct student *sd;
int rollno ;
struct classroom
{
int marks;
struct classroom *claas ;
};
struct classroom *croom;
};
struct student *stud = new student();
stud->croom = new student :: classroom();
I have allocated memory to classroom object using c++ method but how this can happen in c programming
efhghgfffhf
|
|
|
|
|
Not sourcecode only in executeable form ..
like in my visual c++ project i m using different header files that need to be placed in include directory of visual studio so how to run application in any system (where visual studio is not installed)
|
|
|
|
|
You would need atleast the framework for .NET to be installed if not the Visual Studio if you are using .NET API's.
You will need a installer project where you can include all the files that are to be copied on to the target machine and specify the desired locations where installation should put your files.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|