|
Visual C++?? You'll need to download MSXML[^]
and read MSXML info[^]
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
MSXML provide ways to navigate through the nodes. Use IXMLDOMDocument, IXMLDOMElement, IXMLDOMNode, IXMLDOMNodeList objects and its methods loadXml, get_documentElement, get_childNodes, get_item, nextNode, ...
So, depending on the integer that you receive you'll know how many iteration you need to do.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
hi, all
a problem trouble me for a long time.
and i have been looking for the answer for a long time.
but i still can't solve it,i hope somebody can give me a
little suggestion. thanks in advance.
my dev platform: MFC 7 & Windows Server 2003
my question:
i want to subclass my checkbox on a dialogbar, and load my bitmap
to the checkbox's face.
all of my checkbox were set to push like style here
owner-draw mode was set to true .
in headfile MyDialogBar.h
====================================================
CBitmapButton m_btnCheck;<br />
BOOL InitButtons();
====================================================
in cppfile MyDialogBar.cpp
====================================================
BOOL CMyDialogBar::InitButtons()<br />
{<br />
<pre> m_btnCheck.SubclassDlgItem(IDC_TOOLBTN_SELECT, this);<br />
m_btnCheck.LoadBitmaps(IDB_BITMAP_ICON_SELECT);</pre><br />
}
====================================================
in headfile MainFrm.h
====================================================
CMyDialogBar m_myDlgbar;
====================================================
in cppfile MainFrm.cpp
====================================================
int CMainFrm::OnCreate(...)<br />
{<br />
<pre> if(!m_myDlgbar.Create(...))<br />
{<br />
TRACE0("sorry >_< ");<br />
return -1;<br />
}; <br />
m_myDlgbar.InitButtons();</pre><br />
}
====================================================
Notes:
IDB_BITMAP_ICON_SELECT is a ID of bitmap resource file created by resource editor , i want this bitmap loaded on the checkbox button.
IDC_TOOLBTN_SELECT is the ID of the CheckBox
the checkbox can works fine, but i just cannot put my bitmap on it. why??
i used to subclass my checkbox and load a bitmap on its face for many times
in common dialog application , there is no problems. why i use it in dialogbar, it doesn't work, and no error occured , the checkbox button works
fine.
i found something seems to be useful on MS KB, i rewrite my code , and it still does not work,
http://support.microsoft.com/kb/185672
anybody here met this problems before?
can you get me out of this swamp ? can anybody post some related sample code or links here ? thank you very much
any suggestion should be appreciated!
sincerely,
nickong
Today is a gift, that's why we call it present
|
|
|
|
|
any help?
Today is a gift, that's why we call it present
|
|
|
|
|
Hi all,
Hoping someone has experienced this problem and knows of a solution or can
explain whats going on...
I have tried using both a managed c# wrapper taken from the Microsoft SSPI
Samples and unmanaged C++ to test how SSPI and Kerberos works.
It appears to all work quite nicely except for when I try to trip it up.
Imagine the case where the client is running as User A and wishes to connect
to User B. On the client side, I make a request to InitializeSecurityContext
to User B and begin the handshaking process. However, the server is actually
running as User A as well. I would expect the authentication to fail every
time, it doesn't. If the machine has just been rebooted, it seems to "work",
in that I get a SEC_E_WRONG_CREDENTIAL result on the client side. However if
I lock the computer and then unlock it (or even after a restart on a W2K3
domain) the context is successfully established.
Anyone experienced this before or know why it happens?
As for replicating the "issue", use the MS .NET Remoting SSPI sample
client/server control panels to replicate the scenario explained above.
Any suggestions, explanations, workarounds would be appreciated.
P.S. I'm running the code under a Windows 2000 domain (same
happens on a W2K3 domain as well).
|
|
|
|
|
Hi, I want to change background color from list control when it's disabled (WS_DISABLED)--> default gray. I create list control without dialog editor but on the fly
(*.h)
CListCtrl *m_List;
(*.cpp)
if (!m_List->Create(WS_VISIBLE | WS_DISABLED | LVS_LIST))
{
// error
return 0;
}
Thank you for your help.
|
|
|
|
|
Respected all
Regards!
I am a begginers programmer n VC++.
I have a problem
" I have to display some data on different places on a bitmap at run time, i think I did all that's show bitmap using BitBlt(), and also using
TextOut(x,y,string value),to display data on a Bitmap but when i run program
while using the above procedure when i execute the program the run time window did not become stable i.e the run time window finish by itself after one second.
hope now things will b easy to undersatnd
waiting for + response.
david
|
|
|
|
|
|
how do I find out if I am running as a console program or a windows program?
|
|
|
|
|
|
Jose Lamas Rios wrote:
I'm not sure why you need that and in what context
Depending on whether I am running as a console app or a windows app, I want my logger to write to stdout or to a log file. Any ideas for doing this?
|
|
|
|
|
What is your logger? Is it a library or DLL? If so, any app you write (and you know if you are making a console or GUI app) can initialize the logger with that information... What I am missing?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Flace wrote:
I want my logger to write to stdout or to a log file. Any ideas for doing this?
Maybe calling GetStdHandle()? If the application doesn't have associated standard handles, it will return NULL...
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Check out MSDN article Q90493.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I chose to ask this question here as the language I'm using is C++.
Scenario:
I'm using an ActiveX control that fires an event called Error
How do I wire a function to be called when that event fies?
I've looked in a few places, but most articles either don't cover what I need or basically represent complete tutorials on COM when this is something I need to get done by tomorrow.
Thanks so much for anyone that can help me out.
|
|
|
|
|
I should also mention that I'm using the #import directive on the .ocx from my main .cpp file (my app is a service).
|
|
|
|
|
|
Thanks, but that article is precisely one of the problems I'm running into. It's an article based on an older version of Visual Studio and so is obsolete
Tom Archer - Visual C++ MVP
Archer Consulting Group.com
|
|
|
|
|
I want to open a document from within my CDocument derived class (MDI App). How do I do this?
From what I've read when I was trying to solve this, CWinApp calls CDocManager, which then uses CDocTemplate, and then OnOpenDocument. But, how do I do all this from within my CMyDoc class?
Thanks
|
|
|
|
|
|
This doesn't work, I just get a debug assertion.
Any other ideas?
|
|
|
|
|
vasanth1004 wrote:
This doesn't work, I just get a debug assertion.
Any other ideas?
What about breaking with the debugger at the debug assertion, looking at the variables and call stack, and determining what assertion is failing and why?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I have a structure of TCHARS like:
typedef struct _tagInfo
{
TCHAR szBikeBrand[24];
TCHAR szBikeStyle[24];
} BikeInfo;
But i also have an std::string BikeBrand.
I would like to copy the value of BikeBrand to szBikeBrand.
I am doing this
BikeInfo* pBikeInfo = new BikeInfo;
_tcscpy(pBikeInfo->szBikeBrand, _T(BikeBrand));
This does not work. How would i accomplish this copy?
|
|
|
|
|
If you are compiling for both UNICODE and ANSI (which I assume by looking at TCHAR and the use of the _T macro).
Then you should do something like this.
typedef std::basic_string<tchar> MyString;
MyString BikeBrand = _T("Avanti");
BikeInfo* pBikeInfo = new BikeInfo;
_tcscpy(pBikeInfo->szBikeBrand, BikeBrand.c_str());
Also get into a habit of using _tcsncpy.
But it might be more suitable to do this.
struct BikeInfo
{
MyString szBikeBrand;
MyString szBikeStyle;
};
MyString BikeBrand = _T("Avanti");
BikeInfo* pBikeInfo = new BikeInfo;
pBikeInfo->szBikeBrand = BikeBrand;
|
|
|
|
|
I would be most gratefult if anyone could point me to some Vis C++ code for reading / displaying / editing electronic navigational charts, such as those supplied by NOAA. The latest available charts are in vector graphics format (C-MAP, NOS). Thanks very much.
Dr. John A. Freeman
|
|
|
|