|
Whic port are you refering too..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
i refer port no 53. but it may be anything. Now it is 53
|
|
|
|
|
Hi,
I've got a dialog with a CTabCtrl on it, and my app is using a manifest for XP styles. The CStatic controls on the tab are using the dialogs background colour rather then the tab controls background colour. To try and correct this, I've handled WM_CTLCOLOR as follows:
HBRUSH CMyDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
if (nCtlColor == CTLCOLOR_STATIC)
{
hbr = m_brush;
pDC->SetBkMode(TRANSPARENT);
}
return hbr;
}
And m_brush is created in the constructor as follows:
LOGBRUSH l;
l.lbColor = l.lbHatch = NULL;
l.lbStyle = BS_HOLLOW;
m_brush.CreateBrushIndirect(&l);
The background of the CStatic controls is still grey, not white. The same code works fine when the tab control is in a CFormView. What am I doing wrong?
- Dy
|
|
|
|
|
Hello,
I'm trying to set up a SOAP-Server in VC++. I already have set up the client according to an example. The server in this example is written in VB. I use the SOAP Toolkit 3.0.
The description tells me following.
>>
Open Microsoft Visual Basic® and create an ActiveX DLL project.
Change the Project Name to DocSample1Service and the Class Name to Sample1.
On the Project menu, click DocSample1Service Properties. Then, on the General tab, select the Unattanded Execution and Retained In Memory options. For more information see, Developing SOAP Toolkit Applications.
To the Sample1 class, add the code from the Code Listing for the Sample1 Class.
Save the project in the Soap3DocSamples\DocSample1\Server folder.
On the File menu, click Make DocSample1Service.dll. Save the DLL in the Soap3DocSamples\DocSample1\Server folder.
<<
What steps do I have to do according to acieve such a ActiveXDLL with Visual Studio C++ 6.0. Especially the properties can't be found in VisualStudio. When I create a ActiveX Control, a .ocx-file is created. And at last the implementation I wrote in the project can'z be seen by the WSDL-Generator.
THX
|
|
|
|
|
I would like to use the what`s this html help for my application but I can not add additional help for my views or buttons.
The automatically created help for the menue and so on works.
What I tried is:
In the help folder there is a .hpp file. There I added a new Help Homepage.
I added the HP to the topics.
There is a HTMLDefines.h file as well in the hlp folder. There I added a define to my IDC_BUS in my application.
In the application:
I created:
void CMainFrame::HtmlHelp(DWORD_PTR dwData, UINT nCmd)
{
CGuiFrameWnd::HtmlHelp(dwData, nCmd);
}
When I debugged the project CGuiFrameWnd::HtmlHelp(dwData,nCmd) is called.
inside
CWinApp* pApp = AfxGetApp();
ASSERT_VALID(pApp);
ASSERT(pApp->m_pszHelpFilePath != NULL);
// to call HtmlHelp the m_fUseHtmlHelp must be set in
// the application's constructor
ASSERT(pApp->m_eHelpType == afxHTMLHelp);
CWaitCursor wait;
PrepareForHelp();
// need to use top level parent (for the case where m_hWnd is in DLL)
CWnd* pWnd = GetTopLevelParent();
TRACE(traceAppMsg, 0, _T("HtmlHelp: pszHelpFile = '%s', dwData: $%lx, fuCommand: %d.\n"),
pApp->m_pszHelpFilePath, dwData, nCmd);
// run the HTML Help engine
if (!AfxHtmlHelp(pWnd->m_hWnd, pApp->m_pszHelpFilePath, nCmd, dwData))
AfxMessageBox(AFX_IDP_FAILED_TO_LAUNCH_HELP);
happens.
My mapping ID to Help does not work.
Can you please help me what I have to do?
Thank you
|
|
|
|
|
MFC code always adds some offsets for the controls and window, etc. to the resource ID, so you have to go through a mapping of your resource ID to help ID, and then use the help ID in your help project.
Look at the MakeHM.Exe that comes with VC6, or else look for my CGMakeHM utility here at CodeProject - each one performs the mappings.
People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
|
|
|
|
|
I am currently doing an application which requires a lot of edit boxes, but i have a problem now that i cant add any more edit boxes to my application !
Is there an upper limit to the number of edit boxes in an application ?
Is there a way to remove this limit ?
What should i do if i do not have enough edit boxes ?
|
|
|
|
|
BeakX wrote: a lot of edit boxes
Are you sure you need all of these (No other design solution?) ? Are you adding them dynamically, or in the resource editor ?
BeakX wrote: Is there an upper limit to the number of edit boxes in an application
From what I know, only physical problems (memory, disk space if your .exe size exceeds your drive size, )
BeakX wrote: but i have a problem now that i cant add any more edit boxes to my application !
How is this happening ? What goes wrong.
~RaGE();
|
|
|
|
|
if you add your editBoxes at design-time, then you will be limited to (i think, but not sure) 128 256 controls on the same dialog.
if you really need those, then, add them at run-time, or even better, factor them into property pages or tabs...
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VCalc 3.0 soon...]
-- modified at 6:01 Tuesday 7th February, 2006
|
|
|
|
|
toxcct wrote: if you add your editBoxes at design-time, then you will be limited to (i think, but not sure) 128 controls on the same dialog.
Close 256
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
|
Can some one tell me on how I can write a program in VC++ that will automatically change my status of Yahoo messenger from "online" to "Away" when I lock my computer?
-Krishna
|
|
|
|
|
I have two thoughts, take 'em or leave 'em...
1: Poll the SPI value of SPI_GETSCREENSAVERRUNNING
2: See if you can determine which Desktop is active on the Window Station (for example, I think the winlogin Desktop is active when the system is locked)
This is something that you will have to research in MSDN a bit - messing with Desktops and Window Stations is not everyday Windows stuff...
Peace!
-=- James If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Tip for new SUV drivers: Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! DeleteFXPFiles & CheckFavorites (Please rate this post!)
|
|
|
|
|
Can't you just change the "idle minutes" to a lower value?
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Hi guys.
I have a C++ dll that needs to be made available to VB and Delphi through the COM object, the dll itself is not to be modified. The COM object is ATL, nothing special really, and the exported C++ methods are all in 2 classes that are both defined for dllexport.
The questions is this: how do I maintain the state in the clčient application? The client app needs to do something like "set X", then call "set Y", then call "Do foo", and then to call a function that will perform some action based on the current vars in the class. This means the state has to be maintained over the COM calls.
I would appreciate any guidilines or articles and such that deal with this.
Thank you.
|
|
|
|
|
I want my program to know the network connection is alive or not, but I dont want to check this periodically.Is there any way to inform my program when the network goes down. ie when the network connection goes down it is informed to my code.
|
|
|
|
|
Aby Skaria wrote: Is there any way to inform my program when the network goes down.
Yes. Check out ISensNetwork .
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Hai brother I used isNetworkAlive() but it is always returns TRUE even the network cable is unpluged. Is there any other api calls or functions
|
|
|
|
|
Aby Skaria wrote: but it is always returns TRUE even the network cable is unpluged. Is there any other api calls or functions
HE Means Disinterface ISensNetwork
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Aby Skaria wrote: I used isNetworkAlive() but it is always returns TRUE even the network cable is unpluged.
Maybe it knows something you don't! I've never tested that function in a real-world scenario so I can't even guess as to why it does what it does.
"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli
|
|
|
|
|
Hi,
I have some classes/general functions used by different program in some extern files (continually modified).
I don't want to add that cpp/h file to the project directly.
It is possible to add they using the linker or compiler options? How/where?
Other solutions?
Thanks
Have a nice code day
|
|
|
|
|
|
Yes,
it is my temporary solution:
I'm including with the macro #include all the .cpp in a file into the project.
But this file is going to be too big: about 10000 lines, and the compiler every time take more and more time.
I'm open to a new solution (faster!)
Do you know if I can use the project properties?
Have a nice code day
|
|
|
|
|
|