|
Thanks - I was aware of XSDs, but didn't believe they'd affect datagrid behaviour - I shoud have just tried it shouldn't I?!
---
|
|
|
|
|
jazzle wrote:
but didn't believe they'd affect datagrid behaviour
DataSet.ReadXmlSchema()
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
thanks, will make sure it's read.
---
|
|
|
|
|
I created an XSD using the built-in in Vis Studio, edited it to use doubles instead of strings, but it still doesn't correct the problem, and I really can't see why.
any ideas anyone?
---
|
|
|
|
|
You can post a new Message to get more help and be more spcific about how to do it or what is your code.
Mazy
"A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
|
|
|
|
|
will do, thanks
---
|
|
|
|
|
How i can make a Partiture with musical syntax in word 2003 using C#
Andrei
|
|
|
|
|
I take it your talking about writing sheet music in Word 2003?
RageInTheMachine9532
|
|
|
|
|
There are a couple of musical fonts, but you cannot combine the symbols in word 2003, because word won't write multiple symbols across each other on specific positions.
I suppose you use a musical symbols font to write lines, notes etc. on a Bitmap, and don't use word at all.
|
|
|
|
|
Any ideas? I can sort of do it at the moment but they all render themselves on top of each other at (0, 0) instead of their correct locations.
"I think I speak on behalf of everyone here when I say huh?" - Buffy
|
|
|
|
|
I'm trying to figure out the size of base types in bytes so that i can use the FieldOffset attribute properly. However, i'm seeing contradictory information.
If a byte is 8 bits, then a 64 bit integer (ulong ) would take up 8 bytes in memory. So, i would assume that:
[FieldOffset(0)]<br />
ulong value1;<br />
[FieldOffset(8)]<br />
ulong value2;
would be the correct way of declaring this, however, in the FieldOffset documentation, they are declared as follows:
[StructLayout(LayoutKind.Explicit)]<br />
public class SYSTEM_INFO<br />
{<br />
[FieldOffset(0)] public ulong OemId;<br />
[FieldOffset(4)] public ulong PageSize;<br />
[FieldOffset(16)] public ulong ActiveProcessorMask;<br />
[FieldOffset(20)] public ulong NumberOfProcessors;<br />
[FieldOffset(24)] public ulong ProcessorType;<br />
}
these long values are using 4 bytes, which is a 32 bit memory block. Won't they over lap and cause the program to overlap, or behave weird?
Cheers
Cata
|
|
|
|
|
ulong / 2 = uint Hint look at the proper class names
top secret
|
|
|
|
|
I'm still confused. How does that tie in with the size? Why declare a ulong for a uint sized memory block?
I was looking at these pages:
http://www.developerfusion.com/show/4392/3/
http://authors.aspalliance.com/aspxtreme/aspnet/types/basedatatypestable.aspx
Just trying to put 2 and 2 together and get 4 bits.
Cata
|
|
|
|
|
|
Hmmm, i can see that declaring ulong in C# in a 4 field offset would not be a problem, providing the value never exceeds the max / min of integer. But why declare it as ulong in C# in the first place when it would be better handled as an int?
Otherwise, if C# forwards a value greater than max of int, it will crash the com component because of overlap?
Cata
|
|
|
|
|
Thats why u should be using uint instead, not ulong. The C function expects 32bits, thats all that matters. On the C# side u just need to know whether the value is signed or unsigned.
top secret
|
|
|
|
|
So how does C handle 64 bit integers? uVeryBloodyLong?
|
|
|
|
|
either with long long or unsigned long long
top secret
|
|
|
|
|
i want to create a graphical interface in wich i have a treeview
i want to drag a node from a treeview in a listview (like in windows explorer) but i want to put, at the mouse position in the list view only a picture (icon)
how cant i do this??
Ps: i'am new in windows form programing
|
|
|
|
|
Here are the basics.
1) Turn AllowDrop on in the list view. Then handle the DragEnter, and DragDrop events at minimum. (DragOver is useful if you need to scroll the view while dragging.)
2) Handle the MouseDown, MouseMove, and MouseUp events on the treeview. If they move the mouse while the button is down, create the desired information and send it into the DoDragDrop method.
3) Any data can be dragged, and any data can be accepted or rejected by the control the mouse is dragging over.
4) You can insert anything you'd like after accepting a drop. There is no requirement that you insert anything into the list that even remotely resembles the item that was dropped. (In fact, you don't have to insert anything, even.)
5) Look around at the many different articles here on CodeProject for information on how to deal with tree views, and list views.
John
"You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.
|
|
|
|
|
if you'd give an example it would be perfect
|
|
|
|
|
i wanna to found some thing or tool to see all the function found in the win api dll files
how to do that i wanna a full documentation for all this functions and the use of each one !
can i found or make some thing like that ????????
|
|
|
|
|
tonaxxlss wrote:
can i found or make some thing like that ????????
You can find all the documentation on the Microsoft Developer Network at http://msdn.microsoft.com[^].
If you relaly want to re-write all the documentation yourself, you'll spend about the next 10 years doing it, but your research will still start on MSDN.
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
If you relaly want to re-write all the documentation yourself, you'll spend about the next 10 years doing it, but your research will still start on MSDN.
Sheesh, by the time he finished re-writing the documentation it will have changed dramatically.
- Nick Parker My Blog
|
|
|
|
|
Nick Parker wrote:
documentation it will have changed dramatically.
the documentation would be absolute and he would have to start all over again with the latest technology.
MSN Messenger.
prakashnadar@msn.com
|
|
|
|