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

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

EwanK

Member List

ricc
FcoLomas
InfiniZac
AboOmar
alka_mehta
agentf1
redshock
protovision
soulmate75
imin83
_mthz
Roman Hnatiuk
PeteJM01
KirkAtCenterstance
Drunkboat
Kamii47
slippyC
KevinFreeman
jchau
barchard
Only Title

EwanK's Q&A profile

  • Visual C++ How to write line feed in a text file so Notepad can show them correctly

    Hi, I am writing a text file using WriteFile: if (WriteFile(hDestFile, myString, TotalBufferSize, &dwWritten, NULL)) bSuccess = TRUE; and everything is OK except that myString has some "\n" inside, one for each different line in the text file. The problem is that the Notepad opens this file and does not show a new line for each of this "\n" character. It shows some weird blank rectangles instead as if it does not recognizes them. Other text editor like EditPlus does show the new lines correctly indeed. I am interested in Notepad anyway because my costumer does not want to install any additional text editor. He only wants to take a look to the files generated by my app in the Notepad. I've already made a s ...Show All

  • SQL Server Evaluate as an expression

    I have just been brought in a project that is a huge mess....They have specked this project to allow for a user to create ad hoc calculated expressions using tags of data that are supplied by another system. This sort of looks like this ID | Formula | A | B | C | D | 1 A + B + C 1 2 3 4 2 C - D + A 1 2 4 2 3 D - A + 1 4 2 6 8 They want to then evaluate the formula expression using the corresponding column-row values to arrive at a value. As of right now I am a bit lost on how to do this, does anyone have any ideas Thanks! Josh Rogers Unfortunately they have 6 days now before release of the first phase and they are just now pulling me in as you said an oh **** last ditch maneu ...Show All

  • Software Development for Windows Vista Show of Hands! Is WF by itself a viable approach to addressing a customer's workflow needs?

    Like many of us in the forum I am in the all too often unenviable position to influence my client's decisions. I currently have a lot of customers evaluating workflow, many for the 1st time. I personally have avoided building "custom" workflow solutions whenever possible as I have had success in the past implementing packaged workflow or BPM offerings, both Microsoft-based and less recently non-Microsoft-based. It's allowed me to focus my energies on building solutions and solving real business problems, not building infrastructure. Granted, there are customer situations that don't require or afford you the opportunity to buy a packaged solution to address a workflow/BPM need, but I would argue those are/should be the exception n ...Show All

  • Visual Studio Express Editions Data Grid Question

    This is from the help Private Sub ResetSource() DataGrid1.SetDataBinding(adoPubsAuthors, "Authors") End Sub I would like to set my Data Source to be based on the results of two combo boxes in my form. I guess my question is, can it be set on a query vice a table. SELECT * from Ply WHERE LN = '" & cmbL.Text & "' and TN = '" & cmbT.Text & "'" no worries at all, that's why we are here - to help you with the problems you are having :-) Please do post back if you are having the same problems or if you have resolved the issue - would be nice to know ...Show All

  • Smart Device Development I want a button that will navigate to the My Document folder when pressed

    I want to have Buttons in a VB Form navigating to places like,My Documents, Network Places, My Pictures etc. Does anone know code for me to be able to do this... Thanks That code could not possibly do that. At best it would print out some stuff to console if you have it or do exactly nothing if you don't have console (which is the case on most Windows Mobile devices). Depending on what do you mean by “take you to the folder” you should use something else, e.g. launch a file explorer process via System.Diagnostics. Process class or open file dialog using System.Windows.Forms. SaveFileDialog/OpenFileDialog. Just out of curiosity: how you come to the conclusion Console.WriteLine would “take ...Show All

  • Visual Studio Cannot Reference COM Assemblies

    Hello, I have run into a problem when I attempt to reference the Office 2003 Interop assemblies (VS 2005). I am trying to reference the assemblies through an SSIS script component. When I right click 'References' in the Project Explorer for the script and select 'Add Reference', I don't have the COM tab from which to reference the assemblies. I only have the .NET tab. I can see that the 'Microsoft Office 2003 Primary Interop Assemblies' are installed when I check 'Add or Remove Programs' from the control panel. When I check my setup for 'Microsoft Office 2003 Professional Edition', I can see that I have '.NET Programmability Support' for all MS Office products. The description for the .NET Programmabilty Support indicates this; Pr ...Show All

  • Visual C# How to have multiple sets of application settings?

    Hi, I'm using the standard mechanism to set and retrieve application settings (using app.config, Settings.settings and Settings.Designer.cs). I can set the application settings using the Visual Studio IDE and retrieve them like this: string title = Properties. Settings .Default.WindowTitle; This works fine - for a single set of settings. But now I'd like to run multiple instances of my application, pass them an argument that makes them unique (1, 2, 3, or "master", "slave"), and use that argument to access a specific set of settings. Preferable something like: string title = Properties. Settings .Master.WindowTitle; or string title = Properties. Settings["Master"] .WindowTitle; Is thi ...Show All

  • Software Development for Windows Vista Return Values from Custom Activity

    Hi there, I have a composite activity which has 2 simple activities to add individual records to the database, each of these activities need to return the id's of the newly added row in the db to the workflow. How can i capture the return values from these individual activites and return them back to the calling application Any thoughts Thanks   sorry what i meant was composite activity which has two simple activities that it needs to carry out. Both the simple activities have dependency property defined and the composite activity also has dependency properties. CompositeActivityA has subactivityB and subactivityC Workflow Wf -> Calls A Workflow needs the return ...Show All

  • .NET Development How to use IDataAdapter ??

    DataSet ds = new DataSet (); try { IDbCommand fieldCheck = connection.CreateCommand(); fieldCheck.CommandText = "DatabaseFieldCheck" ; fieldCheck.CommandType = CommandType .StoredProcedure; //Add Parameters //Table Name IDataParameter tableN = fieldCheck.CreateParameter(); tableN.ParameterName = "@tableName" ; tableN.DbType = DbType .String; tableN.Value = tableName; fieldCheck.Parameters.Add(tableN); //Table Field IDataParameter tableF = fieldCheck.CreateParameter(); tableF.ParameterName = "@fieldName" ; tableF.DbType = DbType .String; tableF.Value = tableField; fieldCheck.Parameters.Add(tableF); //Pass the value IDat ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. error directX plugin

    Hi! I'm programming a game and I have a problem when I try to install the exporter plugin in Maya 7. I follow the instructions to install the plugin correctly and in Maya when I go to plugin manager I check D3DExport.mll and then a messagebox appears and says: error x3539: ps_1_x is not supported in this version of the compiler memory(125,23): ID·DXEffectCompiler::CompileEffect: there was an error compiling expression ID3DXEffectCompiler: Compilation failed And in directxViewer I have the same message when I try to load a 3d object Please help thanks a lot Hi, I have the same problem after installing February's DirectX SDK on DirectX Viewer and Maya 6.5. I use a GeForce 7950GT so it doesn't ...Show All

  • Visual C++ Custom Dll with MFC linked

    Hello people! Now i have this tricky task: I would like to create a regular dll, but with MFC statically linked and initialized, to use the MFC classes. BUT the MFC library provides it's own DllMain. How can i override the MFC's DllMain, while still linked to MFC The reason i want to do that is that CWinApp doesn't give me an opportunity to handle the THREAD_ATTACH and THREAD_DETACH events. I DID IT But this was tough if you are interested, here is the code: BOOL WINAPI MyDllMain(HANDLE hDllHandle, DWORD dwReason, LPVOID lpreserved ) { BOOL retcode = TRUE; __try { if ( dwReason == DLL_PROCESS_ATTACH || dwReason == DLL_THREAD_ATTACH ) { if ( _pRawDllMain ) retcode = (*_pRawDllMain ...Show All

  • Visual Basic Using web component problem

    Hi, I tried to create an pivot table in asp.net (2005).  The problem is I can't see the pivot table control in the tool box after I add the pivot table web component pivot table control to the tool box. Also, I tried to create an instance at code-behind for pivot table.  I tried to pass the dataset to the data source, but it looks like it can't accept it.  My data is in xml format.  Is there any way to pass xml data to the pivot table. Thanks, David You can't use active x controls with ASP.NET. You can use active x controls in windows forms applications, but not web applications. The controls shown on the toolbox in asp.net apps are "Web Controls", which are o ...Show All

  • SQL Server I can't deploy a Cube

    I have installed the client version of Sql Server 2005 on my machine and the server version is Installed on a server of my company (VALLEY). I have created a Cube with the wizard to test Analysis Services 2005 and see the result after the deployment. The cube works with a database called ROI on the server VALLEY, But, when I try to deploy the cube, I have this error message: " the user XXXX don't have permission to modify the object or the object does not exist"   I don't know if I must configure some specific access. Could you help me please, I search a solution since 2 days with any results. Betty I got the same error. Connect to Analysis services. Right clic ...Show All

  • Visual Basic HELP! ~ How do I Trim a Path?

    I need the code to trim this path to just get the filename Example: "C:\My Documents\Book.doc" How do i return just "Book.doc" An answer or code would be appreciated. Thank you perfect sample, that's what I was looking for. I use it in my project like this: Dim myFile As String If OpenFileAttach.ShowDialog = Windows.Forms.DialogResult.OK Then myFile = My .Computer.FileSystem.GetName(OpenFileAttach.FileName.ToString) Me .StatusLabel.Text = "Open file: " & myFile End If ...Show All

  • .NET Development Cannot get a datasource other than SQL/SQLExpress to work with parameters

    In the TableAdapter, it appears that only SQL/SQLExpress data sources can have parameterized input with @VarName IE: SELECT ComicsID, Title, Number, Year, Grade, CGC, BookValue FROM Comics WHERE (Title like @Title) When an Access OR ODBC datasource are used, the TableAdapter config. wizard detects a problem near the @, and does not put the parameter into the code as it does with the SQL/SQLExpress (below). < Parameter AllowDbNull = " True " AutogeneratedName = " Title " ColumnName = " Title " DataSourceName = " [...\MY DOCUMENTS\VISUAL STUDIO 2005\WEBSITES\WEBSITE2\APP_DATA\DATABASE.MDF].dbo.Comics " DataTypeServer = " nvarchar(50) " DbType = " Strin ...Show All

©2008 Software Development Network