Linlin425872's Q&A profile
Visual FoxPro How print continually in VFP?
Hi all, How print report continually in VFP (no eject after print finish) Thank! Hai, If u are not using VFP9 or if u dont want to use the reprot writer then write a program to print to a dos text file eg. if u have a employee.dbf with empid C(5),empname C(30),dept C(5),desig C(10),netsal N(12,2) then your program will be clos all clear private nrou nrou = 0 set device to file empdet.txt sele a use employee shared alias employee go top do while !eof() @ nrou,000 say emptid pict '!XXXX' @nrou,007 say custname pict '@!' @nrou,040 say dept pict '@!' @nrou,047 say desig pict '@!' @nrou,059 say netsal pict '999999999.99' nrou = nrou + ...Show All
Visual Basic excel spreadsheet
How do I parse an excel spreadsheet Its rather simple just two columns the first a string and the second integer How do i load and read that "array" I presume Mitch I've tried the link and I cant get the project to compile keeps says theres is numerous objects not defined Did exactly as the article said "301982" here is the code can you see what is wrong and some errors 16 total excel workbook not defined exce application not defined xlcharttype not a member of excel etc I have excel 2003 and here is the code Imports Microsoft.Office.Core Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As Syst ...Show All
Windows Search Technologies WDS Version
How do I determine what version I have installed When I click on help I see "About Windows", I expected to see "About WDS" In the system tray, the icons next to the clock, right click on the magnifying glass and click on "Desktop Search Options". Once you're in the options screen, on the left click on General. On the right, bottom of the window you should see it say About Windows Desktop Search under that it will show the version number. HTH, DJV ...Show All
.NET Development Safely pass data from a socket's BeginReceive method?
Hey there! I'm writing a class called "Connection" that creates a telnet connection to a server, and I'm using a socket to handle the connection. I use BeginReceive to asynchronously receive data, and an event to pass the received data to anything handling it. Here's the sub that handles data receiving: Private Sub OnReceiveData(ByVal ar As IAsyncResult) Dim s As Socket = DirectCast(ar.AsyncState, Socket) Dim ReceivedBytes As Integer = s.EndReceive(ar) If ReceivedBytes > 0 Then RaiseEvent ReceivedData(Me, ASCII.GetString(Buffer, 0, ReceivedBytes)) Sock.BeginReceive(Buffer, 0, Buffer.Length - 1, SocketFlags.None, New AsyncCallback(AddressOf OnReceiveData), s) Else Disconnect() End If End Sub Now, when I mad ...Show All
.NET Development ConnectionString.InitialCatalog or Connection.ChangeDatabase
Hi If an application connects to two databases on a Sql Server 2005 instance, is it better to specify the database in the ConnectionString.InitialCatalog property or to select the database after a connection has been established by using the Connection.ChangeDatabase method I'm assuming that the ChangeDatabase method is better because it will create a single database connection pool instead of two database connection pools. Is this correct Thanks It's better not to base this sort of decision on the current implementation, as this is the sort of thing that is liable to change in future versions of the framework. Personally if I've got two databases then I'll define two connection string ...Show All
Windows Forms searching..........
Hi can someone point me in the right direction of searching multiple drives and subdirectories for files. It would be good if it was not a so accurate search eg. if I entered bobby in the text box, it would still display bobbybrown.mp3 in the text box. so it like will find words that are similer. Oooh,no, what I just gave you is a clue, you must translate all my c# code to VB.net code, let me translate it for you. Private Sub FileSearch( ByVal sDir As String , ByVal SearchKey As String ) Try ' the searchKey can contains a "*", 'e.g. "*.exe",means you can search any file whose name ends with ".exe" For Each f As String In Directory.Ge ...Show All
Smart Device Development Bind NDIS Intermediate Driver to USB?
HI, I'm developing a NDIS intermediate driver vor Windows mobile 2003. The driver already bind to Irda. My PPC connects to the internet via USB and I have to filter these packages. But I have no idea how to bind the driver to USB. Any solutions THX winterb Hi , This forum is primarily monitored by Visual Studio for devices group. Please check this link for more appropriate forums for this type of queries . http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=286724&SiteID=1 Thanks Srikanth Bogadapati .,- ...Show All
SQL Server Matrix control
Hi all, I'm using matrix control as my reporting tools. But i found one trouble, how can i do my matrix become like this. Product A Product B Customer Price Qty Price Qty Customer A 10 10 140 160 Customer B 12 120 120 160 Customer C 10 10 110 140 The price and qty is the static column, and i would like to make the static row also. (show in red color) but i can't. Please help... Thanks Kendy Hi Idanle, I have create the matrix control, for the qty and price i using static column. For static row, i ...Show All
Visual Studio Several errors remain after repairing VS05 after failed SP1 update
Tried to install VS SP1, failed (ran out of disk space), broke Office 07 and VS. Tried to repair .NET 2.0, failed. Deleted C:\WINDOWS\WinSxS\Policies\*.* (but left the folder itself) Repaired .NET 2.0 successfully, Office 07 runs again Repaired VS05, Visual Studio runs again but gives this error when compiling C++ projects. In addition, it gives this error when opening some, but not all, C++ projects: The following error has occurred during XML parsing: File: D:\Dev\gaim\v2_0_0beta5\libgaim\protocols\bonjour\bonjour.vcproj Line: 26 Column: 4 Error Message: System error: -2147154664. The file 'D:\Dev\gaim\v2_0_0beta5\libgaim\protocols\bonjour\bonjour.vcproj' has failed to load. And when I close V ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Is Boo a viable option for Scripting for both PC and XBox360?
I'm just wondering if anyone has tried getting Boo to work for scripting on the XBox360, or is there some feature that Boo takes advantage of on the PC that isn't available on the console I've been reading that IronPython isn't an option, and LuaInterface wouldn't work either, since P/Invoke doesn't seem to be supported for security reasons. Can anyone shed some light It would be greatly appreciated. Thanks, Kevin As you mentioned, the reason LuaInterface doesn't work on the Xbox 360 is because LuaInterface uses native code (via P/Invoke). IronPython uses dynamic code generation (System.Reflection.Emit) which is not supported on the Xbox 360 framework. The best place to find out if you can use Boo is to a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are there any Notification callbacks in the Audio API?
Been looking through the help and I don't see any way to find any information on a playing audio clip. This is pretty critical if you are trying to sync animations up to the audio. There is a .GetVariable method on the Cue object, but that appears to get a static variable set in the XACT project. I see a promising variable named 'Distance' in the XACT project, but when I query that while the audio is playing I get back 0. So, is there any way to get some information on how far along a clip is playing I think the DirectX api has a WavePlaying callback or something like that. Any hope of that making it to XNA Just thought I would ask here before going to the connect site. Notifications for XACT were cut fr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. CreateFromAxisAngle???
I'm trying to get a sprite to rotate around a point, but it's moving in a straight line instead of an arc. My code looks something like this: Vector3 n = Vector3.Normalize(new Vector3( originX, originY, 0.0f)); Matrix rotationMatrix = Matrix.CreateFromAxisAngle(n, degrees); Vector3 rotatedPointV1 = Vector3.Transform(v1, rotationMatrix); where (originX, originY) is the point I'm rotating around and degrees is my angle of rotation. I'd like to move the sprite to rotatedPointV1. What am I doing wrong If you want to rotate a sprite around a point in the sprite's local coordinate system (for example, to get the sprite to rotate around it's center point instead of it's upper ...Show All
Windows Forms checkedlistBox .net 2.0
Has anyone had any issues with checkedlistBox control when clicking on the items checkboxes Every time, I click on the checkboxes, it appears as if the checkbox image partly dissapears. This does not happen if I click on the item itself. Thanks Not programmatically. He means, change some of the Windows XP theme options around, ie: color, etc. to see if the problem disappears. Depending on the brightness and contrast and gamma of your monitor as well as the colors of your theme, you may not see the lines of the check boxes very well. ...Show All
Software Development for Windows Vista How to handle event in called workflow
I have two workflow. In which one workflow called another workflow. My problem is that when i don't have HandleExternalActivity inside my called workflow then it is called properly and work properly. But if I have HandleExternalActivity inside second workflow then there is error that says this event can't be delivered. I have an interfece in which i have defined an event which is handled by that HandleExternalActivity and a method which call that event. I have implemented that interface in a class. I am calling that function from my host application. Thanks Kanhaiya Are you setting the instance id of the invoked workflow while raising the event Also invoked workflow is executed in asynchronous manner, so you need to ...Show All
Visual Basic Extended Euclidean Algorithm
Read from message 4.. Ok, I found a short way to do it... Does anyone know about a fast way to make things like: 1987652^9764581 (mod 4080709) The numbers can be other numbers (and larger)... until now I did it like that, calculated every step.. but it takes a very very long time... Can anyone make it shorter Thanks.. ...Show All
