|
I could regurgitate a whole load of documentation here, but I won't: I'll just direct you to SQL Server Books Online[^] - note, this link is to a download, not online documentation.
In the Contents tab, go to Replication.
Snippet:
When to Use Replication
With organizations supporting diverse hardware and software applications in distributed environments, it becomes necessary to store data redundantly. Moreover, different applications have different needs for autonomy and data consistency.
Replication is a solution for a distributed data environment when you need to:- Copy and distribute data to one or more sites.
- Distribute copies of data on a scheduled basis.
- Distribute data changes to other servers.
- Allow multiple users and sites to make changes then merge the data modifications together, potentially identifying and resolving conflicts.
- Build data applications that need to be used in online and offline environments.
- Build Web applications where users can browse large volumes of data.
- Optionally make changes at subscribing sites that are transparently under transactional control of the Publisher.
If you always want the latest data available to your client, and cannot stand any stale data, stick with linked servers. Otherwise replication should produce less traffic between servers.
|
|
|
|
|
Not sure about you guys but I often need to paste the output of console apps into emails, documents, and the like so what I normally do is:
dir /s > test.txt
Then open up "test.txt" and then copy and paste the contents to wherever I need it and then delete "test.txt" now this is a pain and I thought there has to be a better way. So I wrote a utility in VB.Net to solve the problem. I would have written this as an article but the .NET Framework has made this so simple the article would be too short
1. Create a new console application
2. Add a Reference to System.Windows.Forms
3. Paste this code into the Main function
Dim strInput As String
strInput = Console.In.ReadToEnd()
Windows.Forms.Clipboard.SetDataObject(strInput, True)
4. Compile and put the resulting .exe in your path
Now all you need to do is:
dir /s | YourProgramName.exe
Then go into your email, document, etc. and paste... the program has captured the console output and put it into the clipboard. Hope you guys find this helpful.
|
|
|
|
|
I finishing up some code I wrote for a multi server chat that uses TCP/IP and Telnet, and I was wondering if there was any interest for it on this site. Its writen in VB.net and its completely convertable into a MUD, data pipe, or FTP system. If there is enough interest I will post all of the source. I hope you guys like class files, cause darn near the whole thing is made up of em
|
|
|
|
|
Maybe you should submit it as an article. I'd certainly be interested in reading it.
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
LearnVisualStudio.Net
|
|
|
|
|
This would definitely interest me...
|
|
|
|
|
Hi, Does anyone know how to use the plug-ins api available with VB6. I can't find any documentation for it or anything. Thanks in advance
Allan
|
|
|
|
|
Hi,
I'm trying to setup my VB executable to pull in a parameter when the executable is called.
For example: MessageOperator.exe /B
Here is what I've setup so far:
Public Class MessageOperator
Public Shared Sub Main(Optional ByVal strOption As String = "A")
if strOption = "A" then
...
else
...
end if
At compile time I'm getting the following error:
No accessible 'Main' method with an appropriate signature was found in 'MessageTheOperator'.
I'm either doing something stupid or heading in the right direction, but missing one small item.
Anyone have a suggestion?
Kevin
|
|
|
|
|
In VB, the command line parameters are read from a function (like "Command"). They are not passed into the Main as parameters. Remove the parameter from Sub Main and re-code it to read the parameter from the Command function and you should be all set.
Mike Mestemaker
|
|
|
|
|
Thanks,
I did the following and it worked like a charm:
Dim strMode As String = Microsoft.VisualBasic.Command()
If strMode = "Report" Then
MsgBox("Print Report")
Else
MsgBox("Display Form")
End If
The program is executed:
program.exe Report
Thanks again!! Kevin
|
|
|
|
|
The problem was that you didn't have the signature of your Main correct, rather than using the Microsoft.VisualBasic compatibility namespace you could do the following:
Public Shared Sub Main(ByVal args() As String)
Dim strMode As String
If args.Length > 0 Then
strMode = args(0)
End If
If strMode = "Report" Then
MsgBox("Print Report")
Else
MsgBox("Display Form")
End If
End Sub
|
|
|
|
|
I tested your suggestion and it also worked very well.
Thanks!!
|
|
|
|
|
Hi Kevin, Ben here,
I guess you will be proud to know that you can at least help me on this 'Sub Main' issue. I have just started doing my first project in VB.NET. When I try running my project i get an error code indicating that 'Sub Main ' is missing . Could you please explain to me what this 'Sub Main' is all about, and how I can include it in my project.
Regards,
Ben
|
|
|
|
|
With VB you can designate where you want your application to start. For example you might want it to start with a form, a class or a module. If you start with a class or module VB is looking for Sub Main by default.
When you look at your project in Solution Explorer you'll see a list like the one shown below:
Solution test (1 project)
test
References
AssemblyInfo.vb
Class1.vb
Form1.vb
Right click on the second line (which is test above) and left click on properties.
You'll see a drop-down menu called "Startup object". Pull that menu down and select what sub routine or form you would like your application to start with.
Instructors of VB intro courses always seem to code in the form. This is fine for small financial calculator projects that they have you create while training, but when you start coding larger projects and have multiple forms and sub procedures you can start the application with a "Sub Main" in a class or a module to control all your forms.
Hope this helps. I've been coding in COBOL for 14 years and just recently started working with VB .NET because the company is going from a mainframe environment to a PC environment. I'm only on my 4th or 5th project and definitely consider myself a beginner. Hang in there... With .NET there is so much to learn that information overload can become a problem. Eventually the concepts will fall into place for you.
Kevin
|
|
|
|
|
A quick one,
thanks mate for your contribution. Will be trying it now. Will get back to you soon. Well, I thought of beginning programming using VB.NET because there seems to be a lot of useful knowledge to be gained from it.
Regards,
Ben
|
|
|
|
|
I want to create a Help file for an application, and is currently using Help Development Studio. The program expired a couple of days ago. Are there any other Help developing software (that is free) and is easy to use?
Another thing: How do I include the help.hlp file in the project? The user must click on a "Help" Menu Item, and the Help file must open!?!?!?
Desperate...
|
|
|
|
|
hallo. I want to draw bspline in vb .net. I see that the visual studio .net has a method called spline probably to draw spline curves. Does anyone know how can i draw bspline in vb .net? Can i use this method(spline?)any freesource code for drawing bsplines k-th degree in vb .net?
Thanks anyway
kjoshoua@hotmail.com
|
|
|
|
|
Hi,
I know how to make a VB ActiveX DLL and then use that in VC++, but how can I access all the function in the VB module from VC++?
Ehsan Behboudi
|
|
|
|
|
In some of our larger applications (VB.NET), we keep getting an application exception as the program is shutting down. This seems to be untraceable, but maybe I'm missing something. Here's what the message says:
[ProgramName.exe - Common Language Runtime Debugging Services]<br />
Application has generated an exception that could not be handled.<br />
Process id=0xa6c (2668), Thread id=0x9f8 (2552)<br />
Click OK to terminate the application.<br />
Click CANCEL to debug the application.
Here are the facts we know:
1. Never happens in development mode (when debugging in the IDE).
2. The process ID and thread ID's I mentioned above vary.
3. Is somewhat random, but occurs more often than not.
4. Always occurs during the shutdown of the application.
5. When I place tracing statements in the code to write out messages to a text file so I can determine which line of code is blowing, it's always on or after the END statement.
6. There appears to be NO negative result on the data or the operating system after we acknowledge the error.
7. The error is definitely NOT coming from any error handler I've got in place; I'm assuming it's generated by the .NET framework.
8. It usually seems to happen on machines that don't have any debugging tools, so clicking on CANCEL doesn't really do anything. I got it once on a machine that had the .NET IDE loaded on it; clicking cancel just told me there was no code at that point that could be debugged.
The other day, the application that does this the most did something slightly different when it ended, but the effect was the same. This occurred once and has never duplicated, so it might be a red herring. This time the message box said:
[WindowsFormsParkingWindow: ProgramName.exe - Application Error]<br />
The instruction at "0x77fcc813" referenced memory at "0x00000010". The memory could not be "read".<br />
Click on OK to terminate the program.
Does anyone have any ideas or clues on how to start finding and eliminating this? While it doesn't seem to hurt anything, it sure does make it look like my app is broken to the customer.
Thanks for any help.
Mike Mestemaker
|
|
|
|
|
I'm going to make a book recommendation: John Robbins' Debugging Applications for Microsoft .NET and Microsoft Windows[^].
He covers a great deal of information about how to debug the trickiest problems. (Note for VB6 users: I recommend the previous edition of this book, if you can find it - this edition doesn't cover VB6).
At a guess, you possibly need to turn on Native Debugging, or use WinDbg with the Son-of-Strike (SOS) debugger extension, for debugging .NET programs.
Perhaps you have a finalizer that's causing an exception?
You could also try using the CLR SPY Debug Probes tool[^] to see if there's anything odd going on, if you're doing any interop.
--
Mike Dimmick
|
|
|
|
|
Any subclassing going on? You must always release any subclassed windows before ending your application...
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
I was wondering how to do basic commands for the MMControl 6.0. Any info would be helpful!
Thanks
The Jazz Master 6000
DJ Badknees
Parma Grind Crew - www.geocities.com/parmagrindcrew
|
|
|
|
|
Try
Private Sub Command1_Click()<br />
MMControl1.Command "Play"<br />
End Sub
Hope it helps - shout (virtually) if you need more help
Paul
I don't think anyone should write their autobiography until after they're dead. - Samuel Goldwyn
modified 18-Jul-18 11:59am.
|
|
|
|
|
I wish to develop a small application in VB6 which makes it possible to publish files in a webdav server. I seek a ActiveX control or a component which makes it possible to write in a webdav server.
Vincent
|
|
|
|
|
Can anyone help? I am new to programming and am looking for a data bound grid control that can have the background colour of the rows set independantly.
Scuggins
|
|
|
|
|
Try MSFlexGrid
"It was when I found out I could make mistakes that I knew I was on to something."
-Ornette Coleman
|
|
|
|