|
I use Chris Maunders CSystemTray class and don't want the taskbar icon or what to say... Not the icon down there beside the clock!
HOw to hide it??
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
So you're using CSystemTray but don't want the system tray icon? The simple answer is don't use CSystemTray, as that is what it is desgined to do. What exactly are you using it for?
________________
David Wulff
http://www.davidwulff.co.uk
"I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves" - August Strindberg
|
|
|
|
|
I use it to easy create a tray icon!
But please! Don't tell me to NOT use it!
Then I need to write so much "extra" code! hehe, yes I know what you're thinking!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
Hi All,
How can we create an ActiveX Component in VC++
Sangeetha
|
|
|
|
|
|
I write program and use Crystal report in it and I want run this program to another computer that hasn't crystal report program?
or
I want dll file that need run crystal report file in another computer?
thank for your help
|
|
|
|
|
I know close to nothing about Crystal Reports, but Crystal Decisions website has this article which seems to list the files needed for distribution of apps based on the technology. If this is not what you want there's likely to be more information in that website.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I Write a program and use this program ADO and Datagrid .now i want run this program in anther compuetr.
this program run but don't open dialog's that use them ado and datagrid(need dll)?
and
i want dll that run ado and datagrid ...
thanks for your help
|
|
|
|
|
Hi All,
I want to Create My own AciveX control which should work as teh usual database ActiveX Control.So Please give me the posssible suggessioon to create such a Component
Thanks in Advance
Sangeetha
|
|
|
|
|
Hi
I want a to create a client which will talk to the server using SSL connnection. The purpose of the client is to do several secure transactions from a VC application. I need some pointers as to how i can do this. please help
harish
|
|
|
|
|
Hello there,
I just want to know how you create a new document based on an existing (i.e already open) Document in an MDI. ok, the real problem i am facing is: I am developing an Image processing software. Now when the user opens an image and says for example Image>Convert to Grey Scale, I dont want to touch the original document. I want to create a new document that is a clone of the existing image, and do the operation on that. Then it will be displayed as a separate MDI child Window. Please tell me how to do that
Satya Kiran.
satyakiran_p@yahoo.com
|
|
|
|
|
Given this:
try
{
MyClass->DoSomething();
}
catch (...)
{
cout << "Unknown exception";
}
I am trying to catch a null memory exception (where MyClass is NULL). Is there a specific way to catch this (catch (/*NULL MEMORY*/)), or am I conformed to using the catch all "..." method, or sticking with "if (MyClass!=NULL)"?
|
|
|
|
|
You can also have inside DoSomething a check for this == NULL.
But what you might be looking for is SEH (structured exception handling). VC++ actually has 2 exception systems, C++ and SEH (the exception system of the OS). Look for information on converting SEHs into C++ exceptions. That will get you a closer to what you are looking for.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
Ok, here goes...I've got a dialog-based application. From this application I have created a modeless dialog box. When the user closes the modeless dialog box, I need to access a variable within my main Dlg box's class, in order to save data from the modeless dlg box. So, as I see it, I need a pointer to it. How do I get a pointer to the Dlg class of a dialog-based app??
~Cam Desautels (BinaryUprising.com)
|
|
|
|
|
Create the dialog with this as the parent (m_Modeless.Create(this);) and store the value, or call GetParent and cast the return to an instance of your dialog class.
I tend to create modeless dialogs in the constructor, by doing this:
if (Create IDD, pParent)) ShowWindow(SW_SHOW);
and store my modeless dialogs as pointers.
Then I can do this
m_Modeless = new CMyModeless(this); // Dialog is now created.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Christian - do you know if this would work with a Tabbed Dialog Box such as the one Derek Lakin presents 'CTabCtrlSSL' ?
I need to do something like this, but only add a new dialog one at a time, depending on if the user presses 'continue' or 'ok' .. the problem is, the next dialog depends on a control in the previous one ..
My first choice would be to create a global variable for each piece of data that needs to be passed from dialog to dialog (usually, there is only one control with the relevant data) - then when, for example 'ok' is pressed, it copies the required data from the control to the global variable. When the next dialog is initialised, it simply reads the global variable..
.. but maybe this isnt necessary/too long winded
any ideas you and others have would be appreciated.
thanks, and ho ho !!
|
|
|
|
|
Do you mean a dialog box that contains other dialog boxes, tabbed ? I'm not familiar with the article, but any dialog you create should work using this method, however if the dialogs you refer to are all children of another dialog physically ( i.e. contained as children of another dialog ), then I'd look to the class that impliments that as to how you should deal with it.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Thanks Christian ..
Im just re-reading the article now, and having a poke at the code, to try and determine exactely what's going on under the skin ...
The Article Header says "An extended tab control that allows tab pages to be added from dialog resources" .. Basically, you start with a 'parent' dialog, and then any other 'Tab' you add seems to be a 'child' dialog, but I'll
have to verify that in the actual code I guess
thanks for your help
G
|
|
|
|
|
No worries. Does mbf.com.au mean you work for the health fund my wife has joined ? Do you get a sweet flat screen, or is that just the people at the front desk ?
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
I wish to set a textbox item in my dialog box, but the
value I want to set it to is an int, where as it appears
SetDlgItemText() will only set a textbox to a CString.
This makes sense, as it is a TEXTbox, however, it is
rather inconvienient in my situation. Is it possible to
convert/change an int to a CString?
Thanks for any help!
Josh Gladieux
f16sdabest@home.com
|
|
|
|
|
This question MUST be in the FAQ and has been discussed very recently.
CString has a method called Format which works like sprintf.
CString s;
s.Format("%d", 502);
creates a string with the value "502".
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Christian Graus wrote:
This question MUST be in the FAQ and has been discussed very recently.
I just updated the FAQ to cover the conversion both ways, both to and from a string.
--Mike--
http://home.inreach.com/mdunn/
"Not our fault we are intellectually superior to the rest of the office." -- Paul Watson in the Lounge, 12/12/2001
Sonork - 100.10414 AcidHelm
|
|
|
|
|
You need to convert your int in CString.
For that you have The CString::Format function
CString strNumber;
strNumber.Format("%d", nYourNumber);
SetDlgItemText(ID_TEXT, strNumber);
Best Regards...
Chau!!! Nice Weekend...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Use SetDlgItemInt() instead.
--Mike--
http://home.inreach.com/mdunn/
"Not our fault we are intellectually superior to the rest of the office." -- Paul Watson in the Lounge, 12/12/2001
Sonork - 100.10414 AcidHelm
|
|
|
|
|
I'm in a middle of writing my little own framework. I've created a class; lets call it MyFrameWorkApp, and all applications must have one and only one instance of this class (or more likely a class derived from this class). This class should, like in MFC, be instanciated somewhere at global level. (i.e. Before WinMain is called) Then I want WinMain to somehow get a pointer to this instance. This is how MFC does it...
int AFXAPI AfxWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
ASSERT(hPrevInstance == NULL);
int nReturnCode = -1;
CWinThread* pThread = AfxGetThread();
CWinApp* pApp = AfxGetApp();
.
.
. Now, in my case both pThread and pApp points to the CWinApp instance, but that's normal I guess. Later in AfxWinMain, pThread->InitInstance() is called. I want the WinMain-function in my framework to do the same: Get a pointer to the MyFrameWorkApp instance, and call a particilar function. I've tried _lots_ of times to singelstep how MFC does this, my I can't figure it out. Can someone help me?
Sprudling
|
|
|
|