JonSatch's Q&A profile
Visual C# C# vs. C++
Hello, I don't know if this is the right place to post this but if it isn't - please tell me where to. Anyway, I want to learn one of the following languages - Visual C# .net or Visual C++ .net (2005). I've made a list of things for C# and against it (meaning for C++). I have read the post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=116618&SiteID=1 but my situation is a bit different as I do not have time to learn both languages as suggested on that post. For Visual C# 2005 has much more written information. I have found a lot of books unlike Visual C++ 2005. " ...Show All
SQL Server What component to use for Calling View
In SSIS 2005 what component can I use inside my Data Flow task to call my View and use it as a datasource I know I've used an Execute T-SQL Task but I don't know what component to use inside an actual task itself. What I'm trying to do is in my Data Flow task, instead of using 3 OLE DB Source components, I want to actually call 3 stored procs and use those 3 components as the data sources to merge on using the merge and sort components later on You've lost me. At the start of the above post you say you want to use a view. At the end of the post you say stored proc. Which is it Either way, a view or a stored proc can be used inside a ...Show All
Visual Studio More than one Diagram / File - Extension for a single model?
Hi everybody! I've downloaded the latest CTP (Nov2005CTP) of the DSL Tools. After installing I've read the Walkthroughs and have done some experiments. What I want to achive is to provide a way to use more than one Designer for my model. Let me give you an example of what I want to achive: 1. The "root" Designer I a kind of Class - Designer witch shall allow to define classes with Fields, Inheritance and Interface implementations. This is no problem so far. I would name this kind of Diagram an "Object Diagram". There shall be only one Object Diagram within a Project. 2. This is the step where I have no idea how to implement it: T ...Show All
Visual Studio VSS over Internet. How make correct request
I'm send: ________________________________________________ POST http://localhost/sourcesafe/vssservice.asmx HTTP/1.1 Host: localhost \r\n Content-Type: application/soap+xml; charset=utf-8 Content-Length: 562 < xml version="1.0" encoding="utf-8" > <soap12:Envelope xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema " xmlns:soap12=" http://www.w3.org/2003/05/soap-envelope "> <soap12:Body> <Get xmlns=" http://microsoft.com/vsswebservice/ "> <ci> <IniPath>\\kozloff\vss\srcsafe.ini< ...Show All
.NET Development Changing Data Source Visual Studio 2005
Friends, Today's question is this: How can I change the data source for a Windows Form (Not an ASP Web App) application in VS 2005 I have small app I have built around SQL Express that I would like to modify by changing the data source to a SQL 2000 box on my network. I simply copied the entire database over the the 2000 box and now I would like to hook my app to it. For the life of me I can't seem to find a way to do this. I could easily reconnect by regenerating the dataset but then I would have to drag-drop all the tables back to the new dataset and re-create all the links. My thinking is that ...Show All
Windows Forms Please help me!
i create a control I want it have propertys +DataSource +ValueMember +DisplayMember like properties of combobox Try using the .NET Reflector to decompile how the Windows.Forms controls handle those properties and then you can replicate the functionality that is the same as you need. If you do not already have the utility then grab it from... http://www.aisto.com/roeder/dotnet Phil Wright http://www.componentfactory.com Free user interface controls for .NET2 ...Show All
Visual C++ Compiling code written in C in .NET2005
Hi, I am using .NET 2005 and I created an empty project, Win32 Console Application,and the code I wrote is simple C, not C++. When I try to compile it it gives me this warning : C4996: ' scanf' was declared deprecated. When I run my application it stopes after the first scanf function. I read in MSDN that they changed something about this functions, but what #include <stdio.h> #include <conio.h> #include <stdlib.h> struct nod { char inf; struct nod *left,*right; }; struct nod *creation() { struct nod *p; p=( struct nod*)malloc( sizeof ( struct nod)); printf( &q ...Show All
.NET Development Hashtable breaking serialization framework
I am trying to implement a custom formatter for my own needs. The implementation is fairly advanced (see PartialFormatter.cs ), but I ended up encountering an another problem with the .Net framework: it seems that the Hastable s are breaking the serialization framework (have a look at the hashtable rotor code ). I have two questions about this: How I am supposed to (de)serialize those Hashtable Is this bug going to be fixed in .Net 2.0 Thanks in advance, Joannes After digging a little bit further, I discovered the IDeserializationCallback . So basically, Hashtable are consistent with the serialization ...Show All
Visual FoxPro Two questions (about database structure & controls)
Hello. Today I've stumbled upon two problems I couldn't solve myself. 1. How can I get the structure of a dbf file (in order to make a query for creating the same table in MS SQL) 2. How can I address objects in a form by a cycle. For example for i=1 to 10 thisform.command(i).caption = str(i) endif Thanks a lot in advance Thanks very, very much. Both suggestions are perfecct & work ...Show All
SQL Server Sql Reporting Services problem
Hi, I use sql reporting services in a C# windows form application. I made 3 reports which i use in the application. I tried to use each report several times during the application, i.e. - I filled in the report with parameters and DB data at first during the running of the application, and created a mhtml file from the report. when I tried to use the same report in the same running time of the application , but with different data and different parameters, I saw that the report I get is the first report I made, with the old data and old parameters although the data in the DB has changed and the parameters I gave the report have cha ...Show All
Visual Basic Cannot update Access database record
After adding a data source to an Access database file, I created a detail form by drag and drop one of the table to Form1. When I run it, the data can be retrieved correctly, however any modification cannot be updated back to the database. I checked the insert, update and delete commands in the tableadapter are correct. I tried execute the insert command from the Query from Query Builder, which can create a new row in the database. I tried to include the following commands in FormClosing event handler of Form1, but nothing happened. Me.CustomerBindingSource.EndEdit() Me.CustomerTableAdapter.Update(Me.CompanyDataSet.customer) ...Show All
Windows Forms Questions about connecting to SQL Server & Web Services
Hi everyone, First, let me say I haven't ever really done much with Web Services except for the brief coverage in MS .NET curriculum... Our network doesn't allow clients to connect directly to a SQL server that is on a different subnet (firewall port blocking, etc). In the past, we have used file DSNs on each client to connect to SQL, but I recent ...Show All
Visual Studio Team System ArgumentNullException Value cannot be null. Parameter name: menuService
I now get this message anytime I try to run (debug/release) a unit test. I've given up trying to get my complicated solutions to work again (they worked fine for weeks but now crash). I can easily reproduce this problem with a new solution. After a clean reboot, I create a new C# Solution/project. I add the following public method to the class: public string tryUnitTest() { return "This is a test of the Unit Test." ; } Next, I right click and choose "Creat Unit Tests..." pick: "create a new Visual C# Test project..." OK It builds a unit Test project containing the default test for o ...Show All
Visual C++ Export DLL to run with rundll
Hi, I Want to export a function wrriten in C++ i write a simple program extern "C" __declspec( dllexport ) int myFunc(int x){ x = x +1; return x; } when i run the command rundll32.exe dllName.dll,myFunc 5 I can see that the x is not 5 as i expected. How can I recice a arguments to the dll (not only int, can be char *) Please see the following link for information on how to define your entry point for use by rundll32: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=180170&SiteID=1 Ronald Laeremans Visua ...Show All
Windows Forms MonthCalendar control - formatting problem
I'm using VS 2005 Beta 2 and I have a Windows form with a MonthCalendar control on it. I have the control configured to show 1 row by 1 column, essentially a single month at a time. When the application is executed, the dialog displays and the MonthCalendar control behaves as though it is to use as much space as possible to show as many rows and columns as possible. Actually viewed as a 2 x 2 matrix. What gives Is this a known bug Thanks, Bob Do you have the MonthCalendar Anchored to multiple sides or Docked The MonthCalendar will display as many months as possible based on it's size. If you ...Show All
