|
|
I'm running Windows Server 2003 and I get an error message like "Access denied" when I try to run it. I'm logged in as Administrator.
Do you know what could be wrong?
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
Interests: C++, ADO, SQL, Winsock, 0s and 1s
|
|
|
|
|
Nope, sorry.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
now i have developed an application file that suffix is .exe.I want to use a window installer for it?how can i do?
thanks!!
Habbit--Beginner In MFC
|
|
|
|
|
If you want an excellent freeware installer I highly recommend Innosetup from:-
http://www.jrsoftware.org/isinfo.php[^]
If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676
|
|
|
|
|
Nullsoft has a free installer.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
To all the answers......
I think he ment was "how to develop a windows installer for my application?" not how to download one...
well, you need to create a wizard (read the msdn for that), then each page will collect the necessary information for installation, then you can zip it all up to 1 file (a setup.exe) and there you have it......
try to look in code project for such an example.....
Hope i helped ya
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
Hi all,
I've created a dev studio add in, i have a tool bar. i want to disable it unless a workspace was open.
can some1 show me how to disable a tool bar ?
thanks in advanced
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
m_Toolbar.EnableWindow(FALSE); ???
~RaGE();
|
|
|
|
|
Hi,
thanks for reply but....
what exactly the m_ToolBar should be???!????
this is visual studio add in , i am using the IApplication interface.....
what type is the m_ToolBar??? can you be more specific?
Yaron
Ask not what your application can do for you,
Ask what you can do for your application
|
|
|
|
|
YaronNir wrote:
what exactly the m_ToolBar should be???!????
A CToolBar . Nevermind, I was pretty sure I had seen a CToolBar in my add-in code, but I was wrong.
Disabling the toolbar does not seem easy. Actually, the toolbar seems to be directly handled by Visual C++, and it will enable one or more button, depending on how maning commands you bind using the AddCommand, SettAddInInfo and AddCommandBar methods. i have no clue as whether it is only possible to disable the bar. Sorry to be a PITA on this question
~RaGE();
|
|
|
|
|
Hi everybody !
I would like to change the mouse cursor when an event happen. I used SetCursor but cursor is reseted when I move the mouse. I took a look at the doc and they say the class cursor for the window must be NULL !!
How can I acheive that ? I need also to have the cursor set to default when the event is finished!
Thanks
|
|
|
|
|
If you want the hourglass cursor displayed during lenghty operations:
CWaitCursor wait;
DoSomethingThatTakesTime();
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
Thanks but it's not the hourglass cursor. In fact I click on a button on the toolbar (the zoom button) and my cursor changes into a zoom. When the user has selected the item to zoom, the cursor came back to an arrow.
|
|
|
|
|
The docs are right. You need to set the cursor for the window class to NULL. You also need to handle
the WM_SETCURSOR message too. This message is called by the OS when the mouse is moved.
If you want to immediately change the cursor, you use SetCursor as you have already seen.
So its a combination of all three things.
Iain.
|
|
|
|
|
Iain Clarke wrote:
The docs are right. You need to set the cursor for the window class to NULL
Ok right, ........ but how can I achieve that ?? This was my question
|
|
|
|
|
char __iainclass [] = "IainView";
BOOL CIainView::PreCreateWindow( CREATESTRUCT& cs )
{
WNDCLASS wc;
wc.style = CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
wc.lpfnWndProc = ::DefWindowProc;
wc.cbClsExtra = 0;
wc.cbWndExtra = 0;
wc.hInstance = cs.hInstance;
wc.hIcon = 0;
wc.hCursor = 0;
wc.hbrBackground= NULL;
wc.lpszMenuName = NULL;
wc.lpszClassName= __iainclass;
AfxRegisterClass (&wc);
cs.lpszClass = __iainclass;
return TRUE;
}
That's for MFC. To set wc.hCursor=NULL is even easier in SDK, as you have to explicitly create a class
in the first place.
Iain.
|
|
|
|
|
|
Handle WM_SETCURSOR, if you do it with the MFC classWizard, it will bring up a OnSetCursor() . Load your cursor in this function, and DO NOT CALL THE BASE CLASS, so put CDialog::OnSetCursor(..bla...) at the end of the function in comments.
~RaGE();
|
|
|
|
|
In control timer is organised as following.
according MSDN ATLButton:
Contol need be killed (UNLOAD) as fast as possible,
but timer usualy waits until last period finished:
parallel thread is slept for timer period and that called need method:
[code]
//interface must marchalled between threads
if (m_pStream)
hRes = CoGetInterfaceAndReleaseStream(m_pStream, *piid, (void**)&m_spT);
while(m_bTimerOn)
{
Sleep(m_dwTimerInterval);
if (!m_bTimerOn)
break;
//timing call
m_spT->_OnTimer();
}
[code]
Is there more fast or asyncronious methods of killing timer?
in that case if I call terminateThread - error happens.
Why so?
|
|
|
|
|
dont use sleep for your time... use SetTimer and KillTimer
Don't try it, just do it!
|
|
|
|
|
|
My ATL ActiveX is windowless(!),
no window with timer - except need to create additional for that.
(made on the base MSDN ATlButton)
I will read artilce -thanks you.
But have any timer code for not Window?
|
|
|
|
|
With what event to syncronize SuspendThread();?
How to set time interval ?
|
|
|
|
|
I have a dialog box which has several buttons and when I click one he button the following code is executed:
void CtimDlg::OnOk2()
{
RunUtility("tricrrx.rtss"); // runs my program called tricrrx.rtss
}
Works perfectly ok....
But,
When I close the dialog box, by clicking the [x] in the dialog box, the dialog box doesnt close, but instead works as if the above button (Ok2) is clicked i.e., runs my program once again..
what should do to overcome this?
Thanks,
Deepak Samuel
|
|
|
|