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

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

GraemeP

Member List

Jacco Mintjes
Mateusz Rajca
Bilal Lodhi
DocMARs
adi151478
Xiaobo Gu
pdurbha
AndyMauer
NinuX
Rockoz
mike1942f
SisMng
SEMAN
daat99
readyeddy
Oveyo Banshee
PsychUK
Alin Constantin - MSFT
Tadwick
Ryan F
Only Title

GraemeP's Q&A profile

  • Visual Basic filling a bitvector32 in a loop

    Dear all, I can fill a bitvector32 like this: Dim InBytes As Int32 dim i for i = 1 to 1000000 InBytes = i 'for example Dim InBitVector As New System.Collections.Specialized.BitVector32(InBytes) next i and then I can read out the individual bits (need this for a graphics conversion). Problem: this gets VERY slow, and I trailed that to the Dim InBitVector statement. Is there ANY way to assign an Int32 number to the InBitVector WITHOUT using the dim statement Thanks, Kees Hi Renee (not a guy, I guess, from the double 'e' ), I am unclear how the bitconvertor.ToInt16 is going to help. I was aware of the bitconvertor and I knew a bit abo ...Show All

  • Visual Basic How can we see other applications open in windows and know when they are minimized or maximized

    Hi everyone I need to know if there is a way i can see other applications open in windows and know when they are minimized or maximized. So basically if there are five applications open like outlook, excel, word, a bowser, etc. How can i see this in vb.net code Is it possible then to know when that form is minimzied or maximized (event) Thanks in advance :) adventurous! I have no idea how you would see when an app is 'going to be minimized', but I think you can use GetWindowPos and use the returned X & Y to see if it is minimised - I think these values are 0 if so, but you'd better check that! ...Show All

  • Visual C++ How to get InnerException information in MFC/C++ Application

    I wrote a test program that I am able to use the ConsolWrite to diplay the InnerException information. I need to be able to write out the same information to the EventLog in a NT Service. I have tried many different things trying to get the information but have been unsuccessful. I look into the class in debug but I cannot even find the string that diplays in the ConsoleWrite. Here is a code snippet from the test program and it's output. Console::WriteLine (S "In Main catch block. Caught: {0}" , e->Message); Console::WriteLine (S "Inner Exception is {0}" , e->InnerException); In Main catch block. Caught: Exception has been thrown by the target invocation InnerException is System.MissingMethodException: Method not found.. ...Show All

  • Visual C# array of bitmap

    Hi,anyone can tell me the problem in the following code: Bitmap [] imagedataarray = new Bitmap [9]; for ( int j = 0; j < 10; j++) { imagedataarray[j] = new Bitmap (450,338 );//problem here in debugging } thanks ahead Frank Frank, Change your first line to Bitmap [] imagedataarray = new Bitmap [10]; In your existing code, your array has 9 elements (0 .. 8), but in your for loop you create 10 elements (0..9). Erik ...Show All

  • Visual Studio Express Editions Redistribution of Visual C++ 2005 Express on book coverdisk?

    Hello everyone. I am currently working on a book about developing casual games, and I was wondering what the process was to aquire redistribution permission I tried contacting customer support and all I recieved back was that Microsoft does not give legal advice and to contact a professional. I would like to include Visual C++ 2005 Express and the DirectX SDK on the coverdisk for my book, so that the reader can get started quickly and easily without having to download hundreds of megs worth of files. Any help would be highly appreciated, and thank you for your time! Sincerly, Donald May. I would contact Dan Fernandez (Lead Product Manager - Visual Studio Express) and ask ...Show All

  • SQL Server Import/Export data with SQL Server 2005 Express

    Hello folks! I have installed SQL Server 2005 Express and SQL Server Management Studio Express. Everything looks ok and works fine, but I can't find the Data Import/Export Wizard.  Can anyone tell me how to Import/Export data Thank you!!! I have to say, I have been developing for many years. This time I am truely disappointed in MS. I avoid say this kind of thing, and come to MS's defense almost always. Never bit into the hand that feeds you (karma-ish). How am I supposed to learn this great technology between jobs, or when I work for a cheap start up company. We (your users) can not easily import data into this new version of SQL Server. If you are going to put it out there as education ...Show All

  • .NET Development Private fields in a web service

    Hi if I have some public or private fields (Value Types) in a web service, can they also be made available to he client Sure they can.. if you return their values from a web method like GetPrivateField() What you CAN'T do is Dim proxy as new WSProxyClass() proxy.PrivateField = 2 ...Show All

  • SQL Server how to query against two instances of SQL Server in Query Pane

    I have registered two SQL Server instances in Management Studio. I can see the tables and databases from both instances. My problem is how to combine data from both the servers in a single query I tries the following SELECT s.consortium_contact_data_request_id , s.copy_to_exchange_address_book,i.consortium_contact_data_request_id , i.copy_to_exchange_address_book FROM sandbox . gbiv . dbo . consortium_contact_data_request s, ivhost04 . gbiv . dbo . consortium_contact_data_request i WHERE (s. copy_to_exchange_address_book IS NOT NULL) go but received a message Msg 7202, Level 11, State 2, Line 1 Could not find server 'sandbox' in sysservers. Execute sp_addlinkedserver to add the server to s ...Show All

  • SQL Server SQL Server 2005 Evaluation Install Error

    I downloaded the SQL Server 2005 Evaluation setup .exe. When I wen to install it by clicking "SQLEVAL.EXE", I received an eror stating "There is not enough space on Drive C:\ to extract this package. I have over 50 gig of available spac eon my C drive. What gives When I downloaded the .exe, I had the Norton AntiVirus Auto-Protect enabled. Could that have caused it Also, 2 days ago, I installed MS-Accounting 2007. Could that have caused a problem I have seen this error posted on the SS2005 forums and the standard response is to look at the installation logs. I have no logs. The extraction never completed. Thanks. Check your system %temp% variable to see where it pointing. Ensure ...Show All

  • Visual Studio 2008 (Pre-release) Window AllowsTransparency="True" brings up error for Design view in VS2005

    Just been coding with WPF, and I always get this error when trying to look at the Design view when I have AllowsTransparency="True" for the window. I get the Whoops! screen, and more specifically I get an error in the Error List. Error: Property 'AllowsTransparency' was not found or is not serializable for type 'Window' To allow viewing in Design View, I have to get rid of the AllowsTransparency attribute. However, I can compile it and it runs fine with the AllowsTransparency property. And It also renders fine in Expression Blend's Design view. I know this is beta software we're looking at... but is it fixable BTW, Happy New Year from Brisbane, Queensland, Australia :-) Chris Th ...Show All

  • Visual C++ Menu Bars and Dialog Boxes

    Hi, I am trying to add a menu bar on a dialog box but my attempts seem to fail miserably... I can't see an option in the toolbox for a menu so i thought that i could create the menu and then add it to the dialog box... Is this plausible If so what's the procedure to do so Otherwise does anyone know how to go about creating and adding a menu bar to a dialog box Thanks --Anger No, I don't believe so. I've been editing the file both before and after the attempt. EDIT: I figured out what was wrong, It was something simple that I over looked. ...Show All

  • Windows Networking Development Time-Out on Overlapped I/O

    Hello, I am writing a server using completion routine call back on a non blocking ReadFileEx. Can the programmer of the server side rely on the fact that the completion routine will NEVER be called until the client side executes a WriteFileEx If it is not the case, I guess that the completion routine will be called either if the client side or the server side executes a ShutDown ou a CloseSocket, or if the Windows system has a kind of time-out on the call back. This latter case is my real question. Does-it exists such a timeout and is there a way to set it to infinity. Thank you, Eric Yes, all overlapped operations have an infinite timeout until a condition of their completion is satisfied. For your Read ...Show All

  • SQL Server Simple flat file import

    Boy, do I need HELP! Have a simple csv file that I need to import. Worked fine in sql2000; I put it into dts to execute on a monthly basis. Makes connection, db connection, table creation fine, but stops at validation of flat file Basically, I want to go out and get a flat file, drop the existing table, and create the table, and import the information from the flat file. Not a complicated table of about 30,000 records. Create table [db].[dbo].[tblPatient] ( [patientID] into not null, [chartID] varChar(15) null, [doctorID] int null, [birthdate] datetime null, [sex] varchar(1) null, [raceID] int null, [city] varchar(100) null, [state] varchar(2) null, [zip9] varchar(9) null, [patientTypeID] int null, [patName] varchar(100) null) Be ...Show All

  • Visual Studio Tools for Office Excel Edit Delete Disabled

    I created an Excel Workbook project using Visual Studio and VSTO. This project uses the ListObject control bound to a DataTable to display and update data in SQL Server 2000 database. When deployed to the user's workstation, this application has an annoying habit of disabling the Delete item on the Edit menu, preventing the user from deleting columns, rows or cells. Actually this is more than annoying - it's a show stopper. Researching the problem online produced very little in the way of amswers. Are other people seeing this behavior I did find a reference in this forum article: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=309265&SiteID=1 which suggests deleting Application Data\Microsoft\Excel\Excel11.xlb. Thi ...Show All

  • Visual Basic How to retreive network adpater information from remote machine

    Hello, I am completely new to the Visual Basic langauge -although I know VBScript pretty well. I am working a making a tool that connects to a remote machine and gathers some statistics from the network adapter. However, I have no clue as to how to connect to a remote machine. I tried looking for code examples, but I couldnt find anything (which doesnt suprise me because I dont really know what to look for) In VBScript I would probably use WMI -is that also true in VB If so, how do I use it in VB If not, what should I be looking at Any code examples or help that you can give would be very appreciated Regards, Jeremy The import syntax means to include the accessibility of a nam ...Show All

©2008 Software Development Network