wleizero's Q&A profile
Visual Studio Express Editions How do I get Len(MyObject)?
After banging my head against the keyboard for a bit I am now ready to ask a potentially "duh" question like this... According to MSDN (VBE): "With user-defined types and Object variables, the Len function returns the size as it will be written to the file by the FilePut function." Sounds simple, but ... ===================== Public Class DataClass Inherits Object 'Obvious, but getting desperate... Private I As Integer Private S As String Private B As Boolean Public Sub New(ByVal newI As Integer, ByVal newS As String, ByVal newB As Boolean) Me.I = newI Me.S = newS Me.B = newB End Sub End Class . . . . Sub WriteTest ( ) Dim d1 As DataClass = New DataClass(583, "Test string&q ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are textures inverted left-right?
In the documentation for "How to: Create Custom Texture Effects" it says that: Note that texture coordinates are on a scale from 0.0 to 1.0, with ( 0.0, 0.0 ) being the top left pixel of the texture, and ( 1.0, 1.0 ) being the bottom right pixel of the texture. However as far as my code goes, I need to treat (0.0, 0.0) as the top right pixel of the texture, and (1.0, 1.0) as the bottom left one. Some of my textures have text, that's why I noticed... and had to spend a bunch of time hand-editing some coordinates to figure out the problem. Anyone else have that problem Ok I didn't know there was that difference between clockwise and counter-clockwise culling. Thanks. In addition to that, I w ...Show All
Visual Studio Can it be done : Custom colors for bars in bar chart ?
Is it possible to have different colors for bars in charts. I am wondering if there can be formula applied for each (x,y) values We are using Reporting services in local mode. If it cannot be done, it appears we have to purchase separate charting components. Thanks You can take a look at the following blog article which also includes a sample report: http://blogs.msdn.com/bwelcker/archive/2005/05/20/420349.aspx Within the next month or so there will also be a new MSDN article that specifically focuses on how to get more out of the built-in RS charts. -- Robert ...Show All
Community Chat Microsoft vs Alibaba.com?
When Google unseat Yahoo.com as no.1 in search engine business, Yahoo invest $ 1 billion dollar to Alibaba.com to increase its internet presence. As I'm doing my research about search engine, I believe the reason could be a prediction that Alibaba.com may enjoy profitable years to come because it is not getting the eye of Microsoft for the time being as Microsoft is busy to unseat Google in Search engine business, Sony in game console business and Apple in music downloading business. This is a repeat story of AOL.com in the 90's when Microsoft is busy to unseat Netscape in the browser war. Is Microsoft going to launch its own B2B site in the future Just giving an idea to MSN. duck thing wrote: ...Show All
.NET Development Too many arguments specified error in stored proc
I'm getting a 'too many arguments specified' error when I call my stored proc. I've assigned the stored proc to a SqlDataAdapter and a DataSet which is called when the SqlDataAdapter.InsertCommand is called. I've checked the numbers of variables and I can't see where there is a mismatch in the number of arguments being called. I assume that this error has something to do with how I am retrieving the SQL autonumbered identity column (CitationID) with SCOPE_IDENTITY(). If someone could look over my code and let me know what I'm doing wrong, I would greatly appreciate it. Stored Proc: ALTER PROCEDURE tbl_Citations_AddNewRow @CitationType nvarchar (6), @ARTFlag nvarchar (7), @Title nvarchar (1000), @PublicationDate date ...Show All
Windows Live Developer Forums Use local.live.com
Hi, Is it possible to use local.live.com in its entirety on my own site and add my own custom stuff to it We want almost all the functionality that local.live.com (Print, DD, etc.) and add some custom stuff to it. Is that viable If yes, how If no, what are my other options Thanks, Sanjeev The Atlas part is on the right track. All the niffty interface elements can be found at: http://atlas.asp.net and the control toolkit at http://atlas.asp.net/default.aspx tabid=47&subtabid=477 All the nice functionlality you see would have to be integrated by yourself, but really 90% of it is done. The timeframe is possible if you are committed to new technology, bear in mind Atlas is scheduled for releas ...Show All
Visual C# Retrieve univocal identifier for Usb port or device
Hi to all, I have some identical SmartCard Reader (Gemplus reader) connected to a usb hub. Each of these has identical vendorId and productID, so I can't recognize which of them I'm using in a determinate moment. I need to associate a device to a port and recognize it: to do it, I need only to obtain a data (code, ID, number, or something else) that can tell me that I'm using a determinate usb port (or device). This code has to be identical indipendently from the reboot of machine or from the adding of other devices. I've tryed to use usblib and I've seen that in the properties of the descriptor I've in "non-public members" a string like this: {[usb_device: filename=\\.\libusb0-0006--0x08e6-0x3437, ...Show All
Visual Studio Team System Product Documentation for Team Edition for Database Professionals
The product documentation is now live on MSDN for Team Edition for Database Professionals. You can find it here: http://msdn2.microsoft.com/en-us/library/aa833253(VS.80).aspx Going forward, you will see more or less monthly updates to the content. If you have suggestions or requests for additional documentation, please feel free to let us know. Continuous publishing updates for May are live as of June 6, 2007. Included are the following new topics for Service Release 1: Overview of Files and Filegroups How to: Add Files and Filegroups How to: Define Variables for Database Projects Overview of Cross-Database References How to: Create Cross-Database References How to: Define Full-text Catalogs ...Show All
Visual Studio Express Editions how to set a thread to run at specific core
1. is it possible to set a thread to run at specific core. 2. to find number of core using vb.net Using the WinApi it's possible to edit your process afinity mask and to resume threads. However this can actually have highly detrimental effect depending upon the the nature of your application. Windows normally tries to keep a thread running on the processor which initiated it. Afterall, that process is in cache and will be faster rather than to have to do another cache loading on another core. It would be the rare thread that could accomplish anything meaningful with hard affinity unless it was specifically designed to do so. Microsoft recommends the it's better to manipulate process ...Show All
Visual Studio Sandcastle December CTP - Wrong icons shown on member pages
Hello All, I have noticed that when generating documentation using the Sandcastle December CTP, the icons it chooses to represent protected members does not appear to be correct. This seems to happen using either the Prototype or VS2005 presentation. The member items I have noticed that seem to have the wrong icons are as follows: - protected methods - protected properties - protected fields - protected events I suspect this also may apply to protected enums, delegates, interfaces, operators and structures etc. I have not tried including private/internal members in the documentation, but this will also be worth checking. Michael Thanks Michael. I will take a look and if this is a bug we ...Show All
.NET Development Capturing Thread Context Switch in CLR Profiler
Hi , I am trying to capture thread context switch information in a managed application using a CLR profiler. The api provided by ICorProfilerCallback2 does not have any straighforward way of doing this. Is there some way out Thanks, Nilabja Roy Graduate Student Vanderbilt University Are you referring to context switching as in scheduling which thread executes on which CPU, and when gets preempted to allow another thread to run This is done at the Operating System scheduling level. The CLR Profiling APIs only provide instrumentation at the CLR level, and thus would not likely be helpful here. ...Show All
SQL Server Error while trying to execute a user defined function
Hi, I'm working on SQL SERVER 2005 Standard edition. I created a user defined function on the dbo schema. Is it possible to invoke a user defined function in a select clause only with the name of this function without precising the name of the schema. if my function is called TOTO(), can i execute the command : SELECT TOTO() go Actually when i try to execute this command i have the following error message : Message 195, level 15, state 10 : 'TOTO' is not a known built-in function name option. Can someone help me to solve this issue Locolito: The response to your question is no: WIth a scalar function you must supply the "schema" qualifier -- such as dbo; however, the schema qualifier&nb ...Show All
Visual Basic Exposed types defined in Referenced class library are not CLS-compliant
Hi, Hope this is the right forum for this. This problem has occurred for me using Visual Basic under VS2005. I'm trying to split a large project into several smaller class libraries containing classes that need to be used in other projects. I've taken two of my classes and put them in a Class Library project, then excluded their files from the original project, built the Class Library dll and then added a reference to the dll in the orignal project. After adding "Imports" lines to all of the affected classes, the project works fine again, but in all cases where the now-external Types are used (method arguments, object properties, etc.), I'm getting warnings that the objects are no longer CLS-compliant. Presumably t ...Show All
Windows Forms Help with Winform and binding to an object
I'm looking for the correct way for me to bind an object to a winform to display some of it's attributes. For Example a Person instance with first and last name. I've been able to do it using a BindingSource, but have run into several things that I don't like. 1. The bindingSource is working with a collection, I just want to have one "person" that I'm displaying on a winform. If I change the person, I want to just replace that instance, not add to a bindingSource and navigate. I don't want the navigating tool on the form either. 2. I want to have changes that are made to the current "person" flow up to the interface. A simple example would be a button, that changes the person's name directly. I use this as an example to ...Show All
Smart Device Development Retrieving Path of the file
Hi Friends, I am presently using the path like "\\Program Files\\Images\\image001.gif" But If my application get install on memory card, path may get change. How can we know the path programatically. Thanks in Advance, Assume that database is attached to your project solution, below code can access database programmetically. same way you can try images. con.ConnectionString = ( "Data Source =" + (System.IO. Path .GetDirectoryName(System.Reflection. Assembly .GetExecutingAssembly().GetName().CodeBase) + \\AppDatabaseCallInfo.sdf; )); ...Show All
