Software Development Network Logo
  • Visual FoxPro
  • VS Express Editions
  • Smart Device
  • Windows Live
  • Visual Studio
  • Visual C++
  • Microsoft ISV
  • SQL Server
  • Windows Vista
  • .NET Development
  • Visual C#
  • Game Technologies
  • Architecture
  • Visual J#
  • VS Team System

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

Dominic99

Member List

Open2Knight
Anders Lillrank
pastmaster
Steve Greatrex
parlance
Foolios
Nathan Griffiths
Jelle Mees
samoonm
GMatono
surfcaster
darkrevan
DHarve
RazaRizvi
DD100
hamletas
Edcase_70
JussiA
C# nb
bobmccle
Only Title

Dominic99's Q&A profile

  • Visual Basic Cannot save my.settings if one of the setting fields is a sortedList

    The following gives me a null reference error. Setting: name = Recipe, type = SortedList, scope = User Code: my.settings.Recipe = new SortedList my.settings.Recipe.Add("aKey", "aString") my.settings.Save() < Null reference error occurrs here. I have tried (and failed) with many different approaches to use a sorted list in my.settings. I would love to know the correct way to do this. the "Synchronize" button is added after Beta2. try upgrade to release version. http://msdn.microsoft.com/vstudio/products/trial/ ...Show All

  • Visual C++ Does Visual C++ 2005 Express Edition Beta 2 support DirectX 9.0c?

    Does Visual C++ 2005 Express Edition support DirectX 9.0c    Was it built to support it   Will it support it in the future I am trying to use some sample code from DirectX3D with Does Visual C++ 2005 Express Edition Beta 2 run with DirectX 9.0c (the latest) with unmanaged code and it simply does not work.  There are several missing include files (objbase.h, windows.h...etc). Any help would be appreciated. CP The Platform SDK won't give you DirectX though. The DirectX SDK, as always, is found at http://msdn.com/directx/sdk ...Show All

  • Visual C++ editing, Compiling, & Running C code in Visual C++ Express

    I was told that it is possible to edit, compile, and run C code in Visual C++ express. When I tried to do this I was only able to able to edit it, and nothing else. If it is possible could someone let me know how, or at lest send me to a link that will explain it all to me. Your Friendly Neighborhood Programmer You need to first create a project and go to the build tab and choose to build you project. Thanks, Ayman Shoukry VC++ Team ...Show All

  • Visual Studio how to find out current folder of imported file

    Hi, Issue at hand is that i want to have common build scripts, but people may be keeping multiple version (source trees) on single machine. How can i traverse parent tree. so what i thought is that i would put ..\env.Build file when it reaches to root (where it knows location of common scripts). then it will init variable to that folder. problem is that how to find folder of imported build file. or if i have a path string is there some string manuplution in msbuild that would allow me to extract path info. etc Thanks, Sajjad I think there was another thread that may help you: How to find the location of a . ...Show All

  • Visual C# How to use a custom form as a template

    Hi all, I want to know if it is possible to use a custom form as template, (When you select File - New Item then you can select it) Many thanks, Hicham Yes, but the solution depends on what version of Visual Studio you are using.  You can modify the template files. If you are using Visual Studio .NET Beta 2 check out the howto at: How to: Locate and Organize Project and Item Templates http://msdn2.microsoft.com/library/y3kkate1(en-us,vs.80).aspx ...Show All

  • Windows Forms Reading a single record from SQL

    I have this code :   Static ConnectionString As String = SQL_CONNECTION_STRING  Dim WarehouseConnection As New SqlConnection(ConnectionString)  Dim strSQL As String = "SELECT * " & _  "FROM Orders " & _  "WHERE OrderID = '" & (CType(DataGrid1(currentrow, 0), String)) & "'"  Dim ProductAdapter As New SqlDataAdapter(strSQL, WarehouseConnection )  I get& ...Show All

  • .NET Development Can a DateTime member for a generated DataTable be defaulted to Now?

    I have generated a strongly typed dataset for some tables in my database. For some of my DateTime fields, I would like to default them to DateTime.Now, but so far it's seeming that this isn't possible. If I try to enter "DateTime.Now" or some variation thereof in the DefaultValue field of the column properties in the dataset designer, it just gives me an error that the value is invalid (It seems to want a literal date value). I'm pretty much assuming that it can't be done, since in the database the field has a default value of GetDate(), and I assume if it were possible that value would have been included in the generated dataset a ...Show All

  • Windows Forms Save all controls name and value on WinForm

    Please help me. I want to save names and values all controls in my Form. I have this code: private void menuItemSave_Click(object sender, System.EventArgs e) {   DialogResult buttonClicked = saveFileDialog1.ShowDialog();           if (buttonClicked.Equals(DialogResult.OK)) { Stream saveStream = saveFileDialog1.OpenFile(); StreamWriter saveWriter = new StreamWriter(saveStream); string line = ""; try { ...Show All

  • .NET Development io.networkstream encoding

    Hello, I'd like to ask how can i set the current encoding property to the streamreader I mean i am receiving a stream from a pop3 server and i would encode it into central european charset. how can i do this Dim respond As String respond = read.ReadLine() and i want respond to be encoded in unicode... how can i solve this thnx for ya help You can use System.Text.Encoding.Convert method to convert from one encoding to another Mariya ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Effect file integration

    Just wondering how you guys integrate DX Effect files into your engines I see 2 possibilities A)For every effect there is a c++ class associated with it, with member functions for setting any effect specific paramaters (e.g. SetFrenselTerm()). B)A generic effect class that can load any .fx file and exposes its parameter via funcs like SetFloat, SetFloat4, SetMatrix, etc. A Pros: -Damn easy to implement and maintain -I can implement a fixed function class with the same interface, therefore not having to use a .fx file (if not needed) -Potentially very fast, we dont have to look up what function we have to call, or iterate A Cons: -Have to ...Show All

  • Windows Forms Change the check mark color of a checkbox

    Hello, Is it possible to simply change the check mark color of a checkbox, either by programming or in the editor For instance, using the XP theme, I would like to have it red instead of green. Thanks, Monarghel Hi, I think there's no easy way of changing the check-color of a checkbox, because this require you to handle the paint event of the checkbox, then redraw the checkbox using the check-color of your choice. Your best option is to create a control derived from CheckBox control, then perform the custom drawing yourself. Regards, -chris ...Show All

  • SQL Server Cannot compare data types of System.Int32 and System.String. Please check the data type returned by the filter expression

    I have this filiter on my table in SQL Server Reporting Services 2005: =CInt(Fields!FeeGoal_AZ.Value)    !=      0 I get this error when trying to preview the report: "Cannot compare data types of System.Int32 and System.String.  Please check the data type returned by the filter expression." I am not sure why it's comparing a string here.  The data type for FeeGoal_AZ in the database table is Bigint   I also tried   =Iif(Fields!FeeGoal_AZ.Value = 0,True,False)    !=    True I'm having the same issue, but it seems to be occurring because I have numbe ...Show All

  • .NET Development How to measure the memory pressure?

    I am designing a .Net component that relies some on a quite elaborate cache system. The cache can be regenerated at any time but at great CPU/IO expense. The WeakReference is not enough my own needs because (for example) it cannot take into account the regeneration costs that may vary from a WeakReference to an other. I would like to know how the memory pressure that applies on the current process can be measured in .Net I have seen the method GC.GetTotalMemory() but the information brought by this method is partial. Do anyone has an idea to do this Thanks, Joannes I wasn't suggesting that you use .NET ...Show All

  • SQL Server Export problem

    Hello everyone. I would really appreciate if someone could give me an advice on the issue I'm having. I have the same multi-page report with subreports in it. It is already deployed to the report servers on two different systems and is displayed OK in HTML format through the Report Server  on both of them. When I try to export the report to PDF file, I get the following error: - On one system it gets fully exported (this system has Windows/Office XP configuration). The resulting pdf file contains all pages of the report, as it should. - On another system the resulting pdf file contains only the first page of t ...Show All

  • Visual C++ ocx control's events in VC++.net

    hi, I am developing a VC++.NET console application. In that, i am using an OCX control. It has two events. I need to know how to use those events. In VB.NET, we can declare the objects with WITHEVENTS keyword. Any equivalent in VC++.NET. Please help me regarding this. thanks and regards, Take a look at http://msdn2.microsoft.com/en-us/library/6f01ek09.aspx for handling events in VC++. Also, you can have methods that throws exception that you can catch as well. Also, winforms have events hooked to the data sources, buttons, and so on. Thanks, Ayman Shoukry VC++ Team ...Show All

©2008 Software Development Network