zppro's Q&A profile
Visual C++ VC7 app with VC8 dlls
Hi, My company sells a product which was developed using VC++ version 7. We allow customers to develop compatible .dlls to extend the application's capability. Our customers want to know if they can use VC++ version 8 (Visual Studio 2005). I have read everything I can find on the MSDN site and done some testing, but still can't resolve how the customers can successfully do this. I have run the vcredist_x86.exe on the target computer (which began with a clean, fresh XP image) and made sure that the "customer" developed .dll includes an embedded manifest. The dependency walker seems happy. The C run-time libraries are present in the WinSxS directory. Yet when I run the application (which reads a text configuration file th ...Show All
SQL Server SSIS dataflow problem
It just occurs to me that it might not be a bad idea to post again the problems in SSIS that I found back in the beta cycle which do not seem to have been fixed, to increase the chance that someone will notice them. (During the beta cycle, I spent hours trying to get bugs posted into the beta bug system, but the beta web bug site had so many problems that I could never get it to work, unfortunately, so I fell back to just posting my bugs and hoping some developers would notice them. Kirk had a thread for bugs and RFEs at one point, where I posted some of the important ones.) Here is another fairly bad one: The dialog that pops up to show fields in the dataflow which have been orphaned, after some fields have been removed earlier in the da ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Controlling Aspect Ratio
So I was playing around with my XNA Control (1) for windows forms last night and got some sprites rendering based on some UI input (ie. press the "Add Sprite" button, file dialog comes up, and you pick a texture to add). I've got the control in a split container in the right pane. When I stretch the window, the sprites stretch right along with the window. The ideal behavior would be that stretching the window would simply give you more screen real estate. I'm imagining the way to figure this out will also apply to dealing with 4:3 vs 16:9 aspect ratios (2). Just need a few pointers on how to properly handle this :-) Thanks! (1)http://codecube.net/item.asp cc_itemid=314&searchstring=xna%20control (2)http://forums.microsoft ...Show All
Visual Studio 2008 (Pre-release) More control over callback DispatchRuntime in Duplex contracts
Hi, I have two services that communicate through the exchange of one-way messages. There's not really a "client" or a "server", because either one of the services can start a conversation with the other one, so I will use "serviceA" and "serviceB" from here on. I used the WCF duplex binding in order for the two services to communicate with each other. I have written a custom ServiceHostBase that does some extra stuff for the project I'm working on and I would like to use the same ServiceHost implementation on both sides (i.e. "serviceA" and "serviceB") because the extra stuff is beneficial to both services. What I would like to do now is start my custom ServiceHost on the "se ...Show All
Windows Forms couple of basic questions...
i have the following requirements and I need to know if CO can do this -- this is a full trust app if that matters; have the app start with windows (optionally based on user config) write data to a data folder (how do i determine where this data folder is and does it persist across versions -- this is the local cache im talking about for offline use) create multiple threads that can reach accross network paths (both unc and http) and download files into the data folder interact with TAPI providers on the machine have user-scoped configuration that persists across versions (this includes the option to start the app with windows + many others) have the user be able to drop-in their own plug-ins (assemblies) which the app ...Show All
Visual Studio Express Editions Text replace with File IO of binary/text data
Perhaps not the appropriate forum, but..... I have a need to replace text in a file with new text. The files may or may not be text files in the sense that there may not be "lines" and they may not contain printable characters. I tried the StreamReader and StreamWriter approach and the String.Replace method. It works well, except that not all the file contents gets preserved. Three bytes at the start of the file are omitted. These occur just before the CRLF characters. Can I read the file in a binary way and then use the equivalent to the String.Replace The input will no longer be a string I must say...I'm not pleased with being sent to newsgroups to ask these questions. The forum format for discourse has ...Show All
Visual C# using array lists
I need an array like variable type that will automatically resize based on how many numbers are in it. After consulting my c# book, it seemed like an arraylist would be my best bet. After creating my array list, and adding some numbers to it, I realized that I had no idea how to read numbers from it. I thought it would be like reading numbers from a normal array, but this gave an error saying that I was trying to convert an object into an integer. heres what I tried (sorry the code is pretty crazy) for (int counter = 0; counter < gcGalaxSetup.gInSystem.Count ; counter++) { Matrix kartMatrix = Matrix.Translation(gcGalaxSetup.gShip[gcGalaxSetup.gInSystem[counter]].Position); ... gInSystem is my arraylist (or rather it re ...Show All
Visual Studio Express Editions programming in C
I’m trying to write and run C code in Visual C++ 2005 Express Edition and am having some trouble. I’ve put a .c suffix on the file and have checked to make sure that Visual C++ knows that this is a C file and not a C++ file by looking at the advanced properties. However when I click Build Solution I always get this: “ Command line error D8045 : cannot compile C file '.\example2.c' with the /clr option ”. I’m trying to compile this simple program: #include <stdio.h> int main( void ) { printf( "hello world. \n" ); return 0; } Thanks, this got me most of the way there, however I got fatal error C1010. I solved that by going into the pro ...Show All
Windows Forms getting ComboBox to Open MyPictures
I'v been trying to get a ComboBox to open My Pictures Folder so a image can be Selected...I was woundering if someone could help me out with this issue... Code: private void pComboBox( object sender, System. EventArgs e) { OpenFileDialog dlg = new OpenFileDialog (); dlg.Filter = "MyPictures(*.jpg)" + "|*.png|All Files (*.*)|*.*" ; dlg.InitialDirectory = MyPictures.DefaultDir; try { if (dlg.ShowDialog() == DialogResult .OK) { _MyPictures.Open(dlg.FileName); } } catch ( Exception ) { MessageBox .Show( "Unable to open " + "album\n" + dlg.FileName, "Open Album Error" , MessageBoxButtons .OK, MessageBoxIcon .Error); } } } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to Find XNA Documentation, Including Tutorials and Samples!
Hey Everyone, The XNA Documentation team wants to let you know that in addition to Spacewar, some great tutorials and "how-to" type articles - including full working source code - are available for you to read and play with! You get them when you download and install XNA Game Studio Express (Beta) - here's where to find them: Start Visual C# Express, and click on "Help" in the menu bar. Select "Contents" from the menu that drops down. This will open up the help viewer. When the help viewer opens, you'll see an "XNA" category. Expand that category, then expand the "XNA Game Studio Express" category under that. You'll find: Frequently Asked Questions Getting Started (co ...Show All
SQL Server DTS Classes Not Showing in Visual Studio
I am trying to use VB.NET to run SSIS packages. However I don't have the various dts namespaces available. When I attempt to import them I only have Microsoft.SqlServer.Server in intellisense. I am running on XP sp2, VS 2005 (full install) and even went so far as to install sql 2005 sp1 full install on my local machine. What gives with only having Microsoft.SqlServer.Server available thanks, Scott But did you specifically install Integration Services You can have the development tools without having all of SSIS. However there's no reason I can think of that the Add Reference dialog in Visual Studio wouldn't show a long list of Microsoft.SqlServer... assemblies, unless they weren't there. Y ...Show All
.NET Development Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource
Hi Yes, it's another one of these - sorry but I'm fairly new to this. I'm getting the following error, when trying to display some XML code on a browser and can't see where I'm going wrong: The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. -------------------------------------------------------------------------------- Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://localhost:2999/Exam/Exam.aspx'. L... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "&.. I'm using t ...Show All
.NET Development The constructor to deserialize an object of xx.xx. was not found
I'm having deserialization problems.. I have a class that inherits from Hashtable. I can serialize it fine but when I try to build the object back it says ""The constructor to deserialize an object of type Teste.CSDictionary was not found.", where Teste.CSDictionary is my class... I use .NET 2.0... Here goes my sample code: [Serializable] class CSDictionary : Hashtable { public CSDictionary() { } } class Class1 { static void Main(string[] args) { CSDictionary x = new CSDictionary(); BinaryFormatter bf = new BinaryFormatter(); MemoryStream ms=new MemoryStream(); // ...Show All
Visual Studio 2008 (Pre-release) XBAP application not picking relative path
i have created a full trust xbap application, that make use of some xml files which i have refered as relative path from bin folder. Problem is, i have to copy those xml file explicitly to root c:\ to make xbap run explicitly. Why it does not refer to the path i have mentioned in my programming and always pick c:\ . i am storing xml file in Data folder that is located where the bin folder of my project is , that is bin/Data/abc.xml , so i have mentioned ../../Data/abc.xml Xbap file is located as bin/xbapdebug/proj.xbap when i use this type of relative path in an exe application it picks xml file from the folder mentioned. i want that application should pick path of those files relativly , from the coding. ...Show All
Visual Studio Team System Code Coverage : Color is not seen
Hi, When I run a unit test and checking code coverage details, I ccould see details like what percent of code is covered and not covered. But I couldnt see the colors (red, green,etc) in the program.Whenever I click on the'Show Code Coverage Coloring' tab on the 'Code Coverage Results' Window, an error message is shown: "value doesnt fall within the expected range'" Can anybody help in this. Thanks in advance akjal Hello, I'm really glad to read that it worked. I don't know what may have caused this, but it is a fact that some setting had Visual Studio in a bad state. If you are able to repro this again, please let us know. Thanks, David Gorena Elizondo [MSFT] VSTS ...Show All
