|
Check the KB article Q161886. It's titled "Property Sheet as the View Window of a CFrameWnd", but there's no 'real' property sheet in this sample - they create CTabCtrl and host child dialogs inside.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi All,
I have a problem with DCOM Configuration.I am running a DCOM
Server in a REmote Machine(Windows NT).The client in another
M/C(Windows NT ) tries to communicate with the server.The CCI
for the server component succeeds .But,I am unable to call any
function of the Server Component.I am getting "Access is Denied"
problem . I have tried iwth Default & Custom access
permissions.Still, the problem is there.
The same server component worked well once in a system with OS
Windows 2000.
What could be the problem.I am using same CoInitializeSecurity in
both Server & Client.
All security attributes I set as NULL.Where am I going wrong ?
At the same time the problem is resolved if I use no password(Domain - Administrator) on both Server and Client.
But, this should not be case.Though the Server and Client are using different passwords the DCOM should work.What should be done?
Thanx in advance for the help.
Regards,
yamini.
|
|
|
|
|
Hi All,
I have a problem with DCOM Configuration.I am running a DCOM
Server in a REmote Machine(Windows NT).The client in another
M/C(Windows NT ) tries to communicate with the server.The CCI
for the server component succeeds .But,I am unable to call any
function of the Server Component.I am getting "Access is Denied"
problem . I have tried iwth Default & Custom access
permissions.Still, the problem is there.
The same server component worked well once in a system with OS
Windows 2000.
What could be the problem.I am using same CoInitializeSecurity in
both Server & Client.
All security attributes I set as NULL.Where am I going wrong ?
At the same time the problem is resolved if I use no password(Domain - Administrator) on both Server and Client.
But, this should not be case.Though the Server and Client are using different passwords the DCOM should work.What should be done?
Thanx in advance for the help.
Regards,
yamini.
|
|
|
|
|
Thanks to everybody who answer my appeal on 25 July. I have downloaded the files. I have written some code, however my problem is I always get a linker error message for the openBrowser function, even if I have included where to find the .lib and .dll file in my compiler settings. The same occurs with the C version of the function. Anybody else have the same problem or know of a solution?
|
|
|
|
|
Hi
I have implemented tool tips using the CToolTipCtrl, does anyone know if this can be used to display the ballon style tool tips. Or any other way my code could be easily converted.
Cheers
Rich;P
|
|
|
|
|
first: you must use IE 5 or later
create the control using the TTS_BALLOON style:
m_tooltip.Create (this,TTS_NOPREFIX|TTS_BALLOON);
for the TTS_BALLOON define you should use the CommCtrl.h from the Platform SDK or simply define it yourself:
#define TTS_BALLOON 0x40
|
|
|
|
|
Hello,
I have an application with several ToolBars. Every time I start it my toolbars are arranged one under another and take much space on the screen. So, I would like to save and restore their positions on the screen.
When I try to remember top-left corner information in the registry, the restoration does not have a good effect as the toolbars need to be distant from each other.
Please, tell me the way to restore exactly the same set of toolbars.
Thanks in advance,
Andrei
|
|
|
|
|
if you are using MFC, you can use CFrameWnd::SaveBarState and CFrameWnd::LoadBarState
|
|
|
|
|
i would like to know how we could convert a long to a string?
And, if i have a double, which have to be a long, how could i do that?
thanks in advance
gerald
|
|
|
|
|
To convert a long to a string:
long l = 42;
TCHAR szBuffer[10];
wsprintf(szBuffer, _TEXT("ld"), l);
To convert a double to a long:
double d = 42.0;
long l = (long) d;
But you should check the range of the double before the conversion.
Oliver
|
|
|
|
|
for the conversion of the double to a long, i use firstly the method ceil(double), which returns a double, and after i want to convert the result to a long, so do you know if the range is good with your method
thanks
|
|
|
|
|
Double variables may hold values which is greater than the maximum long. If you are sure that your value fits into a long you could use the conversion right away.
If not you have to do something like this
if ((d < LONG_MIN) || (d > LONG_MAX))
{
error
}
else
{
conversion
}
The ceil function does not change the integer part.
Oliver
|
|
|
|
|
Hi,
check out _ltoa in the help, or _ultoa if it's unsigned.
/Daniel
|
|
|
|
|
I wrote source code, but won't work:
void CSearchDialog::DeleteAllCol()
{
int i, c;
m_List.DeleteAllItems();
c = m_List.GetItemCount();
for(i = 0; i <= 2; i++)
m_List.DeleteColumn(i);
}
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
void CSearchDialog::DeleteAllCol()
{
int i, c;
m_List.DeleteAllItems();
c = m_List.GetItemCount();
for(i = 2; i >= 0; i--) // i from 2 down to 0
m_List.DeleteColumn(i);
}
alen
|
|
|
|
|
So, there is any way for deleting automatically ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Not with the default list control from MFC. This is how I do it...
while(m_myListCtrl.DeleteColumn(0));
This way, I don't have to get the column count, I know that is not much overhead, but you never know where extra CPU time will come in handy.
|
|
|
|
|
Attention please~~~
Hi~
Last time, I wrote my problem at here.
But In my mistake, I don't gain a solution.
So I record my question again.
I seriously desire your assistance.
I'm a University student preparing a graduation thesis, in Korea.
But in the process, there raised an obstacle, so I'm in stuck with a problem.
So now I sincerely call for your help...
As the question contains some images and source file, I make out html document file.
The address is http://my.netian.com/~sibuzigi/forsite.htm
I hope your quick and adequate answer.
p/s Please~~~ Somebody help me~~~!^^;;;;;;
|
|
|
|
|
Hi,
What's the actual question?
Do you want to know how to make gradients?
It seems that your sample app does them well!
Paolo
------
"airplane is cool, but space shuttle is even better" (J. Kaczorowski)
|
|
|
|
|
Hi,
I think you are approaching this problem from the wrong direction. You should not need to worry about smoothing out discrete bands of color if you are trying to represent continuously variable field strength. I think the easiest approach would be to simply generate the color of each pixel based on the field strengh at that point.
For example say you want to represent field strength with
green=weakest value and yellow=strongest value in an RGB24 image
all you need to do is set G=255 and B=0 and then scale R from 0 to 255 proportional to field strength at that pixel position.
In the simple case of a single field source use pythagorus to find each pixel's position relative to the pixel you designate as the source of the field then use whatever formula you need (probably some inverse square relationship) to calculate the field strength at that pixel poition and scale that position to your R value in the RGB image. ( You may want to do a preliminary pass of the field to find minimum and maximum values in the the area you are representing so you can scale to the full 0-255 value of the R value.
You should get a nice smooth image.
Steve T.
|
|
|
|
|
Hi,
I have the dialog box with the ID: IDD_LISTCTRLDEMO_DIALOG
It has its class CshowResults.
In that dialog box I have a list control, which I would like to print.
The list control's ID is IDC_LIST_CTRL
and its member variable is m_cListCtrl
Now, how can I print that specific tree control, there might be about 40 pages of items in it!
Tanks a lot
|
|
|
|
|
I need to hold an array of values of varialbe type such as int's float's string's etc. The array will be created at compile time.
Any ideas?
|
|
|
|
|
Can you use VARIANT ?
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
I dunno. Is VARIANT compatible with string and iostreams?
Can you say
VARIANT somevar;
somevar >> aniostream;
aniostream << somevar;
|
|
|
|
|
Hmmm, off the top of my head, may I suggest you try creating your own struct/class that holds a string, float, int, etc. Infact, this is how VARIANTs in VB/COM are implemented under the hood anyway. Then use this struct/class in your maps, lists, and other STL structures. You might want to experiment with unions as well.
You could also take a look at MFC's COleVariant, and see if you can bend it to meet your needs (this is mostly used for database related stuff, but am sure you can use it for other needs as well).
|
|
|
|