shxvacika's Q&A profile
Visual Basic When I have thought vb8 is broken....
This is an example on encoding from help. Imports System Imports System.Text Imports Microsoft.VisualBasic Namespace Convert_Example Class MyConvertExampleClass Shared Sub Main() Dim unicodeString As String = "This string contains the unicode character Pi(" & ChrW(&H03A0) & ")" ' Create two different encodings. Dim ascii As Encoding = Encoding.ASCII Dim [unicode] As Encoding = Encoding.Unicode ...Show All
Visual Studio Team System Requirements for SpellChecking with FxCop 1.35
I've looked everywhere (Forums, Google, FxCop documentation, GotDotNet website) and I haven't been able to find the requirements for getting the FxCop "spell checker" to work. All of the posts I see just mention the installation of "Office" - which is very ambiguous... 1. What version of Office 2. Which Products from Office are required 3. Do I *have* to install Office or can I just include the required DLL's in my FxCop folder TIA Dave You should be able to use Office 2000 and above Any product that installs the spell checker bits Yes you need to install Office. Regards David ...Show All
Windows Live Developer Forums Where can I find the .chm files to the latest AdCtr API
Hi, I can locate the WSDL but I need the .chm file that explains how to use the APIs. Please point me to a link . Thx Gautam The content is now available live on MSDN.com: http://msdn2.microsoft.com/en-us/library/aa983013.aspx Thanks, Shai ...Show All
.NET Development sorting by teamID
Hello, i have a Access database and am trying to create an aspx page from "lis_per" table which should be sortable by TeamID. I have written the following code and when i run it , it gives me "oledbexception was unhandled by usercode" pointing to the statement " dgrdpersons.DataSource = cmdselect.ExecuteReader()" in code. says syntax error in ORDER BY clause System.Data.OleDb.OleDbException was unhandled by user code ErrorCode=-2147217900 Message="Syntax error in ORDER BY clause." Source="Microsoft JET Database Engine" StackTrace: at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForS ...Show All
Visual Studio 2008 (Pre-release) Custom Policies: Purpose of IPolicyExportExtension and IPolicyImportExtension interfaces
I would like to extend the WSDL contract with some custom policy. For this purpose I implemented the interface IPolicyExportExtension and the method ExportPolicy. This method is called when the metadata is generated and it workss fine. My question is more related to interface IPolicyImportExtension. Who calls (and when) the method ImportPolicy What is the purpose of this method You might have a look at this and this . Let me know if it helps. ...Show All
Silverlight (formerly WPF/E) Vertical Text and Gradient Brushes
It would be nice to have a way to create vertical text without using wrapping. However, this does work. But if you set the Foreground to a LinearGradientBrush it repeats for each letter instead of applying top to bottom against the TextBlock. Is there a work-a-round for this Is this the expected behavior But if you set the Foreground to a LinearGradientBrush it repeats for each letter instead of applying top to bottom against the TextBlock. Yes this is expected behavior. I don't know of any workaround for this behavior. You would need support for a VisualBrush which WPF/E does not have at this time. -mark Program Manager Microsoft This post is provided "as-is" ...Show All
Visual Studio 2008 (Pre-release) Capture Input Char
Hello! I need to capture user input char before it'll be displayed in TextBox. But the KeyDownEventArgs contain only Key value, and i have to get its char representation. The same control in Windows.Forms had KeyCode argument in KeyDown event, that returned exactly what i need. Is there any way to capture input char Or maybe to get char from Key value Thank you. I think that what you are looking for is the PreviewTextInput routed event... This will gives you access to a TextCompositionEventArgs... which in turns tells you what is the TextInput for the event... This will allow you pre-parsing, replacement, ... The TextInput contains actual text that goes into the TextBox... Therefore, hitting dead keys or ...Show All
Game Technologies: DirectX, XNA, XACT, etc. AI Resources
I'm reaching out to the XNA Community for some good (and free) information on Artificial Intelligence and/or pathfinding Anyone know any ...or if not free, some book recommendations I'm not well versed in game AI (just theoretical), but typically AI is given a fairly small CPU budget compared to rendering, the bulk of which is taken up by pathfinding algorithms (in games where that is applicable). I don't think game AI has progressed that much in the last 6 years. I'm not sure about the rest of the book however... ...Show All
Visual Basic anything that resembles Gosub?
Can you make something in a sub that works almost like the gosub command I dont want to make a new sub and call that, cause i use a datareader and different variables in the current sub ( and i also would like to use a gosub command in the printdialog sub) Can you make a sub or fuction in the sub or something Any ideas But how would you use a call function in a printdialog What i mean is, can you call a sub from the printpage event and still draw to the page ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Cube texture mapping
Here i would like to ask about the texture coordinate for the cube mapping. I know that cube mapping did not use the normal coordinate that we use for normal texture coordinate. But i'm getting problem in understanding how the cube texture coordinate works. Let me put example here. Below is the vertex and fvf declaration: struct CUSTOMVERTEX {FLOAT X, Y, Z, RHW; DWORD COLOR; FLOAT V, W, U;}; #define CUSTOMFVF (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1 | D3DFVF_TEXCOORDSIZE3(0)) And this is my vertex array: CUSTOMVERTEX t_vert[] = { { 120.0f, 50.0f, 0.5f, 1.0f, D3DCOLOR_ARGB(255,255, 255, 255), 0,0, 1, }, { 520.0f, 50.0f, 0.5f, 1.0f, D3DCOLOR_ARGB(255,255, 255, 255), 1,0, 1, }, { 520.0f, 400.0f, 0.5f, 1.0f, D3DCOLOR ...Show All
Commerce Server Problem When Processing a Cube from Commerce
Does anyone know why the DateDimensionView created with the Data Warehouse Configurator has the following SQL clause: select * from date where dateid > 0x0000000003E7 The clause "dateid > 0x0000000003E7" is preventing a cube, mscsSales, to be processed. What determines the value 0x0000000003E7 is to be used in this clause Thanks in advance! When the cube is processed I get the following error: "A member with key '000000000001' was found in the fact table but was not found in the level 'Date Id' of the dimension 'Date'.; Time:1/23/2007 3:22:24 PM" I think the problem is that the child class has records with id=0x000000000001 an the parent doesn't have this id. I ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather Can't thank you enough. You were right I had changed two things, there was no chararray - shoul ...Show All
Visual Studio Team System Custom rule for DataReaders
One of the examples in the new version of Enterprise Library shows this code: using (IDataReader dataReader = db.ExecuteReader(CommandType.Text, "Select Name, Address, City From Customers" )) { customerGrid.DataSource = dataReader; customerGrid.DataBind(); } We intend to use this with a stored procedure, but would like to enforce a rule that all DataReaders are enclosed in a using statement like this. Is this possible I have successfully compiled and used a custom rules library from within VS2005 and have read the forum FAQ, David Kean's blog postings, and feel like I know Michael Fanning, Jeffrey van Gogh, and several others personally. But I still can't quite wrap my head around how to even check for this. Any an ...Show All
Visual C# Return / finally -- which one will execute Last in a method?
Hi I've a doubt regarding Finally block in exception handling, I'm trying the falllowing code public Dataset funct() { Dataset ds = new Dataset(); //Other declarations here try { adapter.fill(ds); } catch { } finally { ds.dispose(); } return ds; } In the above code I'm desposing the dataset before return, but it is comming in the method which is calling this method. when I'm debugging this application the control goes to finally block and executing return later. whats going on in this code. can anybody tell me please Thanks in advance Hi, Again i would like to ask you a question that why you are calling dt/ds.Dispose() and in final ...Show All
.NET Development sqldatareader?
I used two sqldatareader like that cmd_1 = New SqlCommand(strsql_1, conn_1) reader1 = cmd_1.ExecuteReader do while reader1.read cmd_2 = New SqlCommand(strsql_2, conn_2) reader2 = cmd_2.ExecuteReader do while reader2.read ****** loop reader2.close() loop reader1.close() Error Warning: There is alreay an open datareader associated with this command which must be closed first any idea regards You need to enable MARS. That’s only supported on SQL 2005 though. To enable it, add the following to your connection string: “MultipleActiveResultSets=True” Zlatko ...Show All
