Bruce Fullwood's Q&A profile
Visual Studio Double Byte Characters in PDF Export
I'm using the localreport class to render RDLC files. I'm getting bad results when using double-byte characters (Korean, Chinese and Japanese) though. When I render a PDF with one of the aforementioned Asian languages, I simply get a string of " " characters where the text should be. All of the European languages my component supports (Spanish, German, French, and Italian), but they are ASCII whereas the Asian languages are Unicode, right Do I have to do anything special to handle these languages Thanks in advance. I figured out the answer and thought I'd post in case anyone needed the same answer. It all has to do w ...Show All
SQL Server SQL Code converting a String to a number
I am trying to write a SQL code to insert a record into a ODBC table. The variable 'lscus' holds a 12 character string for customer # e.g. 000000000022. The variable captures and displays a 12 character string, but when the INSERT SQL is run it converts the variable into a number e.g. 22. Why is it converting to a number How can I Insert a string value for 'lscus' Thanks for your help Private Sub cmdAddRecord_Click() On Error GoTo Err_cmdAddRecord_Click ' Create todays date into a Format "YYYYMMDD" string Dim stDate As String Dim stTime As Double stDate = CStr(Mid(Now(), 6, 4)) + CStr(Mid(f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flexible Vertex Formats
Having my octree problem solved, now I'm taking the next step. Until now I'm using simple cubes for testing, but now I want to read .X files with more complex meshes. I'm already loading the mesh and rendering it successfuly, but I need to determine it's bounding box. To do that, I need to access the vertex buffer. I know that the vertex buffer may be in many diferent formats, so I have to check the D3DVERTEXBUFFER_DESC.FVF flags parameter. My problem is that I don't fully understand the flags. Suppose that the flags are: (this flags are from the tiger.x file on the SDK samples). D3DFVF_XYZ | D3DFVF_XYZB1 | D3DFVF_XYZB3 | D3DFVF_XYZB5 | D3DF ...Show All
Visual Studio 2008 (Pre-release) Why will LINQ fail ?
Microsoft tries to helping object developers to close the gap between the relational world and the object world.And they call this " object modelling approach " Dlinq. Using " custom business entities " in enterprise programming with Dlinq might seem the best thing after " sliced bread " but it isn't. For my part I have written my Mappers and used commercial OR/M tools. They mostly provide the same thing. __Read the table from the database. ___Put that into a some HELPER thing.( DAO,DAL,ORM) ____Put that into your custom business object _____Read from your business object.(if u can :) ) I see NO REASON for this " Unnecessary Pull ...Show All
Windows Forms DataMember property 'FK_Index' cannot be found on the DataSource
Hi, Using VS .Net 2005 RC, C# I have a Windows Form "formMaster" containing a BindingSource "bs". When creating an inherited form from "formMaster" where I drop 2 browsers where 1 is the master and the other the detail everything runs fine. The detail-browser show automatically the childdata of the masterbrowser selected record. So far so good. But! When changing the DataSource property of the DataGridView of the masterbrowser and the DataSource property of the BindingSource of the detailbrowser to the BindingSource "bs" created in the formMaster then ... the program compiles & runs ok, but I receive (after compili ...Show All
Visual C++ Code Window
Hi, Is there a setting somewhere in VS2005 for one to put a verticle line in the code window at a particular character width, ex. 80 chars. Thanks Jeff AFAIK not with VS. But the tool VA X ( www.wholetomato.com ) can do this. Just look at this tool. Its the most powerful addon I ever saw for Visual Studio! ...Show All
SQL Server null + nvarchar = null?
I am trying to concatenate nvarchar fields and I have a problem. Lets say I have a table called People with nvarchar fields FirstName and LastName. Lets say that there is only one row in the table and FirstName is set to null and LastName is set to "Smith". When I run this query FullName will be null: select (FirstName + LastName) as FullName from People But I want FullName to be "Smith". Also if LastName is null and FirstName is "Bob", then FullName will be null here also. I am actually trying to concatenate 4 columns of nvarchars. Is there a workaround for this You need to handle nulls, ...Show All
Visual Studio DSL Tools vs VSTS designers
Hello, I'm trying to understand the relations and differences between the DSL Tools and the designers shipped with VSTS. Are they built on the same framework Will they continue to move in parallel ways or will they be combined together Etc. Thanks, Alex D. Frantz The framework on which the VSTS designers are built is an earlier version of the framework being developed as part of DSL Tools. DSL Tools adds to the framework the capability of defining a DSL In a declarative way and have code generators generate a working designer from that. Although plans are not yet fully formed, the intention is to move th ...Show All
Visual C++ compiler bug with templates, VC++2005
Hi, I think I've found a compiler bug with templates. I've tested this code with VS2003, and VS2005 Beta 2. The following code will produce a warning when compiled, and I can't see any reason for the warning. I've simplified the code as much as possible while it is still producing the warning. Thanks, Niall. c:\documents and settings\niall\my documents\visual studio 2005\projects\test\test\test.cpp(23) : warning C4267: 'argument' : conversion from 'size_t' to 'unsigned int', possible loss of data void test(size_t x, unsigned int y) { } template<typename T> struct Traits { typedef T Parameter; }; template<typename A, typename B& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. OBB Collision Detection getting it to work
I have some source for OBB (Orientated Bounding Box) Collision Detection. I'm certain the code is working correctly. However under only certain position will the two boxes collide correctly together. I'm sure i'm putting the rotation and translation data into the matrices wrongly. Though for the life of me i cannot see how the data was ment to be put into the algorithm in the first place. Both boxes are rotated (so both should have associated matrices) yet the function only accepts one RotationState class. Is there something i need to do to combine the two matrices. I was thinking transform one of the matixes into the co-or ...Show All
Visual Studio Tools for Office Implement similar behavior as http:// address for Network File Path in word
In word, enter http://cnn.com and then space. Word will underline http://cnn.com . Right clicking it shows a list of customized popup menu. Hover mouse over the text. A tool tip shows up saying "Ctrl+Enter to follow link". I would like to implement the similar behavior for Network File Path. Is this possible using a pure VSTO and managed code to implement it Thanks very much! Yuhang. You could use smart tags implemented in managed code. In case you are not aware of smart tags they are those little icons that pop up when you type certain text e.g. type your address in Word and press enter. ...Show All
Smart Device Development CABWIZ/Makecab problems
Hi all, I'm having trouble building a CAB file for a CF 2 project. Done the usual steps, Added a Smart Device Deployment project to my solution, set its propertys, go to build and Always get back a message saying ; Error: CAB file "C:\Documents and Settings\DAVE\My Documents\Visual Studio 2005 \Projects\Project1\DeploymentCAB\Release\Project1. CAB " could not be created It's really annoying, I dont want to have to go back to using 2003 to build projects as I really like the new features in CF 2, but if I cant deploy them correctly, then theres no point. Any thoughts/comments appreciated. Dave ...Show All
Visual C# create an drawing program
Hi everyone, I would like to create a drawing program, but I don't know how to create a drawing box. For example like in MS Paint. Please help it's important. Thanks hi! Not an expert You can create a bitmap get its graphics and then draw into it U can paint where ever u want on the form!! ...Show All
Windows Forms TabControl background color
I would like to set the background color of a tab control (more precisely the background color of the area next to the tabs). I guess I have to create a custom class inherited from TabControl where I override the OnPaint method... Could anyone provide a code sample please Thanks a lot! In the meantime I've installed the Magic Library,& ...Show All
SQL Server Strange Deadlock issue
Hi, Before posting this thread, I have searched for answer in this forum. But this case is a little bit different from the others. In our application, we encounter deadlock on a single table. Env: SQLServer 2000, SP4, ReadCommitted One thread is trying to do this update sql: "update resources_allocate set FromDate= , RepFromDate= , ResId= , Allocation= , Manday= , RepManday= , ObjId= , ObjType= , ToDate= , RepToDate= , Description= , Status= , RequestTs= , FrozenAllocation= , FrozenToDate= , FrozenFromDate= , ApprAllocation= , Appr ...Show All
