Software Development Network Logo
  • Visual C++
  • Game Technologies
  • .NET Development
  • Windows Vista
  • VS Team System
  • Architecture
  • Visual Basic
  • Visual J#
  • Visual FoxPro
  • Visual Studio
  • Visual C#
  • Microsoft ISV
  • Windows Forms
  • Smart Device
  • SQL Server

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

Poma

Member List

Sohail Iqbal
Dan Maharry
GBFan4
Nino Benvenuti
RichardPro
imran_517
complete_blue
Tackarama
madhan MSFT
RayVI
Irfan Khalil
David Prentice
Michael Tang
GrahamHeap
Ensoft
Mohideen99
ZooDoo4U
lbsjs
MattMcla
BrenB
Only Title

Poma's Q&A profile

  • Visual C++ redirecting stdin/stdout/stderr for windows console

    Hello I want to redirect stdin/stdout/stderr of any console app to a pipe. the technique given in the relevant MSDN sample( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dllproc/base/creating_a_child_process_with_redirected_input_and_output.asp ) does not output to the pipe in case the child process uses printf() statements.. although if the child uses _write(), the output is redirected to the pipe correctly. I beleive this has something to do with the C-runtime printf function buffering data in i/o buffers before output. How does one redirect output in case the child process uses functions like printf Plea ...Show All

  • Visual Basic VB6- .NET 2005 ( Wininet)

    Hi, We are trying to migrate from VB6 to VB.NET 2005. The following function has been used in VB.. ' Opens an HTTP request handle. Public Declare Function HttpOpenRequest Lib "wininet.dll" Alias "HttpOpenRequestA" _ (ByVal hHttpSession As Long, ByVal sVerb As String, ByVal sObjectName As String, ByVal sVersion As String, _ ByVal sReferer As String, ByVal something As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long How do we implement this now in VB.NET as i guess there are no direct equivalent API functions Let me know the options available. Thanks, Kris ...Show All

  • Smart Device Development delegates in CF 1.0

    All, We got sick of trying to distribute the CF 2.0 so we went back to CF 1.0. Now I need to setup delegates but they don't seem to work the same. I have the following code: delegate bool LoadForm ( byte [] data); public class SampleForm : System.Windows.Forms. Form { public bool LoadPForm( byte [] data) //Called from another Thread { LoadForm lf = LoadFields; return lf(data); } static bool LoadFields( byte [] data) //This should be called from the Thread of this form { //LOAD SOME FIELDS HERE return true ; } } This gives me an error: LoadFields (byte[])' referenc ...Show All

  • .NET Development variable name from string?

    If I have an int like: int i = 1; and I have a string representing int i like: string name = "i"; is there a way I can turn the "i" into a variable name to access it's value   Mike Stall wrote: Unfortunately, you can't do it. This is a feature request we've gotten for future versions. Daniel - this is useful for certain dynamic languages (like Python). You'll notice that my code didn't use a variable called i. I just associated an arbitrary name with the integer. It's only a workaround to access any variable by a name (not it's name). ...Show All

  • Windows Forms Clearing the Graphics Buffer

    I know in C# there exists a function Clear(Color c) for the graphics object. However, this method doesn't really clear the graphics on screen, all it really does is the FillRectangle function with a specified color for the length and width of the entire screen. What I want is something that truly clears out the screen, not some sort of mask to cover what was previously drawn. In my search I've found nothing on this topic, however, I have discovered something interesting that I think would helpful for this problem. Try this experiment: Create a windows application project in VS and add a panel to the form. Within the panel, make it so that it ...Show All

  • Visual Basic Remotely enabling remote desktop with system.management problem

    Please help by looking over this. I'm getting the error "System.UnauthorizedAccessException: Cannot Write to the Registry Key" I'm not sure that the path to the Terminal Server key is correct. I have admin rights and write access to the key. Thanks very much for any assistance (I'm a beginner if you can't tell..) Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim servername As String servername = txtServername.Text Dim options As ConnectionOptions options = New ConnectionOptions options.Impersonation = Impersonatio ...Show All

  • Visual C# Where is vsvars32.bat ?

    Hi, I have installed VC# express 2005 final on 2 computers. On one, I can find vsvars32.bat in the Common7\Tools folder. This folder also contains a lot of other things. On the second machine the same folder Tools only contains a subfolder VDT. There is no vsvars32.bat and all the other stuff. I tried to repair/uninstall/reinstall but still the same. Thank you for your help Nicolas Not really, no. I haven't used VC# Express but the various beta and final versions of Visual Studio 2005 that I had installed always properly created their Common7\Tools directory tree with a vsvars32.bat file inside. What you re ...Show All

  • Visual C++ About unicode settings in visual studio 2005, it really puzzled me a lot

    When I tried to open a file whose name contains non-english words by using ifstream in vc6, everything was OK. But in vc2005, any file path contains non-English words will never be openned successfully. How to do it the right way My code is as below:  ifstream f;  f.open("C:\\Documents and Settings\\Could\\桌面 \\hehe.txt",ios::in );  //f.open("F:\\My Cpp\\Projects\\__stl_read\\__stl_read\\hehe.txt",ios::in); assert(!f.fail()); __________________________________ I know that supporting Unicode is a big enhancement in vs2005, it's a good thing. But where can I find some guide to configuring this unicode featu ...Show All

  • Visual Studio Team System How can a Team architect make diagrams visible for developers

    Hi, When I would buy one SKU team architect and one SKU Team developer, is there a way for the developer to see artifacts created by the architect Does the architect need to export the diagrams to Word to make them visible to the rest of the team, or is there a read-only plug-in available from the other SKU’s And how are the application diagrams synchronized Does the architect need to reopen the diagrams now and then to keep them in sync Did not mean to confuse you. Application and System Diagrams are a part of Visual Studio Team Edition for Software Architects (as well as Logical Datacenter Designer and Deployment Designer). Deploy ...Show All

  • .NET Development Which .NET Framework compatible with which versions of .NET Framework??

    I know Visual Studio .NET 2002 ships with .NET Framework 1.0, Visual Studio .NET 2003 ships with .NET Framework 1.1 Visual Studio .NET 2005 ships with .NET Framework 2.0. But how about other combinations Can I use Visual Studio .NET 2005 with  with .NET Framework 1.0 Please, inform me which combinations of Studio and Framework are valid Thanks in advance. So is there no way I can compile to 1.1 from VS.NET 2005 ! ! ! ! ! !   Thanks! ...Show All

  • .NET Development SerialPort SerialDataReceivedEventHandler

    Hi, I can't figure out how to get the event handler to work when data is received on the com port. I've looked around the forums here and I downloaded a console sample program that I tested on my computer and it works. But when I try and apply the same Idea to my C# windows form program I can't get the event to fire. Am I doing something wrong Some other post on the forum were talking about using different threads for the SerialDataReceivedEvent handler...  Thanks in advance for your help. Kevin Jones     using System; using System.Collections.Generic; using System.ComponentModel; using System ...Show All

  • SQL Server SQL Server 2005 Management Studio Error

    Hi guys,    I just installed SQL Server 05 Dev. Edition on my test server but after trying to open the management studio/SQL profiler I am getting the following error (Please assist): ************** Exception Text ************** System.InvalidCastException: Unable to cast object of type 'Microsoft.SqlServer.Management.UI.ConnectionDlg.Personalization' to type 'Microsoft.SqlServer.Management.UI.ConnectionDlg.Personalization'.    at Microsoft.SqlServer.Management.UI.ConnectionDlg.Personalization.LoadFromDisk()    at Microsoft.SqlServer.Management.UI.ConnectionDlg.Personalization.get_Instance()    at ...Show All

  • SQL Server Help in Spliting a sentence into words

    Hi, I have a project in which I have about 20,000 records in sql database table. What I would like to do is generate a query that lists all the unique words in a particular field acros the entire table so as to generate a glossary of words. if we had a table that looked like ID Description 001 This is the first record 002 This is the second record 003 This is not the first record and the query was run on the description field, then the result I would like to see is This is the first second not I hope this makes sense. Any help is appreciated. H ...Show All

  • Visual Studio A Software Factory Newbie Wants To Undersand Some Things....

    First of all to Jack Greenfield and Keith Short, the Software Factories book is just an incredible piece of work. Having only recently taken on the role of architect in my organization I have found it an extremely helpful guide through a number of challenges. The progression of why the industry is in need of industrialization to the tools and techniques that will support it is just amazing. So I guess what I want to say is Bravo! Not sure if you guys follow this forum but I couldn't figure out an easy way to send this to you directly and I figured what they heck everyone else is probably thinking it too :) Ok now for my questions because ...Show All

  • Software Development for Windows Vista No transaction in Com+

    Can't seem to get Com+ ServicedComponent to enlist in a an already available transaction created with TransactionScope. Class1 -> .Net starts a TransactionScope with required transaction and automatic InteropOption. Within the scope a Com+ ServicedComponent is created. ServicedComponent Com+ .Net DTC supported never receives any transaction in the context. Why doesn't the transaction propagate to the Com+ component Hi Jimmy, If the transaction is started using a TransactionScope, you will need to specify EnterpriseServicesInteropOption.Full in order to make that transactio ...Show All

©2008 Software Development Network