|
Hi Yanshof,
Is this win32 function of any help to you. It will enable you to translate the vkCode member of the KBDLLHOOKSTRUCT to a character code.
MapVirtualKey Function
The MapVirtualKey function translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code.
To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function.
AlanN
|
|
|
|
|
Thanks,
I will try this now.
Is there is some .net framework class that i can use ?
As you said - the MapVirtualKey Function is win32 function.
|
|
|
|
|
|
How can i know if the user pressed on LShift+Q or just on Q button ?
|
|
|
|
|
It seems that with the DayaGridView SelectionMode property I can only select one selection mode like FullRowSelect or FullColumnSelect. But I would like the ability to select either a full column or a full row. Just like in a Excel spreadsheet.
Is this possible or not?
Thanks,
Mark
|
|
|
|
|
I am gonna use SendMessage API function from my c# managed code and my problem is which data type to choose for its parameters .
[DllImport("user32.dll", CharSet = CharSet.Auto)]
public static extern int SendMessage(int hWnd,
int Msg,
IntPtr wParam,
IntPtr lParam
);
my problem is about wParam and lParam's data types . The message I am trying to send is WM_COMMAND message with BN_CLICKED notification type . How can I use this function. How can I convert string data type to IntPtr ??? How can I do it
?
|
|
|
|
|
|
Hi, I m working on remoting to develop trading application to accept bid/ask value from user and broadcast to every connected user.
Process is working smoothly on localhost as well as on LAN.
But it is not working when i host app on static IP based server.Client send bid/ask value to server but does not get updates except client running on server.
Currently i m running server app manually by clicking on server.exe.
I did not get any change if I replace http channel with tcp
Any comment/suggestions r invited. Thanks all.
Client and Server Configuration file are given below.
Server Config File
-----------------------
<configuration>
<system.runtime.remoting>
<application name="Trading">
<service>
<wellknown mode="Singleton" type="Server.Broadcaster, Server" objectUri="Broadcaster.soap"/>
</service>
<channels>
<channel ref="http" port="16784">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Client Config file
-----------------------
<configuration>
<system.runtime.remoting>
<application name="EventClient.exe">
<client>
<wellknown type="Common.IBroadcaster, Common" url="http://203.200.95.133:16784/Trading/Broadcaster.soap"/>
</client>
<channels>
<channel ref="http" port="0">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
|
|
|
|
|
webSpider wrote: <channel ref="http" port="16784">
If you are going through a firewall that will block that port that's not going to work.
led mike
|
|
|
|
|
Hi Led,
Thanks for reply,
well, firewall is off on server.
Is it should be off on both side?
how can i open port on client/server side.
ant other clue?
thanks
|
|
|
|
|
Also you will need to enable port forwarding in the router/modem if one is used.
|
|
|
|
|
I have been looking for a while now and cannot seem to locate a reason why VB sizes a Boolean as either a 32bit or 64bit value instead of just a single byte.
I am making the assumption that it has something to do with alignment in memory and speed in access but I would love to locate a real resource to verify it for me.
|
|
|
|
|
I think bools just default on .NET to the default pointer size. I could be wrong.
|
|
|
|
|
leppie wrote: I think bools just default on .NET to the default pointer size. I could be wrong.
Do you mean default int size? (not yanking chain,just asking )
Learn to write self marginalizing code!
Call 1-888-BAD-CODE
------------------
Silver member by constant and unflinching longevity.
|
|
|
|
|
This is the disassembly of Boolean, not sure if it will help.
public struct Boolean : ...
{
internal const int True = 1;
internal const int False = 0;
...
|
|
|
|
|
My VB is very rusty, but the following code outputs a '2', indicating a 16 bit value. This is very likely due to memory alignment.
Dim b As Boolean
Debug.Print(Len(b).ToString)
Semicolons: The number one seller of ostomy bags world wide. - dan neely
|
|
|
|
|
In C# System.Console.WriteLine ( "{0}" , sizeof(bool) ) ; yields 1, indicating one byte.
Both C# and VB.net are CTS languages so they should be the same.
|
|
|
|
|
Interesting... The following code for me in VB:
Dim var As Boolean = True
Console.WriteLine(Len(var).ToString)
Console.WriteLine(System.Runtime.InteropServices.Marshal.SizeOf(var).ToString) Renders:
2
4
|
|
|
|
|
See my response here[^] for why Marshal.SizeOf returns a different size.
As to using Len, I have a feeling you get different sizes due to this (from http://msdn.microsoft.com/en-us/library/dxsw58z6.aspx[^]: With user-defined types and Object variables, the Len function returns the size as it will be written to the file by the FilePut function. If an Object contains a String, it will return the length of the string. If an Object contains any other type, it will return the size of the object as it will be written to the file by the FilePut function.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
This is from sizeof (C# Reference)[^], but it should apply to VB as well.
sizeof(bool) returns 1. However, the following statements are also made:
Although you can use the SizeOf[^] method, the value returned by this method is not always the same as the value returned by sizeof. Marshal.SizeOf returns the size after the type has been marshaled whereas sizeof returns the size as it has been allocated by the Common Language Runtime, including any padding.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Hi all,
is there anyone here that have try to store VS.2003 source code to TFS using MSSCCI?
I have trouble when I try to store layering (3 tiers) application from VS 2003, steps that i've try:
1. Install Visual Studio Team Foundation Server MSSCCI Provider
2. Open ASP.Net Solution using VS 2003
3. Go to File-Source Control-Change Source Control
4. Unbind source safe connection to VSS
5. Go to File-Source Control-Add project to source control
6. Select Server, define workspace and click OK
Its work fine if the Solution is not in 3 tiers structure (UI Layer only)
But, there's an error message without any clue how to fix it when I try to do the same thing with 3 tiers application.
Please share the information how to do it correctly...
|
|
|
|
|
Hi,
I'm trying to upgrade my web project in 2002 to visual studio 2008. Using the Visual Studio Express edition file menu I browse the solution file of my project. This solution has 2 projects included. When I browse the solution file Upgrade Wizard is displayed. But when I say convert only the solution file is converted and the projects included to that solution is not getting upgraded. The conversion report says that the Web project component is not installed and could not convert the project. Can you please tell me what should be done to successfully convert all the projects in the solution.
Thanks in advance!
|
|
|
|
|
hi..........did u got any reply or answer to ur query........i'm facing the similar kind of situation..........pls lemme know
Thanks
|
|
|
|
|
Hi all,
Warm greetings.
I am new to the office add-in project and I am using Visual Studio 2005 and the frame work is 2.0.
Can any one tell me what are all the prerequisites in order to create an office plug-in / add-in project through the VS 2005.
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
M. J. Jaya Chitra wrote: Can any one tell me what are all the prerequisites in order to create an office plug-in / add-in project through the VS 2005.
No. No one knows that, and if anyone did it certainly would not be Microsoft and they certainly would not create a Office Developer Center[^] web site supplying information like that to developers.
Good luck, you're going to need it
led mike
|
|
|
|