|
dont know for whom this post is
|
|
|
|
|
nowords4u wrote: dont know for whom this post is
I thought that was pretty obvious.
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
Actually, we just answer non-moronic questions. We like being asked hard questions. A question that requires we write a book in response is not hard, it's just lazy.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Blacklisted... Have a nice life.
Your boxx have given you a job to do. Instead of wasting your time bitching about the perfectly reasonable answers you were given, start studying an ASP.NET book. It appears you've wasted two days this weekend waiting for someone to do your research for you.
|
|
|
|
|
i_kant_spel wrote: I have been given an assignment - to make the dashboard viewable from a web browser
Why have you been given this task, if you have no clue how to do it. Does your boss know you don't know how to do it ? Is he an idiot ?
As someone else said, buy an ASP.NET book, your question is way too broad for an online forum.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I guess i knw How you become the MVP of Code project 60,000 posts hahahhahahaa , lmao
|
|
|
|
|
It's a combination of writing articles, and helping people who ask real questions, as opposed to asking me to do their work for them. In the early days, the site only had real programmers on it. I miss those times.....
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
cool that is a very good answer i can expect from a MVP , i am clear now , i am impressed
|
|
|
|
|
Amusingly, I could care less if you're impressed or not, but thanks all the same.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello agine
I have added a exe to my Project by added a new item and then setting the Build Action to Embedded Resource
now how can i run the exe i have added to my project ???
i try Process.Start and that did not work
Can anyone help plesase
maybe give me a example if it is too much
Thanks
|
|
|
|
|
You have to copy the .EXE to the hard drive and run it from there. You cannot run it from Resources. It must be in file form.
|
|
|
|
|
|
ok i think i got it so i can have my app save me embeded exe run it then when i am done i can delete it
that would work for me
can you help me get started with a example please
Thanks
Bob
|
|
|
|
|
Here you go.
Private Sub StartEmbeddedExe()
Dim currentAssembly As Assembly = Assembly.GetExecutingAssembly()
Dim resourceFullName As String = "YourNamespace.ExecutableName.exe"
Dim filePath As String = Path.Combine(Path.GetTempPath(), resourceFullName)
Using stream As Stream = currentAssembly.GetManifestResourceStream(resourceFullName)
If Not stream Is Nothing Then
Using file As New FileStream(filePath, FileMode.Create)
Dim buffer As Byte() = New Byte(1024) {}
Dim read As Integer = stream.Read(buffer, 0, buffer.Length)
Do While (read > 0)
file.Write(buffer, 0, read)
read = stream.Read(buffer, 0, buffer.Length)
Loop
End Using
End If
End Using
If File.Exists(filePath) Then Process.Start(filePath)
End Sub
|
|
|
|
|
I am getting some not defind for blue lines under
Private Sub StartEmbeddedExe()
Dim currentAssembly As Assemably <= Here = Assembly.GetExecutingAssembly()
Dim resourceFullName As String = "keyboard.exe"
Dim filePath As String = Path.<= Here Combine(Path. <= Here GetTempPath(), resourceFullName)
Using stream As Stream <= Here = currentAssembly.GetManifestResourceStream(resourceFullName)
If Not stream Is Nothing Then
Using file As New FileStream(filePath, FileMode.Create)
Dim buffer As Byte() = New Byte(1024) {}
Dim read As Integer = stream.Read(buffer, 0, buffer.Length)
Do While (read > 0)
file.Write(buffer, 0, read)
read = stream.Read(buffer, 0, buffer.Length)
Loop
End Using
End If
End Using
If File. <= Here Exists(filePath) Then Process.Start(filePath)
End Sub
How can i fix that ??
Thanks
Bob
|
|
|
|
|
I Imported system.IO and it got ride of most of them
not i just have one under the first asemably
|
|
|
|
|
The Assembly class is in the System.Reflection namespace. Import that namespace at the top of your code.
|
|
|
|
|
I am still getting the blue line under that
Dim currentAssembly As Assemably = Assembly.GetExecutingAssembly()
This one
Thanks
|
|
|
|
|
Bob Beaubien wrote: I am still getting the blue line under that
What is blue line? You need proper imports.
Imports System
Imports System.IO
Imports System.Reflection
|
|
|
|
|
ok I got it now i hade all of them inported but for some reson i delete the y in assembaly and put it back and then it was fine humm
i put that code in a button can i do that like this
I tryed it but it dont work
and for file name you hade put "YourNamespace.ExecutableName.exe"
what do i put for name space ??
Thanks agine your all your help and pations
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim currentAssembly As Assembly = Assembly.GetExecutingAssembly()
Dim resourceFullName As String = "keyboard.exe"
Dim filePath As String = Path.Combine(Path.GetTempPath(), resourceFullName)
Using stream As Stream = currentAssembly.GetManifestResourceStream(resourceFullName)
If Not stream Is Nothing Then
Using file As New FileStream(filePath, FileMode.Create)
Dim buffer As Byte() = New Byte(1024) {}
Dim read As Integer = stream.Read(buffer, 0, buffer.Length)
Do While (read > 0)
file.Write(buffer, 0, read)
read = stream.Read(buffer, 0, buffer.Length)
Loop
End Using
End If
End Using
If File.Exists(filePath) Then Process.Start(filePath)
End Sub
|
|
|
|
|
I noticed in a couple of your code snippets you copy'n'pasted (I hope!) this:
assembaly
It's spelled Assembly .
|
|
|
|
|
Yap i got that
Thare is not more blue lines now
but it will not run
|
|
|
|
|
Hi Everyone,
I have a vb6 application written as a service that interacts with the desktop. The service is designed to control a system that is never logged into by a user.
A function in the service is to enumerate the attached monitor(s) and configure the width, height and rotation based on settings read from an xml file.
The function works if a user is logged in but when the service runs and no user is logged on it fails to a) enumerate the display devices and monitors and b) configure the display settings using these two functions.
The idea is for the service to configure the display settings without having to logon to the computer to perform this task manually.
I think I'm running into problems with winlogon and perhaps the different state when no user is logged in. Does anyone have any information which could assist with getting these functions to work when no user is logged on?
Thanks,
Ben
|
|
|
|
|
Hi,
AFAIK services by default run without user interaction, without desktop, and hence without screen settings. However there is a flag somewhere that allows user interaction, so it is my guess you should enable that, then proceed. Don't ask me any details though.
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
The Service is already set to "Allow service to interact with desktop" - this setting is on the Logon tab of the services mmc.
|
|
|
|