Reid Hochstedler's Q&A profile
.NET Development Warning when trying to run the application
That I always try to run my application appears me this acknowledgment Help Please. It looks like you have a property in which you are trying to return the connection strin to a database. you could use a try catch block to trap and display the error..but heres what I see Private m_FilmesConnection as string = "BLAH" Public ReadOnly Property FilmesConnection() as string Get Return m_FilmesConnection End Get End Property The "me" syntax is incorrect and there is no need to cast a string to a string. HTH ...Show All
Visual C# Resizing jpg to smaller resolution
I am not sure whether I should be in C# or C++ perhaps somebody could advise I write in Visual Basic & have an app the I want to allow the user to select some jpg files and have them reduced in resolution As Vb does not have this facility, I was hoping I could get somone to point me in the direction a code example I could utilise in net 2005, (don't yet know how) using C which I could then compile. my app would shell the c app at the appropriate time or a compiled exe that does the following read a text file which has detail re resizing size a list of files to resize with destination folder and name the ...Show All
Visual C++ scanf_s debug problem
Hi, I have just installed Visual Studio 2005 and am upgrading some W32 console programs developed under VS2003. When I compiled them, I got the warning about "scanf" being deprecated. Accordingly, I modified the function calls to "scanf_s" and continued. When compilingg for Release, all works well, but if I compile for Debug, characters from stdin (apart from terminators) are not passed into the program. I knocked up the following to test this - #include <stdio.h> #include <conio.h> void main( void ) { char Text[16] ; printf( "Text " ) ; scanf_s( "%s" ,Te ...Show All
Windows Forms How to get the value from xml in vb.net?
I have a string with xml syntax. <department> <employee name="ABC" age="31" sex="male"/> <employee name="CDE" age="40" sex="male"/> </department> How do I read that into valuable Thanks! I have tried this but not work. Public Sub readXml(ByVal strXml As String) Dim xmlDoc As XmlDocument Dim strTemp As& ...Show All
Visual Studio Team System Working with Frames
We have a website that requires a login and, based on users roles, displays anywhere from 3 to 10 frames. The initial recording was done with a "super user" account so that all requests were recorded. Now, during playback with an ID having limited access, the web test fails due to the number of frames not authorized for this user. I believe that I can determine what frames are authorized for this user by looking at the response from an earlier request and use this information to prevent the calls that I know are going to fail. Is this doable Thanks. I coould do this from a coded web test. How ...Show All
Software Development for Windows Vista Sequence vs. CompositeActivity Guidance
Hello, Could anyone please provide some guidance as to when to create a custom activity that is based on Sequence and when to base it on CompositeActivity I see some of the same WWF activities are based on Sequence while other derive from CompositeActivity. I'm not clear on how to decide what to use in which situations. Thanks, Notre Notre, This is correct. A CompositeActivity would not execute any of its children, by default. You'll need to write your on Execute method to this. As for designers, the CompositeActivity doesn't have any special designer, so you'll e ...Show All
Visual C# A problem about binary file source safe versioning
Does anyone of you ever try to check in your binary files for versioning We have this habit since the day when we work on VB projects. Since COM versioning is very important, we have very clear habit to keep different versions of the DLLs. Now in .net, with VS.NET 2003, we realize there is a very strange behaviour which prevents binary files checking from working properly. Lets say, we have 3 projects: ClassLibrary1, ClassLibrary2, WindowsApplication1 -->: reference ClassLibrary2 --> ClassLibrary1 WindowsApplication1 --> ClassLibrary1, ClassLibrary2 When I have checked out all WindowsApplication1 binary files, while leaving ClassLib ...Show All
Windows Forms load data only if needed...
hi to everybody! i would like to have a custom datagrid, that only loads the first 10 records of a table. when the user scrolls down on the bottom of all avaliable records a function should then load the next 10 records. i need this 'cause i have a table with about 50.000 records in it, so it would be nice to only load the records the user&nb ...Show All
Visual C# Make a timer go once
How do I make a timer call only once Yup, that's the best way. And if you add the timer via the windows forms designer, you can set the AutoReset property right in the properties page for the timer. ...Show All
Visual Studio Express Editions New to C++
Hi, I am new to C++ express. I have coded in Access (VBA and SQL) for quite some time, so I'm not a complete beginner (but close). I leanred how to code in access by using the sample applications given and would like to do the same with C++. Are there any sample applications available to help a new user understand how forms get connected and how events are triggered Something like, from a menustrip, click "new file" and a dailog is opened. On selecting the file, the path is saved to a text box etc. I hope the community is able to help out the new boy ! For VC++, I would strongly advise y ...Show All
SQL Server Still no solution - found following in error logs
Still no solution - did fined the following in the error logs: w3wp!extensionfactory!1!4/5/2006-10:21:54:: w WARN: The extension Report Server Email does not have a LocalizedNameAttribute. w3wp!extensionfactory!1!4/5/2006-10:21:54:: w WARN: The extension Report Server FileShare does not have a LocalizedNameAttribute. ...Show All
Visual Studio How can I get data fields to repeat on each page, since they cannot be placed in the Header?
For example, we need the document number at the top of each page. Also, when using a table, is there a way to make the table Header print on each page when the table goes to multiple pages Thank you. Try this: Click the row you want to repeat on each page, on the properties window, set RepeatOnNewPage to true . Good Luck. Long ...Show All
SQL Server How to current logged windows user name in tsql
Hello how can i get current logged windows user name in tsql. I know with windows aut it is possible how can i get this when sql auth. Is there any system function or any special codeing required regards Chikuu take a look at suser_sname() select user_name(),suser_sname() Denis the SQL Menace http://sqlservercode.blogspot.com/ ...Show All
Windows Forms printing
Hi This is the first time I am using the printing class. What I want to do, is perhaps like everyone else, customize the layout of a page and print that page, putting in the appropriate values and so on. How do I go about creating such a page, where I can position, say, a logo on the top center of the page, then a line below that, the address and so on - like an application type form layout. how can I achieve this in C# (.NET 2.0) Many thanks! Check out the PrintDocument.PrintPage event. ...Show All
Visual Studio ctc file has UTF-8 markings, parser doesn't understand
In my post I describe a way to fix a problem where the auto generated CtcComponents have uft-8 byte ordering markers. The parser doesn't understand these markers. My questions are: What parser is complaining about this (The exact error is Unknown section header) Are there any options to enable utf-8 compatability The CTC file does not work with files that are not in the ANSI encoding. Meaning that if you wish to use different character sets, you need to save the files in ANSI, but use different codepages. I believe the plan is to switch to allow different encodings in future versions o ...Show All
