Tomas Restrepo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. What profiler should I use with GSE?
I'd really like to profile my code, but I can't figure out what to use. I presume I need something that works with VC# Express. Anyone out there figure this out Thanks! I prefer dotTrace :-) http://www.jetbrains.com/profiler/ ...Show All
Visual Basic Send Image from VB6.0 to .Net webservice
How to send a Image from vb6.0 to .net webservice. Hi Thanks alot for quick reply There are certain issues Client machine will not have .NET framework . So it is not feasible to have .Net Component. Sending using Soap attachment. Soap toolkit has bugs in code for sending attachments. I am using Soap Toolkit for sending Integer or string data to my webservice. But I am not able to send image. I have stored image in a byte array. Example:- byteArray of dimention - 0-4065,0-765 byteArray(0) - byteArray(0,0)- 128 byteArray(0,1)-0 Now while i send it to webservice Byte array of .Net is not able to take it as it is of Base64. I got some converter that converts Single Dimention array to Base64string.But n ...Show All
Smart Device Development WM6 standard emulator
When I try to use WM6 standard emulator, the numeric keys of emulator don't work. I mean keys 0-9. If I use computer keyboard, it works, but if I click on keys on emulator, it doesn't. ...Show All
Visual C++ How to use CRect in DLL
I have created a DLL using VS2005 and would like to use CRect and NormalizeRect() but I keep getting a unresolved external link error. I am just learning so it is probably something simple. Do you have any suggestions Thanks Here is the H and CPP files H #ifdef CLIPBOARDHELPER_EXPORTS #define CLIPBOARDHELPER_API __declspec ( dllexport ) #else #define CLIPBOARDHELPER_API __declspec ( dllimport ) #endif #include "atltypes.h" namespace ClipbrdHelper { // This class is exported from the ClipboardHelper.dll class CLIPBOARDHELPER_API CClipboardHelper { public : CClipboardHelper( void ); // TODO: add your methods here. }; extern CLIPBOARDHELPER_API int nClipboardH ...Show All
Windows Forms display member of checkedlistbox
I want to use a checkedlistbox for users to check which record they want to select. Can I show the full detail of record(serveral fields) instead of a single field I want a check box at the first column for user to check it, state the record is selected, there isn't any field for this check box to store the value in my database, the check box is only for me to know which record(s) I'll need to save. can datagridviewCheckBoxColumn do the same thing Or it is only one of the boolean display styles Thank You ...Show All
SQL Server Merge replication - examples for custom conflict resolvers?
I have gone through BOL and various online resources including this one and I can't find any examples on how to use custom conflict resolvers to generate a result row which is a combination of the rows to be merged. BOL says it can be done, but suitable examples are missing. I have found various posts requesting examples from up to a year ago, but can see no replies with relevant information In particular I would like to see examples of 1) A stored procedure based custom conflict resolver 2) A business logic handler written in VB .Net Here's hoping aero1 You might want to look at the additive conflict resolver. This will do something like concatenate or add the two values together. You ca ...Show All
Visual Basic How do I attach an event handler ?
Hi, I'd like to know how to attach an event handler in VB, There is a C# sample code in this URL that I want to convert to VB (Figure 8) http://msdn.microsoft.com/msdnmag/issues/06/01/speechinWindowsVista/default.aspx loc=&fig=true#fig8 I have succesfully converted every lines to VB except those : //Attach an event handler pizzaGrammar.SpeechRecognized += new EventHandler<RecognitionEventArgs>( PizzaGrammar_SpeechRecognized); Every attempt I try to fix it, I'm told that I need to use AddressOf, but when I use it, It must have two arguments, and I'm unable to set the last. pizzaGrammar.SpeechRecognized = New EventHandler( AddressOf RecognitionEventArgs , pizzaGrammar_SpeechRecognized) ...Show All
.NET Development Window.open, but in a new process...how?
How can I open a new window in seperate process I have found the following: function openNewProcess(url){ set IE= CreateObject( "InternetExplorer.Application" ); IE.Visible = true ; IE.Navigate(url); } This is not what I want as some of our clients don't use internet explorer. I want the page to open in a new process, but in their default browser. I also found this: function openNewProcess(url){ var wsh = new ActiveXObject( 'WScript.Shell' ); if (wsh) wsh.Run(url); } But when I run it I get: "Automation server can't create object". Can someone please help me get this ironed out TIA From what I can tell, using: window.open(&q ...Show All
Visual Studio 2008 (Pre-release) XLinq: Get XElement Line Number
Hi, Does anyone knows how I could read the line number of a particular XElement read from a XML file Regards chionhhm Dear Mike, I have tried your solution and submitted my comment in the blog. Not sure if you have received it. Let me know if you don't. Thanks. Regards chionhhm ...Show All
Windows Forms Capture the row information from a datagridview
Hi, Could someone please advise me of the simplest way to capture the row information from a datagridview using VS2005 Each row in my dataGridView consists of four columns from my sql database, and I would like to 'capture' the all the row info and input it into a datatable to display in another format further on. Can anyone please advise me of any pointers No I get an error when using: DataGridViewRowCollection myRow = dataGridView1.SelectedRows; Error 1 Cannot implicitly convert type 'System.Windows.Forms.DataGridViewSelectedRowCollection' to 'System.Windows.Forms.DataGridViewRowCollection' C:\Documents and Settings\My Documents\new format\Visual Studio 2005\Projects\Form1.cs ...Show All
Windows Forms Can't get DrawItem event any more, in some special case
This interesting thing was found by use of DebugView to monitor the all events. Suppose that there are 2 controls, one is propertyGrid, one is myListBox, which is a subclass of ListBox. myListBox uses OwnerDrawFixed mode, so it has to draw all items manually. However, in some mysterious case, I found that when I repeatedly opened and closed the propertyGrid, myListBox may never raise any DrawItem event. I output all events to DebugView, then found that WM_PAINT was there, but didn't WM_DRAWITEM. Also it can't restore from this bad status no matter what I did (move, refresh, resize, maximize, minimize...), until I recreate another myListBox. I think WM_DRAWITEM is nowhere to be manually emitted, since it's managed by control. ...Show All
Visual C++ Managed code compilation
I know Native C++ makes a more resource efficent program than C#.NET or VB.NET; I also am pretty sure it makes a more efficent code than Managed C++ (correct me if I'm wrong) What I would like to know is if functionally equivalant managed C++ code is more efficent than C# code Thanks in advance. another question: if you wanted to make a GUI in C#, but behind the scences you had some heavy number crunching to do, resource-wise, would it be worth it to make a external native C++ dll to do the crunching, that you refrenced from the C# GUI exe ...Show All
Game Technologies: DirectX, XNA, XACT, etc. A very simple terrain component.
Hey, I was inspired by the game components demo Mitch put up the other day, to toss together a terrain component of my own. Just be sure to supply it with a texture. 'N' generates a new terrain on the fly. It uses the BasicEffect for rendering (cudos to Microsoft for ditching fixed function). The Perspective, World, and View matrices are all hard coded though, so you can't move around or anything. Hopefully someone finds it useful. using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace Game_Project { public parti ...Show All
Visual Basic Making a COM
I was just wondering what one does to make a COM in visual basic (or C# if any one reading this knows that better) basically i want to turn a class ive made into a COM; why I don't know, but it seems cool, and i think i need to learn how to make a com any way; I checked MSDN and it talked about what you should and should not do in your code when making one, but never how to make one. thank you, but my problem is i don't know how to make a dll in the first place, when i click on make a new project dll is not an option. On my C# compiler (but im not very good at C# yet, i currently trying to learn) all i have to do is click on file, new project, dynamic link library; mabey i didn't install my visual basic ...Show All
Windows Forms Creating icons and .ico files.
Hi, I'm in the middle of learning C# and for a web browser I'm creating and I need to make my own Icons. I was wondering if anyone knew of a [Free] application that would convert BMP images into .ico files Also, if anyone can help, does anyone know of a free, standalone, vector graphics programme so I could use that instead to make icons and/or .ico files I know Open Office has a vector graphics application but you also have to have the rest of Open Office as well. you could make your own quick bmp to ico converter, whether this will work for most bitmap images I don't know as I think it depends on the size of the bitmap in order for it to work to be an Icon.... Image theImage = Image.FromFile("file.bmp"); theImage.Sa ...Show All
