|
Thanks Adam,
I received your reply in "real time", just while I was working around...
Your line works!
Ignazio
|
|
|
|
|
Hi, I was wondering if someone here could point me to some resources for accomplishing what I would think would be a fairly simple programming task if I was familiar with the right environments.
I am an experienced Actionscript 2/3 developer myself, so I figure a transition to something like the .NET compact framework in C# should be manageable.
I want to be able to play back MP3s on my phone, but have a screen that pulses with the tempo of the music. Perhaps it would be as simple as taking the tempo information from ID3 tags I could assign and then setting up a loop timer with the corresponding interval. I'm guessing that using a few classes in C# would be the quickest route to success, but I don't know if I would be sacrificing any timing precision by going that route. In any case, I was looking at MSDN to try and get started, but the link to the compact framework tutorials is broken.
Can anyone send me in the right direction? Thanks in advance.
|
|
|
|
|
the tempo information in an mp3 tag cannot be trusted. songs change tempo and the tempo information would have limited precision. the most precist results could be acquired with a fourier transform, but that is going to be computationally expensive.
|
|
|
|
|
Hi
i am a beginner programmer in windows mobile.
i know C# average.I want to write a simple program in Visual studio 2005 (C#), which produce a form contained 3 levels(name, sal,designation) and 1 submit button ,whenever I m submitting this form the data will be save anywhere in my mobile....
Please help me..
|
|
|
|
|
|
Hi
I want to create button at run time in win mobile using vb.net 2005.
and i want to create event also at run time.
Please suggest. i write the following code...
dim btn as button
For i As Integer = 0 To 5
btn = New Button
btn.Text = sAppointmentTypes(i)
btn.Tag = sAppointmentTypesIds(i)
btn.Height = Label1.Height
btn.Left = Label1.Left
btn.Width = Label1.Width
btn.Top = Label1.Top + (Label1.Height * i + 1) + 50
'AddHandler btn.Click, AddressOf btn.Click
AddHandler btn.Click, AddressOf Me.ClickButton
Me.Controls.Add(btn)
Next
Private Sub ClickButton(ByVal sender As System.Object, ByVal e As System.EventArgs)
msgbox sender.text
End Sub
it shows the error in sender.text.
Please suggest how i do this.
Thanx
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Private Sub ClickButotn(ByVal sender as Object, Byval e as EventArgs)
Dim b as New Button = DirectCast(sender,Button)
messagebox.show(b.text)
End Sub
Hope this helps.
|
|
|
|
|
Hii
I want to change the back color of selected dated in month calender.
Like i have appointments on following dates 1-10-2008,5-10-2008,10-10-2008,15-10-2008
so i want to show these date back color is green.
How can i do this.
Please suggest.
Thanx
Mitesh Khatri
~Khatri Mitesh
khatrimitesh@hotmail.com
Bikaner (Rajasthan)
INDIA
|
|
|
|
|
Hi all!
In a my Compact Framework application that I'm developing using V.S. 2005 and VB, I need to choose a .bmp image file.
If I do this work using the "classic" OpenFileDialog, all is OK and easy, but I desire to choose the file directly from a list of icons instead from the FileName.
What control allow to do it?
ImageList, ListView or ListBox?
I tryed to use both together ImageList and ListView, but I encoutered in its use some limitations respect .Framework possibilities.
The below line produces an error because the property "FromFile" is not present in Compact Framework and then I am not able to assign the string path-filename of image I want add in ImageList1.
I tryed other ways but without success.
ImageList1.Images.Add(Image.FromFile("image-path"))
Thanks for help
|
|
|
|
|
You could try this
Dim b as bitmap = new bitmap("image-path")
imagelist1.images.add(b)
b.Dispose()
If you dim a bitmap you must dispose of it when you have finished.
Hope this helps.
|
|
|
|
|
Hi Funklet,
Previously I already tried your suggest, but now I tried again:
Dim Bmp As Bitmap = New Bitmap("\Storage Card\Agip.bmp")
ImageList1.Images.Add(Bmp)
Bmp.Dispose()
When I launck the appl. through simulator, V.S. 2005 stop the running, and return me these series of Error:
1) - In Immediate Window:
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.NullReferenceException' occurred in System.Windows.Forms.dll
2) - In Form2.Designer.vb at row:
Me.ImageList1.Images.Add(CType(resources.GetObject("resource"), System.Drawing.Image)):
System.NullReferenceException was unhandled
Message="NullReferenceException"
StackTrace:
at ImageCollection.Add()
at TrackPlotter.Form2.InitializeComponent()
at TrackPlotter.Form2..ctor()
at System.Reflection.RuntimeConstructorInfo.InternalInvoke()
at System.Reflection.RuntimeConstructorInfo.Invoke()
at System.Reflection.ConstructorInfo.Invoke()
at System.Activator.CreateInstance()
at MyForms.Create__Instance__()
at MyForms.get_Form2()
at TrackPlotter.Form1.Button1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at TrackPlotter.Form1.Main()
And suggest me:
1) Use the "New" Keyword to create an Object Instance.
2) Check to determine if the Object is Null before calling the metod.
3) Get the General Help for this exception.
|
|
|
|
|
I'm not sure how you are including the image in your project but I would use 'Add Existing Item' to add the image to your project and ensure 'Copy Always' or 'Copy If Newer' is in the properties of the file.
Also consider using:
ImageList1.Images.Add(new Bitmap("\Program Files\(Your Project Name)\Agip.bmp))
This way you can eliminate other factors such as a problem with the Storage Card...
You may need to dispose of the Bitmaps when the form is disposed rather than immediately...
Hope this helps.
|
|
|
|
|
Thank you very much funklet,
Your first code now works!
I noted also
Dim B As Image = New Bitmap ("image-path")
works correctly.
|
|
|
|
|
how to convert wma, flac or aac to pcm(wav) in C#.net mobile application?
|
|
|
|
|
I don't know much about the nuts and bolts at this point, but PCM is the format that all those formats must become when played back before they can be sent out of the digital to analog converter (DAC), because that is the native format of a DAC. So a class that plays back any of those formats must send PCM to the audio interface driver. If you can intercept that transfer, you have PCM. the problem with wma or aac is that DRM formats, when the content is protected, must be read by an executable that can decrypt it. These executables contain a secret encryption key, are furnished with an API by the DRM format's sponsor (Microsoft and Apple, respectively), and will only send output to hardware drivers that are preauthorized by the sponsor. This is the whole basis of DRM.
If the content is in these formats and not DRM protected, you should be able to get around this, as many windows programs allow you to convert unprotected WMA and AAC to wav. Flac is open and doesn't have DRM issues.
Maybe you knew all this, but if you didn't, hopefully it helps get you started.
|
|
|
|
|
Thanks for sharing information about audio format.....
But my actual interest is to know about implementation point of view of such decoding (flac,wma,aac,m4a to pcm(wav)) conversion in .net mobile application.
modified on Saturday, October 11, 2008 5:34 AM
|
|
|
|
|
Hi everybody.
I am making a Mobile Web Application using .NET and C# and I use ValidationSummary control to control a TextBox.
The test work fine and on Explorer i can see that the ValidationSummary control works fine: the error message appair at the top of the screen and the link "BACK" is in the next line. But when i try in a Motorola U6 phone i see the error message and the link "BACK" together in the same line and the look and feel is not goog.
My question is: Is there some way to resolve this little problem ? I am new in Mobile Web Application and i have not experience in this field.
I will appreciate some suggestions.
Thanks
|
|
|
|
|
Hi all!
Can someone help me on how to implement a licence key recognition to a mobile application developed using V.S. 2005, C.F. 2 and VB language?
I would desire to introduce a limitations on usage of the software without a purchased key registration, and switch it to full features after purchased key registration.
I also would like to know if there are other protection/registration way.
Thanks
Ignazio
modified on Thursday, September 25, 2008 1:41 PM
|
|
|
|
|
USE MOBILE UNIQUE ID
Dushan Perera
|
|
|
|
|
Thanks for guideline Dushan,
But it seems that to read/use Device UNIQUE ID, it's necessary to write C++ code, and I am only able to write VB code.
I also have some doubt that it's possible using Compact Framework.
Am I wrong?
Ignazio
|
|
|
|
|
In C# it like this
//import InteropServices namespace
using System.Runtime.InteropServices;
//Import DLL
[DllImport("coredll.dll")]
private extern static int GetDeviceUniqueID([In, Out] byte[] appdata,
int cbApplictionData,
int dwDeviceIDVersion,
[In, Out] byte[] deviceIDOuput,
out uint pcbDeviceIDOutput);
public string getDeviceUniqueID()
{
byte[] buffer = GetDeviceID("MyAppString");
StringBuilder sb = new StringBuilder();
for (int x = 0; x < buffer.Length; x++)
{
sb.Append(string.Format("{0:x2}", buffer[x]));
}
string strUniqueID = sb.ToString();
return strUniqueID;
}
Dushan Perera
|
|
|
|
|
Thanks Dushan,
I know that it's possible to introduce a C# or C++ routine in a VB-written application, but before I'll must learn how to do it.
Now I know what is UniqueID, but I not undestood yet in which way to read it can protect the software from unauthorized use.
The code can be modified depending on UniqueID of device?
modified on Monday, September 29, 2008 2:19 PM
|
|
|
|
|
hi everyone
does anyone perhaps know how to implment text to speech on windows mobile devices such as the htc tytn II? i know how to do it on a normal windows desktop application but i have been searching on the net to find a sollution for the .net compact framework but no luck. the language that i code in is C#.
thanks in advance.
|
|
|
|
|
Hello there.
Im trying to compile a program for a Casio DT-X10 device. I have installed the DT-X10 SDK, but every time I select it in embedded visual c++ 4.0, it (the program) collapses and stop working, so I have to close it and open it again.
Ive proved usind the standardSDK, but it dont compile (it says that I need to install the correct SDK ._.). The archive I installed was "DT-X10_SDK.msi". Is that the correct one, isnt it? Maybe I have it installed in the wrong folder? But its not that the program doesnt recognize the SDK, its that it blocks permanently when I select it (DT-X10).
Thanks a lot in advance
|
|
|
|
|
Hi friends,
I need to make a transparent control over Mobile screen.
Eg: Some video is displaying on mobile and my transparent control can be seen on that screen.
Could anybody tell me how to achieve that ??
|
|
|
|