Mr.M 89 Future Programmers

I'm currently using BlackBerry and my Carrier is Cell C but a phone is from Vodacom but I'm not using Vodacom I'm using Cell C. The version of the OS is 6.0.0.668(2949) that the version wrote as App Version and the platform is 6.6.0.236.

I once downloaded an Application which does what I want but now can't remember the name of it because it a bit old now, and also there were limitations but it enabled me to read SIM/Phone contacts from my phone via a computer when I've connected a USB cable to my phone and also it let me receive SMS/MMS on my phone but will be displayed on this software which means that the software had full of 80% access to my phone and SIM because it can display every message that I had received and I'm receiving on a computer, but what I want is to be able to read SIM card and Phone contacts and be able to like select it, copy it, etc.

I've seen something on MSDN but the problem is that I had accessed it via my phone so some codes are cutted off on the right hand so I have to use a computer to access it. I guess I will check that out tomorrow. Here's the address to it. http://msdn.microsoft.com/en-us/library/aa446543.aspx

Thank you.

Mr.M 89 Future Programmers

I've managed to get the drivers from Samsung. Thanks to everyone.

Mr.M 89 Future Programmers

Hi Dw

Is there anyone know how I can retrieve contacts from my cellphone connected via usb using vb.net?

I want to be able to read and perhaps write back contacts to and from a cellphone. Any idea, book, reference, guide towards achieving this?

Thank you.

Mr.M 89 Future Programmers

Ok as towards your first post you have found the solution but it not graphically so why don't you take that consol app and intergrate it VB so that it will still do what it suppose to do but now intead of typing commands on a console the app will do it for you, you will only wright codes once but can use it as many times as you wish.

Mr.M 89 Future Programmers

@dibakarmishra have you checked the link and tried it out that I sent you?

Mr.M 89 Future Programmers

Jea I know the use of

Trim()

But I think the OP's problem is the same as mine. Please read this carefully:

When you put files on an Application Startup Path the program will run fin when you run it within that path but copy it let's say to Desktop then it won't function because the files that you added are not contained within the application or the exe file so what I think may solve this is to maybe create a cab file and put inside the files then when calling it start by calling or try to open the cab file first then call the function to open the files. I haven't tried this yet because I'm not in front of my laptop but once I get home will try this idea and see if it works. The cab file must be included as Resources

Mr.M 89 Future Programmers

I just experianced the same problem when i was creating the drivers utility program. I think what should be done is that import your files as resources then call it using Resources because that embed the files within it, but the con of this is that if your files are separated by folders or are contained within the folders the import will not keep the folders but will only import the inside contants like .gif, .txt, .exe, etc.

I'm still facing the same problem on this project and the bad part is that mine has to be contained within the folders as there are certain files are located in folders so if I remove folders the drivers will fail to detect their associated files(resources).

I really don't understand why it cant embed the files even if I export it but it just don't carry these files. But as soon as I find a solution to this I will post it here.

Mr.M 89 Future Programmers

Why don't you create Variables for each Pizza_Price and assign it with correct Prices then on the datagridview you will just check if Beef Pizza for instance is selected then use the Beef_Pizza_Price I think that will be much easier.

 Dim Beef_Pizza_Price As Integer
 Beef_Pizza_Price = 15 ' The price for beef pizza
If DataGridView.SelectedItem.Equal("Beef Pizza") Then
Price = Beef_Pizza_Price
Else
If DataGridView.SelectedItem.Equal("Your other Pizza here") Then
Price = your other pizza prize
End If

That's how you can do it but if the columns has also prices then you should use the Index to track which Pizza is selected and assign the prices for it.

Mr.M 89 Future Programmers
Mr.M 89 Future Programmers

Well now I've spotted from your image you just posted, the error is because you have turned on the "Option Strict On" here on my VS I didn't turn that on so why don't you comment it and run it. The error is clear, and if I had turned that on I would have posted it together with the codes. Nothing wrong here, you just turned the Option Strict On" and claim the code is wrong, mmmm making sense and I must say I don't usually turn that on, but it work perfectly.

Mr.M 89 Future Programmers

@Jim ok fine, why don't you copy the code as I've posted and test it, you will see the results from the message box. Please capture for me the output and post it back than we can argue about it.

Mr.M 89 Future Programmers

Try adding a loop

Mr.M 89 Future Programmers

Note that I've Declared k as integer

Mr.M 89 Future Programmers

I've tested it working. Test it and see. The

 K = 0 To recno.ToString

Means the for each k number from 0 to the value that is held by recno. Keep in mind that the Variable is already declared as Integer so that counting will be possible as it is not possible if its a string so the .Tostring means to the value that is contained by the variable. Test it then judge.

Mr.M 89 Future Programmers

It doesn't randomize it.

Mr.M 89 Future Programmers

@Inkandi please create a separate thread for that question as it is not related to the asked question here.

Mr.M 89 Future Programmers

I will also agree with JIM you are also saying something different and you are doing something different then what you said. Do it like this

Dim recno As Integer
recno = 4
Dim k As Integer
For k = 0 to recno.Tostring
MsgBox("This is k: " & k)
Next

This will produce a message from 0 to 4 that means it will produce 5 messages, then what you can do is replace the

MsgBox("This is k: " & k)

With your code to access sql also don't forget to close the connection.

Hope this help you.

Mr.M 89 Future Programmers

Try closing the connection because you keep trying to open the connection while it still opened so close the connection so that it will re open the connection.

Mr.M 89 Future Programmers

Try thisMe.Text = "ver " & Me.GetType.Assembly.GetName.Version.ToString

Mr.M 89 Future Programmers

Check out Ozeki and download it, the best thing is that you can use it for free for 30 days then if you feel good with it you can than pay for it http://www.ozekisms.com/sms-gateway/index.php?owpn=585

Or check out create your own app then create your own voip system using sipwise then create account for your client system and then hardcode it to your app then point the app to send what to where. Here is a guide of creating your own voip system https://www.sipwise.com/news/technical/byov-services-1/

Mr.M 89 Future Programmers

I have a suggestion for maybe stage 4 but I don't know how I can do it because I'm not a master in game development and math. I was thinking it would be nice if you can add stage 4 and the and the current stage 3 be stage 4 and stage 3 be a smile face that will bounce randomly left and right while moving down, the bounce can be random so that a user won't be able to track the loop meaning to guess the next bounce position like if it had moved 3 times left it my move maybe 4 times to the right and 3 times to the left, center, left, far right as it makes it move down.

This was just an idea I had when I played this game but then I'm not a game master.

Thank you.

Mr.M 89 Future Programmers
@Begginnerdev

thanks that helped a lot now just curious of how to embed audio to this video or how to record with an audio

Any idea of how to embed the audio?

I have a program that can only record audio so I was thinking of like combining the video recorder with an audio recorder like this:
I have form1 which is previewing the webcam and I have added form2 and used the source code that I found on that link you gave me so for now it can record a video because I set the form1 to always be on top and it is of

 size(114,111)

 location(906,656) 

so it appears on the bottom right corner on my laptop and the form2 record the screen which also record the previewed webcam so it record two videos to one video just like how most of the tutorial videos are.

Now I was thinking of adding the third form or just start the audio record when I click start vid record so yes that will record the video and the audio at the same time but I think it will take a bit of memory and also how will I combine the audio and the video.

Another thing with my preview or webcam capture how can I flip the image because when I preview it and by watching at the preview screen while previewing if I move my right hand up it will raise the right …

Mr.M 89 Future Programmers
Mr.M 89 Future Programmers

Ow forgot to mention that the created control should hide when the mouse move out of an image or pixel and also this create unintended tags so find a way maybe count each click and let say if the user click 2 times on an image that it can be tagged because someone may click image to view, and or save it so you don't want to create unintended tags when a user was only opening the image to view or save it. Or you can use this to create the button when the mouse is over the image

Dim tTag As New Button
tTag.ID = "btnTag"

Me.Controls.Add(tTag)
tTag.Text = "Tag Me"
tTag.BackColor = Color.Aqua
tTag.ForColor = Color.White
tTag.BorderStyle = BorderStyle.Dotted

Well when I tried it out it required me to add it inside a form tag with runat=server

So I thing you will be able to write that because I'm running out of time at the moment but will follow up this post. Also you should hide the button because it apparently visible and it seems as if I didn't make it be created on runtime.

Mr.M 89 Future Programmers

Ow forgot to mention that the created control should hide when the mouse move out of an image or pixel and also this create unintended tags so find a way maybe count each click and let say if the user click 2 times on an image that it can be tagged because someone may click image to view, and or save it so you don't want to create unintended tags when a user was only opening the image to view or save it.

Mr.M 89 Future Programmers

Mmm I think you can first try to find a way to keep track of the mouse pointer first so that you will be able to draw square over a particular pixel.

Use this link http://www.social.technet.microsoft.com/wiki/contents/articles/19859.vb-net-how-to-make-an-oval-triangle-pentagon-hexagon-or-octagon-for-a-control-or-a-form.aspx to get idea of how the controls are drawn but remember you don't want the square control you drawn to be there even when the cursor has moved from an image so that means you will have to only draw it only when the mouse is over the image.

Keep in mind that the image may have let say 3 faces that you may like to tag so that is why I said you should find a way to keep track of mouse point and only draw square around that place where the cursor is.

Now if you would like to add something on a tagged image I think you can for now keep track of the pixel selected and the open another window on a new tab which will only be visible when you have clicked the control, this page should have a textbox that will allow a user to add something for track back purpose at the moment make that textbox have a small max text length and also handle the spaces because the user may type "John Smith" so you must handle the space by "-" so that it when the user come again and place a mouse over the same image he/should get a control that will display …

Mr.M 89 Future Programmers

Hi Dw

I was just reading another article on video recording using AVICAP32 this shows how to use this library to record video from a video device such as webcam but what I would like to know is that how can I record internal video, I want to record my computer and also mouse movements when for instant I press control then move the mouse the recording can zoom and focus where the mouse is pointing.

And idea on how I could do this?
Thanks

Mr.M 89 Future Programmers
Mr.M 89 Future Programmers

Not Canadian but African ;-)

Mr.M 89 Future Programmers

Looool you want me to kill my mouse button now ey ;-) nice game

Mr.M 89 Future Programmers

Lol ow I'm sorry english ey. Thanks

Mr.M 89 Future Programmers

Hi Dw

I'm creating a program and it require to have a manager so I downloaded and added all the files that are related but I keep getting this error. "error C1189: #error : include 'stdafx.h' before including this file for PCH".

There is a file that has the code which this error point to here is the entire code where the error point to:

#ifndef __AFXWIN_H__
  #error include 'stdafx.h' before. including this file for PCH
#endif

Any idea on how I can solve this? When I comment the. #error. line and debug I get around 420 errors and 8 messages but if I uncomment it I only get 6 errors messages on error list which are all the same error pointing the same error to the same file, same line, and same column.

Thanks

Mr.M 89 Future Programmers

I will also suggest as suggested that you first understand what is Internet Protocol (IP) and how it works, and also understand what is Port numbers and how it work.

The Chat application is simple as it the matter of listening and connecting connection requests, share messages to connected clients.

I will advise you to start simple, just make a server and client, connect them and once mastered that you can then start adding a feature of sharing the messages that will help you understand much better and once you done that you can advance your app by adding the user authentication for login as you said on your database. Understand what is client and what is server too that is much important.

There are quite a number of samples online that will help you all you need to do is google.

Mr.M 89 Future Programmers

If I quote on your first post you said you kept your DB on Debug-->Bin am I correct?

You should put it on bin-->Debug where you will see the files and one is manifest that should solve your problem don't go to obj,x86,Debug that won't solve it. Also you can map it in your project using the project propertied and add it as resources.

Mr.M 89 Future Programmers

Try to read carefully the error message it should provide you with a correct information as to which version of .NET is required in order for your application to run, then once figured the version you can search microsoft for that version. Visit http://www.microsoft.com/en-us/download/details.aspx?id=30653 to download and install

Mr.M 89 Future Programmers

I was having the same problem before.

If Textbox1.TextLength = 5 Then
    TextBox2.Focus
End If
Mr.M 89 Future Programmers

That page has nothing about formatting the code except to link, etc. DaniQueen had also referred me to that page but there is nothing saying how to format your code for a post, I tried something like <code> and my code here </code> but it doesn't work or supported.

Mr.M 89 Future Programmers

For the first and second one try to use MaskedTextBox

For uppercase text use the .ToUpper.ToString

You can also check if the data typed is lower case or not using the TextChanged handle like this:

For Each alph As String In TextBox1.Text
If alph = " " Then
txt = txt & " "
Else
If alph = alph.ToLower Then
alph = alph.ToString.ToUpper
txt = txt & alph
End If
End If
Next
TextBox1.Text = txt

You will have to declare the variable txt globally because if you declare it under the TextBox1_TextChanged handler it will not work accordingly and also as you can see below the for statement I was trying to handle the space but then once you type the next alphabet that will follow the space it freezes because the system will also take all the texts typed in a textbox and verify it if its a lower case and that where it freezes because the space has no upper or lower caps.

So that was an idea of how you can go about doing it also there is another method which first verify if the text entered is numeric or text so I think you can also use that.

Another way would be verifying if the text entered is number or "-" then if it one of that it can keep it else remove it from textbox that will make it only take a certain keys …

Mr.M 89 Future Programmers

Hi Dw

I've been having this problem for quite sometime now. I'm using a cell phone to post most of the times and to comment, and provide solutions where I can and as DaniQueen said there are a number of problems with code formatting toolbar on mobile phones which makes it unsupported, but the problem is that the site do detects the codes when you are posting without formatting it so is there perhaps a way to format it manually because the toolbar is not visible?

Maybe the same code that the code format button provide so that I can be able to continue with my post because it keeps detecting it.

Thank you.

Mr.M 89 Future Programmers

Hum. This really sound as a scam to hide and share virus and spyware. But anyway hope you use the solution as per what you said you are doing. I'm not judging you though.

Mr.M 89 Future Programmers

There is a SDK called Ozeki it has a trial so I think you can google that and incorporate that to be able to send SMS and calls and also you will need a VOIP account, the best solution you can try incorporating with the wise:SIP if you have an internet connection. Other then that check out google and I've found a couple of resources that maybe helpful.
http://www.stackoverflow.com/questions/21131761/sending-sms-using-vb-net

Mr.M 89 Future Programmers

Thanks, I've already seen and downloaded it and installed the SDK, I've also explored the files and found what I was looking for but now the problem is how do I link it all together so that it will pass data to manager and the manager will open the registry and open the service using the logical service name?

Thanks.

Mr.M 89 Future Programmers

Hi Dw

I know this may not be popular to many people but it a standard for financial industry. I'm developing a WOSA XFS app, I've developed the part that deals with calculating denominations, determines how many CU can be dispensed for each CU denomination.

Now the problem is that do I have to create a class that will be a manager, and another that will be a service control, because the documentation says the App sends a command to it Service control and a service control will pass it to service manager and to Device service so now I'm stuck here because we have codes written in these ways:
Wfs
WPS
And another one.
I'm using Visual C++

Any help or guide will be appreciated.

Mr.M 89 Future Programmers
Mr.M 89 Future Programmers

Ok thanks but I'm a bit newer on C++, well I've installed a SDK and also I've linked it to the XFS file which has all the include that is required all the files (libraries) are there. About telling the linker of the location of the libraries how can I do that? Where am I going to find the linker? I'm using Visual C++ 2010

Thanks

Mr.M 89 Future Programmers

Hi Dw

I'm creating a wosa/xfs I've followed correctly the guide and the code has no error till I try to debug it or build it. I get this error
1) error LNK2019: unresolved external symbol_WFSStartUp@8 referenced in function "int_cdecl Wfs_Startup(void)" (?Wfs_Startup@@YAHXZ)

2) error LNK2019: unresolved external symbol_WFSOpen@36 referenced in function "int_cdecl WfsOpen(unsigned shot *)" (?Wfs_Open@@YAHPAG@Z)

Any idea on how I can solve this problem?
Thanks.

Mr.M 89 Future Programmers

Thanks. That helped.

Mr.M 89 Future Programmers

Oops forgot to ask are you creating ASP or just a windows application that will use the "control" WebBrowser?

Mr.M 89 Future Programmers

Does this file always located in one path? Does the server have this file too? Is the path to this file the same on the server?

Mr.M 89 Future Programmers

Well it seems as if you just want to check if the controls do not contains identical data. Because you not specific to either time or date you can do it like this:

If DateTimePicker1.ToString IsNot ListBox1.Text.ToString Then
' Do what ever you want here

End If

Sorry for not formatting the code I'm using the mobile phone. The code is not tested either but that how you could do it.