|
Hi,
I use VS 2003, 2005 and 2008 on the same machine and I have never encountered any issues with it.
You may have VS 2005 and 2008 on the same machine, provided the machine is hardware compatible for the use.
Hope this helps.
Vinay
ComponentOne LLC.
www.componentone.com
|
|
|
|
|
I have both the versions on my machine. But just to let you know that in Visual Studio 2008, you can set the target framework to .Net 2.0 which is same as Visual Studio 2005 framework.
Tariq A Karim
http://moplah.blogspot.com/
|
|
|
|
|
Just when I thought all the coding is done, i've hit a brick wall .. It's CP to the rescue
I have an NT Service ("Windows Service") which does some processing based on a configuration file. I can install and uninstall this NT service using installutil without any problem.
However, I need to be able to run multiple instances of the same NT Service each with various param.
E.g.
service1.exe /config1.xml
service1.exe /config2.xml
service1.exe /config3.xml
I have tried modifying the install-script and pass param:
e.g. installutil /i "service1.exe /config1.xml"
This installs, but when I look at the actual registry value under HKLM\System\CurrentControlSet\Services\Service1, the "ImagePath" key does not contain the additional arg I passed at install-time.
Then I manually modified the registry-key to include the additional arg, but I still cannot run subsequent installutil. It fails with "The specified service already exists" error.
How can I install multiple process instances of this Windows NT Service ? (Windows does runs multiple instances of "svchost.exe" without any problem)
Due to some constraints I cannot a) consolidate the logic and run as single process multiple threads or b) consolidate the logic and run as single process multiple app-domains or c) create multiple copies of the binaries in N different locations.
I look forward to your responses.
- Malhar
modified on Tuesday, June 3, 2008 5:16 PM
|
|
|
|
|
You can have multiple instances but you need to create them as different named services. You have to give them different names.
When starting a service, the Service Control Manager looks at the ImagePath to determine if the process that runs this service is already running. If it is but the process specifies WIN32_OWN_PROCESS in the Type value (either for the process already running or the one to be started) it fails. When performing the check, the whole command line, not just the EXE name, is used.
SvcHost uses the -k parameter for this purpose. This parameter doesn't do anything. It's just there to make the SCM instruct the right instance of SvcHost to start this service. SvcHost itself is a generic host process - it doesn't do anything itself, it just loads the DLL specified under the service's Parameters key. Microsoft have not documented the interface that a DLL must implement to be loaded by SvcHost - it's intended for their own use only.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
|
Hi i am working on desktop application.
i need to call my application from web browser through a protocol
Example: outlook:Contacts
how do i code for it .
this is regedit sample
* HKEY_CLASSES_ROOT
o alert
(Default) = "URL:Alert Protocol"
URL Protocol = ""
+ DefaultIcon
(Default) = "alert.exe"
+ shell
# open
* command
(Default) = "C:\Program Files\Alert\alert.exe" "%1"
i have no idea what goes where? can any1 be kind to help
|
|
|
|
|
While executing my C# console program, I'm unable to see the output window (console), it just blinks and exits as if some batch file has been executed.........how can i make the console window stay open till i closes it.........Thanks
Thanks
|
|
|
|
|
Put a Console.ReadKey() in there. This will keep the window open until someone presses a key.
|
|
|
|
|
thanks buddy............tht did worked.........!!!
Thanks
|
|
|
|
|
apart from pressing F5 directly u can go for Ctrl+F5 ... it will work fine ...
vikas da
|
|
|
|
|
Place onece the following code
Console.Read();
|
|
|
|
|
Hi All,
How can i know from the keyboard scan code what is the real key ?
I using KBDLLHOOKSTRUCT Structure in my keyboard hook to get the pressed keyboard information - But i still don't understand how can i know what the meaning of the key that was pressed even if i know the scanCode of the pressed key.
I don't want to use "switch..case" to check for each option pair So ... i looking some .net Framework class ( or win32 function ) that can find the value of the scanCode of the pressed key.
Beside this - how can i know if the key that pressed is 'A' or 'a' or '5' pr '%' - ?
Thanks for the help
|
|
|
|
|
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.
|
|
|
|