|
I am sorry, my bad.
What I meant was:
I am new to the software development of dvd player for windows. I need some basic tutorials and resources to start with.
Thanks.
|
|
|
|
|
|
Hello guys,
As I said in the subject line, the goal is to deploy a console application to another machine without Visual studio 2008 installed on that machine. It does have 2005 installed on it though.
Questions:
1- Do I need to install the Framework 3.5 on this machine for the console app to work?
2- I'm not sure what steps should be taken to accomplish this deployment (provided that I install the framework). In other words the Bin directory of this folder contains consoleApp.vsHost.exe.manifest (type: manifest file), consoleApp.vsHost (type: Application), ConsoleApp (type: Application).
3- Should I just copy over these files and a few other DLLs that are being referenced from this console application over to the other machine and be able to run the executible from there?
4- when I right click, and look at the properties of the console application project, i see quite a few options (in VS 2008) Is the publish option relavent to this deployment? Especially the publish location and install Mode and settings options?
Thank you all so much in advance for your help
Tina
|
|
|
|
|
1 - Yes, if it uses 3.5
2 - See 3
3 - You can, and I do it that way, but it depends on other factors
4 - That's another way to do it, which maybe I should do, but don't
|
|
|
|
|
Tina P wrote: 1- Do I need to install the Framework 3.5 on this machine for the console app to work?
Yes
Tina P wrote: 2- I'm not sure what steps should be taken to accomplish this deployment (provided that I install the framework). In other words the Bin directory of this folder contains consoleApp.vsHost.exe.manifest (type: manifest file), consoleApp.vsHost (type: Application), ConsoleApp (type: Application).
Just Take all files of Bin folder to destination machine
Tina P wrote: 3- Should I just copy over these files and a few other DLLs that are being referenced from this console application over to the other machine and be able to run the executible from there?
You do not require source files on client computer
Tina P wrote: 4- when I right click, and look at the properties of the console application project, i see quite a few options (in VS 2008) Is the publish option relavent to this deployment? Especially the publish location and install Mode and settings options?
I don't know
|
|
|
|
|
Please dont crosspost, however see my answer in the other forum.
|
|
|
|
|
in my app i've apicture box and when clicked on that i want to show that this picturebox is clicked by changing the color of the border, how can i do it?
|
|
|
|
|
Sadly enough, this control does not expose a border color, even for classes inheriting from it. Your only choice is to draw it yourself, you can for example create a class that inherits from the PictureBox and override the OnClick (or just handle it) to paint the border, it can be something like that:
public class PictureBoxEx
: PictureBox
{
protected override void OnClick(EventArgs e)
{
base.OnClick(e);
Pen pen = new Pen(Color.Red);
this.CreateGraphics().DrawRectangle(pen, base.ClientRectangle);
}
}
This code is not entirely correct, the base.ClientRectangle rectangle is inside the real border but I'll leave it to you to compute the correct coordinates.
The disadvantage of this approach is that it is not done in the "Paint event" of the control, so any redraw (caused if you ALT-TAB or just move something over it, like another window) will cause the control to redraw itself and your border will disappear. I don't know what you really want, if the idea is that it should STAY colored after the click, then override the OnClick and trigger the OnPaint after having set a boolean or so to indicate the clicked state; in the OnPaint, check this boolean and draw the border if the "clicked" state check is positive.
Another disadvantage, but this was really quick code to show the idea, is that I am using a Graphics object that I create myself. In the OnPaint handler, you should use the provided Graphics object from the eventArgs, otherwise you loose Double-Buffering.
Jean-Christophe Grégoire
|
|
|
|
|
hi.........
im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.
|
|
|
|
|
CodeProject does not mean we offer the code and project directly.
I Love KongFu~
|
|
|
|
|
john ramesh john wrote: im developing driver lock project
Good
john ramesh john wrote: i could not find the code in c#.net, could u do and sent me the source code and project.
So you're not really. You actually want someone else to do it for you.
Suggestion. Get your wallet out and head to rentacoder.com
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|
|
|
I think the easiest way to do this is go to the keyboard. Press the Button with the "Window" on it + "L". That should lock your Hard Drive/PC.
Good luck.
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
perfect reply.
|
|
|
|
|
Wow this was a big one, I just finished. I couldn't upload to CP so the download link is here[^].
|
|
|
|
|
As i hav seen all previous reply's to "kabhi bhi is tarah se kahabhi kaise bhi sawal mat poocho " but i m interested to give the answer here is solution.
Actually locking is not done by the code. What u hav to do is, first understand the Windows Registry basics. Once u hav understood the basic about windows registry u can lock any drive on hard disk.
There is key in windows registry(refer it from documentations ). I m not sure but it contais 32 bits.
the bit is either 1 or 0
Suppose u want ot lock c: then simply change 1 to 0 at appropriate position.
11111111111111111111111111111111 change it to
11011111111111111111111111111111
I hav written same program that changes this registry key.
|
|
|
|
|
to lock C: drive the DWORD value would be 10bin(2dec) not 11011111111111111111111111111111bin.
Following values lock the drive typed at right side. (1a : 1 locks A: drive, and 12cd: 12dec(1100bin) locks C: and D: drives.
1a
2b
3ab
4c
5ac
6bc
7abc
8d
9ad
10bd
11abd
12cd
.
.
16e
.
32f
.
64g
|
|
|
|
|
hi
I have a dll and i want to extract it in a .cab file.
please help
Thanks in advance.
|
|
|
|
|
We can add the CAB project via VS.Net. To be specific, New project->Other Project Types->CAB project.
You can also search CAB in MSDN for more information.
I Love KongFu~
|
|
|
|
|
Thanks
Can i make .inf file included in my cab file like this sample:-
; Sample INF file for ViewerX.dll
[version]
; version signature (same for both NT and Win95) do not remove
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
scvncctrl.dll=scvncctrl.dll
; needed DLL
[scvncctrl.dll]
file-win32-x86=thiscab
clsid={62FA83F7-20EC-4D62-AC86-BAB705EE1CCD}
FileVersion=2,9,5,1
RegisterServer=yes
; end of INF file
|
|
|
|
|
Sure, take a try and you will be happy.
I Love KongFu~
|
|
|
|
|
Hey guys,
As the title says, how do I read a file name located in a specific folder into a C# application.
Basically someone will be downloading a file from a website, once the file is downloaded to a particular folder (lets say /VisualStudio2008/Projects/MyProject/bin/Debug/TheDownloadedFile.csv)
then I need to have the name of the file read into my app?
To get to that particular folder, I'm doing system.AppDomain.CurrentDomain.BaseDirectory to get to the actual directory where the file is downloaded to, how to I grab the name of the file and extension from there. I guess the extension could be hard coded once the name of the file is detected and read into the program becaseue it will always be a csv file.
Can someone please help.
Thanks
Tina
|
|
|
|
|
Hi,
one of three methods:
- have the name hardcoded,
- scan the folder using Directory.GetFiles(),
- or a combination of both (using a filter in GetFiles).
There are alternatives, but they are more complex:
- some other way of communicating the filename;
- using a FileSystemWatcher object.
|
|
|
|
|
Hello Luc,
Thanks for the response. I actually ended up using GetFiles method which seems to be picking up the file name frmo the folder along with the file extension. But since I need to make this thing an automated process (this console app will kick off at a specific time everyday using the windows scheduler or something a long those lines, so perhaps a filewatcher would be nice to use...although I haven't used those in a while. what do you think is the best way to delete a file after its been parsed and processed?
Thanks again for the response.
Tina
|
|
|
|
|
Tina P wrote: But since I need to make this thing an automated process (this console app will kick off at a specific time everyday using the windows scheduler or something a long those lines, so perhaps a filewatcher would be nice to use...
Yes, a file watcher is a good choice instead of windows scheduler in this case. You can search System.IO.FileSystemWatcher in MSDN.
Tina P wrote: what do you think is the best way to delete a file after its been parsed and processed?
I do not understand, if your app's duty is to parsed the file, why do not you know when to delete it? Just delete it after app finish the parsing actioin.
I Love KongFu~
|
|
|
|