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

Software Development Network >> Duque Vieira's Q&A profile

Duque Vieira

Member List

c_shah
PsyCadelik
Jessica Alba
D.A.V.E.
matzilla
Melvinsb
Mohan Mathew
kiwilamb
NoEgo
Colin Doran
omar_rapid
aliar
BinFolder
jitendra badkas
Ted.
LalitSRana
GGardiner
Luis Esteban Valencia Muñoz
droujav
dusda
Only Title

Duque Vieira's Q&A profile

  • Visual C++ Arbitrary window transparency

    Is there an easy way to make use of the GDI+ layered windows so that I can set each pixel's transparency value independently What I want is a window that has no default border, a semi-transparent background (if possible a PNG image with alpha channel or something similar) and an opaque text on it. This way, I can see through the window background but the text is always readable. More simple ways like setting the overall window transparency to a constant value like 70% looks ugly because then the foreground text is also transparent and hardly readable on some backgrounds. I see that the UpdateLayeredWindow function could probably be used for this, but reading the MSDN page, I have absolutely no clue how to do what I want with this function. ...Show All

  • Smart Device Development RFID Reader Project

    Hello, I'm currently working on a project which involves a serial port RFID Reader. I have connected the Reader to COM2 of my PC and i'm trying to get the signals from the RFID Tags. I'm using Visual C# and SerialPort class. I'm doing this just to ensure that the code works and when i'm done with this i will modify the code for an iPAQ (the Reader works on COM7 on iPAQ). The problem is that i can't read or write to the port. I even tried to write something to the port using port.Writeline("string") and then read it with Readline() but it seems that nothing is written and nothing can be read. When i set the RtsEnable to TRUE the BytesToRead property changed from 0 to 9 no matter what i did and still i couldn't read ...Show All

  • .NET Development NotifyParentPropertyAttribute: how does it work

    The documentation for NotifyParentPropertyAttribute says that setting it to 'true' " indicates that the parent property is notified when the value of the property that this attribute is applied to is modified. " Bravo !!! The only thing left out of such brilliantly clear documentation is the very minor explanation of HOW " the parent property is notified when the value of the property that this attribute is applied to is modified. " Perhaps someone can enlighten me on how I am supposed to know in the parent property, with this attribute set to true, of my control that a child property has been modified, and how I am supposed to know which child property has been modified. Thank you ! ...Show All

  • Visual Studio Express Editions Copy, Cut, and Paste commands with any text box

    Hi Everybody, The following code can run in VB6.0 to cut a text: Private Sub mnuCut_Click () Clipboard.Clear Clipboard.SetText Screen.ActiveControl.SelText Screen.ActiveControl.SelText = "" End Sub Can any body please help me and suggest a corresponding code for VB Express I would be really thankful. Vishal you can use the textbox Cut method to cut the selected text, so be sure to select text in the textbox, then do a Cut() method call which will store it in the clipboard. Me.theTextBox.Select(0, Me.theTextBox.Text.Length) Me.theTextBox.Cut() Same thing also applies for copy and paste   Alternatively you could also do this to copy to clipboard: Clipboard. ...Show All

  • Visual Studio Express Editions how to code movenext, moveprevious...etc when we populate datagrid?

    i know now how to populate the datagrid using code!! but how to code movenext, moveprevious...etc pinyz, The following code is from one of my project that will help you to movenext, moveprevious page: Private Sub Init() conn = New OleDbConnection(Connstr) Try conn.Open() Catch ex As Exception MsgBox(ex.Message) Application.Exit() End Try cmd = New OleDbCommand cmd.Connection = conn cmd.CommandType = CommandType.Text da = New OleDbDataAdapter(cmd) TotalPage = Me .GetPageCount Me .DataGrid1.CaptionText = " 共有 " & TotalPage & " " Me .NumericUpDown1.Maximum = TotalPage ...Show All

  • Visual C++ Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib'

    When I upgrade a vc6 project with Com dll into a vc2005 project, After I fixed all the error, there is one remaining which confuses me as follows: Error 45 fatal error LNK1104: cannot open file 'msvcirtd.lib' TctrumForm Can you tell me how can I solve this problem I am here to thank you in advance. Could be an obsolete library. Try removing the reference to this library in your linker settings and rebuild. If you get unresolved linker errors, post one of them and maybe we'll figure out where it lives. ...Show All

  • SQL Server New to SSIS, where to research how to normalize and re-key tables and lookups?

    I am just getting started studying SSIS with Kirk Haselden's "Integration Services" book. The problem I am trying to solve would seem easy enough to solve in code, but I am still early in the book and would like to be able to focus on the aspects of SSIS that would help me expedite this with SSIS, or to find out early whether what I need to do cannot be easily done. The problem itself is simple enough: I have a database of roughly 100 tables. Ignoring the poor normalization in the database for the moment, my more pressing problem is that that I need to rekey all of the main OLTP tables from a mashup of different key schemes to UNIQUEIDENTIFIERS. For example, Client table is presenrly keyed on an INT, Client Number. ClientFile ...Show All

  • SQL Server Ways/Suggestions for increasing the security for SQL server 2005

    Hi guys , is there any ways/suggestions for strengthen up the security for SQL server 2005 Due to several attacks from unknown places to my database's server , so I would like to get a way for increase the SQL security. Hope able to gather some info from web as well. Thx a lot guys. Best Regards, Hans Hi, that depends much on your infrastructure. You should consider -perimeter security -protocol security -Server security -Password rules -Application security -data encryption The more security you are about to implement the less possible it gets that you have a hacker / intruder on your system. But you will have to keep in mind that the more security you will implement, the more mai ...Show All

  • Smart Device Development COM port issues in a MFC Smart Device App (dialog based)

    I am having some issues with using the serial port on the Pocket PC 2003 SE Emulator (built into visual studio 2005 professional edition). Serial port 2 (COM3) of the emulator is being mapped to my computer's internal COM4, but opening the port is causing some issues. handle = CreateFile(L"COM3:", GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); dcb.DCBlength = sizeof (DCB); printf( "dcb.DCBlength=%i\n" ,dcb.DCBlength); GetCommState(handle, &dcb); printf( "dcb.DCBlength=%i, dcb.BaudRate=%i, dcb.ByteSize=%i, dcb.StopBits=%i\n" ,dcb.DCBlength,dcb.BaudRate,dcb.ByteSize,dcb.StopBits); //set dcb struct variables SetCommState (handle, &dcb); GetCommState(hand ...Show All

  • SQL Server Brackets appear in column name

    I am using Enterprise Manager to create database tables. In the table design view I am trying to create a column called, section. After typing, section, Enterprise Manager automatically puts brackets around the name, ex. [section]. When I view the table by returning all rows the brackets are gone. However, when I go back to desing view the brackets are there. Why is this happening and what affect does it have on my database Thanks, Matt I should have included that square brackets are also included around 'reserved words' when used as object names. You may wish to examine the 'reserved word' list in Books Online, and then avoid using any reserved words in your object names. As I indicated befor ...Show All

  • Visual Studio Express Editions Passing Data from Form2 To Form1

    I have searched with some diligence, and cannot find code to make the following happen in C#. I have seen examples of it in VB, but I need it in C#. I have a form containing two text boxes into which the user will enter values. A button is then clicked which causes the contents of those text boxes to be calculated and the result displayed in a third text box. This works fine. The problem is, there might be times when the value in one of these fields will itself need to be calculated from other values. So I created a second form to perform this calculation. I use ShowDialog to display this second form. What I am trying to accomplish is to have the user enter onto this second dialog the appropriate values, click a button and have that result ...Show All

  • Visual C++ Getting error LNK2005: _DllMain@12 already defined

    Hi All, I am working on windows shell extension in which adding some menu in context menu of windows explorer. When user select this menu i want to show a dialog box. But while compling code getting following error. uafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined myShellExtn.dll Got following links : http://support.microsoft.com/default.aspx scid=kb%3ben-us%3b148652 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=151098&SiteID=1 But unable to resolve the issue. The reason is myShellExtn.dll also has dllMain function and i guess uafxcwd.lib also has. Here is my DllMain function declaration extern "C" int APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do

    I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All

  • Visual C# help plz: dynamic procedure

    ** Please see the code below.. I am using this code to populate data from SQL Server to combobox usng SqlDataReader but I have more than 10 combos to populate and I want to use the same procedure with all combos.. which means I will need to pass the combo object and field data.. can you please help... private void populate_id_type() { try { //ensure the box is cleared cboIDType.Items.Clear(); //Use the SQLServer provider.. //set up the connection and the command... sql_connection = new SqlConnection ( "server=localhost;uid=sa;pwd=;database=Sales" ); string strSQL = "SELECT FirstName + ' ' + LastName as Name FROM Customer" ; sql_command = new ...Show All

  • .NET Development unable to upload image to one of two image folders.

    I followed this link to do the below. I have two folders to save images. one for thumbnails and the other for bigger image. Both folders have actual images of the same sizes though. I am also writing to the database the image filename. The problem i have with my below code is in this line "Me.Imgfile.PostedFile.SaveAs(str_l_filepath)" What is happening here is i am able to save to s_folder which is thumbnail folder, i am able to write to the database. but unable to save to the other folder l_folder. Both folders reside in the same server as my project. str_s_filepath = str_s_folder & strfilename str_l_filepath = str_l_folder & strfilename 'strip the type of extn from filename Dim extpos AsInteger = strfilename.L ...Show All

©2008 Software Development Network