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

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

aspatz

Member List

mri
SolarWind
Hatkesh
kfsoft
VBE_programmer
Vinodonly
Edward1
ddlam
ivanw
TonyVFP
Shu Gao
ajustin
Eragon.
M.D
rlw
Futzy
WojtBart
El Bruno
vbrada
markmcgookin
Only Title

aspatz's Q&A profile

  • Windows Live Developer Forums Windows Live Contacts Control beta v0.2 Released

    The next iteration of the Windows Live Contacts Control is live! Read all about version 0.2 here and here . Questions and comments welcome! -Danny Brilliant, works much better than 0.1, no more cookie deletion! Prefer the way the callback works too, much neater. Good stuff. Thanks! Jeek ...Show All

  • Visual C# Problem about Control's SetStyle

    I create a component inherit from UserControl,now,when i use SetStyle in initializing instance,code like this: SetStyle(ControlStyles.DoubleBuffer,true); SetStyle(ControlStyles.ResizeRedraw,true); SetStyle(ControlStyles.UserPaint,true); SetStyle(ControlStyles.AllPaintingInWmPaint,true); but,when use this component,it seem work well when set this small size,when i set size as 30000,30000,it contains a error:System.ComponentModel.Win32Exception but i think this SetStyle it's needed,how can i do with this problem Thanks of all. Hello Vijaye,i think there's a little reasonable about your explain,but we don't forget that the truth:when i remove the one in two of follow code: SetStyle(ControlStyles.DoubleBuffer,true); SetStyle(Contro ...Show All

  • .NET Development Errors installing .Net F..work 3.0

    While trying to install >NET Framework 3.0 I got several errors: 1) NGEN.exe -- Entry point could not be found: "The procedure entry point CorGetSvc could not be located in the dynamic link library mscoree.dll" 2) Microsoft Visual C++ Runtime Library: "Programs: C:\Documents a... This application has requested the runtime to terminate it in an unusual way. Please contact the application's support team for more information." I stopped installation at this point. In a previous post someone pointed out that a repair to the .NET components would do the trick. Well, .NET F.. is not installed! (any versions) Ideas, please! I finally gave up. This occurred about two months ag ...Show All

  • Visual Studio 2008 (Pre-release) Linq: Performance Issue

    Fellow explorers, I ran a test the other day on the performance of certain aspects of Linq. I had an object Office with Id and Name properties and then created a List<Office> with a bunch of random instance of these objects. Then I wrote 3 finders to look for all the objects with Id > 10. Simple stuff. The for test: List<Office> os = new List<Office>(); for (int i = 0; i < offices.Count; i++) { if (offices .Id > 10) os.Add(offices ); } The foreach test: List<Office> os = new List<Office>(); offices.ForEach(delegate(Office office) { if (office.Id > 10) os.Add(office); }); The Linq test: IEnumerable<Office> m ...Show All

  • Visual C++ memcpy

    HI, #pragma pack(push) #pragma pack(1) typedef struct notation { unsigned short lineCount; float lastLon; float groundSpeed; unsigned short checkSum; }R_NOTATION; #pragma pack(pop) ra.lineCount = 20; ra.lastLon = 2000; ra.groundspeed =23; ra.checkSum = 12; Union ALL_NOTATION{ R_NOTATION ra2; char str[12]; }; memcpy(&ra2, ra, sizeof(ra)); printf("\n DATA: %s ",str); about piece of code prints null, why anyone please help me out.. -thanks, thiru There's no declaration for "ra" but it probably should be: memcpy(&ra2, &ra, sizeof(ra)); ...Show All

  • SQL Server Does it locks database/tables when Only Select query comes in SQLTransaction

    Hi, I want to make SQLTransaction as global and use it checking the State. But then where there are Only Select queries are going to fire, it will open transaction. So, Does it locks database/tables when Only Select query comes in SQLTransaction. If you have another successful way of doing this, Please suggest. Thanking you. tats A select typically only takes shared lock and releases the lock as soon as the select is done. If you want to an exclusive lock, you will have to use "tablockx" hint. Please see book online for detail. ...Show All

  • Windows Forms checkbox control passing null value in datagridview

    I have a checkbox in a datagridview and it is passing a null value instead of a false/0 when user doesn't click on it. How can I change it, so it passes a value. I already tried passing values explicityly through the bounddatacolumn properties in the datagridview... How are you getting the values This works for me Public Class Form1 Private Sub Form1_Load( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles MyBase .Load Dim chkCol As New DataGridViewCheckBoxColumn chkCol.Name = "CheckMe" chkCol.HeaderText = "Check Me " DataGridView1.Columns.Add(chkCol) DataGridView1.AllowUserToAddRows = False DataGridView1.RowCount = 5 Fo ...Show All

  • Windows Forms File allocation

    Hi, I am working on XP. I want to create a large file and reserve all the disk space necessary upfront. To do so, I create the file and write one byte to the end of the file. This operation takes a long time to complete. It seems the entire file is getting written. Subsequently, I set the file to be a SPARSE file. The operation completes quickly, but the file is not actually allocated (my free disk space does not go down). Is there a way to create a file and force the OS to allocate all the blocks (without writing the entire file) Any help would be appreciated. Thanks. This code creates a one gigabyte file in a fraction of a second: using (FileStream fs = new FileStream(@"c:\temp\largefile.bin", FileMode.OpenOrCreate, ...Show All

  • SQL Server Trouble parsing xml with openxml

    I have a simple xml to be parsed using openxml. But somehow this has become impossible. I'm using sql server 2005 Enterprise Edition. Here's the xml: <Employees> <Employee>Chris</Employee> <Employee>Mike</Employee> <Employee>Frank</Employee> </Employees> Here's my stored proc: Alter procedure Parse_Xml @ipXml varchar ( 2000 ) as Declare @hdoc int exec sp_xml_preparedocument @hdoc output , @ipXml print @ipXml select Employee from openxml ( @hdoc , '/Employees' , 2 ) with ( Employee varchar ( 50 ) 'Employee' ) exec sp_xml_removedocument @hdoc I get only the first employee, i.e. Chris But i expect some ...Show All

  • Visual C++ Trace

    What is the trace I found a class and a tool... but what for Is it a particular log file How can I use it It's installed when you install the VS 2005 IDE. If I don't wrong there is something like it in VC++ 6 also. But I didn't understand what it's in general. ...Show All

  • .NET Development C# Checking for Hex '00' in a file

    Hi I'm trying to convert from COBOL programming to C# and need to check for what I call Hex zeroes in a file. I've got the file open using open File Dialogue and can read lines of text and have also defined a string of hex zeroes as follows; int lowvalues = 0x000000; However I'm not sure how to go about searching each line read for this value My Readline is as follows. Text = sr.ReadLine(); Any replies should be aimed at the level of an 8 year old ! Thanks Yes - I think you're probably right and it's my ignorance. How do I open it as a binary file and search for the binary 0's Thanks ...Show All

  • Windows Forms Font is Combobox text?

    I have another question about this...How would you set the size of the text becuase I have this: RtextboxUC thisrichtextbox = GetCurrentTextBox(); thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); but I get 2 erros with the thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); 1:The best overloaded method match for 'System.Drawing.Font.Font(System.Drawing.Font, System.Drawing.FontStyle)' has some invalid arguments2:cannot convert from 'object' to 'System.Drawing.FontStyle' Thanks :) sorry about that sudden leave, I worked my way around that and have been very busy, and still kinda am ...Show All

  • SQL Server Cluster Model Viewer Timeout

    Hi, I am trying to browse a clustering model and encounter the following timeout error: XML for Analysis parser: The XML for Analysis request timed out before it was completed. Execution of the managed stored procedure GetNodeGraph failed with the following error: Exception has been thrown by the target of an invocation.Microsoft::AnalysisServices::AdomdServer::AdomdException . Is there anything I can do to change settings to enable viewing of this model Or, perhaps we have too many attributes in the model Thanks. Excellent, thanks Bogdan! That worked perfectly. For clarification, it's: Tools --> Options --> Browse left-side tree in the pop-up window to Designers --> Analysis Services Designers --&g ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Problem with GDI+

    Hi ppl! I'm doing the following: Bitmap bmp = new Bitmap(@"D:\Temp\SansaBitmap\IMG_0600.bmp",false); bmp.Save(@"D:\Temp\SansaBitmap\IMG_0600_new.bmp"); As far as I understand this should create exactly the same file as it was, but guess what - it creates a file that is 2 times bigger!!! What is the problem How I may create a file that is exactly the same size Best, Telek. And the probable explanation for this behavior is that Save creates a 32 bit depth bitmap and probably your original bitmap was a 16 bit depth one. ...Show All

  • Windows Live Developer Forums adCenter API implementation with nusoap in PHP

    Hi, Currently, I am implementing adcenter API in PHP using nusoap tool kit. I already had my sandbox environment activated. Here's my problem. < php require_once('nusoap.php'); $parameters=array("APIFlags"=>1); //msnapi.wsdl is a copy of https://beta6.api.idss.msn.com/adcenterapi.asmx wsdl $soapclient = new nusoapclient('msnapi.wsdl','wsdl'); if ($soapclient->call('GetAccounts',$parameters))  echo "success"; else  echo "false"; > When I executed the above script, It displays false. What could be the reason I am new to adCenter API and SOAP. any code samples available for PHP Please advice. Thanks, Hari   After seeing your params array, I realized that you are missing campai ...Show All

©2008 Software Development Network