|
See the System.Collections and System.Collection.Specialized namespaces for a list of collection classes
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
yup I found that shortly after I posted but it seems it doesent have the same kinda functions that it does in java, but after a nice little search I found a DLL that was made on planet sorcecode that lets you have the same function's in VB, just needed to call the reference.
thanks for the info anywho
|
|
|
|
|
Is there any way to graphically represent sound (waves or bars or anything) intensity. Like those in the Graphic equallizers that dinamically move? Thanks.;)
I knew that writting decent code was not easy, but not so complex :p
|
|
|
|
|
If you want to write your own solution, you'll have to do some reasearch into Fast Fourier Transforms, or FFT. You'll find that it's a bit CPU intensive to do. There are plenty of examples on the web, but you'll have to translate most of them to VB.NET yourself. Just search for "Fast Fourier Transform Spectrum Analyzer".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you want there are two ways to display the audio file.
1. Analog output, like a old oscilloscope.
For this, just read the data file and display in a moving graph.
2. FTT graph.
This required a lot of process power, as you would need to keep
resampling on the fly. I'm not sure if your looking to do any
type of analysis, so the Analog output method would be more well
suited
|
|
|
|
|
I have a WINDOWS application that calls an unmanaged DLL (it's a JNI). The DLL redirects standard output and standard error for the JVM that is initiated.
Unfortunately the DLL function returns an error whilst performing this redirection.
I have created a test CONSOLE application which, essentially does the same thing but I have redirected standard output and standard error before calling the function in the DLL and this works fine. Applying the same method in the WINDOWS application does not work and an error is returned
Here is the code for the CONSOLE app (that works)...
Imports System.Runtime.InteropServices
Imports System.IO
Module Module1
<DllImport("myJNI.dll")> _
Public Function myFunction() As Integer
End Function
Sub Main()
Dim returnCode As Int16
Dim stdout, stderr As String
Dim fsStdOut, fsStdErr As StreamWriter
Try
stdout = "c:\out.txt"
fsStdOut = New StreamWriter(stdout)
fsStdOut.AutoFlush = True
Console.SetOut(fsStdOut)
Catch exc As IOException
Debug.WriteLine(exc.Message & "Cannot open " & stdout & " file.")
End Try
Try
stderr = "c:\err.txt"
fsStdErr = New StreamWriter(stderr)
fsStdErr.AutoFlush = True
Console.SetError(fsStdErr)
Catch exc As IOException
Debug.WriteLine(exc.Message & "Cannot open " & stderr & " file.")
End Try
returnCode = myFunction()
Console.WriteLine("myFunction returned " & Str(returnCode))
fsStdOut.Close()
fsStdErr.Close()
End Sub
End Module
So does a .NET WINDOWS application tie up stdout/stderr in some way and if so how can I get around this?
Any help appreciated!
|
|
|
|
|
okay here's some more info
I added a windows form to the console application and chnaged the project properties to "Windows Application" and it works!!
...but the project I create via File/New/Project...VB.NET/Windows Application - that doesn't work!!! What gives?
|
|
|
|
|
Is there a way to do this. I have 2 seperate projects that I want to be able to run together, and experienced problems when trying to import all the code into the other one, that and one has different references, so trying to manually import the code is a real pain.
but when I try to make reference to a class in the other project it cannnot find it.
Thanks for the help
|
|
|
|
|
Depending on how your projects are written, you can't just "merge" the two together. You'll most likely have to copy the files into one of the projects and modify them to use a common namespace.
The only other way to do it would be to add the two projects in question to the same Solution. Either way, you'll have to modify the code to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Please help. I'm writing a small app that needs to capture individual frames of video from a video file to a picture control.
What's the easiest way to do this in VB?
Any help would be greatly appreciated. Thanks. Thanks, and thanks again.
"Go to, I’ll no more on’t; it hath made me mad." - Hamlet
|
|
|
|
|
Hey, kevnar, great question. Since nobody else answered you I went ahead and found the answer myself after many hours of searching. You'll find the answer to your question here:
http://www.shrinkwrapvb.com/avihelp/avihlp_3.htm[^]
I hope this helps. I just wanted to extend this kindness to a fellow member in the CP community. Have a great day.
"Go to, I’ll no more on’t; it hath made me mad." - Hamlet
|
|
|
|
|
Hi,
I had created a desktop Client-Server application using VB.NET.
I want to create the setup file for it, so that I can use the setup to install in othe PC or computer.
I am using Setup Project given with VS.NET. (File-New-Project-Setup and deployment Projects-Setup project)
by this way I am able to package application.
but I'm facing the problem when Installing the created setup in other PC.
I'm getting the Error as "Client must be installed first with .NET Framework"
how to solve this problem
pls help me out in getting the solution.
Thanx and Regards,
Tthangaraj P.V.
tthangarajpv@yahoo.com
|
|
|
|
|
You must install the .NET Framework on the machine first, before you can install your app.
There are a bunch of articles here on CP that deal with installing the .NET Framework with your application. Look at these[^] search results.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have installed the managed directx sdk version 9. I have written an application in vb.net that displays some very basic artificial life forms that move in flocks around the screen using Microsoft.DirectX.DirectDraw. I am successfully drawing to both surfaces (Microsoft.DirectX.DirectDraw.Surface) and calling the Surface.Flip method to put the buffer surface's content onto the main surface (Surface.Flip makes the surface memory associated with the BackBuffer surface become associated with the front-buffer surface). What I can't manage to do is keep the back surface's content without it dissapearing i.e. I want to carry on overlaying what I am drawing onto it with each flip. I know why it is lost - when a flip is carried out the pixels are blitted to the main surface. I need some way of maintaining it on the back surface. Does anybody know how to do this?
Jim
|
|
|
|
|
To adapt your engine to this, after the flip, you'd have to copy the image on the surface that's displayed to the back page surface.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for your reply.
I did try doing that using the Surface.Draw method. This "copies" the contents of one surface to another. However it defeats the object of what I am trying to do because it merely performs the same bit block transfer that the Flip method does i.e. transfers not copies. The main problem I have is finding a way to copy the contents of a surface, retain it and draw it back onto a surface.
Jim
|
|
|
|
|
Then I don't get what the problem is. In all the code examples I've seen for DX, I've actually had to clear the drawing surface myself before I started drawing the new frame. If I didn't, then I'd se trails of everything. I guess I don't understand the effect your looking for?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Doh, I have made a schoolboy error in my code and I have been clearing the render surface. Thanks for your answer it did point me in the right direction!
Jim
|
|
|
|
|
please any one can help me........
i m deleteting a file using fso.DeleteFile(Filename) where fso is a file system object and filename contains the path and the file name.then file is in network ...its...i m getting error "Exception From HRESULT:0x800a0046 (CTL_E_Permission denied)" can any body tell me how do slove the error...
payal sheth
|
|
|
|
|
Easy. Get the appropriate rights to delete the file. That's the error that was returned. You, or the account that your app is running under, does not have sufficient rights to the file your trying to delete.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I created a website using VB.Net that needs the userId value from the textbox from an existing ASP website. The old ASP website didn't declare the userId varible as a session varible.
How do I use request command to read the userID into my webform?
Any help would be helpful. Thanks!
|
|
|
|
|
This question really belongs in the ASP.NET Forum, regardless of the language it's written in.
But, if I understand this right, you want one ASP.NET web page to read the values stored in a textbox in another ASP.NET site page that is in an entirely different site (or application)?
If that's true, then you can't. There is no way for the server to query the client machine for what's in one of its textboxes. Once ASP builds the HTML and sends it to the client, all traces of it are lost forever. The ASP page has hidden fields in it that maintain the state of the page and are sent back to the server on every page request, thus telling the application on the server what the values of all the control on the page are. Once the processing on that request is finished, that hidden field is updated with the values that are going to be put into the page and then the page is sent to the client and destroyed on the server.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
can some 1 plz send me a cyber cafe management system in vb.net code? the system include the server client connection and client computer remote control function, can some 1 plz plz help me on this? thnkz a lot ~"~ my email is yinghong81@yahoo.com
|
|
|
|
|
I see you have a Yahoo address, use it! Search Results for Cyber Cafe Management[^]
This kind of software is not free and noone is going to send it to you...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to save an image located on the clipboard to an IMAGE field in SQLServer without having to save to disk first.
When I run the code listed under CASE1 everything works file.
When I run the code listed under CASE2 I get a "invalid parameter used" error.
Windows does not recognize this as an image file when the stream is saved to file after retrieving from the database.
Does anybody have a solution why the FileStream works and the MemoryStream doesn't?
Tim
Dim oImgObj As Image = oDataObject.GetData(DataFormats.Bitmap, True)
'CASE1
oImgObj.Save("c:\Test.bmp", Imaging.ImageFormat.Bmp)
Dim fs As New FileStream("c:\Test.bmp", FileMode.OpenOrCreate, FileAccess.Read)
Dim bImageFile(fs.Length - 1) As Byte
fs.Read(bImageFile, 0, fs.Length)
fs.Close()
'CASE2
Dim ms As New MemoryStream
oImgObj.Save(ms, Imaging.ImageFormat.Bmp)
Dim bImageMemory(ms.Length - 1) As Byte
ms.Read(bImageMemory, 0, ms.Length)
ms.Close()
|
|
|
|