dennist685's Q&A profile
Visual Studio Express Editions C++ code comments
hey I am using C++ Express 2005 and writing a win console application ( not using clr ) , I have a small problem: when I am using C# expres and write /// before a function it generates automatically a part of xml doc with the adequate tags for a comment , I didn't manage to enable that in C++ express , is it possible at all or do I have to build all the comments from scratch Another question is : when i generate the xdc documents from the comments in my code using /doc option and than convert to xml using xdcmake.exe , what can I do with the output xml files is there some convenient tool for creating a html, pdf documentation or in some other form many thanks for any help hello For firs ...Show All
Visual C++ random number
I generate 1 random number in my program, but it's always the same somehow. My code's here: srand(GetTickCount()); rand_c=rand(); hello Re: random number If you do this: for ( int i=0;i<20;i++){ srand(GetTickCount()); int rand_c=rand(); cout << rand_c <<endl; } Hopefully you will get 20 same or close numbers, like 38888,38889 If you do this: for ( int i=0;i<20;i++){ srand(GetTickCount()); int rand_c=rand(); cout << rand_c <<endl; ::Sleep(100); } Hopefully you will get 20 different number with values close to each other, like 28000,37000 etc. But if you do this: srand(Ge ...Show All
Visual Studio 2008 (Pre-release) Inactivity Default value
I've been testing for few days with the inactivityTimeout and receiveTimeout. In my WCF app, I use WSHttpBinding and WSDualHttpBinding. No matter what I set the values of inactivityTimeout and receiveTimeout to be, I get the CommunicationObjectFaultedException. My application needs to be kept alive for Infinite but that didn't seem to work so I changed to 20 minutes and still the timeout is set to 10min. What else do I need to change Description: Failed to stop service. System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Thanks, Gina. Have you m ...Show All
Visual Studio Reports
Hi! How can I made the query parameters of my dataset be set as report parameters I have a report (*.rdl) that calls a dataset that have a query parameter (@param1) And I have the report in the report server. But it displays an error because it doesn't find the declaration of the variable (@param1). I think the solution is to put the query parameter as a report parameter... but How do I pass it to the dataset (*.xsd) Please help me! If the explanation of my problem is horrible please contact me and I will try to explain it better.... :) Hi, Thanks for answering.... If i understand you correctly your answer is for adding parameters to the report, I don't have problems in that. I can ...Show All
.NET Development Soap Extension ChainSream method
Hello, I use the soap extension to log the request and response soap messages in my web service like documented in the MSDN: http://msdn2.microsoft.com/en-us/library/7w06t139.aspx it works fine with no problem but i want to understand: why we should finally copy the stream from the memory stream to the oldstream. First at the beforedeserialize stage we copied the stream to the memory stream and in the chain stream we returned the memorystream, in the afterserialaization stage i got the serialized message from the memory stream, this means that the .Net framework worked on the memory stream so the serialized message was written on it, so why the response to the client wasn't sent from memory stream, why should i copy it from the ...Show All
Smart Device Development Multiple rows selection in DataGrid
Hello, I'm writing a program with CF2.0. I want my user to be able to select multiple rows from the datagrid. There is a way to do this Thanks in advance. It depends on what do you mean by "multiple". For example, selecting range of rows is default grid functionality. Selecting two or more rows which are not adjacent is not and you'll need to do it yourself (e.g. click event->determine coordinates->mark row as selected in your own table->change row color by using SP1 cell painting override). ...Show All
Visual Basic Embedded Objects/Saving From Clipboard
I'm able to copy an embedded object, specifically in Word, to the clipboard. I can even see the various types of data stored in the clipboard. My problem is getting to the object or package contents. I want to mimick the following: Select an object by clicking once on it. Copy to clipboard Paste to folder location. I've got it through #2, but #3 has got me stumped. I don't have all the code I've tried, but I could put the latest on here if necessary. Using VB.NET if that helps. Thanks for the help. Tried that at first. This gives me "Object reference not set to an instance of an object" Any other ideas. Started looking at COleDataObject Class , but I can't find ...Show All
SQL Server convert character data to datetime
Hi! I need to insert character data into a SQL 2005 table in the datetime format. The strings I need to convert are in the following format: ddmmyyyy I tried using case and convert: cast('08162006' as datetime)) convert(datetime,'08162006',101)) Both attempts fail with the following error: The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value. Any advice is greatly appreciated. Thanks. I'm not sure why you feel that the solution posted didn't work. The string is clearly in MMDDYYYY format, and that's exactly how the conversion treated it. Definitely the expected results. As for your contention that, " the style parameter isn't ...Show All
Visual Studio How to two leves of compartements
Hello I have one Compartement Shape with two compartements. I need add other level of compartement in one of them. I don’t see in documentation anything about this question. I normally work around this by adding a winform popup to a property on the first level of the compartment. You can for example show a grid in the form where you can add items. Requires some custom coding though. Let me know if you need more info, Gerben. ...Show All
Visual Studio Team System Where is it placed locally?
When I bind a solution to the source control, I imagine Source Control copies the solution files to a local place. However I cant see where this is copied to... Anyone has any clue I found out my problem, I was not creating correctly my WorkSpace. There is another issue, though. I noticed that my Base Directory files just vanished after I added this solution to Source Control. I suppose VSTS does this automatically so that we dont get confused about the source of the files (cause now its referencing my local machine directory). I am right ...Show All
Internet Explorer Development Clear IE History From C#
How can I do this I've tried a bunch of foreach statements, even tried some Win32 stuff, and I havent been able to do it... Actually, the code didn't work. The file(s) that contain the history are not accessible because another program is using them.... Even though another program isn't using them... ...Show All
.NET Development C# execute store-procedure
Is there away to execute a store-procedure(s) and get how many secs/mins it takes to execute Thank you, Thank you for the quick reply, This code shows me how to execute a store procedure, but do you know if there is a function that can calculate how long it takes to execute "network speed" and/or the "speed of the store procedure" , or it is not possible to check using .net, because I know It is possible to check manually using Sql server 2000/2005. Thank you, ...Show All
SQL Server Using SSIS to connect directly to Outlook as Data source
Can I connect directly to Outlook using SSIS If so is there any white paper or walkthroughs I could follow TIA Tom I think this will be possible from a script task or script component. Outlook is a COM-compliant object and hence you will need to install the Office Primary Interop Assemblies in order to call this from a script task or script component because these use managed code, not COM. Office XP PIAs ( http://www.microsoft.com/downloads/details.aspx familyid=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en ) -Jamie ...Show All
Windows Forms Add Form Control Button
How to create additional button on Form title like Minimize, Restore and Close button. My target is to detach and attach Form to MDI form using swichable button like Restore. Other ideas or solution for this task are welcomed. Hi, boban I have tried by myself, and it works. Here is my code (Assuming Form1 is the container and the Form2 is the child form): In Form1: private void PopUp_Click( object sender, EventArgs e) { this .IsMdiContainer = true ; &n ...Show All
SQL Server Error when I try connect to a database
Hi! I just have downloaded VWD C# express and get a big problem when I try to connect to a database, I use the SQL data source object and when I'm trying to connect to a database I can't use the INSERT, DELETE and UPDATE object in the database. I now that I have to click to advanced button and click for INSERT, DELETE and UPDATE objects but I don't even can click for that so something is very wrong, but what I use Microsoft SQL server database file as a data source and if I try to use Microsoft SQL server (sqlclient) instead I get this huge error: " An error has occured while establishing a connection to the server. When connection to SQL Server 2005, this failure may be caused by the fact that under the default SQL server does not a ...Show All
