|
how to make a process a service in VB.
i am seeking help in VB to make my application's exe run without being tirggered just like worms.
The payload of my application is Just MessageBox stating "Welcome From Usman".So there are two main issues ,
1)How to execute exe without tirggering it
2)Where to place and how so that every time windows starts(not user logs in) , it executes it self and show the message box.
I hope that you will help me.
Regards
UsmanMir
|
|
|
|
|
so...you're gonna make a virus...
TERRORIST
Never say never
I think i can help you with the first requisite the second one i only know how to do it manually (put the shortcut in the Startup folder... :P)
use the Process class and its Start method:
Dim myProcess As New Process<br />
myProcess.Start("myApp.exe")<br />
(...)
|
|
|
|
|
A windows service has to be installed. VB6 doesn't come with anything to do that. There are, however, 3rd party utilities that do. I already posted a link for you to follow that contains instructions on how to do it.
Next, you have a huge problem that you can't resolve. Since your application is running as a service, it runs under a completely different desktop than the one the user sees. This mean, that unless your service is tagged "Allow interaction with desktop...", the messagebox you put up will never be seen by the user.
Now, having solved that little problem, you have a second problem. You said you want to put up a dialog box while no user is logged in. Not going to happen. Since there is no desktop when a user isn't logged in, there's no way to put up a visible message box.
On top of that, your VB6 app is not a true service. This means that you don't get the notification messages that the user session is being terminated or started, so you can't tell when someone logs on or off.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to select and rename the column name to PROD_ID( to product) and QTY( to total) in vb form and show resulting table in vb form
SALE_ID PROD_ID QTY
1 Tomatoes 30
|
|
|
|
|
I have created a cpp program. I want to run its exe from visual basic.I want to pass some parameters to the main function of cpp program through visual basic program variables.Can anybody tell me how to do it?
Thank u.
SHYAMALA LOKRE
SAMRAT ASHOK TECHNOLOGICAL INSTITUTE ,
VIDISHA.
|
|
|
|
|
Easy. Check into the Process[^] class. The only way your going to pass your VB program variables to the external .EXE is to pass them as command line parameters when you launch the .EXE.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I create one subfolder in outlook calender.I want to Create an apponitment in that folder using VB.NET.How can i do it?I need sample code in VB.NET..
Thank you very much
Ilangovan
|
|
|
|
|
http://www.outlookcode.com/
|
|
|
|
|
how to make application as service.any links
ddd
|
|
|
|
|
Start by opening Visual Studio, click on New Project, open the folder for VB.NET, double click on Windows Service in the project templates pane. From there, read this[^] for a walkthrough on how to create one.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a question about programming the DataReport in VB6.
Do I need to use the DataEnvironment to link a database and table to the report or can I create a connection and recordset in code. I'm asking this question because I wish to create a report based on a user's query not a static query.
|
|
|
|
|
is it possible to show an html webpage inside a vb6 textbox...or other control?
thank.....
---- mike
|
|
|
|
|
Not in a TextBox. You'll have to add a WebBrowser control to your form and use that to diplay the page. Just add the Microsoft Web Browser component to your ToolBox and drop one on your form.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all !
I'd like to add drag&drop support in my apps, but I can't find articles on how to do this...
My app takes a folder as start, and I would like to make it detect the folder name that is droped in it... I already manage to detect the drop operation, but i have no idea how to get the folder name(or path...) from there...
Thanks !!!
|
|
|
|
|
www.vb-helper.com/howto_net_drag_drop.html
www.developerfusion.com/show/2692/
www.codeproject.com/vb/net/vbnetdragdrop.asp
www.codeproject.com/vb/net/TreeViewDragAndDrop.asp
|
|
|
|
|
I'll take a look at it !!
Thanks a lot !
|
|
|
|
|
hiiiii
we are doing a project MEDIA ON DEMAND using VB.NET and MSSQL Database Server.
Actually we are new to this platform so we need guidance in our project
In our project, we are dealing with the media like audio, video, text documents, PDFs etc.. which ll reside on the server and should be served back to the client when he requests.
so we need help in starting the coding and also we would like to have the related materials and information. If an already available code is there, we would be really helped by it..
waiting for reply
thanking u all
|
|
|
|
|
Your post has all the earmarks of a homework project, or a college project. From the information you included, or more to the point, the lack of it, it would appear that you havne't done any research or design work. Am I right?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
not really...
ya... we are still in coll pursuing final sem engg..
we ve designed the sytem model and database structue.. but the main prob is that we new to this platform and dont even ve much time left.. so not sure how to start the coding n all
it would be really nice if we get some help here..
|
|
|
|
|
You've asked a VERY large question. There's no way to tell you about ALL of the basics you're going to need just to START coding this thing. The forums are just not the place for it. I suggest picking up a book on VB.NET and giving yourself a crash course. If time is so short that you can't do this, I'm afraid you've screwed yourself...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you're new to it, how come 'time is short' and you need to get ideas on how to impliment this, broadly ? What languages are you familiar with ? What is constraining you to using VB.NET if you don't know it ? If you're familiar with C++, VB contains some very nasty gotchas, and also the syntax is likely to be counter intuitive and hard to read for you.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Everyone,
I'm trying to wire an MVC framework (which is based on VB.NET Design Patterns book). The Viewer/Controller framework is straightforward, however when I incorporated a Model, this is where I get stuck. My question is how to wire events to the model specifically say a login where username and pwd are evaluated and if true put the userid into session that way it lives throughout the duration of the application cycle. Here is codebase:
Code Behind of the viewer:
'/----------------------------------------------------------------------/
'Standard controller method which the form uses to return and instance
'to the LogincControllerFactory
'/----------------------------------------------------------------------/
Protected Overrides Function getControllerFactory() As ControllerFactory
Return New LoginControllerFactory
End Function
I have a login controller class, here is the codebase:
Imports MVC
Imports GL.GLUserInformation
Public Class LoginController
Inherits Controller
'Created strongly type View/Model/View WithEvents Reference attributes
Protected WithEvents _LoginView As Login
Protected _Login As GLUserInformation 'Incorporate the model here
Protected WithEvents _UName As TextBox
Protected WithEvents _PWD As TextBox
Protected WithEvents _BtnLogin As HtmlInputButton
Protected WithEvents _BtnReg As HtmlInputButton
Protected Overrides Sub setTypedModelReferences()
_Login = CType(_models(0), GLUserInformation)
End Sub
Protected Overrides Sub setTypedViewReference()
_LoginView = CType(_view, Login)
End Sub
Protected Overrides Sub setViewDataBindings()
_UName.DataBind()
_PWD.DataBind()
End Sub
Protected Overrides Sub setViewWithEventsReferences()
With _LoginView
_UName = .txtLogin
_PWD = .txtPassword
_BtnLogin = .Submit1
_BtnReg = .Submit2
End With
End Sub
'View event handling of web controls
Private Sub _BtnLogin_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles _BtnLogin.DataBinding
' Validate the user
Const CorderModelSessionKeyName As String = "login_model"
Dim viewWeb As ViewWeb = CType(_view, ViewWeb)
Dim session As System.Web.SessionState.HttpSessionState = _
viewWeb.Session
' Create an instance of the GlLogin class
Dim userLogin As GLLogin = GLUserInformation.ValidateUser
End Sub
Private Sub _BtnReg_DataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles _BtnReg.DataBinding
_LoginView.Server.Transfer(Registration.aspxName)
End Sub
End Class
My problem is the _BtnLogin_DataBinding, how do I wrap my model into this controller without breaking the design pattern.
Thanks,
|
|
|
|
|
Your view obviously is where input comes into the system, so your pages all need to have an instance of the model ( I'd say derive all pages from a custom base class, generally sound advice anyhow ), which exposes methods that you can call from the view as needed. In reality, I don't think MVC is a valid model for a web app, unless it's not always going to be a web app. Why ? Because your controller is never going to change, and even if your view has a high likelihood of changing, I think you'd do just as well to just adopt a tiered approach. I've written desktop software using MVC, in particular a video jukebox where the view and the controller could change from one install to another, and generally there'd be multiple controllers. I implimented an Interface for each of the three parts, and my startup code creates the right objects and starts them off, the specific types are transparent as all communication is via the interfaces. It worked really well.
I've also been part of a web project where we used MVC, mostly to turn all postbacks into redirects, so the user could always hit refresh in the browser and never get a broken page. IMO the resultant framework was far too complex to be warranted for the job at hand, and it just made the code too hard for someone to learn, and confusing even for us to work on at times.
Don't impliment a pattern just coz it looked good in the book, make sure it's a good fit to the problem at hand.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi Christian,
Thanks for your insight on this. You made me ask more questions about MVC. My web application is in a production environment using a tier based architect, but I'm exploring the possiblities of Design Patterns. I was under the impression that MVC is the way to go for Web apps (see UIPAB framework here in CODEPROJECT). Ultimately my goal is to produce efficient business applications that meet the business processes and rules in a shorter life cycle.
Joe
|
|
|
|
|
Anonymous wrote:
Ultimately my goal is to produce efficient business applications that meet the business processes and rules in a shorter life cycle.
You definately need to go with a tiered approach, no matter what you do. Business rules and UI have no business being in the same area of code. However, it's my opinion that MVC is useful only when the view and/or controller are likely to change. Otherwise, there's no reason for the view and controller to be seperated, given that for most apps, the frameworks we have tie them together ( a form has controls that show info and get events, your web app will have pages that recieve events and decide how to render it ). If you wanted to be picky, you could say your aspx is the view, and the aspx.cs is the controller, but that's just nit picking IMO. Given that your web app will always get input from a browser, and output HTML, what use is it to you to seperate the view from the method of control ?
Christian Graus - Microsoft MVP - C++
|
|
|
|