|
Do you have an old SDK? I don't know, but both values are defined in setupapi.h on my installation (w/o any #ifdefs)
#define SPDRP_DEVTYPE (0x00000019) // Device Type (R/W)
#define SPDRP_INSTALL_STATE (0x00000022) // Device Install State (R)
|
|
|
|
|
Well it must be old since it is the setupAPI.h that originally came with VC++ 6.0.0.8167 in 1998. And I checked the setupAPI.h and it doesn't have SPDRP_INSTALL_STATE property defined in it. So what should I do? Should I download new setupAPI.h and setupAPI.lib files to replace the old ones? Wouldn't there be any compatibility issues then? Even the SetupDiGetClassDevsEx in this header uses 6 parameters instead of 7 as in the newer version. But it works fine so I didn't bother!
|
|
|
|
|
It sounds a bit risky just updating parts of the SDK. There could in theory be other dependencies you don't know of. On the other hand, it might just work perfectly.
Advice you, I will not.
|
|
|
|
|
callousfantom wrote: So what should I do? Should I download new setupAPI.h and setupAPI.lib files to replace the old ones?
Visual Studio 6 is a very old development platform which was released way before even Windows XP was available. It is a very good IDE and there are many software developers still using it. You need to bring it up-to-date. I highly recommend the following:
1.) Install Visual Studio service pack 6[^]
2.) Install Windows Server 2003 Platform SDK[^]
The Windows Server 2003 PSDK was the last SDK which was guaranteed to be compatiable with VC6... if you want to try a later SDK your on your own.
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks guys! I upgraded using the service pack 6 and used the latest SDK and that solved the problem
modified on Wednesday, June 17, 2009 1:23 AM
|
|
|
|
|
Hi,
When trying to use insertbefore() method to insert a node from an xml file to other Xml file the node is getting deleted from the old Xml file...
Please help me regarding the same..
|
|
|
|
|
How about clone()ing the node first?
|
|
|
|
|
please let me know how to do clone() ing the first node....
|
|
|
|
|
Call IXMLDOMNode::cloneNode() on the node you get from the source document.
|
|
|
|
|
im getting the address of source node into MSXML::IXMLDOMElementPtr how to use the ptr in clone method..
|
|
|
|
|
Something like:
IXMLDOMElementPtr pNode = get_element_from_source();
IXMLDOMNode *pClonedNode;
pNode->cloneNode(VARIANT_TRUE, &pClonedNode)
Now insert pClonedNode into your target document.
|
|
|
|
|
Thank u very much for ur valuble advice...
|
|
|
|
|
can i assign a IXMLDOMElementPtr to IXMLDOMNodePtr....is it fine..
|
|
|
|
|
I have some control bars (CDialogBar actually, but the problem is the same for all CControlBar derived classes) owned by my CMDIChildWnd derived class. These control bars contains document specific data.
The problem I can't seem to find a solution to is when one of these control bars is in a floating state and I have more than one document open. The floating control bar is alway on top of all CMDIChildWnd derived windows, making it difficult to know to which it actually belongs.
(This can be easily tested by just adding the toolbar from the CMainFrame to the CChildFrame class and opening a few document windows and let a toolbar float.)
The behaviour I'd like to see is that the control bar should be on top of its owning CMDIChildWnd, but below any other CMDIChildWnd that might be in front of it.
Does anyone have a clue how to do this?
I have tried SetWindowPos(&my_child_frame,...) in various places without any luck.
Maybe I could set the window style of the CMiniFrameWnd somehow?
Any ideas would be appreciated.
I run MFC (obviously) and VS2003, though I doubt that matters.
|
|
|
|
|
hi,
My requirement is like this. Ill develop a User Interface for the user to customise and select the controls required for him (for a specific ). Is it possible to generate
a installshiel setup for the selected file. Pls help
Regards
Jayaraman
|
|
|
|
|
Jayaraman K wrote: a installshiel setup
If you really want to use InstallShield, why didn't you look at the company website[^] ?
On the other hand, if you would like to use a free tool, I suggest InnoSetup[^]
|
|
|
|
|
Hi,
Can you please help me and told me how can i set option of my RichEditCtrl to display the All line which exceeds the width of RichEditCtrl and not with scroll.
ie when i have a text string like that "blablablablablablablablablablablablablablablablablablabla"
and the width of the RichEditCtrl is less than the length of this string it should display the part of this string and display the rest in newline.
|
|
|
|
|
Did you even bother to read my reply when you posted this yesterday?
The text will wrap automatically when you use the ES_MULTILINE style.
|
|
|
|
|
VS6.0, C++
I have a control I need to 'interact' with, I set it up the usual way with
ID = IDC_TINY1 and using ClassWizard to assign a variable CStatic m_Tiny1, as expected this gives me:-
DDX_Control(pDX, IDC_TINY1, m_Tiny1);
and in the header:-
CStatic m_Tiny1;
Now though I have 11 more identical controls and instead of having m_Tiny1, m_Tiny2, m_Tiny3 etc I think it would be better to have an array m_Tiny[12] but there seems to be no way to assign each element of the array using ClassWizard. So I decided to edit these entries manually to give me:-
DDX_Control(pDX, IDC_TINY1, m_Tiny[0]);
DDX_Control(pDX, IDC_TINY2, m_Tiny[1]);
DDX_Control(pDX, IDC_TINY3, m_Tiny[2]);
.
.
.
DDX_Control(pDX, IDC_TINY12, m_Tiny[11]);
and:-
CStatic m_Tiny[12];
This appeared to work just fine until I came to edit another control using ClassWizard I then got the error:-
Parsing Error: Expected ")" Input Line:"DDX_Control(pDX,IDC_TINY1,m_Tiny[0]"
I'm assuming this is VS telling me I have an entry in the DDX that it didn't put there even though it quite happily will compile and run it.
So to the problem: Is having array elements in DDX entries a valid thing to do? If yes then how do I do it without the error?
Thanks
Apathy Rules - I suppose...
Its not the things you fear that come to get you but all the things that you don't expect
|
|
|
|
|
stevepqr wrote: Parsing Error: Expected ")" Input Line:"DDX_Control(pDX,IDC_TINY1,m_Tiny[0]"
You forgot ");" at the end of the line. That's exactly what VS is telling you also
|
|
|
|
|
cedric, i dont think he has forgotten to add the closing bracket because in the query where he is adding the control variable i can see the bracket being put properly.
|
|
|
|
|
Thanks for that but I forgot it from the post not the code! message actually reads:-
Parsing Error: Expected ")" Input Line:"DDX_Control(pDX,IDC_TINY1,m_Tiny[0]);"
Sorry!
|
|
|
|
|
put the above code after like this //}}AFX_DATA_MAP
<blockquote class="FQ"><div class="FQA">stevepqr wrote:</div>DDX_Control(pDX, IDC_TINY1, m_Tiny[0]);
DDX_Control(pDX, IDC_TINY2, m_Tiny[1]);
DDX_Control(pDX, IDC_TINY3, m_Tiny[2]);
.
.
.
DDX_Control(pDX, IDC_TINY12, m_Tiny[11]);</blockquote>
in DoDataExchange Function. It should work.
|
|
|
|
|
Thanks but the code is already included inside the '//}}AFX_DATA_MAP' I didn't change this part just added lines inside the markers.
|
|
|
|
|
i had the same problem and this was solved by adding the code outside the markers.
|
|
|
|