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

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

TechedRonan

Member List

Kalcy
lepi
Curtis Bridges
CMValdivia
Monah84
BlueBeetle
Vinodonly
JasonRL
j2associates
Jim Perry
Dan Sherwin
kangalert
krhoover
ChoKamir
Mike Aleksiuk
jbattat
azjerry1
Chrishuang
ahmedilyas
StevenR2
Only Title

TechedRonan's Q&A profile

  • Visual C++ Common controls manifestdependency in stdafx.h

    If I create an MFC application with VS 2005 App Wizard then it puts the following into stdafx.h: #ifdef _UNICODE #if defined _M_IX86 #pragma comment (linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"" ) #elif defined _M_IA64 .. etc. #endif #endif The effect of this is that a Unicode app gets the XP look and a non-Unicode app doesn't. If I remove the #ifdef _UNICODE then the non-Unicode app gets the XP look. So why is the #ifdef _UNICODE in there I have a large non-Unicode app (it will become Unicode in time, but not just now) which I would like to give the XP ...Show All

  • Visual Studio 2008 (Pre-release) Problem with trust chain and revocation server

    In my app, I am using a certificate issued by Comodo for my secure WCF channel. Most of the time it works fine, but about 1 out of every 20 times, I get an error that the trust chain cannot be verified because the revocation server is offline. Is there something I can do to avoid this, or is this purely an issue on their end It must be a problem at their end. You could set the revocation setting to Offline but this would mean that you implement a custom authorization policy or something of that nature to handle revocation checks. ...Show All

  • Visual Basic Calling Excel-contained subroutines from a form

    Hi all, Could you please help me with the following problem I am trying to add a worksheet to the active Excel workbook and then format the first cell (A1) with a bold and somewhat larger font. For some weird reason, I can't even get the first thing to work as it should. This is the code I've written for it: Public Sub Add_Sheet(sName as string) With ActiveWorkbook .Sheets.Add after:=.Worksheets(.Worksheets.Count) MsgBox "TEST1" With .ActiveSheet .Name = sName MsgBox "TEST2" With .Cells(1, 1).Font .Name = "Arial" .Size = 14 .Bold = True End With MsgBox "TEST3" End With End With End Sub If I put this inside a VBA Macro, it works j ...Show All

  • .NET Development Failed to Open Rowset Error in Crystal Reports

    hello all, i have developed a desktop application(software) inwhich used Crystal Reports 9. I am using Microsoft Developement Environment 2003 (Visual Studio 2003).The reports in this software runs well on my own system where i developed the software but when I install this software on the computer(client computer), the report does not open when the Generate Report button is clicked. This button click event fills the data using a simple query from databse(SQL Server 2000) and this error is displayed: Failed to open Rowset. The .Net Framework 1.1 is installed on the client computer before the software is installed and run. I also include some merge modules in the setup of the project that I make. These merge modules are: ...Show All

  • Visual Studio 2008 (Pre-release) How to generate XSD from custom XAML serialization

    This is not really a WPF question but since XAML has been associated to WPF, I'll ask it here. If there is a more appropriate forum, please let me know. I am using the new XAML serialization that is really wonderful. So I wrote few classes (organized in an object model tree) in an assembly and I persist them in XAML. One of the namespaces inside the serialization is the clr-namespace that fully describes the metadata. So I was wondering why XSD.EXE doesn't use those information to create a full-featured schema . I think that the information inside clr-namespace should be more than sufficient to create a very precise XSD schema file. Any chance to see such utility in the RTM TIA, Raffaele As Rob asked, why do you p ...Show All

  • Windows Forms discarding user actions on a form while in busy state

    Hi, I can't seem to figure out a decent way to do this. I have a small window, and I need to discard user input while performing some lenghty task. For example, if the user wants to sync the app with a server, and this takes time. The proper behavior would be to change the cursor to a busy cursor, and prevent the user from touching any control on the form. Of course, painting should still be done, and the form should be able to move and resize (user actions like move, resize, maximize, minimize). When the job is done, the cursor changes back to the default one, and the user is able to interact with the received data. I've seen various sugestions: - disable the controls (or the whole form): not good, as the appearance of the c ...Show All

  • Visual C# Which string concatenation method is more efficient?

    Which is more efficient string. Concat ("Hello ", "World"); Or... string .Format( "{0} not on device" , fileName) The first will be more efficient for such a simple example. But you should prove it for your cases by timing it using a Stopwatch object (which should be accurate enough). However, it's difficult to account for any differences in overall time caused by possible differences in garbage collection times. ...Show All

  • SQL Server Moving SSIS Package

    Hi, I have to move my SSIS Project from Machine1 to Machine2 in a Development environment.when i open the Project in Machine2 .i have to restore all the connections in the connection manager. even after restoreing the connection sucessfuly .the package looks perfectly with out any error.but when i run the package.i am getting the following error [Connection manager "Srv1.DBTest"] Error: An OLE DB error has occurred. Error code: 0x80040E4D. An OLE DB record is available. Source: "Microsoft OLE DB Provider for Oracle" Hresult: 0x80040E4D Description: "ORA-01017: invalid username/password; logon denied ". How to solve the problem. Thanks Jegan Are you using Window ...Show All

  • Visual Studio Express Editions How to make a search box in an application

    Hi. I have a database that has a table named "Main", this table has 4 elements "ID, Blue Number, Year, Description" . What i need is how can i make a form that has only a search box to search using any given blue number, and once the blue number is entered into the text box the program will search the database for all other elemnts to that blue number. Anyone can help plz Hi DMan1, thanks for replying. Well, i still got some error. After modifing the code as below : Dim MyCommand As New OleDb.OleDbCommand Dim MyParam As New OleDb.OleDbParameter Dim MyConnection As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\mems.m ...Show All

  • Visual Studio Express Editions Graphics Manipulation

    Hi All, care to share if it is possible to zoom in and out on bitmaps/JPEG images just like when we are using other software like photoshop or Adobe PDF under the Form environment Pls advice. Thanks in advance. Hi Mate, your method works but the picturebox gets bigger as I click on the zoom button. Is there a way I can prevent that Is there a way to lock the picturebox size Just making use of the scroll bars to view the enlarged picture. Pls advice. Tks ...Show All

  • .NET Development Imposible to get Remoting, ASP.NET and AzMan Together

    Hi, I had a three tier app working very fine: A data layer with SQL2005. The core of the system is a Web Application, using both Web Services and ASP.NET. The authentication and authorization process were managed with AzMan and everything worked fine. Later, I had to change everything represented in Web Services, for Remoting. And the problems started . When the application gets the authentication point, a horrible exception is thrown with this message: Retrieving the COM class factory for component with CLSID {B2BCFF59-A757-4B0B-A1BC-EA69981DA69E} failed due to the following error: 80040154. The CLSID refers to the assembly microsoft.interop.security.azroles.dll which belongs to AzMan. I believe since now I'm using remo ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Dynamically casting an object of unknown type

    Hello everyone! I think I've got a tough problem for you. I've got a List<object> full of various types of objects, and I want to grab an element from the list and cast it back as the type of object it actually is. Ideally, what I would do is something along the lines of: List<object> objects = new List<object>(); MyClass instance = new MyClass(); objects.add(instance); object something = objects[0]; Type somethingtype = something.GetType(); somethingtype variable = (somethingtype) something; this works fine except for the last line. Once I have the type of the object, I can't use that to either declare a new variable of that type, nor can I use it for casting (as far as I know). Does anyone know of a way to use Type info ...Show All

  • Software Development for Windows Vista Retrieving properties from current Workflow Instance within Host

    What is the correct way for retrieving "properties" from my custom activities within the Host application From the reading I have done, I figured if I used the Activity.TrackData(xx) then this would persist the data (I am using thw SqlTracking). Then in my host I could use SqlTrackingQuery to get at this data. So here is my scenario: Start Workflow Instance Run a Custom Activity Call TrackData(xxx) Create a delegate for QueueItemAvailable Return "Executing" Host executes WorkFlowIdled Here is where I want to get the data(xxx) so I can determine if I want to unload/persist, however, when I try to get the SqlTrackingWorkflowInstance for the workflow instance it is null Any pointer ...Show All

  • SQL Server Problem passing columns as parameter!

    Dear friens, I need to pass a column as a parameter in my query. I did this: ALTER PROCEDURE [dbo] . [GD_SP_GET_UsersByDIR_COD] @Direccao nvarchar ( 11 ), @prmFieldName nvarchar ( 25 ), @prmFieldValue nvarchar ( 25 ) AS BEGIN IF @prmFieldValue = '*' OR @prmFieldValue = '' BEGIN SELECT TOP ( 100 ) PERCENT dbo . ADServico_User . UserID , dbo . ADUser . UserName AS Nome , dbo . HARDWARE . New_Computername AS Computername , dbo . ModeloPC . MOD_ModeloPC AS ModeloPC , dbo . Monitor . MON_Monitor AS Monitor , dbo . Status . StatusNome AS Status , dbo . HARDWARE . Migrada AS Intervencao , dbo . HARDWARE . MigraViaChange AS [Migrada via Change] , dbo . HARDWARE . S ...Show All

  • Visual C# Move to a next window after pressing a button

    Hi, Basically, the title says it all. How can i move to a next window after pressing a button. I'm trying to make a calculator. Thanks in advance! I do have another question thought. Hope you can help me wit this one too. I have 4 kinds of computations in my calculator project. plus, minus, multiply and devide sums. And each time one of them will be displayed. How can i make the second form variable about what to display Or am i forced to use 4 forms for this project Thanks in advance! ...Show All

©2008 Software Development Network