CarlVerret's Q&A profile
Visual Studio 2008 (Pre-release) Problems with WCF
Hi everybody, I have a problem with Indigo. I have installed the WinFX following the instructions. Then I try to build the first application. I open VS2005, new WinFX service and I have the defaul application. Run application and I receive that I am not authorized to view this page. Instead the other applications (ASP.NET and Web Services) run right. Where is the error Thanks, luca Hey Rich I have installed the last version, january ctp. The example is using System.ServiceModel; // A WinFX service consists of a contract (defined below as IMyService), // a class which implements that interf ...Show All
Visual FoxPro Load Data
Hello, Can I know how to load the data/information from text file to Visual FoxPro Thanks a lots for help. Hi Jarron, There're lots of text file types. To import a simple CSV file use this: APPEND FROM (thisform.txtInputFile.Value) TYPE CSV AS 1250 To import a TAB delimited text file use this: APPEND FROM (thisform.txtInputFile.Value) DELIMITED WITH TAB AS 1250 To import a custom character delimited text file, use this: cmd="APPEND FROM "+thisform.txtInputFile.Value+" DELIMITED WITH CHARACTER "+delchar+" AS 1250" &cmd ...Show All
.NET Development Insert data into Access with ControlParameter
Can anyone help me figure out what I am doing wrong I have checked the code over and over again and it is just like the example on MSDN2 but I still get an error. Everything works fine until it hits quotesDataSource.Insert The error message says: "Could not find control 'lblfirstname' in ControlParameter 'FirstName' I have triple checked and I do have a lable control with this ID and I can reference the text property with lblfirstname.Text!!!!! Please help. Here is a snippet: Protected Sub Wizard1_FinishButtonClick( ByVal sender As Object , ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handl ...Show All
Visual Studio 2008 (Pre-release) Connecting lines in hierarchical diagram
How can I connect two TextBlocks with straight line or polyline TextBlocks are possitioned using StackPanels and they should be connected to make a tree. Should I use somehow data binding to ActualHeight Should I use Grid to allow layering of content Or am I forced to do layout myself without StackPanels Thanks Vojta Here is very simplified XAML for illustration: <StackPanel xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 "> <StackPanel Orientation="Horizontal"> <Border > <TextBlock Text="text"/> </Border> < ...Show All
Visual Studio Express Editions need help to uninstall sqlserver 2005 beta tools express so I can install.
Hi, Im having problems installing the MS Visual studionweb developer express 2005. I went to the Auto-Uninstall Tool and it said I had sqlserver 2005 beta tools express edition installed. I tried to remove it using the auto tool but got the error: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. Have you tried the uninstall procedures in the FAQ , there are links to different tools that can assist in uninstalling previous versions of the Applications. ...Show All
Visual Studio Inserting picture on crystal report dynamically
I am storing the image as byte array in database field. When I am generating report I want to show that field as Image. Please provide your suggestion how to do it. Basically I want insert image on crystal report dynamically. Hello Krishna, What type of database is this SQL Server will store Byte Arrays as binary, varbinary or image. All of these types Crystal Reports will support and add as a blob type to the report. If you would like to do it dynamically then you should look at this .NET samples for Visual Studio .NET: http://support.businessobjects.com/fix/samplescr.asp#02 Specifically, csharp_win_DynamicImage.zip or vbnet ...Show All
.NET Development Getting the file size from a FTP Server
Hi, I want to get a file size from an FTP server. I can use this method because the ftp server doesn't support this command: WebRequestMethods . Ftp .GetFileSize So i decided to get the file size in this way: FtpWebRequest myReq = ( FtpWebRequest ) WebRequest .Create( ftp://ftp.ftp.ftp/ ); myReq.Method = WebRequestMethods . Ftp .ListDirectoryDetails; Stream s = myReq.GetResponse().GetResponseStream(); StreamReader reader = new StreamReader (s); MessageBox .Show(reader.ReadToEnd()); My question is how can i get, just the file size, and not all the string... I don't want to split my string to an ...Show All
Visual C++ Error: LNK2019
Hi I am using MS VC++ .Net (2003) and MS DirectX 9.0 SDK (December 2004). I am getting the following error :- GDPass error LNK2019: unresolved external symbol "public: void __thiscall bullet::gunshot(void)" ( gunshot@bullet@@QAEXXZ ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" ( WndProc@@YGJPAUHWND__@@IIJ@Z ) "gunshot()" is a function which is declared in a header file, as a public function of a class. Its definition is in the same source file as the function call. I cant seem to understand the reason behind this error. Please help me. fixed tha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. loading multiple meshes
is there a sample out about loading multiple mesh objects, and how to place them on the screen thanks Not specifically. The simple case is that you create a list of things you want to draw, and where you want to draw them. Then each fram you loop through the list. Set the place you want to draw the mesh by setting the world matrix and then draw the mesh. If things need to move you adjust the locations and next frame they get drawn in the new place. Search for scene graph on gamedev.net for more reading. ...Show All
Visual Basic Check if type is numeric or not?
I have a question. In trying to do an if statement on a value thats suppose to be numeric, how do I test for that condition Like in a string test: If mystring <> "" then I want to accomplsih the same with an integer or double to see if it has a number assigned to it or not. Thanks, Tom Integers and Doubles always have a value - the default is 0. If you have a string and want to check if it represents a number, use Integer.TryParse or Double.TryParse. If the string is a number, that value will be assigned to the out parameter. ...Show All
.NET Development packet sniffing
hi everybody, I'm new to socket programming as well as .net. I'm developing a network monitoring application in vb.net and i need to sniff packets on the network.I got suggestions to use raw sockets. Somebody please explain me on how to use raw sockets for packet sniffing. thank you. The only other method would be to look at creating a Winsock Layered Service provider. That said, LSPs are not gauranteed to see all traffic. ...Show All
Windows Forms Customizing TableLayoutPanelDesigner
Hello, I'm developing a custom control that is to be used in a custom forms designer that I created. The control should have exactly two cells behaving like cells in a TableLayoutPanel, so I thought I'd build my control as an extension to TableLayoutPanel. Now I need to customize its designer, since I do not need all the design-time options that TableLayoutPanelDesigner offers. Problem is: TableLayoutPanelDesigner is an internal class, and can therefore not be inherited! Now I was wondering what my options are... I was thinking about developing a custom designer from scratch (extending from ParentControlDesigner). How to achieve ...Show All
SQL Server MSDE Remote Connect strange problem
I'm trying to connect to the SharePoint MSDE database from Windows XP SP2 machine over Ethernet LAN. I was getting server not found or access denied, until I enabled TCP/IP via svrnetcn.exe. Now, I'm getting OK Connection failed: SQLState: '01000' SQL Server Error: 10061 [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionOpen (Connect()). Connection failed: SQLState: '08001' SQL Server Error: 17 [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]SQL Server does not exist or access denied. I just did an netstat -an and I don't see the server listening on 1433. Wh ...Show All
Visual FoxPro I have a corrupted table. Is there a simple, FREE way of repairing or recovering the data?
I have a corrupted table. Is there a simple, FREE way of repairing or recovering the data Thanks, Jim Jim, (Make sure you have adequate backups before you proceed!) What version of VFP If you know what you are doing and it's just a mismatch between the number of records in the file and what the table header says there should be the hexedit() app will let you modify the header. You might want to check some of the items listed in this FoxWiki topic http://fox.wikis.com/wc.dll Wiki~TableCorruptionRepairTools ...Show All
Windows Forms Can you "refresh" the property browser
Hello All, I am extending a Window's control by adding a new Public Property named AltText which will replace the Text property in certain run time situations. At Designe time, I want to update the Text property with AltText if it is changed. AltText shows up correctly in the Property browser and if I drag a control onto the form's design surface it correctly displays AltText. I also update the standard Text property to the new value. The problem is the Text property in the Property browser is not immediately updated when I do that. If the Text property is not physically showing in the browser when I change AltText it is correct when I ...Show All
