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

Software Development Network >> Dan Cremer's Q&A profile

Dan Cremer

Member List

Leonard Lee
Mark Heath
ElliotHC
AdamB78
Ori'
SCRunner
Martinp23
Teastrone
jeff357
r3dw1ng
fawltster
Chiisana
a0-0b
jiriw
Tigerwood2006
Space Cracker
arc_dev
Sergey Bereznikov
mtm81
Samuel369
Only Title

Dan Cremer's Q&A profile

  • Visual Basic Applications designed for multiple users

    I am designing an application which would reside on one machine but would require access by any or all of the users who have a user account on that machine. So far, I have been unable to find a way of making the application work from more than one user account. I have tried publishing to a shared folder within All Users which works fine when I install it but doesn't work if I log off and then on again in a different account. The project uses SQL Server Express and I think the problem lies with this as the application screen appears but a timeout error is generated (I have doubled the default time before a timeout occurs as I had a problem sometimes with this within my own account). Is there a way around this or would the user ...Show All

  • Software Development for Windows Vista where can I get the XPS Reference RIP sample code

    Dear all:          where can I get the XPS Reference RIP sample code will microsoft public XPS Reference RIP  sample code         Thanks very much That depends what you mean by "sample code". The SDK is available at http://www.microsoft.com/whdc/device/print/RRIP.mspx . Microsoft can't make the source code to that available because it's not theirs, it's from Global Graphics. There's a contact form to request more information etc available at http://www.globalgraphics.com/purchase/purchasecentre.nsf/becomeOEM - you'd want to select "Harlequin RIP" from the product list. Thanks ...Show All

  • Visual C++ Programmatically Ending Process/Killing Executable In Task Manager

    Hello. I have created a program that runs in the background and you can see it by opening up Task Manager and finding it's name under the Process tab. Now, I need to find a way to terminate the application from another application which I am coding in VC++. Is there any command that I perhaps only need to pass the executable name as a parameter so it will terminate the process from Task Manager Please help. Regards, Rosraj Hi I want to create task manager for Linux. I had created one but was not okay. I want source code of Linux task manager. If anybody can develop task manager I can pay. Regards Gopal Mehta ...Show All

  • .NET Development compare two object on value basis and remove objects with duplicate objects from collection

    Hi, I have a collection of objects(each object represent a class with many properties) . Now I wish to add objects to this collection only if any object with same values of properties is not already added,that means i want to reject the duplicate rows. I am using the following code(please look mainly on bold lines) Test2EntityCollection objTest2Coll = new Test2EntityCollection ( new Test2DAO ().SelectAllByF(id.J)); Test1EntityCollection objTest1EntityColl = new Test1EntityCollection (); foreach ( Test2Entity tempTest2Entity in objTest2Coll) { Test1Entity objTest1Entity =( Test1Entity )( new Test1DAO ().SelectById(tempTest2Entity.F)); if (objTest1EntityColl.Count == 0) { objTest1Entity ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Move a point by sin

    I'm wanting to move a point up and down smoothly. One of my friends suggested that I move it using sin but I haven't a clue how to do this. My maths is a little rusty. Can anyone help Find the center point and extent: Center = (PointA + PointB) * 0.5f; Extent = PointB - Center; Initialize a time state: float sinTime_ = 0; Then, each frame, evolve your time state: sinTime_ += SPEED * dt; while (sinTime_ > 2 * (float)Math.Pi) sinTime_ -= 2 * (float)Math.Pi; When you render, use these variables to find the position of the point: RenderedPosition = Center + Extent * sin(sinTime_); ...Show All

  • Smart Device Development time function

    Hi, I'm new to C++ and I am writing a project in it that I want to build on both Windows CE and VxWorks, so I am compiling the project in both MS Visual Studio and Wind River Workbench. There are a number of places in the app where I want to get the current date and time (number of seconds since 1/1/1970) but I can't figure out how to make it work! From what I can tell, time(time_t * timer) is the way to go, but while this compiles fine for VxWorks, when I compile it for Windows I get a strange linker error which says that there are unresolved externals in the function that contains the call to time(). Help! (Thanks in advance!) Rachel VS2005 is POSIX compliant as long has you use their header f ...Show All

  • .NET Development Unable to consume Web Service with DictionaryEntry

    I have a Web Service that returns a List<MyClass> and MyClass contains a public DictionaryEntry property. I am trying to write a Unit Test to consume this web service. I am able to call the web service from Atlas (JSON serialization), but it does not work through SOAP. The following is the exception generated when running the Unit Test: Test method WebService1_WebMethod1 threw exception: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NotSupportedException: Cannot serialize System.Collections.DictionaryEntry. References in structs are not supported with encoded SOAP. at System.Xml.Serialization.SoapReflectionImporter.ImportStructLike ...Show All

  • Visual C++ Help: Rich Edit Control Border Not Repainting

    I recently wrote a Windows interface for a command line program, which is the first Windows programming I’ve done. Unfortunately I have an issue where the frame of a sub-classed rich edit control is not being redrawn when I drag a window over it. Here is a screenshot of how the border of my command ends up after I drag a window over it: http://i15.tinypic.com/4gi50rt.jpg I was hoping somebody might be able to suggest why this is happening. Here is the code related to creating the rich edit control box: HWND hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, RICHEDIT_CLASS, "", WS_CHILD | WS_VISIBLE, 0, 0, 0, 0, hWnd, HMENU(IDC_COMMAND_ED ...Show All

  • Visual Studio Tools for Office Dreaded "document opened in multiple windows" error

    I know it's normal for the task pane to disappear when users hit F7 to launch spellcheck. My problem is if a user manually runs spellcheck and the first error encountered is in the text of a comment, Word turns on the comment preview pane on the bottom of the document, and this error appears just before the task pane disappears: You are currently viewing this document in multiple windows. To attach an XML expansion pack, you must first close all additional windows so that you are viewing the document in only one window. This error is overlaying the spellcheck dialog. When I click OK, the following exception appears: An unhandled exception occurred in your application. Contact your administrator or the author of this document for further ...Show All

  • Visual Studio Tools for Office "The project cannot be created" error

    I’ve installed the software in the following order: MS .NET Framework Version 2.0.50727 MS Office 2003 Professional SP 2 (before I had 2002 but uninstalled it) MS VS 2005 Version 8.0.50727.42 (RTM.050727-4200) (before I had VS 2003) MS VSTO 2005 OS is Windows XP SP2. When I try to create any of the Office projects (in VS) I get the following error “The project cannot be created”. I’ve tried to reinstall all the components and run vstor.exe. But still get the same error. The interesting thing is that I can open and run a VSTO project which has been crated on another box. Yaroslav Hi Daniel, The "Disabled items..." lists in word and excel are empty. Something els ...Show All

  • Visual Studio Team System mapping and opening from source control without Solution

    How can you get a project out of source control to edit if it does not contain a solution file We have many projects in TFS and they do not contain a solution file. There seem to be no way to get these projects back out of source control under the checkin/out policies. I do have some with solutions that I also can not seem to do anything with after the initial check in. Other can not open them either. They get a solution file but nothing else. We have tried 'get latest version' and put them on our local machines (which is where we want to do the edits) but they files are never locked for check in/out (ie no lock pic by the files) How does this work We are attempting to implement TFS but there seem to be a lack of good, material ...Show All

  • Visual Studio Express Editions Directory in Use

    Hi everyone! I am currently writing an app that needs to delete a directory, however, when I use the Filesystem.DeleteDirectory , I get an error "Directory in use." I've checked all the connections in my app, but can't find any answers. Can anyone please help me Johannes No, there is no all-in-one. You must be able to understand and handle errors and limitations that the operating system may throw at you. For example: My .Computer.FileSystem.CurrentDirectory = ( "c:\aaa" ) My .Computer.FileSystem.DeleteDirectory( "C:\aaa" , FileIO.UIOption.AllDialogs, FileIO.RecycleOption.SendToRecycleBin) Will cause your error, because your program has the directory to be deleted as it's curre ...Show All

  • Visual Studio 2008 (Pre-release) Problem with RoutedCommands and MenuItems

    So I am having trouble with MenuItems enabling when focus keyboard focus is changed to a control of a textbox. I have made two text boxes. One is made with xaml <TextBox HorizontalAlignment="Stretch" Margin="0,0,0,0" x:Name="SearchBox" Text="TextBox" Width="74.2" MinWidth="100"/> and one is made in code (from an example from the msdn docs). I have also created two MenuItems which have their command property set. One is set to ApplicationCommands.Copy and the other to ApplicationCommands.Paste. I also wanted the CommandTarget to be the item with the keyboard focus so I did not set it and left it to the default. Here is the code for the text box and menu items: System.Wi ...Show All

  • Software Development for Windows Vista Detect Vista 64-bit

    Hi all, I saw this sample code on how to detect Windows Vista & Longhorn on MSDN website but it doesn't show how to distinguish 32-bit and 64-bit versions. When I tried to get the processor architecture data on Intel Xeon system that has 32-bit Vista installed, the result I got back is PROCESSOR_ARCHITECTURE_AMD64, which is not correct. Could you help The sample codes on MSDN: if ( osvi.dwMajorVersion == 6 && osvi.dwMinorVersion == 0 ) { if( osvi.wProductType == VER_NT_WORKSTATION ) printf ("Microsoft Windows Vista "); else printf ("Windows Server \"Longhorn\" " ); } Thanks! It's actually fairly eas ...Show All

  • Visual Studio Team System Data Generation - Schema changes

    Hi, In CTP5, is there a way to refresh a Data Generation plan if I add a new FK constraint directly in the target DB In other words, in the Column Details tab, it currently shows 'integer' for a certain column. I want that to change to 'Foreign Key' to reflect the changes in the target DB. Thanks, JGP Hi JGP Data Generation works off the schema that exists in the project system. Therefore you would need to update the table containing that FK in order for the data generation plan to be updated. In CTP 5 you will need to import the table itself via the import wizard. However in CTP 6 we will allow you to import the update table from target db into the project system via Schema Compare. ...Show All

©2008 Software Development Network