|
Yeah, I've seen WinFX demos, in Seattle. I agree, it's awesome. But, this is what I'm afraid of. That Microsoft is pushing us to use WinFX. Why am I afraid ? Because I can't afford to tell people I work for that my code now targets only Windows XP and above.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If Windows 98 & 2000 compatibility is really that important, your best bet is probably to use DirectShow via COM interop.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
Hi, it's been a long time since my last post here, but here my new one is:
Well, I recently installed visual c# express edition 2005, which seems to work fine. Later I installed the DirectX sdk (december 2005 release). As the readme tells me, only the documentation for managed DirectX should be available in visual studio 2005 express edition document browser. Well, that's fine for me, but there's nothing in visual studio 2005. I installed the express edition in c:\Microsoft Visual Studio 8\, which is not standard, but can this be the reason? I can tell my project where to look for the directx dlls, but the help isn't included though documentation was installed: Nothing in the documentation browser, nothing if I move my mousecursor over DirectX specific code and nothing if I hit F1. Rest of the sdk seems to be installed properly (external documentation, debug version, etc). So how can I fix that? Hope someone can help me.
Thanks.
|
|
|
|
|
The documentation should be in "C:\Program Files\Microsoft DirectX SDK (December 2005)" or some similar folder.
|
|
|
|
|
Well, that's not what I meant. I know where to find the documentation. My Problem is that I can't use the (let me call it) advanced help in visual studio. As I read DirectX help should be integrated in visual studio automatically when visual studio is installed and you install the DirectX SDK. But when I install, there's nothing in VS. Due to the fact that I use Visual C# 2005 express edition only the managed DirectX help should be available (referring to the readme of the December 2005 DirectX SDK), but it is not for me. So that's the problem. I'd still appriciate any suggestions.
Thanks
|
|
|
|
|
I want to actually extract comments ( of both '//' and '/* ..... */ styles ) from a C# code file. I want some halp regarding how to implement this ?
I want to extract all comments as follows
1. starting with //
2. comments inserted in old /* ....... */ style.
please give me any hints or links
ragards,
|
|
|
|
|
You can write a tool that loops over all your source files, opens them, and uses regular expressions to search for the above mentioned patterns, and removes them.
|
|
|
|
|
|
Hi - I need to trap Alt + Down keys together in WndProc - any ideas how i can do that.
i.e. specifically what message values are these keys having been pressed.
I know i can handle this in KeyDown, but if i wanted to do this in WndProc, how to?
Thanks.
|
|
|
|
|
Try this:
private const int VK_LEFT = 0x25;
private const int VK_UP = 0x26;
private const int VK_RIGHT = 0x27;
private const int VK_DOWN = 0x28;
private const int VK_MENU = 0x12;
private const int WM_SYSKEYDOWN = 0x0104;
private const int WM_SYSKEYUP = 0x0105;
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_SYSKEYDOWN:
if (m.WParam.ToInt32() == VK_DOWN)
{
MessageBox.Show("User pressed Alt+Down");
}
break;
}
base.WndProc(ref m);
}
|
|
|
|
|
how i can delete in use files in my program using IO.File class?
-- modified at 9:59 Sunday 15th January, 2006
|
|
|
|
|
You can't. It's as imple as that.
The file must be closed, by every process that has it open, before you can delete it, move it, or rename it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I don't know for sure if there is a way using c#. I encounter same problem with deleting files that are currently in use. You can try using the force delete of vbscript if that is applicable. It works for me.
|
|
|
|
|
Not even that will force-delete a file that is locked open by any process.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Files in use cannot be deleted.
But you can use this:
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
private static extern bool MoveFileEx(string lpExistingFileName, string lpNewFileName, int dwFlags);
const int MOVEFILE_DELAY_UNTIL_REBOOT = 0x00000004;
static void MarkFileToDeleteOnReboot(string fileName)
{
MoveFileEx(fileName, null, MOVEFILE_DELAY_UNTIL_REBOOT);
}
|
|
|
|
|
hi guys,
im listing all the running processes in a machine and put the values inside a listbox control. i want to be able to update the process/application list every, lets say 2 seconds... how can i do that? nid help asap..tnx..
|
|
|
|
|
try clearing the listbox before putting your items again. Drop a Timer Control and set the Interval to 2000(2 seconds) and set it to Enable=true:
private void timer1_Tick(object sender, EventArgs e)
{
populatelist();
}
private void populatelist()
{ /*assume that your list of proccesses are coming from an arraylist arlist*/
listBox1.Items.Clear();
for (int i = 0; i < 5; i++)
{
listBox1.Items.Add(arlist[i].ToString());
}
}
|
|
|
|
|
tnx a lot codyGen! it worked! although my listbox flickers a bit.. but it works fine..
|
|
|
|
|
batmanAgen wrote: although my listbox flickers a bit
myListBox.BeginUpdate();
myListBox.EndUpdate();
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
i am a bachelors student in Pakistan...recently i have done some work in C# concerning to image capturing and editing...so far i have been successful with the basic filter and image operations...all i wanna know is that should i contineu using the BITMAP class or should i search for any API which functions for JPEG in .Net and then move ahead with my work... eagerly waiting for reply coz i have a criticle time constraint
|
|
|
|
|
When you work with images, they are always in a bitmap form. Don't confuse this with a Windows bitmap file (.bmp), though. What you have in a Bitmap object is an image in bitmap form, not a .bmp file.
From a Bitmap object you can save the image to several file formats, including Windows bitmap (.bmp), JPEG (.jpg/.jpeg/.jpe), GIF (.gif), PNG (.png), et.c.
It's not possible to edit images in JPEG form, you have to decompress the image to bitmap form by loading it, edit it, then recompress the image by saving it as JPEG.
---
b { font-weight: normal; }
|
|
|
|
|
Hello
I am writing an program that will use a bar code scanner to scan products. The product code will be looked up in a database and return the details of the product to the windows form.
I have never worked with this barcode hardware before, and before l purchase some a bar code scanner. I need some questions answered.
Does the barcode scanner come with any software?
It is easy to interface a c# windows program with a barcode scanner?
Does the barcode scanner connect through the USB port?
Does anyone know any example programs where this has been done?
Thanks very much in advance,
Steve
|
|
|
|
|
Probably this article[^] might to of help to you.
I've just worked once with barcode scanners. I don't remember the name of this scanner nor of the used drivers but it was plugged into USB and just entered the read barcode number into the active textbox (didn't matter if it was Word, Editor or any special application). This way my application didn't need to know anything about barcode scanning - it just waited for input.
|
|
|
|
|
If you get a Keyboard wedge barcode scanner then when you scan an item the barcode numbers are simply outputed to the textbox (or other control) that has current focus. With the keyboard wedge there is no need for any specific software or drivers.
|
|
|
|
|
All of your questions depend HEAVILY on the barcode scanner that you pick. They come in different interfaces (USB, keyboard wedge, serial port) and will either come with drivers or not. The single, most important piece you need is the DOCUMENTATION that comes with the scanner. That will tell you everything you need to know about interfacing with the scanner.
You'll have to do your own research as to what is going to suit your applications needs.
Example programs, probably a few out there, but not many, simply because this is a very narrow application market. Besides, these really are simple devices to interface with. There's not much to listening for a string of information comming from them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|