see the _countof macro in the Run-Time Library Reference
gethomast
Posts
-
Is it "ok" to get array length this way -
Notify connected COM clientsThank you.
-
Notify connected COM clientsHi, I have a simple ATL server project created with VS2008 (e.g. IDummy) with an connection point event (e.g. Fire_test) and a stand-alone thread. My thread should notify all connected clients with the specified event. How can I accomplish this? Maybe using EnumConnectionPoints, but how? Any examlples? Thx in advance :-D
-
Problems with scaling and stretching objects...Thank you! :rolleyes:
-
Problems with scaling and stretching objects...Thank you! I tried it. But how to put multiple objects (Images, polylines etc.) into one ViewBox?
-
Problems with scaling and stretching objects...Hi Everybody! WPF is a great Framework. I love it! My problem: I created some polyline objects with Blend, exported and placed them into my window with a grid. Now I resized my window and my objects resized too, but not as I would like it. The objects moved in all directions. It looks ugly... I want to achive a resizing method like stretching an image. Several parts should by resized or stretched as a whole. Maybe resizing the buffer where the objects are rendered? Do you have a solution or idea? Thank you!
-
querying all items... the best method? [modified]Thank you! It's a major problem, or my database design? I've decided to use this but limiting to 100 records select top(100) m.Id, m.Created, m.Subject, ( SELECT ai.Name + ';' AS [text()] FROM SenderTable as s JOIN AddressTable AS at ON at.Id = s.AddressTableId WHERE s.MailTableId = m.Id FOR XML PATH('') ) as senders, ( SELECT ai.Name + ';' AS [text()] FROM RecipientTable as r JOIN AddressTable AS ai ON ai.Id = r.AddressTableId WHERE r.MailTableId = m.Id FOR XML PATH('') ) AS recipients FROM MailTable AS m Is this method better as using cursors?
modified on Tuesday, July 22, 2008 8:24 AM
-
querying all items... the best method? [modified]I have problems on quering or better numerating all items from a specified table. Here are my tables (Third normal form): MailTable: Id, Created, Subject AddressTable: Id, Name SenderTable: MailTableId, AddressTableId RecipientTable: MailTableId, AddressTableId, State Now i want to make a query to numerate alle senders and recipients for one mail. My query: select m.Id, m.Created, m.Subject, sender.Name, recipient.Name from MailTable as m join SenderTable as s on s.MailTableId = m.Id join AddressTable as sender on sender.Id = s.AddressTableId join RecipientTable as r on s.MailTableId = m.Id join AddressTable as recipient on recipient.Id = r.AddressTableId The result: 1 | 2008-01-01 | Test | sender1@domain.tld | recipient1@domain.tld 1 | 2008-01-01 | Test | sender1@domain.tld | recipient2@domain.tld 2 | 2008-01-02 | Test | sender3@domain.tld | recipient3@domain.tld etc. My target: 1 | 2008-01-01 | Test | sender1@domain.tld | recipient1@domain.tld,recipient2@domain.tld 2 | 2008-01-02 | Test | sender3@domain.tld | recipient3@domain.tld How do I achive this, whithout using time-consuming queries? The bad way is to lookup for every mail all recipients, but this is not the best way! Should I compare all records and extract my desired information? Please Help me. Thanks!
modified on Tuesday, July 22, 2008 5:09 AM
-
Reg ExpressionJust look here: http://regexlib.com/[^] ;)