|
Hi everybody,
i use the SourceForge Project "Console", it's an application which starts new processes and
"redirect the display of the startet programm into a view"
Keystrokes were send via Message WM_KEYDOWN, that works fine.
I need to start my own Win32-DOS-Application into this application, but the Mouse-clicks
won't work ( even if i send the correct messages )
I found a strange solution: i send a Key "46" to the DOS-application there in, the Key-Code 46
performs a simulated Mouse-Click via CURSES.
It also works, but i need to specify the coordinates of the click.
Therefor i need GetWindowRect, to determine where the DOS-Applic is ...
In a normal DOS Application i get the Window-Handle via FindWindow for example, which works
But in the Console-Project, the process runs "without a Frame/ConsoleFrame"
Big big thanks for any help
|
|
|
|
|
You can install a message hook which is able to catch mouse messages and consequently mouse coordinates.
|
|
|
|
|
hai,
any one pls tell me, is ther any difference in range of value can be stored the following two variables..
int a ;
long b ;
|
|
|
|
|
Ya,
int data type can store 4 bytes of integer, i.e, 2^32 = 4294967296 numbers. half of it +ve and half of it -ve.
long data type can store 8 bytes of integer, i.e, 2^64 = 18446744073709551616 numbers. half of it +ve and half of it -ve.
That's it.
After modification:
I mean to say that Range for int is: -(2^32)/2 to +(2^32)/2 - 1.
Range for long is: -(2^64)/2 to +(2^64)/2 - 1.
-- modified at 7:19 Wednesday 1st August, 2007
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
This is not strictly correct.
An int must be 'at least' 16bits (2 bytes) in size but can be 4 or more.
A long must be 'at least' 32bits (4 bytes) in size.
Also,
sizeof(unsigned long) = sizeof(long)
and
sizeof(unsigned int) = sizeof(int)
Range:
int -32767 - 32767 (Assuming 2 byte int, else –2,147,483,648 to 2,147,483,647 for 4 byte int)
unsigned int 0 - 65535 (Assuming 2 byte int, else 4,294,967,295 for 4 byte int)
long –2,147,483,648 to 2,147,483,647
unsigned long 0 - 4,294,967,295
regards,
-- modified at 7:29 Wednesday 1st August, 2007
Added range information.
|
|
|
|
|
Thanks for correction.
Anurag Gandhi.
http://www.softgandhi.co.nr
|
|
|
|
|
Jonathan [Darka] wrote: This is not strictly correct.
An int must be 'at least' 16bits (2 bytes) in size but can be 4 or more.
A long must be 'at least' 32bits (4 bytes) in size.
That's not correct either.
An int only has to be larger or equal to the size of a short int.
A long only has to be larger or equal to the size of an int.
The actual size is entirely compiler specific.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The standard defines a *minimum* size for these variables. In Visual C++, they are both the same size.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
With Visual Studio, check the limits.h file.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I made MDI application and added my classes from other projects.
Now, i have to add some functions in my classes.But i cannot find the classes in class wizard under ClassName ListBox.
I can see only project generated classes(Mainfrm,app,doc,view,chilfrm)thats all.
How can i add my classes in class wizard. I think automatically its get added in class wizard.
Why the problem occurs?
Anu
|
|
|
|
|
You might have to let ClassWizard rebuild the ClassWizard database. Close the project, find and delete the .clw file for the project (its in the same directory as the source files), open the project, open ClassWizard from the View menu. You will see a message box saying the ClassWizard database does not exist, answer yes, in the dialog box that opens next you may need to add/remove files from the listbox Files in project, then click OK.
|
|
|
|
|
Yes, I did like that. I got classes.Thank u.
Anu
|
|
|
|
|
|
We can understand your problems
1 - you can't understand your book
2 - you can't use google
3 - you can't understand clear advice.
None of this is our fault. We're trying to help, but you're refusing to listen, or to consider the mores of this group, some of which are common to all websites ( like, don't flood the forum with your repeated requests )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Could this guy maybe just be a troll?
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
dona jain wrote: i hav read book many times but not able to implement them practically
That says more about your ability than any lack of help from toxcct, who incidentally tried to help you. Your question was too generic, "Please help me learn how ?" when you can't follow a simple book or spend a little time on google.
The best way to learn any aspect of programming is to try it, understanding any errors you get and thinking things though is far more usful to you than someome just telling you.
If you can't be polite when you post on the Code Project site, then don't post here at all.
|
|
|
|
|
you stupid idiot cannot speak english (no, SMS is not english) and you don't enven listen at what i said to you... W(hy)TF should i listen to you anymore ?
BTW: you've been marked abusive, poor dork
|
|
|
|
|
Why don't you tell us how you really feel, Tox?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
sincerely ?
pretty fine
...'cause it seems that i wasn't alone that time
|
|
|
|
|
toxcct wrote: for u..read it ..toxcct
Famouse Tox!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Your extreme behaviour has inspired some extreme responses, but the truth is, we're all here because we like to help people. The issue here is the manner in which you've asked, what you've asked, and how you've responded to good advice. I seriously doubt you 'know C++ well', unless you've come from *nix or something, you obviously know nothing about Windows programming ( GDI is the subsystem that handles all drawing in Windows, you can't write a Windows program without using it ). That's fine, but you should do some things if you really want help
1 - pick the right forum. You said C++ .NET, if you meant that, this is the wrong forum, the C++/CLI forum is for that. Having said that, C# is a better .NET language and easy to pick up from C++. Also, more people use it, so more support. This forum is for MFC/C++, which is still a better C++ option, in my book.
2 - ask clear, specific questions. Try to research things first. You plainly don't have a book on forms, and you plainly haven't played with the IDE, or you'd have found the designer that allows you to design forms, for .NET, or for MFC. Asking this sort of question shows you've done nothing to find your own answer, which doesn't make people want to help, it suggests you're not willing to learn for yourself.
3 - when people ask you for more information, or tell you that your question is too broad, respond with grace. You're still getting free help, and it seems you need it.
I sincerely hope you find a way to recover from this first experience, and benefit from the use of this site.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i apologise for my behaviour sir...but i was at a condition that i cannot explain...anyways sorry for my behaviour...thanx for your consideration.
|
|
|
|
|
Like I said, we really do want to help, I recommend considering this a lesson learned, and trying to use the site again in a day or so, when everyone has forgotten this episode. It's really a great resource, and we really are here to try and help you.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
there's no need to delete a post i replied to, to just reask it exactly the same way 1 minute later...
I gave you advices[^]. it's up to you to follow them or not, but don't expect more from the community then.
one last thing. "help" is not a correct subject for a question.
ps: you've got my '1' !
|
|
|
|
|