The way you declare the simpletype is incorrect. Check for examples from that tutorial you were pointed to in the other thread.. If I were you, I would also consider these things: - Why do you need simpleType for the comment-element? Why not just declare it like this: ? - Should the comment-element perhaps be under the root element (record)? - Do you really wan't to use sequences? Check what you can do for example with and tags.. and also check the use of minOccurs and maxOccurs attributes with those elements.
JussiL
Posts
-
XML Schema(s): Help Needed -
Fixed cell width in tablesYeah, this is exactly what I needed. Thanks :) -Jussi
-
Fixed cell width in tablesHi, Is it somehow possible to force the width of a table column be fixed (in HTML) no matter how huge the cell content might be? For example in the example below, the width of the table increases if I insert a very long string with no spaces to it. So is it possible to force the text to be wrapped eventhough there's no spaces in it? page
-Jussi
-
XML Schema(s): Help NeededThe schema itself was buggy as it had no root element and so on, but here's a refined version from it and below it you'll fin a sample xml-file. You still have to modify the schema so that it suites you purposes.. and here's a piece of xml which can be validated with the schema: Will Smith 20 1970-06-02
-
XML Schema(s): Help NeededI haven't even tested if this is well formed so there might be some typos etc. but this modifed version from you schema shows the basic idea behind type extensions (or inheritance).
-
Handle to scrollbar in CListCtrlThis solution turned out to be the best for me! Since now I just check the style when inserting or deleting items from the listview (this is enough in my case) like this:
if ( (GetStyle() & WS_HSCROLL) != 0 ) doMyStuff();
Thanks! -Jussi -
Handle to scrollbar in CListCtrlI Checked the control with spy++ and yeah, I'm not able to attach to it.. It seems that my whole approach for the problem was completely wrong. Perhaps I tried to do things too comlicated, since the actual problem is that I wan't to know when the scrollbar is created and when its destroyed, so that I can do something interesting.. Now I wrote a message handler for WM_PARENTNOTIFY thinking that also the creation of the scrollbar would cause this message to be sent to my custom-control.. but it seems that it is not sent in such cases. What would be a better approach? -Jussi
-
Handle to scrollbar in CListCtrlHow can I get handle to the CScrollBar which is created automatically when I insert enough items to my report-view?
-
CListCtrl ScrollbarHi, I'm trying to solve the very same problem and I haven't been successfull with that ShowScrollbar-function either.. It doesn't help that I'm not that experienced with MFC. I'm wondering that could this be solved by simply using the WS_VSCROLL style when creating the control? Well, in my app the scrollbar _does_ show in certain situations when using that style (even if there are only few items in the report view and therefore no actual need for the scrollbar) but I haven't been able to pinpoint the exact conditions for this. My guess is that this behavior has something to do with redrawing.. You tell me :) But hey, give it a try and let the world know if it works.. -Jussi
-
Scrollbar in CListCtrlHi, Is it somehow possible to have the horizontal scrollbar always visible in my listctrl? Or actually the problem is that with n fixed length columns it looks ugly if I leave room for the scrollbar which isn't there (kind of a (n+i)th column). And if I don't reserve that space for it, it looks ugly when the scrollbar appears because also the vertical scrollbar is shown. Which solution would be good style in this situation?
-
Scrollbar in CListCtrlHi, Is it somehow possible to have the horizontal scrollbar always visible in my listctrl? Or actually the problem is that with n fixed length columns it looks ugly if I leave room for the scrollbar which isn't there (kind of a (n+i)th column). And if I don't reserve that space for it, it looks ugly when the scrollbar appears because also the vertical scrollbar is shown. Which solution would good style in this situation?
-
Maple !!! Help !!!You could be more specific about your problems. You can use maple routines and data structures in your C/C++ application by using the OpenMaple API and it's easy to find example program listings from the net. Did this help? - Jussi
-
Problems with DDK in W2000Hi, I'm having problems with the UpdateDriverForPlugAndPlayDevices() service in the DDK. For example the driver installation sample \2600.1106\src\setup\install works fine in WinXP Pro and the output is (xxx = correct hw id):
... Found! [xxx] Driver Installed successfully.
But in W2000 SP3 it fails:... Found! [xxx] UpdateDriverForPlugAndPlayDevices FAILURE: (0xe0000203)
So it finds the device matching the given hardware id but fails to install the drivers. That error code means ERROR_NO_DRIVER_SELECTED but this information doesn't help much. What could be causing this behavior? According to the DDK documentation this feature should be supported in ME, 2000 and XP but I'm able to use it only in XP Pro and Home. I compile with VC++6.0EE in Win Xp Pro. - Jussi