|
Thanks.
m.adil.farooq
mcs & acca
adil-farooq@maktoob.com
|
|
|
|
|
Private Sub btn_pull_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pull.Click
Const gRemoteProvider = "Provider=SQLOLEDB.1;Persist Security Info=False; " & _
"User ID=dmspda;Password=dmspda;Initial Catalog=dmspda;Data Source=INSPIRON6000"
Const gInternetURL = "HTTP://192.168.1.3/Sync/SSCESA30.DLL"
Const gInternetLogin = "INSPIRON6000\IUSR_INSPIRON6000"
Const gInternetPwd = "1234"
Dim rda As SqlCeRemoteDataAccess
rda = New SqlCeRemoteDataAccess
rda.LocalConnectionString = "Data Source=\My Documents\pda.sdf"
rda.InternetUrl = gInternetURL
rda.InternetLogin = gInternetLogin
rda.InternetPassword = gInternetPwd
rda.Pull("pda_uom", "Select * from pda_uom", gRemoteProvider, RdaTrackOption.TrackingOn)
End Sub
Have been tried to setting a lot of time but get the error message:
System.Data.SqlServerCe.SqlCeException was unhandled
HResult=-2147467259
Message="An error has occurred on the computer running IIS. Try restarting the IIS server."
NativeError=28022
Source="Microsoft SQL Server 2005 Mobile Edition"
StackTrace:
at System.Data.SqlServerCe.NativeMethods.CheckHRESULT()
at System.Data.SqlServerCe.SqlCeRemoteDataAccess.Pull()
at PDA2007.PULLPUSH.btn_pull_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 PDA2007.PULLPUSH.Main()
Development PC:
* Windows XP SP2
* IIS 5.1
* SQL 2005 Express Edition
* Visual Basic 2005
* .Net 2CF
Device:
* SQL Mobile 2005
* .NET 2CF
* Window Mobile 5 OS
Everything follow instruction, but still fail to do PULL method.
Anybody meet same problem ?
xiaoyTan
|
|
|
|
|
Hi, currently I'm suing visual studio 2005 professional trail edition. Now the trail period is nearly expire, and I want to continue use it. I found an upgrade button in the about dialog box but when i click on it it load an internet explorer. I do not have an internet connection connection at home. So I would like to know are there any method that I could convert my trail edition into a full functioning edition? Do I have to purchase any additional software? Or i need to uninstall it and reinstall the full functioning version? Please suggest me...
|
|
|
|
|
If you do not have an internet connection then you will have to buy the software from either a retailer or ...online.
Not sure if you would qualify but www.academicsuperstore.com has great buys on the programming software if you are part of an educational instituion (student, faculty, etc). I save a few hundred dollars on the purchase of my programming software through them. If you don't qualify then you can always use a standard web store like amazon.com.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Thank you very much for your information. I also check this website and found it very useful. The visual studio .net 2005 pro just cost 104$ while on amazon was 700$. If it is possible to ship this product to my country (Cambodia), then I will purchase it. Thank for your help.
|
|
|
|
|
Keep in mind that the price is for academically elgible students/faculty of learning institutions, they do check. I have no idea about the shipping to Cambodia.
If worse comes to worse you can always buy the software through Amazon.com.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
Thomas, thank you very much for your comment. I will try to look through more detail in this website for which identification that they need me to identify myself as academic student. If I'm a worker and I want to use this product to research at home, do they still sell me the prices as an academic?
|
|
|
|
|
No, that would violate the licence.
The Express Edition is free, if you only want to work in VB.NET and don't need the advanced features.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: No, that would violate the licence.
Thank you very much for your comment. My previous about asking the way to identify as academic student because I also spend myself on research about technology, not doing a business and gain profit. The reason that I ask in the post because I want to know which action should I take is legal (not violate the license). So now I get the answer what I want.
Thank you again for your suggestion
|
|
|
|
|
I'm using the free express edition so your's may be a little different. Probably all you need is a registration number. Check the box, it might have a number for microsoft in which case you can probably pay by phone and get a registration number. Otherwise you could probably get it from microsoft's website.
If it is like my copy of vb.net then there should be a menu saying "register product" under "help". Just enter the number there.
|
|
|
|
|
Thank you very much for your suggestion. I also have visual basic express edition. But it is a limited edition. Because I need more capability on software development, so I need to use vs 20005 pro. Thank for your help.
|
|
|
|
|
How can I crop a circle/oval out of an image?
Any example would be helpful.
|
|
|
|
|
You can create a texturebrush using the image, use a translate transform to set the starting corner of the oval, and draw your oval using the brush.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
I found this in the help section but how do I call it from the button1 click event, I get Argument not specified for parameter e
Public Class Form1<br />
<br />
Public Sub TransformExample(ByVal e As PaintEventArgs)<br />
<br />
' Create a path and add and ellipse.<br />
Dim myPath As New Drawing2D.GraphicsPath<br />
myPath.AddEllipse(0, 0, 100, 200)<br />
<br />
' Draw the starting position to screen.<br />
e.Graphics.DrawPath(Pens.Black, myPath)<br />
<br />
' Move the ellipse 100 points to the right.<br />
Dim translateMatrix As New Drawing2D.Matrix<br />
translateMatrix.Translate(100, 0)<br />
myPath.Transform(translateMatrix)<br />
<br />
' Draw the transformed ellipse to the screen.<br />
e.Graphics.DrawPath(New Pen(Color.Red, 2), myPath)<br />
End Sub<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
TransformExample()<br />
End Sub<code>
|
|
|
|
|
Wow - that's almost entirely useless.
1 - your function needs a PaintEventArgs, you've not passed it one, that's why it won't compile
2 - that code is creating an ellipse and moving it on the graphics object, It won't crop anything, and it's just too complex for what it does (draw an ellipse )
A painteventargs comes from a paint event, this code assumes it will be drawing an ellipse within a paint event.
Try doing what I suggested.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
You can see why the vb.net help files are no help.
and why people trying to learn vb.net (like me) give up.
There are just not enough good example to play around with.
|
|
|
|
|
No, the reason peole give up is that they don't ask, or don't take advice. Here[^] are plenty of examples on how to use a texturebrush ( I already told you this is what you need to do ).
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Finally got it all sorted and it had nothing at all to do with
texturebrush, translate transform.
|
|
|
|
|
I have no doubt there was more than one way to do it, but using a texture brush would have been the easiest.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Crop circle: search[^]
---
Year happy = new Year(2007);
|
|
|
|
|
I'm writing a program where I need to capture sound from a microphone and get it into an array in my program.
I've looked around the internet for a tutorial on this but all I get is a bunch of tutorials about playing sounds, special effects, or other irrelevent information. The few times I do get something relavent it's always writen in c++ which is not a language I'm strong in.
If someone could tell me how to do this or direct me to a tutorial on how to do this preferably in vb that would be a big help.
thanks,
Mike
|
|
|
|
|
i want to post a string to a website can anyone show me or point me to example of how you would use vb.net to post a string to a website and accept the response sent back from post / request to the site?
|
|
|
|
|
I am trying to call a function in a dll which was written in com
I am uing the following
Dim myxmlobj As New serviceprovider.ProcessXML<br />
Dim returnmesg As String<br />
<br />
returnmesg = myxml.ProcessXMLFile("c:\myxml.xml")
I have a added a reference to Interop.ServicePorvider in my project.
All seems correct but the funtion fails (Giving HRESULT E_Fails), is there anything special I need to consider as I am a calling a com dll.
Cheers
-- modified at 14:03 Saturday 27th January, 2007
|
|
|
|
|
No, it should just work.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Thanks Christian,
I wish it were only so.
Cheers
Geoff
|
|
|
|