CharlieRussell's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rendering glitch
I know im just overlooking something, but I spend so much time screwing around with the parsers, my brain has gone to mush! Please help. Ive written an ASE parser to work with the Mech Commander2 data. Thing is, although the vertices are exactly as from the ASE file, the rendering results sure arent! This is a snippet of the ASE from a cube sample. MESH_VERTEX_LIST { *MESH_VERTEX 0 0.623569 -0.907951 -4.038956 *MESH_VERTEX 1 1.486032 -0.760590 -2.240500 *MESH_VERTEX 2 -0.286734 -1.063480 -1.365539 *MESH_VERTEX 3 -1.149197 -1.210842 -3.163995 *MESH_VERTEX 4 0.286735 1.063480 -4.038959 *MESH_VERTEX 5 1.149197 1.210842 -2.240502 *MESH_VERTEX 6 -0.623570 0.907951 -1.365542 *MESH_VERTEX 7 -1.486032 0.760590 -3.163997 } *M ...Show All
Smart Device Development Do I need to sign a today plugin dll?
I have developed a today plugin that works without any problem in the emulator. When I place that in my PocketPC's storage card, the item is not show in the Today item list. Did I miss something ----- Problem solved. It is not allowed to install Today item on a storage card. ...Show All
Visual Basic How to initialize a structure in VB and how to create an instance.
Hi. I have 2 programs which are: a DLL in C and a VB application that uses DLL functions. Flow: The VB application calls the functions in the C DLL and also VB aplication passes some arguments to the functions of the C DLL. My Query: I have a structure whose pointer has to be passed as an argument to the DLL function.How can we initialize a structure in VB. Is there any way to pass the instance of the structure(for example in C we pass the pointer to the function to access all the members of the structure) Eagerly waiting for the reply. Thanks in Advance I'm assuming you just want to pass the same instance of the structure you're working on... I reccomend 2 things, either passing it as an Argument using ByRef ...Show All
Visual Studio Tools for Office EPM remote Access
Traditionally remote users used to access the company exchange server (mail server) over the internet using Outlook Web Access (OWA). Here the web browser is used and the functionality over the OWA was limited but functional. But if a rich functional access was required, the remote user opened a vpn access and virtually put his machine on the office network. He then proceeded to connect his MSoutlook to the exchange server as if he was local in the office network and got rich functionality. This was a source of concern from a security point of view as vpn access can be exploited. Microsoft today had as communication connector know as “rpc over http for Exchange” This connector helps remote users to connect MSoutlook to exchange ...Show All
Visual C# Passing Message from unmanaged dll to C# windows service
Hi all, I have an unmanaged dll written in VC++ 6.0. I want to pass my custom messages from dll to C# application. C# application should retrieve this message from its message queue. My problem is that i want to run that C# application as Windows Service without UI and i need a mechanism of Message loop without UI so that i can receive the messages posted by the dll inside that service. Thanx. Rashid Mahmood Thanx a lot. The problem is i havent worked on COM but one of my friends also suggested to use COM. If i want to use COM then please guide me the steps that i have to follow to accomplish this task using COM. I m using .NET framework 2. Thanx. ...Show All
Windows Forms Trying to tell which item set off an event
(Sorry if this is easy or impossible. I'm still reasonably new to C# and can't find this anywhere.) I have created a program containing something similiar to: PictureBox[] Images = new PictureBox[Total]; Images[0] = new PictureBox(); Images[0].Click += new EventHandler(Clicked_Click); The thing is that all Images created this way use the same EventHandler, as I can't give them all seperate ones because the value of the variable Total might change at some point. I want all Images to use the same EventHandler, but I only want the Image clicked upon to be affected when the click happens. So my question is: Is there a way to tell WHICH image was clicked on, or is there a better way to do this The value of sender is &q ...Show All
SQL Server Creating a calculated measure that filters
Hi, Can I create a calculated member that will filter out based on a certain dimension eg, I have a customer dimension and a sales cube. The sales cube has the sales count measure. Can I have a calculated measure that will give me the sales count for all customers that are flagged as 'New' That way, I have a total count and a New customer count. Thanks, Brian This should be very easy to do in MDX if you have attribute NewCustomer in the Customer dimension. The expression then would be something like (Measures.[Sales Count], Customer.NewCustomer.[true]) ...Show All
SQL Server PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE
I tried to create a sp on one of the databases on my lap top and got this: Pls help i need it bad Msg 10314, Level 16, State 11, Procedure ap_Hello, Line 5 An error occurred in the Microsoft .NET Framework while trying to load assembly id 65695. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: System.IO.FileLoadException: Could not load file or assembly 'vbtriggers, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x80131 ...Show All
SQL Server Problem with UpdatePanel with Trigger, using MasterPage
Hi all, I have a MasterPage with Calendar Control, and a content page with ListBox control. My plan is to have a post back on the ListBox, when the Calendar control "SelectionChanged" event fires. Both the Calendar control and the ListBox control are child elements of separate UpdatePanel controls. I have this code fragment in the content page "Load" event handler. if (!IsPostBack) { Microsoft.Web.UI. AsyncPostBackTrigger trigger = new Microsoft.Web.UI. AsyncPostBackTrigger (); trigger.ControlID = master.CalendarStartDate.ClientID.ToString(); trigger.EventName = "SelectionChanged" ; UpdatePanelItemMovers.Triggers.Add(trigger); } But when the page loads, I get this error: A control with ...Show All
Software Development for Windows Vista Missing Templates for WCF and missing VS Extensions for WPF
Hi, i've installed the last Version of Visual Studio 2005 Extensions for Windows Workflow Foundation (.Net 3.0 Release) but I can't find the project templates. Does anyone know where are the templates an what is with the WPF Part thx little_Attila The WPF and WCF templates are not installed with the Visual Studioe 2005 Extensions for Windows Workflow Foundation. For those you need to install Visual Studio 2005 extensions for .NET Framework 3.0 (WCF & WPF) which can be found here . ...Show All
.NET Development watch training videos like VB.NET , C# , ASP.NET , SQLSERVER AND LOT LOT.......
www.shamirza.cjb.net click to see...the videos. click hear........:) Shamirza wrote: click to see...the videos. click hear........:) cool. ...Show All
Visual Basic Program that scans text.
I'm writing a program that searches web pages or documents for certain strings of text and returns them back to the user. I know there is a simple answer to this, but how do I do it Thanks. And to people who've answered my other questions, thanks for putting up with me. Basicly you can use the String.IndexOf() method to find one string within another. Exactly how you use this will depend on the results you need. For instance, following is a routine that returns an array of indexs within a string that are the starting points for a list of search terms: Private Function FindInString(ByVal stringToSearch As String, ByVal searchTerms() As String) As Integer() Dim idx As New List(Of Integer) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tint programatically a Texture2D with another Texture2D
Hello, Is it possible to tint programatically a Texture2D with another Texture2D For example: I have 3 furniture textures: a chair, a table and a cupboard I have 3 material textures: pine wood, teak wood and birch wood I want to show the chair, table and cupboard in pine wood, teak wood and birch wood. How can I do in XNA Thanks in advance Lluis What do you mean, behind the furniture texture(maps or what)....maybe some examples Is this 2D or 3D application EDIT1: Think about it ...every pixel have assigned value. By reading streams... You can do with this values whatever you like...(I love This One in programming). So answer is: Yes, you can tint texture by another texture... F ...Show All
Visual FoxPro Memory leak in COM Server when passing array data?
Hi, I'm trying to investigate why calls to our VFP COM Server seems to leak memory and hopes somebody can explain what is wrong. When following the memory consumption on the COM Server process instance in the Windows Task Manager the 'Mem Usage' explodes. I've created a scenario involving VFP and VB that seems to reproduce the problem. I'm using VFP 9 SP1 and VB 2005 (as included in Visual Studio 2005 SP1). The VFP program is very simple: DEFINE CLASS ComServer AS CUSTOM OLEPUBLIC FUNCTION PassArray( theArray[] AS Variant @ ) AS Boolean RETURN .T. ENDFUNC ENDDEFINE It has been build as a Win32 COM Server executable (comserver.exe). Because I've building from inside VFP9SP1 the COM Server is registered automa ...Show All
Visual C# Saving from C# form to mssql
Hi guys, sorry if this is a basic question, I have been trying for a bit to save results from a c# form to the database. I get values, for example, when I create the tables and manually enter values this are displayed in the form fields for each row, however, I cannot update or save new values (create new rows). I am a bit confused with the table adapter, dataset, etc, maybe I am just doing it wrong I can post some code once I get home. Thanks. hi, wannabguru Table on the form is to show the data, while dataadapter is like a bridge between dataset (in the memory) and database. table -- dataset (including dataTable ) -- dataadapter -- database So It is clearer, right ...Show All
