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

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

Tdar

Member List

Lil endian
Ofir Epstein
Mark Benningfield
raq
mccpres
AndréRibeiro
csharpbird
barkingdog
TerryDaichendt
cdolor
spinal
Dave Evans
mamo
Bulldog.NET
LANengineer
ofir
Spangltk
Donaghy
Magos294963
AlexBB
Only Title

Tdar's Q&A profile

  • .NET Development Class diagram architecture question

    Is it a standard practice to have an abstract parent class for the sole purpose of grouping a particular set of classes There is no methods, members or anything in the class. Here's an example of what I'm trying to ask: Say I have Superclass called RobotPart, and a class derived from RobotPart called Physical. Both of these classes have their own properties and methods. I was wondering if it was conventional to have two derived classes of Physical called Structural and Sensor, neither of which have any properties, methods, members or anything, other than a constructor that passes variables back up to Physical. Of course these classes would be abstract, and would not allow instantiation. Sweeps78 wrote: ...Show All

  • Windows Forms how to print a dataGridView

    Hi I want to print a dataGridView but when i try msdn's code(which is below) gridview is in normal size but records are very small and not in the gridview. How can i print dataGridView with records as seen in form private void printDocument1_PrintPage( object sender, PrintPageEventArgs e) { PaintEventArgs myPaintArgs = new PaintEventArgs (e.Graphics, new System.Drawing. Rectangle ( new System.Drawing. Point (0, 0), dataGridView1.ClientSize)); this .InvokePaint(dataGridView1, myPaintArgs); } private void bYazdir_Click( object sender, EventArgs e) { printDocument1.Print(); } You will also need this : I have lost the source details of the following import me ...Show All

  • Smart Device Development Error With HDEVNOTIFY

    Hi, Currently iam Implementing USB Downloader in Win32 Console Application. For Auto Detcection Iam registering the device notification like Notification->hDevNotify = ::RegisterDeviceNotification( hwnd, &Filter, DEVICE_NOTIFY_WINDOW_HANDLE ); while declaring hdevNotify Iam getting Compilation Error. struct Notification { // device interface class GUID InterfaceClassGuid; // handle returned by RegisterDeviceNotification HDEVNOTIFY hDevNotify; ....... // constructor }; d\event_handlers.h(118) : error C2146: syntax error : missing ';' before identifier 'hDevNotify' d:\event_handlers.h(118) : error C2501: 'HDEVNOTIFY' : missing storage-class or type specifiers d:\event_handlers.h(118) : error C2501: 'hDevNotify' : missing storage-clas ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. New XNA wargame : StrikeZone

    Hello I am doing a wargame engine. You can see video here : http://pitil.blog.mongenie.com/ The engine will be open for every one ! Thank you Yes Mercury help me a lot :) why make what is already made :D If you want my change just ask me, it is for the scrolling background and depth problem :) ...Show All

  • Software Development for Windows Vista XPS Viewer not printing with XPS DrvDocumentEvent changes

    Hi , We are developing a monolithic XPS Driver. We are facing a major issue with printing from XPS viewer. We are extracted the print ticket from DOCUMENTEVENT_XPS_ADDFIXEDDOCUMENTSEQUENCEPRINTTICKETPRE and converted it to XMLDOMDOCUMENT. We did the necessary changes in the printticket, wrote it back to pvOut, but in datain.xps,Job_PT.xml is not proper.It comes as Job _PT.xml\[0].piece, and Job_PT.xml\[1].last.piece. We also found that there is a BOM of 3 bytes for UTF-8 encoding in memory pointed by pvIn. Is this the reason for the corrupted job_pt How can we handle this encoding issue Could someone please help us with this problem Thanks. Naomi. Job_PT.xml\[0].piece, and Job_PT ...Show All

  • Visual Studio Team System MSBuild Project type vs TFS Project type

    I'm working on some code where I need to edit the TFSBuild.proj file, what is the best way to do this Right now I'm XmlSerializing the Microsoft.TeamFoundation.Build.Common.Project and manually doing some XmlDocument reading after the serialization (it's unable to successfully serialize all the information). Then I discovered the Microsoft.Build.BuildEngine.Project which seems to have better methods for Load and Save of project files. After some testing, I've been unable to edit specific properties in file using the MSBuild Project. Here is the code I'm using: Engine engine = new Engine ( Environment .CurrentDirectory); Project project = new Project (engine); project.Load( @"C:\Source\MyProject\TeamBuil ...Show All

  • SQL Server Desprate..Please Help

    I wrote an application using Visual Studio 2005. This app requires a login that get that accesses SQL Express Data. I have an XP Pro box set up as a server using DSL Modem and connected to that is a Wireless hub. I used Network Wizard to set up a Home/Small Business Network on all the computers. My laptop has XP Pro and has Visual Studio and that's where I wrote the application. It's connect to the wirless hub with a cat 5 cable. The other laptop has XP Home Edition and is in another room is connected with wirless only. I set up a user called user1 in SQLExpress with a password. I set it up using MIXED MODE. (SQL server and Windows authentication mode) Connection String: myCn.ConnectionString = "Provider=SQLOLEDB;Data Sou ...Show All

  • .NET Development consume a Java web service by C# .net 1.1

    I'm trying to consume a Java web service with Hashmap data structure and hosted by Apache Axis through my code (C# .NET framework 1.1), we receive the following error : "org.xml.sax.SAXException: No deserializer for {http://xml.apache.org/xml-soap}mapItem" and no data received to Apache Axis web service as well. ...Show All

  • Windows Forms I need standart user picker dialog

    As I know we could call COM interface IDsObjectPicker. Does there exist C# class that provides such functionality No, but this article ( http://www.codeproject.com/w2k/bfobjectselection2.asp ) shows you how to wrap it up. ...Show All

  • Windows Live Developer Forums Where is Firefox support?

    Does anybody have any ideas why my site loads in IE7 but not firefox 2.0.0.1 I have tried the work around from Marc Sutton (Codev Ltd) but it doesn't seem to have resolved anything. If anyone code take a look I'd really appreciate it. http://www.gisconsultancy.com/photomap/photomap.html Kind Regards, Rob Wow, sorry guys the site worked for me fine, but the layout in firefox meant the map was render way over on the right of the page. Hence my scroll right comment. The map was there fine. John. ...Show All

  • Visual C++ Linking between two projects

    //Project one: test (Class Library) //header file: test.h #include <iostream> namespace test { template < typename _uintX, class dum = dummy> class CTest { public : typedef _uintX uint_type; CTest(); CTest(uint_type value); uint_type testfunction(uint_type value); }; class dummy { public : dummy(); }; } //cpp file: test.cpp #include "test.h" template < typename _uintX, class dum> test::CTest<_uintX, dum>::CTest() { std::cout << "Constructor Called" << std::endl; } //Project two: testApp (win32 console application) //testApp.cpp #include "../test/test.h" us ...Show All

  • Visual C++ Managed code compilation

    I know Native C++ makes a more resource efficent program than C#.NET or VB.NET; I also am pretty sure it makes a more efficent code than Managed C++ (correct me if I'm wrong) What I would like to know is if functionally equivalant managed C++ code is more efficent than C# code Thanks in advance. another question: if you wanted to make a GUI in C#, but behind the scences you had some heavy number crunching to do, resource-wise, would it be worth it to make a external native C++ dll to do the crunching, that you refrenced from the C# GUI exe ...Show All

  • Visual Studio The Class View Tool Window

    Hello, please can someone help me out. I want to extend the class view tool window however it isn't a UIHierarchy type and it isn't part of DTE2.ToolWindows collection. Using GetToolWindow("Class View") method raises an exception (and I think it's because UIHierarchy is for tool windows with a tree view only). I'm (still) new to this. Hi Derek, You need to mention how/what you want to extend on the classview. Do you need to add additional elements to the classview, or are you just adding a menu item to it's context menu For the former, you'll need to a custom library implementation. The IronPython language service package has an example of how to do this. The interfaces you'll want to read up on include IVsSimp ...Show All

  • Visual Basic work surface for custom app with Visual Studio like tabs/floating/dockable/auto hide features.

    Is there a way to achieve the Visual Studio work surface using Visual Studio 2005 I just realized that the application I am porting from vb6 would be well served by that model. The main worksurface would be a tabstrip control with 6 tabs for 6 different aspects of the application. On the right (or left depending on what side the user wants to dock it) would be the properties/settings that would have a variable number of tabs dependent on which tab is selected on the main work surface. As Solution Explorer and Property windows behave in Visual Studio. Window Position (Floating/Dockable/Auto Hide, etc. Thank you for any ideas ! -greg You bet! :) It's a finicky beast. I've had a developer beat ...Show All

  • Visual Studio Express Editions Random numbers

    I want that some variables have a random number. I used that code: var1 = Int(Rnd * 25) var2 = Int(Rnd * 25) Var3 = Int(Rnd * 25) But I'v got still a problem. The variables haven't a real random number. When I start my program then are var1, var2 en var3 = 17,14,13. Now there isn't a problem. It looks like it are random numbers. But when I quit the program and I restart it. var1, var2 and var3 are again 17,14 and 13!!! Is there a command that give me each time other values. So real random In a nutshell, here's how to do it: randomize() var1 = Int(Rnd * 25) var2 = Int(Rnd * 25) Var3 = Int(Rnd * 25) ...Show All

©2008 Software Development Network