Software Development Network Logo
  • Visual Basic
  • Audio and Video
  • SQL Server
  • Visual C#
  • Visual C++
  • IE Development
  • Smart Devicet
  • Microsoft ISV
  • VS Team System
  • Visual Studio
  • Visual FoxPro
  • Windows Vista
  • SharePoint Products
  • .NET Development
  • Windows Forms

Software Development Network >> Omniscient's Q&A profile

Omniscient

Member List

mbradzick
Patrik J
Tall Dude
Uma Lakshmi
tayside
graab
Jason Lodice
BogdanZ
mnavkum
BhuttCrackSpackle
flandercan
Ivo6070
cjbonelli
Prasenna
alicia123456
Dan Cremer
DongL
Philip York
AndrewEames
Jean-Pierre Fouche
Only Title

Omniscient's Q&A profile

  • .NET Development How to use threads in socket programming?

    Hi all, I implemented a simple server(with C#) and a simple client(with C++) application. They are communicating very well. I want to use threads for enhancing the communication since there will be more than one client application which sends various messages to the server and server will have to handle them by sending the clients acknowledments. I need some examples in which thread/socket programming is used. Is there anyone to help me Thanks... Threads are not a good choice to implement a multi client server and your application may consume more CPU time by using them if you have many clients and may even crash when this overhead increases. So in simple no body recomends to create thread ...Show All

  • Windows Forms How do I get the color and location of a painted line using GDI+ when mouse clicked?

    Hi I have painted a line using GDI+ and would like to capture the color and location of the cursor when the user mouse clicked on the line. Does anyone got any suggestion as to how to do it Thank you. Soh Normally you should store the drawing information as it is drawn as there is no way to retrieve the information after the fact. However if you really want to get the color information given an arbitrary pixel on the screen then you can create a new bitmap in memory, use the Graphics.FromImage to get a Graphics object for the bitmap, use Graphics.CopyFromScreen to copy the pixel information from the screen into the bitmap and then use Bitmap.GetPixel to get the color. There might be an easier way ...Show All

  • SQL Server File System Task - output file variable syntax????

    Hi This should be incredibly simple and easy, but I can't find any examples of how to do this. I just want to make a File System Task move a file, and have the destination be filename + date and time. For example \\server\share\filename02072007.txt What syntax do I use in a variable to make this work Thanks kblackwell wrote: Hi After a great deal of difficulty, I got this to work. The trick is to set "Evaluate as expression" to be true, and put this crazy syntax in the "Expression" property. Up until I figured this out, I was trying to put the "expression" in the variable's "value" Oh right. I thought from the way ...Show All

  • Windows Forms Add an Installer withinh my installer

    Hi, I am working with VS2005 (VB) and my application requiers another installation (I am working with ArcGis, and need to install the ArcGis Engine), How can I make my setup project to Install that software Please help!! Yael Hi Vivek, use WaitForExit System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(setup1ExePath); psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; psi.CreateNoWindow = true; System.Diagnostics.Process prc = System.Diagnostics.Process.Start(psi); prc.WaitForExit(); //Waits for the process to complete psi = new System.Diagnostics.ProcessStartInfo(setup2ExePath); psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; psi.Create ...Show All

  • Visual C# ) expected

    I get the following 2 errors and can't figure out how to get rid of this issue ) expected Invalid expression term ','   for my following code    private static void AddNewProduct(ExcelWrapper     xl, string FileExtension, string ProductType, string FilePath, string FileName, bool moveFile, SellerStore sstore)                         {                                     string pr ...Show All

  • Visual Studio Express Editions Disbale read and write access to USB devices

    I am having problem with my FYP.Can somebody send me the code to restrict users to access USB devices. I want to disable the read and write feature of USB devices (not with the help of registry) with the help of some classes available in .NET framework. If somebody can make it, I will be highly obliged to him.   But you don't know You just "doubt" and mark your answer correct Isn't that a contradiction There are problems with usb devices in that they can be anything from a disk, thumbdrive, mouse or scanner so you can't go at them on a device class basis. They must be disabled at the port level. I think a detached program that finds the ports and gets a handle would do it and that doable by a skilled programmer ...Show All

  • .NET Development [Question] Encrypt with Private key (Not Sign)

    Hello,   This maybe the stupid question, but I wonder I can encrypt a message with sender's 'Private key' not public key. Of course this is 'Sign'. But I wonder is there any way the 'Receiver' can decrypt the message with his/her public key and 'see' the original message. (Not just verify).   It maybe basically impossible, but I don't know. So please tell me whether it is possible or not.   Best regards. I am having same issue. We want to go ASP.NET to SAP web service authenticating with x.509certs. Basically, this works great from VB.NET "FAT" app running on client. App has access to user store and can sign cert. From ASP.NET we have no such acce ...Show All

  • Visual Studio 2008 (Pre-release) Cannot run August CTP Samples

    I installed the August CTP, after the LINQ Preview. Everything installs correctly. I opened the solution in VS2005 and built it, everything compiled. I mapped a virtual directory to the installation folder of the webapp sample (on my machine - 'C:\Program Files\Microsoft SDKs\ADO.NET vNext CTP\Samples\CSharp\WebAppSample') The first time I try to access the sample it takes a long time, then errors out to this : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Descr ...Show All

  • Visual Basic IP Camera HowTo?

    Hello everyone, I've just installed an IP Camera in our network and started to fool around with it. The software supplied by the camera itself is written in Delphi and pretty much doesn't do much. I was wondering if there was a way to connect to this Camera from the network with VB I googled around and didn't find much on connecting to this camera (or any ipcamera that I could understand). All I know is that the camera runs a sort of webserver on port 8888 that when I connect to asks for a username and password, afterwards it forwards me to a page where I can watch a stream of jpeg images (mjpeg) I think. If anyone can help me or point me in the right direction on how I can connect to this device (or similar device) and show the i ...Show All

  • SQL Server dts parameters, more values in one parameter

    hy all, i'm using the object transform data task from a server (where i'm not dbo) to another server (where i'm dbo). i'm getting data from a table. i need to select just some records from this table. i need to use a query like this one below... select * from {table_name} where operationedate in ('20070101', '20070205', '20060524') ... cause everytime i run the dts the operationdate field must be filtered on different date. so i tried to use the parameter from a global variables. i've tried lots of things but everytime i failed. i used to try: select * from {table_name} where operationedate in ( ) but it doesnt work! any one can understand what i try to explain and even help me bye nicola Oh, well ...Show All

  • Visual C++ error LNK2005: _main already defined

    I recently installed VC++ 2005 EXP edition. 1) I created a project name Radius and created two new items hello.cpp and area.cpp. 2) area.cpp is the first item and hello.cpp is the second one. 3) When I build the project Radius, I got the error LNK2005: _main already defined in area.obj Can you guide me to fix the compilation error. Thanks GKW82 The whole problem starts when I include the function main() in the hello.cpp. I end up in getting the message error LNK2005: _main already defined in hello.obj GKW82. ...Show All

  • .NET Development problem with WCF and APP.config

    Hello, I have a problem with WCF: I used the classic example from the VS 2005 Template: the solution with 2 projects 1. WCFServiceLibrary project for the service, which contains [ServiceContract()] public interface IService1 ... and public class service1 : IService1 { ... 2. my Host (console application) If I do not use an App.config file everything works fine: [CODE] static void Main(string[] args) { Uri adresse = new Uri("http://localhost:6666/demo"); ServiceHost sh = new ServiceHost(typeof(WCFServiceLibrary.service1), adresse); sh.AddServiceEndpoint(typeof(WCFServiceLibrary.IService1), new BasicHttpBinding(), adresse); sh.Open(); Console.WriteLine("press Return..."); Console.ReadLine(); sh.Close(); } [/CODE ...Show All

  • SQL Server How can I format the Date in the SQL Table using a SQL query

    Hi I have a SQL table that contains date in this format :- 2006-07-02 16:20:01.000 2006-07-02 16:21:00.000 2006-07-02 16:21:01.000 2006-07-02 16:22:00.000 2006-07-02 16:22:02.000 2006-07-02 16:23:00.000   The date above contains seconds that I dont want, how can I remove those seconds so that the output looks like :- 2006-07-02 16:20:00.000 2006-07-02 16:21:00.000 2006-07-02 16:21:00.000 2006-07-02 16:22:00.000 2006-07-02 16:22:00.000 2006-07-02 16:23:00.000   Your help will be highly appreciated. Rod Colledge wrote: That will change the data. If you only want to change the display, then try this ; select replace(convert(varchar(20), columnName, 102), '.', '-') + ' ' + left(convert(var ...Show All

  • .NET Development reboot, shutdown, logoff computer using c#

    this is how this app is suppose to work. users are logged in as built in account "guest". app impersonates built in account "administrator" so that app can use TcpListener class and wait for a connection. IF a connection occurs (which is working up to this point) the app either shutsdown, logs off, or reboots the computer (which isnt working). the error that i am receiving is unknown, hehe, very informative right well thats what the error message says. The code is lengthy but i will post it along with the correct message that i am receiving. any ideas on how i could correct my problems message error = "Unspecified error [0]" looking through the code you will see that the number is what is being returned, ev ...Show All

  • .NET Development How to: register a .Net assembly by remote

    Hi guys, Could someone please suggest the best way to register a .Net assembly (using Regsvcs.exe) from remote That is I want to call the regsvcs on a machine from another machine. Tanks in advance! Thanks Sean, Remote Desktop and VPN are not a good solution for me, for I need to trigger the registration automatically. Could you (or someone else) please tell me something more about login script Thanks a lot! ...Show All

©2008 Software Development Network