|
I have a Windows application written c# 1.1 that uses embedded crystal reports. I have 60 users who all use the exe which is accssed from a shared folder on the network. The problem is I still need to install the application on all client machines so as crystal registers properly. Is there away around this so as I dont have to install the application on all client machines?
|
|
|
|
|
can we fast track or slow track any video in C# to produce the effects as are seen now-a-days during CRICKET matches...i know ASF files can be slow/fast tracked using the windows media player object........but is there any better way....
|
|
|
|
|
I have a form i am overriding the WndProc and i am trying to get a scancode for a WM_CHAR so i can get the correct char text. This is for internationalization. I have read that the key's scancode is embedded in the LParam parameter of the WndProc message. How do i extract this?
Below is some of the code i am working on. It is very possible i am tackling the problem wrong? I am not a C++/Win32 expert. From all my reading it appears that to have the best chance at converting a foreign char correctly one uses a combination of: 1) keyboard layout; 2) scancode; 3) virtual key. I appreciate the advice. I have blown quite a few brain cells working on this.
protected override void WndProc(ref Message m)
{
switch (m.Msg)
{
case WM_CHAR:
// get keyboard layout
// keyboard layouts map scan codes to virtual keys;
IntPtr keyboardLayout = GetKeyboardLayout(0);
// get keyboard state
byte[] keyboardState = new byte[256];
GetKeyboardState(keyboardState);
// ???
// get scan code
// get virutal key
Keys virtualKey = m.WParam;
// convert scan code to ascii
StringBuilder result = new StringBuilder();
result.Capacity = 2;
if (ToAsciiEx(virtualKey, scanCode, keyboardState,
result, 0, keyboardLayout) == 1)
// display char text
this.Text = result;
}
}
|
|
|
|
|
In an open source programm called Putty i found the answer. I do not fully understand the bit shifting and &ing but it works. I know it is a rubik's cube type maneuver to "pop out" a certain set of bits. It extracts the scancode from the LParam value. For anyone who wants to save 20 hours of research. The below is not an obvious find if you tried researching the internet starting with zero knowledge.
For WM_KEYDOWN
uint virtualCode = (uint)m.WParam;
uint keyState = (uint)m.LParam;
uint scanCode = keyState >> 16 & 0xFF;
Here you have the core values you need to resolve keys to text using various Win32 functions.
|
|
|
|
|
Keystate is a 32 bit int: AA BB CC DD (AA BB CC and DD are placeholders for the 4 bytes)
After shifting it 16 bits you have the value: 00 00 AA BB
Finally anding with 00 00 00 FF will zero out the value in the 3 high bytes (only needed in one of them) leaving scancode containing: 00 00 00 BB
|
|
|
|
|
Hi frnds,
Trying to read a binary file and write the data from that file to a simple text file.
The format of the data in the binary file is not known under any circumstances.
Can someone plz help me with this ??
Thank you
- Prasadd
|
|
|
|
|
Then you have to decide how you want to display the data in the text file. A hex dump?
---
b { font-weight: normal; }
|
|
|
|
|
As of now i would like to complete the read operation for a .dat file
heading towards Geek-Age !
- Prasadd
|
|
|
|
|
Use the System.IO.File.OpenRead method to open the file, it returns a FileStream object. Use the Read method to read from the stream, then close it.
---
b { font-weight: normal; }
|
|
|
|
|
i wanna display data from a generic xml file to a table view providing a checkbox and while clicking the send button the checked records alone should be taken to the next page...
i need suggestions .. i dont have any idea of how to do tht..........
thanx in advance
sathy
|
|
|
|
|
Hi I'm using a datagridview bound to dataset.
I use the datagridview to be able to add/edit/delete data.
When the user clicks save button, the changes made to the datagridview
will be reflected in the database.
How do I determine if the row/s are newly added rows?
Thanks so much!
|
|
|
|
|
hi
Use
Copy_of_DS=new DataSet();
if(ds.HasChanges(DataRowState.Added))
{
Copy_of_DS=ds.GetChanges(DataRowState.Added);
}
|
|
|
|
|
Can any body tell me how can i do media streaming in C#? Is there any dll available to work with this in C#?
-- modified at 7:41 Wednesday 18th January, 2006
|
|
|
|
|
If only it were that simple!
You might want to start reading stuff in the Windows Media Developer Center[^] on MSDN. Specifically, you'll want to dive into the Windows Media Encoder SDK docs.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello everybody.
Today I was thinking about something very easy.
What's more easy por the PC?
My example is based in a ComboBox named "cb"
Case 1:
if( cb.visible == true ){<br />
cb.visible = false;<br />
}
case 2:
cb.visible = false;
The idea is if check the current value of object before set this or set without evaluation.
This maybe has not importance, but if you are building a big application should be considered.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
-- modified at 1:43 Wednesday 18th January, 2006
|
|
|
|
|
Well if you look at it logically, it is fairly obvious that the second case is faster.
In the first case you must first access the memory to check the get the value and then compare in to the value on the other sisde of ==, and then finnaly assign it a new value. Where in the other case you just have one operation...
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
You are forgetting something. The Visible property is not just a memory location, it's a property. It does quite a lot more than just changing a single memory location.
When getting the value, the Visibe property calls Control.GetVisibleCore to get the value from the state of the control. When setting the value, the Visible property calls Control.SetVisibleCore to update the control.
One of the first things that SetVisibleCore does, is to call GetVisibleCore to check if the operation will change the value of the property. If it won't, the method skips changing the visual apperance of the control and just updates the state of the control.
The first case is faster if the property doesn't change value, and the second case is faster if the property does change value. So which method is faster depends on the probability of the property to change value.
If you want it really fast, you'll keep a local copy of the value of the Visible property, and check that value before changing the actual property.
---
b { font-weight: normal; }
-- modified at 3:52 Wednesday 18th January, 2006
|
|
|
|
|
Thanks! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
Thanks CWIZO! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
It depends. IF assigning value was some expensive operation (e.g. before you assign value to property some complex check is going on) THEN yes, it would be faster. In case when you simply assign value, second case is obviously faster.
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Thanks dnh! it's the same that I was thinking!
Have a nice week!.
SINCERELY.
ANTHONY ACUÑA
PREFERED PHRASE:
SOMEBODY TELL ME WHY IS MORE REAL WHEN I DREAM THAT I AM WAKE?
|
|
|
|
|
I am new to C# programming and I am very much interested to develop a firewall which could defy IP SPOOFING. I have not knowledged myself in Network Programming but I intend to develop a firewall though. " My message to all the Coders visiting this site is that - Please give me valuable tips in developing a firewall and some codes to shut an IP which produces avalanche effect on the system. This helps the firewall to have a offensive mode rather than a defensive mode . " I would obliged if I were helped by any coder.
love coders'
|
|
|
|
|
MACODER wrote: Please give me valuable tips in developing a firewall and some codes to shut an IP
Look at developing an NDIS driver. You cannot do that in C#. Although, interestingly, you can develop the basics of the driver and pass information through to a C# service. However, since the driver sits in the kernal and the C# application in the user space it produces many inefficiences. I know, I've tried.
MACODER wrote: I have not knowledged myself in Network Programming
Then I suggest that you read up on the subject before taking on such a task.
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
A firewall really isn't an appropriate place to put up a defense such as this. An attack like that will knock you off the wire if it gets inside your router. The network card that your firewall is running on will still get inundated with traffic, even though you'll be discarding most of it. The trickle of good traffic will still not be able to get through the ocean of bad.
Borders routers, at the ISP or your corporate network, are the best place to put up filters such as these. You also won't be filtering just one address either, you'll be filtering out hundreds of addresses, and even ports, at a time.
If you want a couple of samples of what a modern-day attack is like, then check out the write-ups from Steve Gibson[^] and what his site got knocked down with.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 11:11 Wednesday 18th January, 2006
|
|
|
|
|
Hi, I'm trying to find out how to create a password protected transparent screen lock using C#. Generally, it should be able to do the following when "locked":
1. disable key combinations like ctrl+alt+del, alt+tab, etc.
2. disable the mouse and hide the cursor.
Thank you.
sw
|
|
|
|