|
Peter_in_2780 wrote: Give him a break
I did give him a break. I merely pointed out that his question was not at all clear. It does not even follow forum guidelines. At least *I* did not vote him down.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Wes Aday wrote: At least *I* did not vote him down. Nor me.
Peter
Software rusts. Simon Stephenson, ca 1994.
|
|
|
|
|
I can't understand why it's not clear for you. I just want to modify that code to work on Windows 7 too. If you know the answer please let me know. If you don't know the answer just ignore it.
|
|
|
|
|
Pasan148 wrote: It works perfect on Win XP. But not on Win 7
Pasan148 wrote: I can't understand why it's not clear
"doesn't work" does not convey any information, that is the problem with your post. What is happening? the program refuses to launch? it throws an exception? it exits without any message? the computer explodes? or what?
"doctor, it hurts" cannot be turned into an effective diagnosis.
|
|
|
|
|
Pasan148 wrote:
It works perfect on Win XP. But not on Win 7. What's the issue here. How do I modify this code to work on Win 7 too.
Identify the part that's failing and try and write a replacement for it.
Bastard Programmer from Hell
|
|
|
|
|
I have developed one GUI in vb.net but now I want to use C as backend code along with MySql as database.
Is it possible to create such a application.
I have been using C and MySql under Fedora and I have my GUI ready in vb.net. Can you tell me how can I communicate these thing together?
For ex. I have add button on front end, when I click add button, and instead of defining functionality in vb.net I want to send input to C function and then C function will execute and return output.
|
|
|
|
|
kus_hal03 wrote: I have been using C and MySql under Fedora and I have my GUI ready in vb.net. Can you tell me how can I communicate these thing together?
Using a variety of techniques. What's the VB.NET GUI running on, is it a Windows system, or is it running on the same Fedora-machine?
Easiest way to have them communicate would be over web-services.
Bastard Programmer from Hell
|
|
|
|
|
You can also export your C classes in such a way that VB.net can use them like you would API calls. I did this on a shell I developed so that I could get the sytem tray icons. Search google for "Use C++ DLL in VB.net". Another option is to use WndProc messages between the two applications. That's the way I would go personally. The concept you'll want to research is "inter-process communication".
|
|
|
|
|
That's assuming that they're on the same computer.
Bastard Programmer from Hell
|
|
|
|
|
Hello All,
I was wondering if there is a snippet that allows your program to follow out programming when it is terminated through task manager or similar tool. For example (Not valid code):
Private Sub OnTerminate() Handles Form1
Wondering if there is such a thing you could implement into your application .
Simple Thanks and Regards,
Brandon T. H.
Been programming in Visual Basic for 4 years this point forward, and is very good at it (I can even create programs completely on code, without dragging those items from the toolbox). Programming C++ for 1 year so far and the same with C#.
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
There's no such thing.
Task Manager tries to shut down your app nicely, by sending a message to it exactly like the user closed the main window.
If the app doesn't respond in time, the app is stopped completely and all memory for it freed. Your code never gets a chance to respond to anything as it's not running anymore.
|
|
|
|
|
Brandon T. H. wrote: Wondering if there is such a thing you could implement into your application
The original app could simply be halted by Windows, being unloaded from memory without any warning. A simple solution would be a watchdog-application; write an app that starts your original app, and have it check from time to time whether it's still alive.
Bastard Programmer from Hell
|
|
|
|
|
Hello, I would like to as you if there is a way I can perform a reverse IP domain lookup (get all the domains of the websites that are hosted on that server) using vb.net
Something like this: http://www.yougetsignal.com/tools/web-sites-on-web-server/[^]
It would be awesome if you could provide me with the source code.
Regards,
Ammar Ahmad.
|
|
|
|
|
Thanks in advance..!
I want to start CNC development in VB.net,From where should i start, any recommendations
for the books/articles etc .I should do this in vb.net or C#.
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
You should start with the hardware you're going to be controlling and it's specifications and documentation. You're also going to have to learn G-Code, what each instruction means, how to parse it and translate that to motion of the tool head, ...
Judging by your question history, this project is WAY over your head right now.
|
|
|
|
|
Thanks for the reply , i did study G-Codes, The only thing making me confused is weather to do it in vb or C.
SOFTDEV
Luck in life always exists in the form of an abstract class that cannot be instantiated directly and needs to be inherited by hard work and dedication.
|
|
|
|
|
Whatever language you're comfortable with. It really doesn't matter.
|
|
|
|
|
HI I NEED HELP ABOUT COUNTING AN OCCURRENCE OF EACH LETTER IN A TEXTBOX
FOR EXAMPLE I HAVE 2 TEXTBOX
IN TEXTBOX1 I INPUT THE WORD "HELLO WORLD"
THEN WHEN I CLICK BUTTON 1 THEN IT DISPLAY IN TEXTBOX2 LIKE THIS:
1H 1E 3L 2O 1W 1R 1D 1R IT REVERSE AS H1 E1 L3 O2 W1 R1 T1
AS LONG AS IT DISPLAY...
THANKS IN ADVANCE I'M NEW IN VB.NET AND I DONT KNOW HOW TO DO THAT...
|
|
|
|
|
Maybe this link will help you [^]
And Read the Guidelines before you post your thread. The 8th Point.
Every new day is another chance to change your life.
|
|
|
|
|
Here is a quick / rough way that I would count the characters in a string
Dim s As Char() = TextBox1.Text.ToCharArray
Dim p As New Dictionary(Of Char, integer)
For Each chars As Char In s
If Not chars = " " Then
Dim i As Integer = s.Count(Function(r) r = chars)
If Not p.ContainsKey(chars) = True Then
p.Add(chars, i)
End If
End If
Next
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
modified 30-Mar-12 19:35pm.
|
|
|
|
|
Your creating a Dictionary of String to store an Integer?
|
|
|
|
|
Oh crap! It was ment too be an integer
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Please do not scream at me. Thank you.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
How do you know that, VB programmers aren't case-sensitive
"You get that on the big jobs."
|
|
|
|
|
RobCroll wrote: VB programmers
I would only tolerate it if my "option strict" was on.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|