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

Software Development Network >> amicalrahul's Q&A profile

amicalrahul

Member List

Veera.c
Cesar Francisco
shekhar saran
Eric Rave
John Oliver (UK)MSP, VSIP
Jan Kučera
David_Lindley
eric_from_nj
mshvw
Vohuman
stevdes
Rattlerr
victu
Brandon Bloom
rchokler
Stefoon
.net sukbir
Senthil Nathan.S
GlennZarb
joyson
Only Title

amicalrahul's Q&A profile

  • SQL Server Help!!!! Restore file mdf after exec "Drop table..." to previous state.

    Hi all. First, sorry about my poor english. I have a database which above 6 gb data and i have droped all table in my database. I try to restore from log file but my database is set to simple backup and auto shrink so log file doesn't help anymore. I have used some software to recovery from log file too but useless. My only hope right now is mdf file. Please help me. How could i restore my mdf file to state before i droped tables. Thanks Copy it from the results window and paste it into Notepad, another Query window etc. This is a 100% manual process. There are zero tools. There are no shortcuts. There is no easy way to do this. In essence you are going to manually type back in every single piece of data within the database. If you ...Show All

  • .NET Development Issue with DateTime class

    I've got a program which uses DateTime to get the year, date (ie, 12 or 13) and the month to put into a string. This is the code: DateTime now = new DateTime(); now = DateTime.UtcNow; string year = now.Year.ToString(); string month = now.ToLongDateString(); month = month.Substring(3); month = month.Substring(0, month.Length - 5); string day = now.Day.ToString(); string datetoday = year + " " + month + " " + day; Although it works well on my system (and on those of many others), some users of the program have reported that the string "datetoday" appears as " 2006 rsday, 28 December 28". These users have been running .NET 3.0 an ...Show All

  • .NET Development Bug in CLR

    I don't know where I can send bug report. So.. If 2 threads simultaneously creating another threads this way: using System; using System.Threading; namespace HungsUp { class Program { static void Idle() { while(true) { Thread.Sleep(1000); } } static void CreateThreads() { for(int i = 0; i < 50; i++) { Thread thread = new Thread(new ThreadStart(Idle)); thread.Priority = ThreadPriority.BelowNormal; thread.Start(); } } static void Main(string[] args) { for(int i = 0; i < 2; i++) { new Thread(new ThreadStart(CreateThreads)).Start(); } Idle(); } } } Then CLR will hangs up. Tested on .NET 2.0 with hotfix #1. You are ...Show All

  • Visual Basic Start Menu Folder

    Hey, i've created a program. And i published it to install off a CD. When i put the CD into a computer and install the program, everything works fine. The problem is that i want to know how to change the folder name of the startmenu. Say the installer puts the program into Start>>>All Programs>>> Test Program >>>Test Program Shortcut I want to know how to change the Test Program folder name. It's currently set to who my computer is registered to. (in my computer propeties) Is it possible to change this in the installer (some options i haven't stumbled across yet) The following URL provides you with the information that you need. http://msdn2.microsoft.com/en-us/library/shfs ...Show All

  • Visual Studio Express Editions changing current directory to bin

    Hello all, I'm currently working on a project that requires me to switch the current directory of the project to the project's bin. I've looked in several places, and can't figure out how to do it. Does anyone have any ideas Thanks so much for any input... sorry for this stupid question -Robert Oh, no, sorry for being unclear... basically my predicament is that I've got an openfile dialog box that... when a user opens a file in a different directory, the path that the program saves files to (or whatnot) changes from the bin to the directory that was selected by the user via the openfiledialog. I'm wondering how I change it back to the bin after it gets changed from the openfiledialog. Again, sorry for being unclear, and thanks a tr ...Show All

  • .NET Development Strange event behaviour

    Hello, i've got Windows Forms app, with own class instance with SerialPort inside. Everything working fine until i'm firing event from own class instance and handling it in form1. When i debug i see event handler incoming, correct args too, but when i try to show the args data in label or MessageBox nothing happen. I think it's some kind of 'thread' problem, because SerialPort runs in separate thread on background, i think. Could you be so kind and help me, please are you able to post this code remember, if you are trying to show the args/data recieved in a label, you need to invoke the UI for it to display the data on its thread, otherwise you will (99% of the time) recieve an illegal cross-t ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Numeric performance on 360

    A question for the framework/VM guys... I have ported one of my simpler benchmarks to the 360, and find that the numeric performance is running 5x slower than my 2.8GHz P4 desktop. Now I was expecting a drop in performance on the 360, allowing for the difference in CPU implementation (in order execution / branch prediction etc), but nothing like this magnitude! The benchmark simply transforms a source array of Vector4s to a destination array of Vector4s, using a 4x4 matrix. Have you guys done any benchmarking of pure numeric perf, and if so is this in line with what you get Andy. Okay, some hard numbers from my game. Basically, I'm decoding some data, creating meshes from some previously-loade ...Show All

  • Visual Basic Grid Control - Date not shown

    I am using the MSGrid control and all data shows up except the dates in the left most column. The dates DO show up if I have loaded the VB compiler onto the machine at anytime in the past. Is there a file that should be updated Driver, DLL, OCX Windows XP Pro is the OS. Any help would be greatly appreciated! Thanks, Elliott Is this a VB6 question If so please refer to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=551512&SiteID=1 ...Show All

  • Visual Basic Windows Application

    I am curious how to code to use a Calculation Button.  What I need to do is finish a program I've started but I am stuck.  Needed information: Calculate - declare variables : total credit hours, new hours, prior hours, a loop index as integers total grade points, semester gpa, new cumulative gpa, new points, prior gpa, all as doubles write a for loop that  iterates through the 2 array lists( hours and points) and adds each element to the totals if the total hours is greater than zero, calculate the semester average = total points divided by total hours set the semester average text box to the results, formatted to 2 decimals process the new cumulative average retrieve the prior gpa and ...Show All

  • Windows Forms ContextMenuStrip behavior on a TreeView (repost)

    Reposting after getting Technet subscription set up: In VS2005 (SP1) I want to use a ContextMenuStrip as a context menu on a treeview, and found that doing a contextMenuStrip.Show() doesn't block while in the Show method like contextMenu.Show() does for the older style ContextMenu object. This causes a problem if the user right-clicks a node other than what is currently selected. With the contextMenu.Show(), the right-clicked node shows highlighted while the menu is visible and then again highlights the truly selected node again once a menu item is chosen or the user Escapes. With the contextMenuStrip.Show(), only the truly selected node is highlighted while the context menu is visible, which can confuse the user. Was this change by ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Mesh size?

    What is a good rule of thumb for mesh sizes Smaller the better, or vice-verca Hardware is very optimised for drawing lots of things today. Its not unusual to see models with 10s of thousands of polygons. Like anything though 'it depends' - what is your target hardware, what else is your game doing, is disc/download size important or are high res models ...Show All

  • SQL Server Messagebox in T-SQL

    Hi All, I am struggling to display a simple messagebox in a trigger in SQL 2005. I have created a script in which I would like to have a popup dialogue warning the user of something. The only thing I could find that comes close to what i want to do is the RAISEERROR statment. If i use this however with a serverity level of more that 10, it will roll back the data and the entire trigger is made useless. If I use a severity level of 10 or less, the message does not display but the transaction is not rolled back. I have also tried the PRINT statement but this does not popup with a dialogue either. Any ideas as I am stuck. Cheers, Todd There is no way to display messages that will wait for user re ...Show All

  • Visual C++ need help on serial io in managed code

    I took the sample program CaptureSound.cpp from the latest dx90sdk (managed ) added a thread, a timer, compiled and it actually ran ok after adding /clr, fixing the /mtd incompatibility and putting two slashes behind the last include path so the VS2005 resource compiler works. (thanks for letting me blow off some steam) I need to send some data over a serial line to control the audio device. OK, I googled and found this nice example that didnt work. http://www.ontrak.net/mfc.htm failed to compile: WriteFile(m_hCom,TEXT("Com1",buf,isizebuf,&nWritten,0) error was that managed code cannot have &nWritten type addresses. googled http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=155545&SiteID=1 and found a sugges ...Show All

  • Visual C++ LNK2019

    I've never used Visual C++ before so I'm not too familiar with some of the errors and warnings I'm getting. It's been a while since I've done much object-oriented code work. I have to edit some code written by someone else. Any help or links to more places to look would be appreciated! When I try to Build, I get a whole lot of 'warning C4996: 'thing' was deprecated' I also get three errors. Two are LNK2019: error LNK2019: unresolved external symbol "void __cdecl free_ivector (int *,long,long)" ( free_ivector@@YAXPAHJJ@Z) referenced in function "protected: void __thiscall <one of the functions>" ( <the function>@@IAEXXZ) error LNK2019: unresolved external symbol "void __cdecl free_convert_dmatrix(double ...Show All

  • Software Development for Windows Vista Volume Shadowcopy Services

    Hi, we've been using VSS for our application on Windows XP and are now trying to make it work properly on Vista as well. I've broken out the code and removed error handling to make it a bit easier to look at CoInitialize(0); HMODULE dll = LoadLibrary(TEXT("vssapi.dll")); typedef HRESULT(__stdcall *PROC)(IVssBackupComponents **); PROC createComponents = reinterpret_cast(GetProcAddress(dll, "CreateVssBackupComponentsInternal")); IVssBackupComponents* components = 0; createComponents(&components); components->InitializeForBackup(); components->SetBackupState(true, true, VSS_BT_FULL, false); IVssAsync* sync = 0; HRESULT res = components->GatherWriterMetadata(&sync); if ( sy ...Show All

©2008 Software Development Network