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

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

PaulYuk_MS

Member List

Morrissey99
boombastic
Mark Hsieh
Puffarbubbole
Info_Peter
sampi
Crane101
Rookboom
AndyL
larz
Nisa
jcarlos.net
Holger Graudejus
leozworld
Eric Cann
Mantorok
Ljhopkins
Shepherd
Sweeps78
Code_Nerd
Only Title

PaulYuk_MS's Q&A profile

  • Visual C++ Error In MfC App

    Help needed i am stuck with this error while developing MFC based application in vc++ 8. pls help me get out of this mess code: void CmfcaView::OnEnKillfocusname() { char name[15]; GetDlgItemText(IDC_name,name,15); if (strlen(name)==0) { MessageBox("The Employee Code can not be blank. Please enter an Employee Code."); CEdit *code; code=(CEdit*)GetDlgItem(IDC_name); code->SetFocus(); // TODO: Add your control notification handler code here } } Error: Error 1 error C2664: 'int CWnd::GetDlgItemTextW(int,LPTSTR,int) const' : cannot convert parameter 2 from 'char [15]' to 'LPTSTR' Error 2 error C2664: 'CWnd::MessageBoxW' : cannot convert parameter 1 from 'const char [67]' to 'LPCTSTR' thanks TCHAR is defined as wchar_t ...Show All

  • Visual Studio Express Editions why doesn't this code work?

    i dont know why, but this code doesn't work. Imports System.Runtime.InteropServices Public Class Form1 Dim MOUSEEVENTF_LEFTDOWN As UInt32 = &H2 Dim MOUSEEVENTF_LEFTUP As UInt32 = &H4 Dim MOUSEEVENTF_RIGHTDOWN As UInt32 = &H8 Dim MOUSEEVENTF_RIGHTUP As UInt32 = &H10 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As Integer = 5 Dim y As Integer = 5 Dim clsNew As New Class1 Class1.MouseClick1() End Sub End Class Public Class Class1 Declare Auto Function mouse_event Lib "user32.dll" ( ByVal dwflags As Integer , ByVal dx As ...Show All

  • SQL Server Foramtting chart axis colour using expression

    I have a chart on a report that shows value in £ on the Y Axis. The values can be both positive and negative. I would like to have the negative labels to show in red and the positive in black. What is the expression syntax to achieve this i know it will be an IIF statement, but what is the syntax to show the Y Axis label as <0 eg if i was doing this for a field it would be iif(Field!Fieldname.value <0, "RED","BLACK") but what would i replace the FIELD!Fieldname.vaue with so the expression would change the Y Axis label. Thanks in advance for any help Dave Munro Hi Dave, I'm a brazillian guy, but i try to help you ! First of all, You will have to create a ...Show All

  • Visual Basic DeviceIOControl and SCSI_PASS_THROUGH_DIRECT

    Hi, I'm trying to get data from a SCSI Inquiry command in VB. I'm using DeviceIOControl with SCSI_PASS_THROUGH_DIRECT - the call goes through OK and DeviceIOControl returns 0, but I can't seem to get the expected data back - retBytes just contains 7 bytes of seemingly (but probably not) random data: (40, 4, 20, 0 , 40, 4, 20). Changing scsi.dataIn to 0 gets me 255 bytes of data, but not the data I should be getting. Any help would be greatly appreciated. Here's what I'm doing. offset as Byte is ignored for now, and fileHandle is a valid handle to \\.\F:. Private Function getVPDPage(ByVal offset As Byte, ByVal fileHandle As Long) As Byte() Dim status As Long Dim dIn As IntPtr = Marshal.AllocHGlobal(255) Dim dOut As IntPtr = Ma ...Show All

  • Visual Studio DSL Model load failures - Duplicate entry in ElementDirectory

    Hi, I have a model that won't save or load properly. After loading the model instance within the XB, I get the following exception Element with ID 38087e57-3d59-4ce8-a8a4-99dea056e26c already exists in element directory. which breaks into this line of dslDefinition.dsl /// <summary> /// Constructor /// </summary> /// <param name="partition">Partition where new element is to be created.</param> /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param> public dcFeature2(DslModeling::Partition partition, params DslModeling::PropertyAssignment[] propertyAssignments) : base(partition, propertyAssignments) ...Show All

  • Visual Studio Rendering problem with split in a core editor

    Hello, I am working in a new language extension for VS. Following some examples I wrote an implementation of IVsEditorFactory to create a core editor and register a Language Service with it. The editor is working fine when the view it is not splitted. But, when I split it (Window->Split) the split bar is positioned at the middle but the top editor is not shown and I cannot use it. Also, when I use the option Window->New Window a new editor view is created, the coloring is applied but the font is not setted correctly (Arial is used instead of Courier New) and the scroll bars are not painted (there is a “hole” where they should be located). What could be wrong Greetings, Nicolas ...Show All

  • .NET Development XmlSerialization of object data type

    hi folks, i want .net framework to xml serialize the below class, based on the type of data present in the second data member. but, only the first data member gets serialized and the second member is ignored. is this the way to implement what i am looking at that too, in .NET 1.1. http://xxx ")] public class MessageParams { [XmlElement("Credentials")] public Credential cred; [XmlElement("FirstMethodParm", typeof(FirstMethodDataType))] [XmlElement("ScndMethodParm",typeof(ScndMethodDataType))] public object Item; } TIA Sek I answered this question on a different thread: basically you cannot use default test page as a tes ...Show All

  • Visual Studio Class diagram

    how can i have class diagram for my project in VS 2003. Is there any feature for that.. There's a product from Visual Paradigm that claims VS2003 integration. This is not a recommendation, and I have nothing todo with Visual Paradigm. Rather than investing money and time in a 3rd party product why dont you migrate to VS2005 and get the integrated diagrammer therein. ...Show All

  • .NET Development Connection woos ...

    Just the other day I have not been able to connect to SQL Server 2005 Express Edition. NOTHING has changed. All I have noticed is that in the Surface Area Configurator the Local Connections only radio button it selected. So I try selecting the Remote radio button and Apply and Ok and then exit the Surface Area Configurator program and then come back in again and the Local Only is selected. Is this normal behavior Is Remote connections allowed or not How verify Thanks. Dumb question ... Which username is the follow command line referring to The computer administrator, the database owner or the user id in the connection string osql -S SERVERNAME\SQLEXPRESS -U <username> ...Show All

  • Windows Live Developer Forums IE 7 - paging with mouse wheel

    Hi, I recently downloaded IE 7 onto my laptop. Now when I use it and turn the mouse wheel on any web page the page automatically pages down i.e. I no longer have control of the page with the mouse wheel. Is this normal Can I switch it off and have it like IE 6 was i.e. as I turn the mouse wheel the page moves up or down accordingly This are the Messenger development forums, and your question is not related to this. So I guess you should ask your question somewhere else. ...Show All

  • Visual Studio Express Editions DoEvent (vb6) on .Net

    I have problem on visual basic .net about the use of DoEvent. What the function DoEvent(vb6) on visual basic .net thanks And here's a direct link to the online help - this help should be available to you directly in your development environment: http://msdn2.microsoft.com/en-us/library/bd65th41.aspx ...Show All

  • SQL Server SQL Server could not configure 'instance' as a Distributor.

    SQL Server could not configure 'SQL01' as a Distributor. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ ADDITIONAL INFORMATION: Property LoginSecure cannot be changed or read after a connection string has been set. (Microsoft.SqlServer.ConnectionInfo) I have had a good look through the forums and have found several ideas about permissions on the DATA folder to no avail. I have also not changed the sa user it is still sa. Unfortunaley all the things I have found haven't worked. Have you got any ideas They would be greatfully received. Ben Looks like a bug to me. Could you give me more information For example, which UI wizard are you using And if there is any connection ...Show All

  • .NET Development Remoting and Write operation fail

    Hi! A have a problem with Remoting through TCP. I have a Service that provides access to object through Remoting and Client application, that calls method of this object through TCP secured channel. When I first run my client, it's OK, but when service is stopped and started again, and I try to call method again I am getting an exception and can't find out what happens. Help me please, I have no variants, what is wrong. Another ASP client calls other methods of my remote object sucessfully... System.IO.IOException was unhandled Message=" , . ." Source="mscorlib" StackTrace: Server stack trace: System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 ...Show All

  • Windows Forms datagridview and xml

    Hi, I have an xml file which contains the history of send sms messages. I loaded the xml file into a datagridview. The problem is, i don't know how i can load the data back into their controls. I got two controls where data can be typed in. The first one is phone number which is a textbox. And a richtexteditor where the message can be typed in. But my xml file contains 3 nodes. Node 1 = date and time in ticks. Node 2 = phone number. Node 3 = message. So if a row in the datagridview gets clicked/selected, it should load the phone number in the textbox and the message in the richtextbox. Thanks in advance! ...Show All

  • Visual C++ Project Template

    Hello, I need to add a project template that I already created, such that it will show up when I go to create a new MFC project. In VC++6 I added my "msappwiz.awx" to the following directory: \Program Files\Microsoft Visual Studio\Common\MSDev98\Template. When File>>New>>Projects window came up it had my application wizard. However when I do the same thing for VC+2005, nothing shows up under My Templates. How do I add my .awx file such that it will show under My Templates when a new MFC project is to be created Take a look at this article. http://www.codeproject.com/dotnet/CustomizeVisualStudioNET.asp ...Show All

©2008 Software Development Network