Serge Lobko-Lobanovsky's Q&A profile
.NET Development Virtual Path Problem?
Pretty much what I'm trying to accomplish is a data backup utility. First I have a treeview on the left, pretty much like Folder Explorer, that lists the drives and so forth. You then can dive down into different directories from there. The files and directories are then put into a listview on the right, after you select one of the nodes. This is where the problems start occuring. I'm including a piece of code here, just as an example to give you a visual understanding of what I'm about to ask. First make your basic windows form app. Add System.IO namespace Add a button Add listview control In your button1_Click event add the following DirectoryInfo tempDir = new DirectoryInfo ( "C:\\WINDOWS\\Downloaded Pr ...Show All
Visual C# Escape Sequence Character Doubles (\ ends up as \\)
Hi, When attempting to pass a file name and path to a textbox to use as a URL the following code: string strURL = @"e:\jb.pdf" ; Always sets strURL to e:\\jb.pdf Using the @ symbol is supposed to force the compiler to ignore any escape characters. Any ideas TIA J it probably does but only shows it in the IDE like that, but if you tried to perform some operations then it will treat it like how you would expect it to I believe. What problems are you having Windows will usually automatically get rid of the unneeded backslashes when say, opening a file in a process or something ...Show All
Visual C++ Getting data from WMI
Hi Folks; I have a program that gathers data from WMI but as this is the first time I've ever worked with it I'm having a hard time tracking down informaition. I'm trying to find the tables to query from to get the network cards and number of disk drives (there are others but I haven't had a chance to look around and feel I shouldn't ask just yet). Could anyone point me in the right direction http://www.codeproject.com/system/UsingWMI.asp should be a pretty good article to start with. ...Show All
.NET Development very basic question re webservice namespaces
This is a VERY basic question. sorry :) I'm new to Webservices. I created the sample project found in the help text. It creates a webservice with a <WebService(Namespace:= "http://tempuri.org/" )> listed in it. When running the service, a warning is issues that this is a temporary placeholder only and should be replaced with a custom one. The problem is I can't find any reference to what I should do. I have searched thru the help text and this forum, and I'm not getting an answer I can relate to. I'm sure I've missed something somewhere, but I'm a bit lost right now. Any help appreciated. Thanks - Kerry You have just found the first major problem every webservice develope ...Show All
Game Technologies: DirectX, XNA, XACT, etc. slow, jerky execution
Hi all, I've ported the first series of my MDX tuts at www.riemers.net to XNA. Before I put them online, however, there is a bug a need to fix first. 50% of the times I run my project (in Game Studio or the .exe), the program runs very slowly. Even for a rotating triangle, I get 5 frames/second. This problem is not only for my projects, but also for others I dload from the internet. It's only sometimes, half of the times it starts with high framerates. After a few moments of framerate 5, chances are the program starts running normally. I only found vague indications of other people having this problem. I stripped the program to the bone, and don't think the error is in the code. When I check the amount of time that has elapsed ...Show All
Internet Explorer Development query
friends, i find the download speed i the mozilla much faster than the ie... is it really so... if so why.. hsa ie7 neutralised this with the mozilla or is mozilla still better Hi Prasanna, Switch off the Phishing filter, Popup blocker, reset security settings to the default and disable third-party browser extensions and then restart IE7. You may find the page loading speeds compariable then. File download speeds can be enhanced with download managers that increase the number of connections. So whats your question (query) got to do with IE Extension Development A. Yes IE Extensions can impact on page loading speeds. Regards. ...Show All
Windows Forms UserControl - Hiding certain properties (design mode)
Hi I have an UserControl , A . This control consists of a TextBox and a Button . A has several user-declared properties, p1 , p2 ... pn . When I add instances of A to a Form, I see all the properties including p1 - pn . If I make another UserControl , B , and add several instances of A to it, how do I get only certain properties of the instances of A visible in the properties window of B For instance, B contains: A a1, A a2, A a3 ; public A A1 { get { return a1; } set { a1 = value ; } } (and so the same for a2 and a3 ) In B 's properties window I only want p1 - pn to be the displayed properties for A1 - A3 . I hope my explanation is understandable :) Kind Regards Hi Chris Now I w ...Show All
.NET Development web service string as a web browser object
Hi guys, using asp.net and visual studio 2003 i've invoked a simple web service that returns the current weather as a string in xml form. I've placed the string in a text box, but what I would like to do is have the xml string displayed as a web browser object without saving the xml string as an xml file and then refering to it. this is my current code: private void btnGetWeather_Click( object sender, System.EventArgs e) { net.webservicex.www1.GlobalWeather aw = new net.webservicex.www1.GlobalWeather(); string s = aw.GetWeather(txtCity.Text, txtCountryName.Text); txtResults.Text = s; } instead of placing the string (s) in a text box, how can I make string "s" be displayed as a web b ...Show All
SQL Server VARBINARY and DATALENGTH()
I have two databases that have the same exact tables. Each table has a varbinary(max) field that will hold a pdf file. In one database, I can use datalength() on the pdf varbinary(max) field and it will return the same number of bytes as the actual size of the file. In the other database, I use datalength() on the pdf varbinary(max) field it it returns exactly half the number of bytes as the actual size of the file. Do you know what is causing this I know that nvarchar will return double the bytes. But this is returning half. Any suggestions would be appreciated! Trish I'm confused. You fixed the problem with the empty pages, or you still have the 1/2 size issue after fixing the empty pa ...Show All
Visual C++ Errors in headerfile
Hi All, We are developing an application using Visual studio 2005 vc++.net.We have a header file in which some variables declared as DWORD,CALLBACK,BYTE etc for example: typedef void ( CALLBACK *CONTROL_DATA_CALLBACK )( DWORD UserParam, DWORD dwDataType, BYTE* buf, DWORD len ) HWND hWnd; RECT rect; time_t tBeginTime; ULONGLONG FileSize; HANDLE TimeCodeEvent; void * pImage; DLL_API DWORD KLErr( HANDLE h ); We are getting errors on the above declarations.for example : Error 1 error C2065: 'DWORD' : undeclared identifier e:\rnd\test6\test6\hfile.h 135 Please help us to solve these errors. Thanks and regards... Amar H ...Show All
SQL Server Index, XML-columns, slow
Hi! I started some experiments with SQL Server 2005 and its XML-Support. I setted up a database with 5 colums of little pieces of xml of two different types: Patient and Diagnose (found them in an example on www) In the first one I put both types together without schema (XMLohneSchema), in the second only Patient (XMLPatientOhne), third only Diagnose (XMLDiagnoseOhne), both without schema. The last two columns have the suitable schema, XMLPatient and XMLDiagnose. I used a database with 100000 instances of Patient and 500000 Instances of Diagnose I tried the following Query for the 3 possible Kombinations 1&1, 2&3 and 4&5 Replace XMLPatienten with XMLPatientenOhne and XMLDiagnosen with XMLDiagnosenOhne for 2&3, both with XML ...Show All
SQL Server Standard Edition 20 x slower than Developer edition?
Have created a database on 2 separate machines, the developer edition server performs a test insert of 100000 records in 33 seconds, the standard edition server performs the same operation in 10 minutes 50 seconds. Have checked the properties of both sql server registration and database and the only significant differences are in the SS2005 developer edition and SS2005 standard editions. The databases the tests were performed on were direct restores of the same database. The slower server has 4 processors, 2 on developer. As a control, I have performed the same test on another server with Developer edition and this took 50 secs. I am being told that the difference in the test figures are down to the developer edition being fundamenta ...Show All
SQL Server ERROR IN SQL SERVER ENGINE
I have a problem starting my SQL Server engine. Its service has been stopped. It was working properly till evening “ December 8, 2006 ”. But when I came to office at 10:00 AM, it did not start. When I checked the service in “Services.msc”, it was stopped. So, I tried to start the service “ SQL Server (MSSQLSERVER) ”, but it failed with message “ Error 1069: The service did not start due to a logon failure ”. I opened “Event viewer” and looked the list in “Application” log to find out what had happened. There was an entry for “SQL Server” source with type “Failure Audit”. There was a message “ Login failed for user sa ”. What went wrong….Can someone help me Plz its urgent…. You'd better look the security log in the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA Game Studio Pro
I just wanted to know if anyone had any info on the cost of XNA GSP, cause i've been surfin on google and found that some rumors are goin around about MS selling new dev kits for 360 for only $100.. Ri-Karou wrote: Found it http://news.cnet.co.uk/gamesgear/0,39029682,49258739,00.htm !! That's talking about the Developer's Club. ...Show All
Visual Studio Express Editions keyboard and mouse simulation
I want to simulate a keyboard input in a way that other applications (as word ,explorer etc) will get it. The same by simulating the mouse. I sow a code for simulating the mouse (with cursor.position etc) but it works only inside a form any suggestion Here is an example: http://www.vbforums.com/showthread.php t=358458 you can use P/Invoke to send mouse click from managed code. ...Show All
