|
ritz1234 wrote: Can we write program that runs on MAC OS using c++?
Of course.
BTW: Why don't you try Google to find out relavant info? For instance, a quick search gave me this page [^].
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]
|
|
|
|
|
YES,
Xcode is Apple's premiere development environment for Mac OS X
its not automactically included in all Mac OS , to check if its installed goto Terminal application and enter g++ , if it replies application not found goto http://developer.apple.com
Vikas Amin
My First Article on CP" Virtual Serail Port "[^]
modified on Thursday, July 24, 2008 5:33 PM
|
|
|
|
|
I am calling void SearchDialog::OnSearchBtn() from a thread. The error flashes @ statement UpdateData(TRUE);
The instruction at "0x00000000" referenced memory at "0x00000000". The memory could not be "read".
Please advice
class SeachDialog
{
....
....
protected:
// Generated message map functions
//{{AFX_MSG(AssetSearchDialog)
static afx_msg void OnSearchBtn();
....
static UINT StartWorkingThread (LPVOID param);
....
typedef struct THREADSTRUCT //structure for passing to the controlling function
{
SearchDialog* _this;
} THREADSTRUCT;
.....
....
}
UINT SearchDialog::StartWorkingThread (LPVOID param)
{
THREADSTRUCT* ts = (THREADSTRUCT*)param;
ts->_this->OnSearchBtn();
...
...
}
void SearchDialog::OnSearchBtn()
{
UpdateData(TRUE); // RUN TIME ERROR...
..
}
|
|
|
|
|
You can't calls things like UpdateData from within a thread. MFC classes should not be shared across threads and you shouldn't access anything on the UI from your thread.
Instead, you should (if I understood what you are trying to do) start the thread when the user presses the 'search' button and pass all the relevant information to the thread, so that it doesn't need to query it from the UI.
|
|
|
|
|
More specifically, the dialog box window likely hasn't been initialized at the time you called OnSearchBtn().
In addition to the previous solution, you could send a user message to the dialog box from the thread. I'm doing that in an application I'm working on right now.
In OnSearchBtn(), you should wrap the function contents in if (GetSafeHwnd()) {} to ensure it's only called when the window is valid.
(As a small note; to prevent problems in my current application I don't start the worker thread until the dialog box has been created. I do this by setting a short timer in OnInitDialog().)
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hello,
i wrote a sample code using MDI. I want to use dialog as mainwindow child.(CMainframe child). But when i create dialog and call it. it is not displayed as child dialog. if i change dialog properties to child then i am not able to move child dialog.
Jalsa
|
|
|
|
|
jalsa G wrote: I want to use dialog as mainwindow child
Why don't you use a CFormView [^] instead?
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]
|
|
|
|
|
hi
I want to create a dialog whose upper left cornor is rounded and right lower cornor is Rounded and other Cornor is Rectangle . I do not want to create this with the help of Image(bitmap) .
So pls help me and I am very thank fulto you if you provide any link or application Example .
Thanks in advance.
dabara
|
|
|
|
|
What about using CP 's article search engine [^]?
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]
|
|
|
|
|
i already Search in Codeproject But I can not get any useful artical which is fullfil my Requirment . So i write on the forum.
dabara
|
|
|
|
|
pls check which type of Dialog Cornor I want .
http://www.codeguru.com/forum/showthread.php?p=1746588#post1746588
dabara
|
|
|
|
|
Dabara wrote: which type of Dialog Cornor I want .
http://www.codeguru.com/forum/showthread.php?p=1746588#post1746588
You don't have to use a bitmap. Paint the background of the
window however you want to.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
How to update the remote machine registry ?
I am having a server and i want to configure the client by updating or modifying before starting up the application in client.
I know the IPaddr and host name of the client.
|
|
|
|
|
From MSDN:
"The RegConnectRegistry function establishes a connection to a predefined registry handle on another computer. "
|
|
|
|
|
Hi all..
I am trying to connect to sharepoint....
I have made a dll and calling that dll through command line exe...
when i run my exe in server computer its working fine..
But if i run the exe from different computer i.e client computer it is not working...whether i have to make any environment changes...if yes...please help me..
thank you
manju
Hi..
I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++
manju
|
|
|
|
|
Hi
I have a ListBox( CListCtrl) with vertical scroll bar
I painted Gradient blue color on the CListCtrl View
in ON_WM_ERASEBKGND() handler
Now the problem is when i scroll the list ... the gradient color goes for toss and looks patchy
I attached the image in code guru ( i donno how to attach in here)
http://www.codeguru.com/forum/showthread.php?p=1746548#post1746548[^]
I am manifesting windows common controls 6
Is there any solution
Any body has got any idea?
Please help me out
Thanx a lot
|
|
|
|
|
Try to Erase Back Ground while moving the vertical scrollbar.
I mean to say on mouse move while handeling the vertical scrool bar erase the Back Ground as earlier.
|
|
|
|
|
thanx for the reply
i will try that but
one more update
no mater wether its ListCtrl view r normal dialog box
same issue happnd when i scroll ...... gradient color gets Discarded
now scroll bar is not part of the dialog
but i am moving up and down when i scroll the scroll bar
|
|
|
|
|
I want to implement a recorder just like the windows recorder,however, what I want is only the sound strength but not the wav file recorded. How could I do?
|
|
|
|
|
As you're capturing audio samples, you can iterate through
blocks of samples to find the peak amplitude. You could use
a progress bar to show the level or draw it some other way.
I personally use a variable that the audio capture thread updates as
samples are captured. A periodic timer (on the UI thread) takes care
of rendering the level.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi Experts,
How can I do the following programatically :
1. Open Recycle Bin
2. Empty Recycle Bin
3. Open Disk Cleaner Wizard
4. Open Disk Management
5. Open Fileserver Management
|
|
|
|
|
|
with some mouse clicks. (left and right button clicks)
This signature was proudly tested on animals.
|
|
|
|
|
I was walking through "Window's in a Box"(sic) with a debugger (OllyDbg) the other week and noticed that all of the commands were viewable with very little effort. It's a VB program, but even still, it gives hints as to which .msc file you need to open.
4. Open Disk Management
ShellExecute(NULL, "open", "explorer.exe", "c:\\windows\\system32\\diskmgmt.msc", NULL, SW_SHOWNORMAL);
It'd be better if the drive letter and system dir weren't hardcoded, but you can't simply substitute c:\\windows\\ with %windir% unfortunately.
|
|
|
|
|
enhzflep wrote: It'd be better if the drive letter and system dir weren't hardcoded...
Actually they are not even necessary since the \Windows\System32 folder is part of the search path.
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|