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

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

GShap

Member List

James S. Jan
Toan
EWSommer
lessthanl0l
Paul_T
TanLU
Raj Deep
Berky
Ray Dyce
Madhu Reddy
tenchyz
Claudio V.
Bilal Haidar - MVP
foobarX
JamesChapman44
hazz
AntoineF
vincent90152900
Bulldog.NET
amygal
Only Title

GShap's Q&A profile

  • SQL Server printing option for landscape or potrait

    do we have any option where we can set the option in calling piece of code to print the reports either in landscape or potrait forcibly. say i want a report to print in landscape irrespective of data in it. In the report, you can specify the repot layout. Printing will use the layout you specify. Set the ReportWidth and ReportHeight to 8.5\11 or 11\8.5 depending on what layout you would like for printing. ...Show All

  • Visual C++ vector memory deallocate

    Hi all, I have a C++ declaration like this typedef struct { int x; vector<int> y; }mytype; vector<mytype> myvar; If I have to free the memory, is it enought to free myvar like myvar.clear() or should I first clear child vector in each vector element, then clear the parent vector Thanks, gojon Thanks for the reply einaros I tried using vector destructor ~vector(). It seems it does the job. What do you think gojon ...Show All

  • Windows Live Developer Forums Use local.live.com

    Hi, Is it possible to use local.live.com in its entirety on my own site and add my own custom stuff to it We want almost all the functionality that local.live.com (Print, DD, etc.) and add some custom stuff to it. Is that viable If yes, how If no, what are my other options Thanks, Sanjeev First, you could just go to the viavirtualearth.com site and dig up articles and blog posts that may contain good features. I do know you can create a CSS file that specifies the color of the dashboard and so on. After you implement the features, then make it look good with CSS and so on. Like, for example, with V2 of the mapcontrol, they linked to a CSS file in the script. I downloaded the CSS file and modif ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Processing Keyframe Animation Data

    Hey all, I'm trying to write a Processor to extract the relevant keyframe animation data from the NodeContent data imported from the .x files, and am having trouble figuring out exactly what data i am given. Since i iterate through all the meshes to draw the model i was looking to store the keyframes as the corresponding Absolute transformations for each mesh, hence when animating i can just pick the appropriate keyframe transformation and set that as the World transformation matrix for the effect. Each NodeContent object has a dictionary of AnimationContents which in turn have a dictionary of AnimationChannels which in turn contain a list of KeyFrames, each containing the time index for the frame and a matrix transformation. Can anyone ex ...Show All

  • Smart Device Development System.TimeZone.CurrentTimeZone

    I am writing an application for a Windows Mobile device using C# and .Net Compact framework. I need to obtain the system timezone or timezone that the user specifies in the Settings/Date and Time area. System.TimeZone is an abstract class and if I do try to call System.TimeZone.CurrentTimeZone I get a NotSupported exception. I have also tried p/invoking GetTimeZoneInformation() and also received a NotSupported exception. I went to pinvoke.net to see what methods are available under coredll.dll and GetTimeZoneInformation is not there, so I have no idea how I am to get the timezone. Thanks Harry System.TimeZone.CurrentTimeZone.StandardName works fine for me – I’ve just tried it on NETCF V2 and PPC ...Show All

  • Visual Studio Express Editions Starting visual basic

    I just got out of college and I understand visual basic, but we only used it in the .net stuff so how do I just write regular visual basic and how do I save it. say to make a macro or such can someone give me a heads up on how that works I installed Visual Basic Express and received the "thank you" e-mail that discussed the free e-book you mentioned. I registered and went to the registration benefits portal. But the e-book is not listed. Is there some other way of getting it (The other freebies mentioned in the e-mail are there, just not the e-book.) ...Show All

  • Visual Basic I need a delay in visual basic program

    I am writing a visual basic program that display the file from a directory in a list box the app has a button which calls routines to 1. delete files in the directory 2.put some files in the directory 3. get the file info from directory and add file names to a list box here is code for step 3 my sub My .Computer.FileSystem.CurrentDirectory = "C:\mtmp" ' Create a reference to the current directory. Dim di As New DirectoryInfo(Environment.CurrentDirectory) ' Create an array representing the files in the current directory. Dim fi As FileInfo() = di.GetFiles() Dim fiTemp As FileInfo For Each fiTemp In fi ListBox1.Items.Add(fiTemp.Name) Next fiTemp end sub ...Show All

  • Visual Studio Express Editions how to use a custom cursor (.cur)

    I have made a .cur file and have embeded it in my.resources so I can easily acess it from in my code but I don't know the correct syntax. Whatever I try never works. Can someone please tell me the few lines of code I need to use my cursor I tried it and this error message came up. It is probely something basic, but is there possibly anything left out in the line: Dim Cur As Cursor = New Cursor( "c:\windows\cursors\pen_rm.cur" ) Thanks for trying! Error 1 Overload resolution failed because no accessible 'New' can be called with these arguments: 'Public Sub New(stream As System.IO.Stream)': Value of type '1-dimensional array of Byte' cannot be converted to 'System.IO.Stream'. 'Public ...Show All

  • Visual Studio Team System Schema Compare --> Write Updates doesn't seem to be working.

    Hi, I have a view defined in my DBPro project as: -- View CREATE VIEW [dbo].[vINJECTION_VOLUME] AS SELECT PDEN_ID, CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) TIME_ID, VOLUME FROM PDEN_VOL_SUMM_OTHER WHERE ACTIVITY_TYPE = 'INJECTION' AND VOLUME_METHOD = 'MEASURED' AND CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) >= 20050101   I compare this to one of my external databases (DPPro project is the target) and Schema Compare says that the object in the source looks like this: -- View CREATE VIEW [dbo].[vINJECTION_VOLUME] AS SELECT PDEN_ID, CAST ( REPLACE (VOLUME_DATE, '-' , '' ) AS int ) TIME_ID, VOLUME FROM PDEN_VOL_SUMM_OTHER WHERE ACTIVITY_TYPE = 'INJECTION' AND ...Show All

  • Windows Forms .NET 2.0 Winform Printing Issue

    I'm having an issue with a .NET 2.0 winforms application. The application runs in the taskbar, querying a webservice in five minute increments, and when the webservice returns data, it prints out that data in a certain format. This works fairly well for quite a while, until suddenly the application stops being able to print. Restarting the application tends to fix this issue, but that is not a valid fix for the client. Any suggestions Thanks! Yes, stopped as in nothing happens. It reports no errors, and gives no exceptions. Nor is there anything concerning it in the event log. When the five minute timer elapses again, the behavior is repeated. I did read on Google that Windows Services in .NET has is ...Show All

  • SQL Server cannot create new sql express database

    Hi, I am trying to create a new Sql Express Database (.mdf file) from inside Visual Studio 2005. I did the following: 1) Created a Database Project in Visual Studio. 2) Choose Data Source to be Microsoft SQL Server Database File 3) Browse to a directory and enter a file name for the new database, say abc.mdf 4) When I click OK, Visual Studio prompts me if I want to create the database file, I click yes. 5) After a while, I get this error message: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - E ...Show All

  • Internet Explorer Development my binarycode cannot add new object in window, but javascript can do.

    in javascript,we can add a new object in the window like this: <script language=javascript> window.testObj=new ActiveXObject("XXX.YYY"); window.testObj.dosomething(); </script> . I want directly add a new object in the window in my BHO through the IDispatchEx, but I always get the error result with 0x80020003 Member not found , anyone could tell me why ////////////////////////////////////////////////////////////////////////////////////////////////////////////// ...... CComPtr<IHTMLWindow2> pWindow; ......Get the window object in other code. //get the IDispatchEx of window CComPtr<IDispatchEx> pWinEx; HRESULT hr=pWindow->QueryInterface(IID_IDispatchEx,(void**)&pWinEx); ...Show All

  • .NET Development Getting Remote IP address!!

    Hello, My computer is connected to the internet with other computers thru a router, my LAN ip is 10.0.0.84, but it is not the WAN, so how can i write a windows or console app that gets the WAN IP Thanks you can't really. The best thing to do is maybe use some webpage/site that gives you your IP Address than parse that, or use some webservice, if one exists, to give you back your IP Address. AFAIK you can't really "go out" to check your IP, since you are behind a router therefore you will only get private IP address, since that has been assigned to your NIC. ...Show All

  • Visual Studio Express Editions collapsing commentsTry

    Hello. Everytime I open a project all the comments and regions are expanded, is there a shortcut to collapse all comments Thanks in advance. OniShiro, Choose the codes you want to comment, press Ctrl+K, hold the Ctrl key and press C. Then you comment all the chosen codes and just collapse them There is the same operation on uncomment, too. Choose the comments then press Ctrl+K, hold the Ctrl key and press U. ...Show All

  • .NET Development Threads work different in VS mode and outside VS?

    Piece of code private void SomeMethod() { Thread myThread = new Thread ( new ThreadStart (FillControlValues)); myThread.Start(); progressMeter.ShowDialog();// it inherites from Form and is progress meter bar } private void FillControlValues() { //some time-consuming operation progressMeter.DoClose() //a method where Close method is called } When SomeMethod is called the second time in the red line there is an exception. Cannot access a disposed object. This bug occurs when I run app outside VS.NET IDE. Just running .exe file. This error didn't occur in Framework1.1. It occured since I migrated from 1.1->2.0.  This is serious problem for me and I have ...Show All

©2008 Software Development Network