
Camaro Z28
Avatar/Signature-
Posts
26 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Camaro Z28
-
Hi, I guess if you don't want to use a VB timer try using the Windows API Timer. The API is SetTimer/KillTimer. Just create a callback to the method you want fired at the end of the specified interval. It won't really use any of your applications resources and allows Windows to deal with the timing. I have a example on how to access and program the Windows timer at my website under the VB.NET - Examples page. http://www.vbcodesource.com . Maybe this will help you? :) Edit: I also wanted to mention that you can use the API call: Private Declare Function GetActiveWindow Lib "user32" () As Int32 - To get the Top Level Window. Jason
-
Get Registry Value (DWORD)
Camaro Z28 replied to ADO DOT NET's topic in Directory / File IO / Registry
Hi, this is not really what you are asking. I just wanted to let you know that you do not need to use the APIs with VB.NET to access the registry. There is a registry class in the framework under: Microsoft.Win32. I would also get rid of the On Error Resume codes and make a Try/Catch structure to capture and handle errors. Anyways, just a suggestion :) Jason -
Hi, I just finished a example a few days ago that does I believe everything you posted. You can download it at one of the links below. Feel free to vote :D Take care. Link #1 Link #2
-
Hi, I have some modules on my website for USB communication. It is for Classic Visual Basic. You can problably convert them to .Net without any problems. Give it a try. Jason
-
Drawing performance with doublebuffering;
Camaro Z28 replied to MattB's topic in Graphics and Multimedia
Hi, Create a bitmap. Apply all of your various graphics to that bitmap in memory. Then apply it to your form. It is fast and you will have no flicker at all. Hope it helps. Jason -
Hi, Just use the mciSendString command interface. It is completely compatible with Windows 95 and Above. You won't need to include anything extra in your setup file for your program either. The only thing you could run into is, the user may not have a certain codec installed to play certain formats ( eg: quicktime movies) But for the most part. You should not have any problems at all. I have a few things on my website that will help you. MCI tutorial, ect.. Take care. Jason
-
Goto my website. I have some reference links there that will help you get started. Link is in my sig. Jason
-
Spinning a Picture Without Flickering
Camaro Z28 replied to Klogg's topic in Graphics and Multimedia
I would create a bitmap in memory and do your graphics stuff to it then apply to your picture box. Nice, Fast, and No flicker at all. Jason -
If you are talking about creating static dll's. Then the answer is no. Jason
-
Hi, You can use DX9 to do what you want. Or if you donot want to have to distibute DX. Goto my webpage and download the MCI Tutorial. It teaches you how to program the MCICommandString Interface to make almost any type of media program you can think of. Take care Jason
-
Draw onto a bitmap in memory then apply it to your picturebox. Fast , Very Easy, and No Flicker to worry about. Jason
-
Here is a class someone made wrapping up the api calls. I would rather use the highperformancecounter class already built-in. But, I have never used used it to help you with it. I inserted a link for you on how to use it though. Link to api wrapper Good link to microsoft on how to use the builtin counter class. Jason
-
Hi, This should do what you want. It was made with VB.Net. Link to serial communication Class
-
Imports System Namespace ConsoleApplication1 MustInherit Class item Public Function getprice() As single Return price End Function Public Function getquantity() As Integer Return quantity End Function Public abstract Integer getounces() Public abstract void setounces(Integer oz) Private price As single Private quantity As Integer End Class Class pepsi Implements item Public Overrides Function getounces() As Integer Return ounces End Function Public Overrides Sub setounces(ByVal oz As Integer) ounces=oz End Sub Private ounces As Integer End Class '/ <summary> '/ Summary description for Class1. '/ </summary> Class Class1 '/ <summary> '/ The main entry point for the application. '/ </summary> <STAThread> _ Shared Sub Main(ByVal args() As String) Dim someitem As item someitem = New pepsi() someitem.setounces(20) Console.WriteLine(someitem.getounces()) End Sub End Class End Namespace '---------------------------------------------------------------- ' Converted from C# to VB .NET using CSharpToVBConverter(1.2). ' Developed by: Kamal Patel (http://www.KamalPatel.net) '---------------------------------------------------------------- This may not be a perfect convert to VB.Net, but it should get you started. BTW, There are a ton of c# to vb.net converters online.
-
You will need to use assembly. VB.Net can not get low enough to access any info like that without a 3rd party dll. Jason
-
Goto my website and the .net examples section. I have some examples that will play mp3's. MY website Jason
-
What is it you are wanting to do? Send mail or something??
-
Thanks for your reply. I finally got it to work halfway. I can get a reference to it but I can't get access to anything. Ex: I have a public function name opendrive If my class object is named newMod If I try newMod.opendrive It doesn't show anything when I type newMod. It doesn't show my functions. I am still trying to figure that out. Jason
-
Thanks for the replys. I tried your suggestion and I keep getting a runtime error. I know there is someway to get it to work with the classic versions of VB and .Net. Hmmm..... Jason
-
Draw the graphics to a bitmap in memory first, then apply it to your object. Thats what I do with my Mp3 players, ect.. that I create music visuals for. I used to get tons of flicker by applying it straight to the picturebox object. Now that I create it in memory first then apply to the object, I have zero flicker and tons of speed to go with it. Jason
-
I would do it using the mciSendString interface. I almost have a class done that will do this. I don't know for sure when it will be completed. I'm trying to complete my CD class first. Jason
-
I already tried checking the checkbox - Register for Com Interopt in the build settings of the class. Whenever I try to get VB 6.0 to reference it, it says "Can't add a reference to the specified file.". Anyone know what I did wrong or didn't do? Thanks for any info. Jason
-
If i'm understanding you correctly to the right where the files are. Right click on them and click rebuild. Then rebuild the project and it should work. Jason
-
Goto my website and in the VB.Net examples section, download my music module. It will play most music files, including midi music. I converted it from my vb6.0 version so there still could be a bug or 2 in it but, for the most part is it stable. Thine link to website Vb.Net examples section. Jason