brentserbus's Q&A profile
Visual C++ Basic ifstream problem
Hi, one of my C++ aplication I use an ifstream to read a file. I used to open it like this : ifstream myfile("C:\\Documents and Settings\\devj4\\Desktop\\CH_12\\ColorLinks.ini"); And read a line like this: myfile >> line; And that worked fine. But now I want to use a string variable that contains the path an file name so I have a variable like this : string Path = "C:\\Documents and Settings\\devj4\\Desktop\\CH_12\\ColorLinks.ini"; So it contains "C:\Documents and Settings\devj4\Desktop\CH_12\ColorLinks.ini" And I open my ifstream like this: ifstream myfile(Path); or like this : myfile.open(Path); Bu ...Show All
Windows Forms DataGridView - SortCompare event not firing!
Hi all, I have a Winforms 2.0 app in which I have a DataGridView which is populated from my own data objects (ie: from my own classes, not from a database or strongly typed dataset). The DGV is readonly so no editing or adding new rows can be done. Since some of the columns need to have a custom sort I set the SortMode property on those columns to "Programmatic" and then added the following event handler to the code: Private Sub dgvMeetings_SortCompare(ByVal sender As System.Object, ByVal e As DataGridViewSortCompareEventArgs) Handles dgvMeetings.SortCompare 'Try to sort based on the columns in the current column. ...Show All
SQL Server setting default values
Pardon the newbie question...but I'm trying to load a dimension table in a small data mart that has columns in it that are unique to the dimension and not sourced from any source table. Two of those columns are date columns that I want to default to the system date and the other column I want to load with a default value. I can't figure out how to do this within a data flow task. The source columns flow from the input db source into a scd transform but I can't seem to edit the columns in the target table table if they don't actually come from a data source. There doesn't seem to be a data transform object to handle this. Thanks. ...Show All
SQL Server How connect SQL server 2000 with c#.net .....?
Hello masters, help me yaar i am using dotnet 2003 and SqL SERVER 2000. BUT UNABLE TO CONNECT DATABASE using dataAdaptor(design time ) or sqlconnection any can help me gs whats the error lets see the connection string. make an empty text file called "c:\test.udl" - double click it and try to build a SQL Ole Db Provider datalink. . . can you get that to work Are the TCP protocols enabled in your machines client network settings and in the servers network settings ...Show All
Visual Studio 2008 (Pre-release) WinFX Custom Control item template not working
I get a dialog about attempting to load an untrusted component "WinFXCustomControlTemplateWizard" when attempting to use add new item for a WinFX custom control. So do I. The message is: "Error: this template attempted to load an untrusted component 'WinFxCustomControlTemplateWizard, Version=1.0.2105.28464, Culture=Neutral, PublicKeyToken=c12fb63fad4f4849'. For more information on this problem and how to enable this template, please see documentation on Customizing Project Templates." ...Show All
Windows Forms Thread::Sleep question
Hello, I've got a question about the Thread::Sleep command. I have a code which goes like so: private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) { System::ComponentModel::ComponentResourceManager^ resources = gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid); this->pictureBox5->BackgroundImage = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"Spin2"))); & ...Show All
Visual FoxPro Cancel Button Does not work--A known bug?
I have no idea if it is a known bug. The important fact for me is that it is a bug. It occurs in _VFP.StartMode = 4 as well as in interactive session (_VFP.StartMode = 0). It caused me to lose numerous error records before I realized what was going on. In exe environment when one error follows another there is no way to quit because the Cancel button does not do what it is supposed to be doing. You crush the system and no records are saved of course. Anyway, this is a stamp of one of the session errors: An error has occured "feature is not available" (1001) ADDPROPTOFORM 2998 .... Record details in error log files Two opt ...Show All
Visual Studio The specified share path cannot be accessed by the SourceSafe Web Service
I'm getting the following error message when I try to use VSS over the internet: The specified share path cannot be accessed by the SourceSafe Web Service. I have been through auto and manual configuring of the server. I have been through all of this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=209792&SiteID=1 and through http://alinconstantin.homeip.net/webdocs/scc/VSS_Internet.htm and http://msdn2.microsoft.com/en-us/library/ms230398(en-US,VS.80).aspx I can access the web service description if I browse to the web service. The user has the same credentials in the VSS db and the File Share. Evering thing appe ...Show All
Windows Forms Importing ActiveX Controls into .NET
I am experiencing a problem when adding ActiveX controls onto a form in .NET when the account I am logged into on XP does not have full administrator rights. I can successfully add the control to the Toolbox, however when I try and create a control, eg the Microsoft Rich Text Control 6.0, on the form the references are successfully created and then I get the following error: "One or more of the types in the assembly unable to load" If I load a project that already has the controls on them, created previously using an Admin account, then when the form is displayed in the IDE, the following errors are displayed in the Task List ...Show All
Visual C++ Help: Compiling error
Hi, I am just beginner and need your help. I got the following error. Please help me~~ Thank you in advance. --------------------Configuration: SOS - Win32 Debug-------------------- Compiling... PortThread.cpp C:\SosNT\PortThread.cpp(117) : error C2664: 'void __cdecl CPortDialog::MessageDisplay(DISPLAY_TYPE,const char *,...)' : cannot convert parameter 1 from 'char [1]' to 'DISPLAY_TYPE' There is no context in which this conversion is possible C:\SosNT\PortThread.cpp(122) : error C2664: 'void __cdecl CPortDialog::MessageDisplay(DISPLAY_TYPE,const char *,...)' : cannot convert parameter 1 from 'char ...Show All
SQL Server Post Deployment - Running Pkg With Set Values !!VOID
I was wondering if someone could provide me with a bit info on how to Set Values in the dtexecui I have a package that does a T-SQL SELECT query with a @var, and that @var needs to be set at runtime, in the Agent Job.... Thanks in advance. DarrenSQLIS wrote: Is it Feedback. Got a reference I can vote on Drives me round the twist too. Nah. I did it thru betaplace! ...Show All
Smart Device Development command line arguments
hi frnds, how can i pass command line arguments to pocket pc are there any settings in the project properties If you mean command line arguments of the project been debugged, you can set that as follows: 1. Right click on the project in solution explored, choose "properties". 2. Select "Debug" tab. 3. Type in command line into "command line arguments" field. ...Show All
Windows Forms Designer support? requires IBindingList ?
Hi, What is the requirement for a property to appear as "DataMember" in the "Object BindingSource" control for example if I have 2 classes , Order and OrderLine , and Order got a "IList<OrderLine> Details" property. this whill not show up as a valid binding. however , if the property type is IBindinglist or any other type that implements it , it shows up just fine. Is that the only way to make a collection property appear in the designer or is it possible to decorate the property with some sort of attribute to make the windowsforms designer understand that the property can be bound //Roger ...Show All
Visual Studio Tools for Office Select worksheet explicitly
I currently have an excel vsto solution that has an action pane consisting of link labels. There is code behind the link label click event to select a particular range in the worksheet. When you click the link label, it selects the range on the worksheet correctly, but if I start typing immediately, I realize the focus is on the action pane, not on the excel worksheet. Is there a method in excel that will explicitly pass the focus to the worksheet range This may not be the "preferred" method, but it works. In your link label click event, after you select the desired range, add the following code: ...Show All
Visual Studio Tools for Office App Manifest > Deployment Manifest Question
As I understand things, the application manifest contains 2 <installFrom> tags: * The first of these tags is required and appears in the <dependency> element. The codebase attribute points to the customization assembly. Any environment variables (i.e., %windir%, %appdata%, etc) in the path will be expand by the VSTO runtime. * The second of these tags is not required and appears before the closing <assembly> element. The codebase attribute in this tag points back to the deployment manifest file. If a relative path is used, the specified path is relative to the document, not relative to the application manifest file lo ...Show All
