xaitech's Q&A profile
Visual C++ problem in sending file over socket
hi all, i want to transfer an exe file over the socket. Now with the code i made, when i transfer an txt file or cpp file,the code works perfectly alrite but as soon as i transfer an exe file, the data is not sent properly. One wierd thing appening is that it is sending and receiving the data properly. So when i compare the sizes they r same but there data in the received file doesnt match with the sent file here are both the codes: 1) Sender code CFile file; try { file.Open("C:\\sample.exe",CFile::modeRead|CFile::typeBinary); } catch (CFileException* e) { // Something went wrong. AfxMessageBox("Error in creating File",MB_OK); e->Delete (); return ; } file.SeekToBeg ...Show All
Visual Studio Team System Version Control Blues
Hi all, Been scratching my head on this one for a while now. I have a solution comprising a web project and a windows project that have been added to a Team Project under version control. Basically, the issue arises whenever I, or my colleagues, add files to this project. Let's say I add a folder called "Code", and a file called "Class1.vb". These changes sit in my local copy until I 'Check in pending changes', right When my colleague goes to his PC to get access to the file I just downloaded, when he does his 'Get Latest (recursive)' or 'Get Specific (force downloads)', he STILL doesn't see the file. Rather, it's there - but 'hidden' because VS2005 on his copy says that it is not included in the project. No ...Show All
.NET Development IntersectClip Method vs Clip Property?
Is there any difference between: System.Drawing. Region ClipRegion = new System.Drawing. Region (pGraphParams.m_rInnerRectangle); glLayer.LayerGraphics.Clip = ClipRegion; and glLayer.LayerGraphics.IntersectClip(pGraphParams.m_rInnerRectangle); For some reason, using IntersectClip is VERY ocassionally causing a stack overflow and I am struggling to figure out why. If I use the Clip property instead, I do not get this overflow. The only think the call stack really tells me is that it looks like something recursive is happening in ntdll.dll and it gets out of control. Indeed, I was calling IntersectClip without setting the Clip property first. I'm not sure why I was doing that, but it ...Show All
Visual Studio 2008 (Pre-release) Shrink AND move a control in a canvas using animation (easy?)
All I want to do is be able to scale the X and Y of a usercontrol (in a canvas) both to 0 AND move the control to Canvas.Left=0 and Canvas.Top=0 no matter where the control is currently. I have the following so far... it does the scale X and Y ok, but crashes on the canvas-related calls... says "cannot have NaN as an origin in a DoubleAnimation": .......... <UserControl.RenderTransform> <TransformGroup> <TransformGroup.Children> <TransformCollection> <ScaleTransform x:Name="MinimizeScaleTransform" ScaleX="1" ScaleY="1" /> & ...Show All
Architecture .NET data trasfer application architecture - windows service
Hi, I need to develop an application which performs a data transfer one data base to another. I can not use DTS as a solution due to the complex requiremtns of the application. This application needs to run every 30 secs. So I decided to go for windows service. I am new to windows serivces and multithreading. I have developed an application design and would like to get feed back on it. General over view of the design : Application contains the following classes - AccountCreationDTS (WInService class), DTSTimer, DTSController, DTSREquestBin and DTS. AccountCreationDTS.OnStart() starts the DTSTimer. DTSTimer._onTimeElapsed() invokes DTSController.startTask() which initiates a DTS. The code for all the classes is given below : ...Show All
Visual Studio Express Editions integer to Color
Hi, In one of my projects, I would like to populate a Datagridview table with a list of different slab panel thickness and a matching list of colors. In the color cell, I used: heterow3.Cells(1).Style.BackColor = col_UDL col_UDL is the color which i defined as type integer, it has been assigned with a QBColor value. The compiler complains that "value of type 'integer' can not be converted to 'System.Drawing.Color' ". How can I make it working Thanks You may want to use the normal Color class and the Color.FromArgb and Color.ToArgb functions. IE: Dim color as color = color.white dim intValue as integer = color.toargb dim colorValue as color = color.fromArgb(intvalue) ...Show All
Visual Studio 2008 (Pre-release) How to remove control box from Window?
<Window x:Class="MyWindow" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="Test" Width="518" Height="502" ResizeMode="NoResize" Icon="{x:Null}" Name="window" SizeToContent="WidthAndHeight" > I have defined a Window using the above code. However I don't see a way to remove the ControlBox (upper left) from it. In Windows Forms it was Form.ControlBox. I do want to keep the title bar and the close X on the right. I just don't want the control box showing. Any ideas Frankly it seems like a bad oversight that I can control a titl ...Show All
Visual Studio Team System Error opening project after schema import
Created a new SQL Server 2000 database project, then use the Import Database Schema function in the Solution Explorer. This worked well, importing the DB objects, as well as displaying some errors in the project where table changes would cause views to break. However, if I close the solution, then attempt to re-open it, after about a minute of "Processing Schem Objects" in the status bar, VS reports the following error: Unable to create a new relationship because there is already an existing relationship between the specified schema identifiers. The project is unusuable. I must create a new project and re-import to continue my work. Is this a know problem, and any workarounds Basicl ...Show All
Visual C# Creating "in memory" Files
Hey Everyone I am writting an application where I want to create a file in memory, that may not be the right term, and then send in via an email to several people. By "in memory" I mean that I dont actually want to have the program create a file that would be on the hard drive. What I want is the file to be temporary but be able to be emailed. Can I do this and if so how Thanks Kenzie The end program will be a Windows Service and I am not sure if I can create files in the application directory without messing up the service. If I could I would do it that way. Kenzie ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Save As for an entire project?
Greetings! When I create a new project in MS Visual C# Express, a full set of folders (bin, obj, Properties) and files are created. I'd like to be able to "source" my projects, but can't figure how to use Save As so that Express will create new folders and files using whats currently open, just with a new name. Hope that makes sense. Thanks! You have a few options, but the easiest would be what Jim said. Anytime you want to version your code, just navigate out to the folder above your project, CTRL-CLICK, DRAG and RELEASE the folder. Rename the copy to comply with your naming standards for versioning and go back to work on the original. All done. Other, more complex options, include ...Show All
.NET Development Web Service Setup Question
Currently the only version of Visual Studio I own is VS6. I have developed a Web Service using VC++ 6 and the Soap Toolkit 3 Microsoft deployed prior to the .NET Web Service support. It has since been deprecated. I cannot afford to get a newer version of Visual Studio currently, so I am stuck for the moment using VS6. The client is a c++ application that connects via the low level connection technique described in the SOAP toolkit documentation. On the server side, I wrote a COM dll. The COM dll provides functionality for my web service. It exports multiple functions. The functions take BSTR, BSTR*, int, int*, and MSSOAPLib30::ISentAttachments** parameters, and are capable of modifying pointer parameters for BSTR, int, and MSSOAPLib30::IS ...Show All
Windows Forms Relations.Add
I have been reading several posts regarding relations.add... I am wondering if it is possible to build relations between two stored procedures as opposed to strickly tables If so what do I need to do to get this done in Visual Basic .net... Steve ...Show All
Visual Studio Express Editions How do you send email?
I want to send email from my yahoo acount to my friend's, how would I do that I know I could just use my email, but I want to make a form that, when I press a button, emails "Happy Birthday!" How would I do this take a look at this my friend: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=724365&SiteID=1 ...Show All
SQL Server Decryption Problem
I wanted to configure Report Server and publish my reports. I configured report server 2005 on win 2003 os. I prepared few reports and deployed them. When I tried to view this report thru ReportServer ( http://localhost/ReportServer ) from my local machine, I got the following error message:- The encrypted value for the "UnattendedExecutionAccount\Password" configuration setting cannot be decrypted. The report server has encountered a configuration error. See the report server log files for more information. Can anyone help me in solving this! I will highly appreciate it. Thanks in advance, hemal I have the same problem having setup and installed the AdventureWorks samples I g ...Show All
Visual C++ VC8 program writing to cout much slower than VC6 program
hi, I have the following piece of code in a program compiled using both VC8 and VC6. the only difference in the code is the deprecated iostream header. it basically just writes out a bunch of numbers to cout. I compiled and ran the programs on the same computer (P4 - 2Ghz, 1GB RAM) the VC6 program takes less than 3 seconds to go through that bit of code whereas the VC8 program takes almost 16 seconds ! can someone tell me why this is so is this common i tried the VC6 program with both single threaded, multi-threaded and multi-threaded dll . i tried the VC8 program with multi-threaded and multi-threaded dll. in all cases, the performance was the same. the VC8 version is MUCH slower. thanks, Julian. VC6 version: #include &q ...Show All
