|
I am trying to further my knowledge of Object Oriented Programming, and I have acknowledged that my main weakness in this area is the figuring out what objects I need, and how they should be designed.About the projects,what i have done,are all
three-layer.I am tired of it.
I want to fill this gap in my knowledge so I am looking for any suggestions from people who're familiar with OOD and have any recommendations.recommending book is very welcome!
Thanks in advance.
|
|
|
|
|
Hello!
I wood like a program for: "Simulation of a GSM network for communications mobile" - where computers substitute mobile devices.
This program should be writen in c language.
|
|
|
|
|
Well...Good luck!
BTW: this looks like homework and you should know we usually don't do homework. Try to solve your problem and ask specific questions when you find obstacles along your path.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
So funny.
Where is the question?
|
|
|
|
|
wood like a program???? dont get what you mean... i did something like that, but that is using java...
|
|
|
|
|
Hi All
how can i show message on Mouse right click event?Currently i am useing this code
CADlg::OnRButtonDown(UINT nFlags,CPoint point)
{
Afxmessage("Right Click");
..............
}
This message is showing only click on Application.But i want to show click any where in system.
Plz help me
|
|
|
|
|
Try calling SetCapture in OnInitDialog .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thanks for reply
Can you give some example link?
|
|
|
|
|
Davitor wrote: Can you give some example link?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
You may use a global mouse hook [^], for this.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Can any one give me example link of Mouse hooking? plz help me
|
|
|
|
|
See, for instance, this article [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks for reply.
Now my problem is solved
|
|
|
|
|
HI Guys ,
Iam new to c++ i want to read my .Pst file mails and print all then in a note pad or in console can any body help me out.
|
|
|
|
|
doubt this will work, try using getPathName() method and ShellExecute or Execute()
|
|
|
|
|
Easier said than done, especially if you're new to C++.
The way I'd normally suggest would be to use MAPI - this page[^] has some useful example C++ code, including loading a PST file.
This Codeproject article[^] also has code to extract data out of a PST file - it's written in VB.Net, rather than C++, though.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hey guys, I have created a button, called start Camera... Upon clicking the button, the computer will open the webcam(in a new window)...
Do any of u have an idea how do I do that? i know how to open using opencv, however, this is for my project, and my supervisor wants only Visual C++ for the time being, till cascade(which u probably dunno what is it) is completed... and I have to use Visual C++ to open the webcam instead of openCV... got any idea guys??? please help... thanks...
your help will be totally appreciated...
Edit/Delete Message
|
|
|
|
|
|
Hi, i am using ShellExecute to open an image. The image is opened using Windows Picture and Fax Viewer. Now, I have a button, in my dialog(the UI). I want to close the Windows Picture and Fax Viewer, got any idea? here's my code... please help. its kinda urgent... been stuck on this for 3 days... googled it, but nopthing relevant came out.
void CDesignDlg::OnImage()
{
// TODO: Add your control notification handler code here
CFileDialog m_ldFile(TRUE);
{
if ( ! onStart )
{
m_button.SetWindowText("Start Image");
}
else
{
m_button.SetWindowText("Stop Image");
}
onStart ^= 1; // make onStart 0, or 1 respectively
}
if (onStart==0){
if (m_ldFile.DoModal() ==IDOK)
{
CString abc= m_ldFile.GetPathName();
SHELLEXECUTEINFO tiff;
tiff.cbSize = sizeof(SHELLEXECUTEINFO);
tiff.fMask = NULL;
tiff.hwnd = NULL;
tiff.lpVerb = "open";
tiff.lpFile = abc;
tiff.lpParameters= NULL;
tiff.nShow = SW_SHOWNORMAL;
tiff.hInstApp = NULL;
tiff.lpIDList = NULL;
tiff.lpClass = NULL;
tiff.hkeyClass = NULL;
tiff.dwHotKey = NULL;
tiff.hIcon = NULL;
tiff.hProcess = NULL;
tiff.lpDirectory = NULL;
int ReturnCode = ::ShellExecuteEx(&tiff);
UpdateData(TRUE);
}}
else
{
//what should be put here???
}
}
|
|
|
|
|
I think killing the process might do the trick. To do this you need the process ID. One of the ways to obtain it is:
int ReturnCode = ::ShellExecuteEx(&tiff);
DWORD pid = GetProcessID(tiff.hProcess);
....
To kill the process call:
KillProcess( pid );
Let me know if this did the trick
|
|
|
|
|
NOPE... IT DOESNT... i get the following errors
c:\documents and settings\user\my documents\visual studio 2005\projects\design\designdlg.cpp(242) : error C2065: 'GetProcessID' : undeclared identifier
c:\documents and settings\user\my documents\visual studio 2005\projects\design\designdlg.cpp(245) : error C2065: 'KillProcess' : undeclared identifier
maybe you like to see the results... http://yfrog.com/11picture2mzjpx[^]
stop does go back to start when i click it, but picture doesnt close
|
|
|
|
|
Do you have the proper include's? Try:
#include Windows.h
or
#include Winbase.h
Also as CPallini suggests below, you can try sending a WM_CLOSE to the window... Yo get the handle from the ShellExecuteEx method (in tiff.hwnd)
|
|
|
|
|
WM_CLOSE to window.. for example? I tried, but keep getting different error, went to the library of SHELLEXECUTE, all said is optional for hwnd... so i cannot get any example... yup. i do have the proper includes...
|
|
|
|
|
Foret the hwnd - I was wrong anyway Getting back to GetProcessID:
Try reading about the function in MSDN - all the info is there.
If your includes are ok maybe you're missing a lib?
Did you link to Kernel32.dll?
Select your project propertied, go to Linker -> Input -> Additional Dependencies
And type in Kernel32.dll.
|
|
|
|
|
yup i know about the site... I am using Visual C++6 there is no additional dependencies there... i try puting it in object modules, but an error came out saying cannot open Kernel32.dll
|
|
|
|