Software Development Network Logo
  • Windows Vista
  • IE Development
  • Audio and Video
  • Visual FoxPro
  • Visual Basic
  • Visual Studio
  • SharePoint Products
  • .NET Development
  • Windows Forms
  • Game Technologies
  • Visual C++
  • SQL Server
  • Visual C#
  • Smart Devicet
  • Microsoft ISV

Software Development Network >> Ajay Suri's Q&A profile

Ajay Suri

Member List

Armanchos
Speedie
Christer Claesson
Kenny1815
Dotnetjunky
JeffK_
KristianH
Cute_Celina
xlordt
Tatworth
CruzPedro
Lee John
JFoushee
Alvin Kuiper
TheSniipe
Speedie
yhal
arogan
Abhishek bhadouria
barkingdog
Only Title

Ajay Suri's Q&A profile

  • Visual C# Memory problem with String

    Hi All, Currently I am working on file operations. I have to read a file of any size and then replace the '\n', '\t' and other special characters with 0 and then assign them in a textbox. In this procedure memory uses is very good. But after all the calculation my last line is textbox.text = processedstring; but after executing this line memory use is almost triple the previous. So please anyone can help Thanks in advance. Sanjay So, you're asking us what is wrong with your processing without actually showing us what your processing is I can only guess, but I'd suggest that you copy the initial string into a StringBuilder object, perform the modifications on that, and then assign it to the TextBox: textbox.te ...Show All

  • .NET Development Multiple Project Solution and References

    I have a solution with multiple projects. The main project is a MdiContainer in which forms from other projects are loaded. The main projects has references to the other projects. Only when the form is loaded In want to add a button to a toolstrip in the main form. How do I reference to the MDI form. ((FormMdiContainer)( this .MdiParent)).toolStripFormButtons.Items.Add(btn); This works fine in a single project slolution, but how do I use it in a multiple project solution How do I reference to 'FormMdiContainer' Thanks for responding. Can you be more specific how I have to use a delegate A few lines of sample code could explain a lot. Or maybe a link to some documentation. I'm not that familiar with VS2005... ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Fbx File Format ?

    is the fbx file format closed format or do microsoft provide doc on the file format in the xna framework link to article that i have read http://www.3d-test.com/interviews/collada_1.htm why i am asking that is that we can adopt our own mesh format to xna framework example: our mesh format onlye ned one matrix for doing mesh animations the is bone and joint in our mesh cunstructor but when you save the final format out to xml there is one set of vertex data and one set of faces data and the magic one matrix for bone and joint and animations of keyframe per frame so if you have a mesh animation that runs 700 frame total you have to store one set of vertex and faces and 700 deffecnt matrix in a array the ...Show All

  • Visual C++ Namespaces System.drawing

    hi, I recently started using Visual C++ 2005, and I'm trying to work with BITMAPS to get pixel information, I had started a thread about that topic but now I have a more general question about namespaces, I was wondering if to include the system.drawing namespace I must be in a CLR project. Is there another way to use the bitmap class and other namespaces like system.something Thanks Another question about this, I've tried to build standard c++ classes with CLR but then I cannot include some libraries like iostream, what can I do about it ...Show All

  • SQL Server (Newbie) Trying to get rid of NonEmptyCrossJoin

    Hi everyone, As I have said before, I am new to MDX.  Any help much appreciated. I am trying to substitute the Exists() function for the NonEmptyCrossJoin() function, but Exists is not producing the results that I would expect.  The test query that I am running is: SELECT {[Measures].[Value]} ON COLUMNS , NonEmpty({[Fact].[Name].[All]. CHILDREN }) ON ROWS FROM [AS Test1] WHERE NonEmptyCrossJoin ({[Start Date].[Month Hierarchy].[2006-01-01 00:00:00]:[Start Date].[Month Hierarchy].[2006-06-02 00:00:00]}, {[End Date].[Month Hierarchy].[2006-06-15 00:00:00]:[End Date].[Month Hierarchy].[2006-12-31 00:00:00]}) This is not ideal code, but performs correctly, only listing members with start and end ...Show All

  • .NET Development https server requesting a certificate

    i manually go to a website and login, at first it had me set up a certificate, now it just asks me for my password. i want to run my app so that it starts iexplorer goes to that page sends a certificate info to the https server and sends my password so that i dont have to manually enter it. i am not really sure how to connect to the https server and send it my certificatio info and when its accepted how to send it my password. any ideas on how this might be accomplised what objects should i be looking at under Framework 2 that cert issue is not really that big of a deal its just rather annoying for testing. i have a few other small issues that i would like some advice on if possible. I believe i am access ...Show All

  • Visual C++ newbie in pointers - buffer manipulation

    Hi all, I am new to handling pointers and buffer in C++. I need to compact a buffer which is n bytes long. I have 2 pointers initialized to point to the start of the buffer. Once I hit the value to be eliminated in the buffer, I increment the source pointer and make it equal to the destination pointer to get rid of the unwanted value. read(char*data,int maxlen) { int readbyte = 0; char *s = data; char *d = data; char *eob = '\0'; // check how many data are ready DWORD readydata=0; IOCtl( FIONREAD, &readydata ); if( !readydata ) return( 0 ); // read the data memset( data, 0, maxlen ); if( readydata<maxlen ) maxlen = readydata; readbyte = Receive( data, maxlen ); int ptr=0; if(readbyte){ while( ...Show All

  • .NET Development Better way of removing commas

    Here is the situation, using C# and VS2005, one has a string that contains a number. Unfortunatley the originator of the string is ouputing commas within the string such as "1,234,567.89" What is the best way to strip commas from a string Below is a method I have come up with that seems like it is overkill... Can it be replaced with an easier, meaning less code on my side, way of doing it advTHANKSance TextBox1.Text = TextBox1.Text.Replace( "," , "" ) It replaces comma(,) with nothing. ...Show All

  • Visual Studio Team System Brain dead rules...

    I'm sure you guys don't think about issues that are so obvious nobody would every write code that way. I've found out recently that there is a lot of bad code out there that could be easily caught in FxCop. In any case please consider adding the following rules to FxCop. I've written them myself and found too many violations to count. Anyway here we go. 1) Don't call ToString() on a String. I've found that some developers put .ToString() on the end of almost everything. This only catches part of the problem but is a good start. 2) Use Type.FullName instead of Type.ToString(). This is still the developer problem of always putting ToString() on the end of everything. I've also found that this finds a bunch of problems where the code is ...Show All

  • Visual C# How to access the Windows Register?

    Hello, what functions, controls or 'usings' do I need to talk to the Windows Register regards, Henk Hey great! I also found out that 'using Microsoft.Win32;' is needed to use the registry functions. Thanks (Bedankt) Henk ...Show All

  • Windows Forms Process arrow key combination

    Hey, I am trying to process arrow key combinations (for example when a user presses Up and Right). The KeyDown event will not work because it does not handle the arrow keys. ProcessDialogKey will not work because it is fired seperatley for each key (so once for up and once for right). I could do a timer to make see if the keys were pressed quickly but that seems over complicated for something like this. Does anyone have any ideas on how this can be done easier Thanks. Hello All. zenox: I don't think so, because I don't think that there is any event for simultaneous key presses. Each key will fire its own event, so you're going to have to check the state of at least one of them. From looking over ...Show All

  • Visual C# Radiobutton

    Hi All, Still a bit confused with radiobutton.  Let's say I got few radiobuttons on a windows form.  Question #1, #3, and #5 consists of yes / no radiobuttons, but I have a problem with the selected radiobutton.  Question #1, #3 and #5 they don't belong to the same group.  How could I control yes/no for question #1 without changing other radiobuttons on the same form. TIA. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Realtime adjustment of an RPC parameter?

    OK, so the project I'm working on currently is going to have interactive music that will change as the gameplay does via a variable that the programmers have control over. My question is this: Is there something I need to enable in order to have real time adjustment of the parameters Here's my example: The BG music we want to have change as the gameplay does currently consists of 3 tracks of audio being called by a single cue-->sound. I assigned tracks 2 and 3 to increase volume at different envelopes based on the gameplay. Now, when the game first starts, the main melody (track 1) plays at full volume while tracks 2 and 3 are inaudible, which is correct. However, as the gameplay progresses, tracks 2 and 3 do not increase in v ...Show All

  • Visual Studio Tools for Office Cypress applicability to Office 2003 (installable without Office 2007?) and deployment

    Hi I read some further posts on the website re Cypress. Two questions I have from these 1) If I only have Excel 2003 which is what the solution I am developing needs to work with, can I still get the functionality of the add-ins using the action pane and will it in fact allow me to use Cypress if I do not have the Office 2007 installed. 2) Reading the below, it does not look like I can include the functionality on a clients machine and only on mine. Is this correct and is there a time when this will become so "At this point, this CTP supports only developer scenarios, meaning that you may only create and run solutions on the computer that the CTP is installed on (for example, by pressing the F5 key). The runtime compon ...Show All

  • Visual C# doing stuff before disposing

    i have written class that implements IDisposable interface i.e. dispose method. now i need to make my class write to file some buffered data before disposing it. usually you would simple write code that outputs data to file e.g. WriteData(byte[] data, string filename) and call it in your dispose method. however calling simply WriteData() method is not a solution in my case since file IO can take some amount of time but i need to *immediatelly* return to executing of the code in the owner of my class instance. there is no doubt that i should run WriteData() method in a separated thread. however this question is not about starting threads. the thing i want to ask is whether it is ok in dispose method to create a new thread that runs a method ...Show All

©2008 Software Development Network