|
Brandon T. H. wrote: what am I doing wrong? Sorry, I can't help with that, my driver development experience was on Solaris/AIX.
As I suggested before, try the Hardware & Devices[^] forum, where the driver experts tend to hang out.
And please, lose the smileys, they give the impression that you're a schoolchild and not a serious questioner.
|
|
|
|
|
Brandon T. H. wrote:
(1.) What's a binary driver?
Well, as with all software, it is all ones and zeros by the time its able to run.
Brandon T. H. wrote: (2.) Is there a type
No. They are all different, either completely, or in part.
Brandon T. H. wrote: (3.) Can you stop a driver
On windows you can, dont know about linux/mac
|
|
|
|
|
Good thats what I wanted to know
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
Whats wrong? Dont like my advice? I have been writing windows kernel drivers for 14 years, my products have gone to war, have been advertised on TV, have had a third of the worlds market. And you cant even be bothered to respond to me when I give you the dogs?
Pah, why do I bother!
Anyway, if your device cant be stopped it will be because your PnP handling does not handle the remove device event.
Read, read, and read, the DDK. And start working at it. Its the only way you will learn.
|
|
|
|
|
I did, you had a clear answer, I just replied to Richard's because I was giving him hard details, and I was going through all this stuff for him, I obviously forgot, sorry bro.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
hello guys. If this is not the right forum then plz excuse me. These days I am trying to learn about core of big application development (plz excuse me if i am not using right terms). I went through different web sites but could not find out what is the difference between 'Software Architecture' and 'Software Design'. Any pointers are welcome. thnx
This world is going to explode due to international politics, SOON.
|
|
|
|
|
Poor man answer: the software architecture is the result of the software design activity.
Veni, vidi, vici.
|
|
|
|
|
This may be the theory, but I've found this to be a poor approach in praxis. Literally, what you describe corresponds to the 'waterfall' development process, which was proven unworkable for software development, long before anyone cared about the difference of SW Design and Architecture.
Without considering architecture you can only fully design the top level behaviour of the system. Architecture then helps you decide which parts will be covered by external libraries, which to develop your own libraries for, and which are going right into the main program. Then you'll again need Design to describe the required behaviour of each of these components. etc.
Note that modern software development porcesses do describe the creation of the individual parts of a program (including Design and Architecture) as an iterative process - exactly because you can't complete one without the other!
|
|
|
|
|
Using the following in google seemed to provide answers to that.
"architecture document" "design document"
|
|
|
|
|
Google or any other search engine of your choice may find you a more concise answer, but essentially, Architecture is more about the structure of a system (stuff the programmers need to know about), whereas Design is more about the behaviour of components, where components may be individual classes, entire libraries, or the entire system (i. e. what a user sees, rather than a programmer).
One way to create a new piece of software is to first design the behaviour of the entire system, then decide the required top-level architecture, then design the behaviour of each component, decide the sub-architecture of these, and so on. It's fairly impractical to completely separate Design from Architecture, so that's why the two are usually named in conjunction and assigned to the responsibility of just one person.
Personally I always found it impractical to use two terms for tasks that are virtually inseparable, but then nobody ever asked me
|
|
|
|
|
Hello,
I am developing an application which can be used for digitize a geographical map through GUI and mouse interaction. I am using C++ with wxWidgets and OpenGL Well, here are the list of objects that need to be created using mouse clicks.
1) Points
2) Polyline
3) Polygon
4) Rectangle/Square
5) Ellipse/Circle
6) Text
Can any one guide me what will be the best design which can be used to store the data(objects) more efficiently? So that both accessing objects and rendering them will be easier and faster? I have started with Composite Design pattern to store the objects and Visitor Design pattern to render these objects.
http://en.wikipedia.org/wiki/Composite_pattern
http://en.wikipedia.org/wiki/Visitor_pattern
But everytime rendering is done sequentially. Will not this take more time if the number of objects increases? Can anyone suggest me any other technique better and more efficient technique?
Thanks in advance
Regards
|
|
|
|
|
I think it would be useful to adopt a behavior pattern
|
|
|
|
|
You mean behavioral design patterns? If yes, then Visitor is a behavioral design pattern only.
|
|
|
|
|
Here[^] is a good sample ...
|
|
|
|
|
Thanks for that link. Definitely it will be of some use for me.
|
|
|
|
|
That example uses GUI's own graphics context. And I am using OpenGL. So, it won't work with OpenGL.
Thanks anyways
|
|
|
|
|
why the output of program come as 65486, 65486??
Can anyone explain ????
int main()
{
int arr[] = {12, 14, 15, 23, 45};
printf("%u, %u\n", arr, &arr);
return 0;
}
|
|
|
|
|
|
Pointer name will give the base address of the array. Hence arr( pointer name ) and &arr both will point to the same address.
|
|
|
|
|
i have create Docking Dialog with CDialog
CDialogBar m_wndDlgBar;
in preCreateWindow
if (!m_wndDlgBar.Create(this, IDD_COMMAND_WINDOW,
WS_CHILD | WS_VISIBLE | CBRS_BOTTOM|CBRS_TOOLTIPS|CBRS_GRIPPER |CBRS_FLYBY| CBRS_SIZE_DYNAMIC, IDD_COMMAND_WINDOW))
{
TRACE0("Failed to create DlgBar\n");
return -1; }
m_wndDlgBar.EnableDocking (CBRS_ALIGN_BOTTOM );
EnableDocking(CBRS_ALIGN_BOTTOM );
DockControlBar(&m_wndDlgBar);
it Work fine. it display dialog with no error. but it does not give any event.
i have create Class ClsCommandWindow for IDD_COMMAND_WINDOW. in IDD_CCOMMAND_WINDOW i put 2 EditBox and one Button, one of Edit Box apply from Class CMyEdit because i have to use onChar Event.
now the DialogBar display dialog from it ID(IDD_CCOMMAND_WINDOW). with no use of Class. because it is not using class any event from that dialog box does not work.
When i TRACE ("%i\n",nChar); on OnChar it just did nothing.
please some one help me on this how to get event form that dialog box.
Thanks
Amrit
|
|
|
|
|
You need to subclass the dialog so that it can get events.
Sunil
|
|
|
|
|
Compound types, by definition, are types that are derived from other basic types. Right?
In my opinion, pointers, with their unique representation( * and &), must be classificated as a fundamental type.
Am I wrong?
|
|
|
|
|
sawerr wrote: Compound types, by definition
Interestingly, Bjarne Stroustrup does not provide a definition in his glossary of C++[^].
|
|
|
|
|
A pointer is not a type.
Otherwise you would be able to create it this way - * p;
|
|
|
|
|
Since a pointer is a memory address its type if you lie is actually its size, and hence is the same as the bit ness of the OS, 32 or 64, 4 or 8.
However, and this is where it gets interesting, when you increment a pointer the address increases by the size of the declared type. So a char pointer goes up by one byte, a DWORD pointer by 4 and so on.
|
|
|
|