|
Open the Project->Settings dialog in VisualC++, switch to "Link" tab and add the name of library "msxml2.lib" to the "object/library modules" line.
|
|
|
|
|
Thanks!
I'd actually found by myself by playing with Project->Settings, the problem I have now is that I should'nt have done it because now I get thousands of all kind of errors!!!
Do you know how to undo the disaster I've provoked???
|
|
|
|
|
It may be simpler to do a #import of the dll to get the typlib and header files needed for the namespace. This is normally how I do it when using MSXML in any of my projects. I don't have a sample of it where I currently am. I'll look for it when I return home.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Michael,
Do you tend to leave your schema as flat files or put them in a resource file?
TIA
eternal student
Give a man a fish and you feed him for a day; teach him to use the 'net and he won't bother you for weeks.
|
|
|
|
|
I have no idea. I've never done anything that complex with XML.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
Hi all,
I have question about ADO,
How can i use Timeout and Idle time in ADO connection object ?
(Please write small example)
Thanks.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Timeout
_ConnectionPtr pADOConnection;
pADOConnection.CreateInstance(__uuidof(Connection));
pADOConnection->ConnectionTimeout = 30; // 30 secs
|
|
|
|
|
Thanks Mr.Rashid,
In last i wanna know, Is in Connection object, function like Idle time ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hello,
I need a toolbar for my website like yahoo companion or Google toolbar. I'd like the code in VB or VC bt Vb is preffered.
I need it to be downloded from Internet (i.e. my website) and I'd appreciate the message box like Yahoo and Google Does like "Always trust content from My Website"
Please let me know what things do you require. I'll need the full source code and I'll need a manual of the updations to be done. I want it to be fully customizeable. That means I should be able to add new links, creat new menus and evrything that is possible...!!!
We can then talk later to discuss the other matters. Your name will be listed in the about box. CAn you please show me an online demo of your work..???
Please reply asap...!!!
Sincerely,
Ajay
|
|
|
|
|
Bloody hell, you don't ask much, do you ? The information to do what you want is all on this site. I don't know if it can be done in VB, but it can certainly be done in a *real* programing language like VC++.
I'd suggest that the first step in finding a willing slave if you're unwilling to learn to do it yourself despite the excellent tutorials on the site is to put a name to your posts.
Christian (on Jono's mchine, while my kids wreck the place around me)
|
|
|
|
|
Dear Jonathon,
Believe me I really don't know VC++ but I'm well versed in VB. CAn you please tell me if this can be done in VB and please gimme ome resourese or some contact of the person who can do this...!!1
Ajay
|
|
|
|
|
Okay,
So I have a menu from a system tray icon. In this menu is a static
popup menu. Inside that menu is a dynamic series of further popup
menus. In each of those menus are the actual menu items...
So far I handle WM_INITMENUPOPUP. Grab a CMenu* to the top level
static popup. Then loop: Create a dynamic popup menu. Create a new
menu with all the elements that will go in that dynamic popup. Then
AppendMenu that menu to the dynamic popup menu.
The problem, an Assert when expanding any dynamic popup menu (going
out of scope?). The code seems to work fine if I use a CMenu* popup
instead but ofcouse leaks memory.
How should I be doing this properly (ignore messages for now). CMenu*
or not? Where to delete? Handle one popup at a time perhaps? i.e.
First when initial menu is selected, then when popup expands etc. Any
pointers much appreciated...
<br>
void CMyDlg::OnInitMenuPopup( CMenu* pPopupMenu, UINT nIndex, BOOL
bSysMenu )
{
...
CMenu* pBase = pPopupMenu->GetSubMenu( 0 );
for( int i = 0; i < m_nPopups; i ++ )
{
CMenu popup;
popup.CreatePopupMenu();
for( int j = 0; j < m_nItems; j ++ )
{
popup.AppendMenu( MF_BYPOSITION | MF_STRING, 0, "test" );
}
pBase->AppendMenu( MF_STRING | MF_POPUP, ( UINT )popup.m_hMenu,
"popup" );
}
}
|
|
|
|
|
Every time through the for(i) loop, the popup object gets destructed, which destroys the underlying menu. You can call Detach() at the end of the loop so CMenu doesn't destroy the menu. This won't leak resources as long as you properly destroy the top-level menu, since doing so automatically destroys all submenus.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|
|
Thank you sir, that worked like a charm...
|
|
|
|
|
Hello everybody:
i need to produce the zoom in out function at eVC..
who can tell me how to do it .. Please.
|
|
|
|
|
What is eVC ? What do you want to zoom ? Are you using MFC ? Doc/View ? Some info would help...
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Please post a real email address to your preferences, the one you put bounces.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
hello Christian:
my email address is tony@alleyoopcomm.com
and i want to zoom the map or graphics not the document
and the eVC is Microsoft eMbedded Visula C++..
thank you every much!;)
|
|
|
|
|
Am I right in thinking evc = Windows CE ?
I assume this means you're using doc/view ? You need to remember the zoom factor and draw the image scaled accordingly. Based on the limited information you provide I can't really help further.
I can't do anything with your email, except tell you it's totally different to the address you've put in your profile, so I get an undeleverable message every time I resond to you.
Jonathon
|
|
|
|
|
Hi Jonathon:
Yes you right,i am using Microsoft eMedded Visual C++ to develop application at Windows CE.
I am first time to develop about the graphics application..
and my email is correct i try to put anther email address in my profile ..
thank you
|
|
|
|
|
Hello all,
I have a NT Service running on localSystem account that will read a mapped drive. In the service, I used LogonUser and ImpersonateLoggedOnUser to get security rights to the mapped drive before i do any reading/writing to the mapped drive. I have mapped the drive in the explorer.
The problem occurs is that when my machine boot up without logging in, the error log file says that the network path is not found (referring to the mapped drive). I am guessing that a script/ service to map all drives was not ran when my service started.
My question is, is there any way that i can call that particular script/service to run and map the drives from my service before any login is done.
thanks
|
|
|
|
|
As mentioned when you asked this question previously, you can't guarantee that the mappings will be made when your service starts. You should use fully qualified UNC names rather than mapped drive letters:
CreateFile("\\My_Network_Machine\C_Disk\Temp\SomeFile.log"...);
CreateFile("M:\Temp\SomeFile.log");
Hope this helps.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
|
I've noticed that the base dialog class in WTL doesn't handle adjusting the font of the dialog template to the shell font. MFC does handle this, but I'd prefer to use WTL due to its light weight. I'm contemplating modifying the WTL source directly, but if someone has another solution, I'd love to hear it.
Thanks,
Jim
|
|
|
|
|
Yeah, set the FONT line in your dialog resources to "MS Shell Dlg" and add the dialog style DS_SHELLFONT. You'll have to do that by manually editing the .RC file, and if you ever modify your dialogs with the resource editor, it will remove those changes and you'll have to make them again.
I think the MFC way of modifying the font on the fly is some serious legacy code, since the purpose of MS Shell Dlg is to have the OS pick the right font automagically.
--Mike--
http://home.inreach.com/mdunn/
Ford: How would you react if I said that I'm not from Guildford after all, but from a small planet somewhere in the vicinity of Betelguese?
Arthur: I don't know. Why, do you think it's the sort of thing you're likely to say?
|
|
|
|