Metaferia's Q&A profile
Visual Studio Team System Using MSTest instead of NUnit
I've been using CruiseControl.NET for a while with NUnit for unittesting and NCover for coverage statistics. However, after upgrading to the VS2005 Team Edition, I would like to use the MSTest suite instead, but I haven't been able to modify my MSBuild script to do this. < ncover workingDirectory = " . " program = " ${ncover.path} " commandLineExe = " ${nunit.path} " commandLineArgs = " ${nunit.project.path} /config=${build.config} /xml=${output.dir}\nunit.log " coverageFile = " ${output.dir}\ncover.log " logFile = " ${output.dir}\coverage.log " failonerror = " true " > < assemblies basedir = " . " > < include name = " **/${application.base.namespace}*.dll " /> < exclude name = " ** ...Show All
Visual Studio Express Editions Macros with Visual Studio Express Edition
Hi, I've recently installed the VSEE for cpp. I wanted to add some VS macros, but could not find the macro IDE. Nor could I record one. Are macros supported in VSEE Any help in this matter will be highly appreciated. Thanks in advance. Sarang. Macros are not supported with the Express Editions. The only extensibility feature of the Express Editions is the ability to add custom templates (but not create them directly). - Dennis ...Show All
Visual Studio Express Editions Help with Strings
I want to be able to identify the start position of each time “teststring” appears in “tempstring”. What is the best way to do this Dim Pos(100) As Integer Dim Found As Integer = 0 Dim x As Integer = 0 Dim TestString As String = "var oRunner = place.m_R" For Each item As String In TempString Found += 1 If InStr(Found, TempString, TestString) Then Pos(x) = Found End If x += 1 Next item The following code should work. It creates an array list of the positions in the file. You could chnage this to string them to a CSV string or whatever structure you need. Dim Pos As New ArrayLis ...Show All
Visual C++ A Problem with feof()
I am trying to build a program that, among other things, loads data from a binary data file, I use fread() in a while loop with condition !feof. every thing loads fine but the last part of the file loads twice creating a duplecate element at the end of the list. Does anyone know why this is and if it can be avoided; hear is my source code for the loading function: afx_msg void EditWindow::OnOpen() { if(head) { while(current->next) { current = current->next; } while(current!=head) { current=current->prev; delete(current->next); current->next = NULL; } delete(current, head); head =NULL; current = NULL; } ReadOutIn o; FILE* loadPointer = fopen("Level.lvl", "rb"); if(loadPointer) { while(!fe ...Show All
Visual C++ LNK2019 accessing get/set method of an interface __declspec property
Hi, I'm getting into this error porting some code from MVC6 to MVC2005. It worked fine in the old compiler, not in the new one. ddDlg.obj : error LNK2019: unresolved external symbol "public: virtual int __thiscall Ipippo::get_m_nKind(void)const " ( get_m_nKind@Ipippo@@UBEHXZ) referenced in function "protected: void __thiscall CDdDlg::OnButton1(void)" ( OnButton1@CDdDlg@@IAEXXZ) Here's the code: interface Ipippo { CString sName ; __declspec ( property ( get = get_m_nKind, put = put_m_nKind ) ) int m_nKind ; virtual int get_m_nKind() const = 0 ; virtual void put_m_nKind( const int & new_m_nKind ) = 0 ; virtual ~Ipippo() = 0 ; protected : Ipippo() ; Ipippo( const Ipippo& ) ; // copy cons ...Show All
Visual Studio Express Editions LoginForm1.vb problems
I am a new coder (only been doing it for a couple of months) and I am having some trouble with the templete LoginForm1.vb in Visual Basic Express Edition. I can't figure out what code I need, nor am I really sure of the way to go about using the form. I've done some looking on the MSDN Library but all they have their is logins for web applications. Since what I am creating is a windows app then this doesn't help me. If I could get some help in really simple terms that would be great. I've also looked at some other posts on this forum concerning this problem and they didn't help me too muchl unfortunately the link you sent me didn't help too much. What I can't figure out is what I need to do so that when som ...Show All
Visual Basic Date. IsDate instead of IsNumeric .
hi all how can i write Date (dd/mm/yyyy) in textbox without using Date and Time picker in vb.net in other words how can i use textbox in date format...... and ofcouse the date must be valid. Vimal Hi, if you mean to just show the date, then try this: TextBox1.Text = System.DateTime.Now.ToString("dd/MM/yyyy") ...Show All
Software Development for Windows Vista Project type is not supported by this installation
I have been struggling with this the entire day. I just installed for the first time: WinFX Visual Studio 2005 Extensions for Windows Workflow Foundation Beta 2_2 Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x86 WorkflowTemplates - 2006-03-07 If I try to create any WWF project based on the new templates, I receive an error stating that "the project type is not supported by this installation". I have uninstalled everything and installed the Beta 2 version (instead of the Beta 2.2) and I get the same error. I then uninstalled everything again and reinstalled the Beta 2.2 version hoping that it would have worked, but no luck. Has anybody had this problem Any help will be appreciated. P.S. ...Show All
Visual Studio Express Editions Help creating a right click like emulator-dont know what else to call it
i am doing(now) scince i cant add things to the right click menu,it requires a Shell Context Menu handle which is not available....so i decided to kinda make my own,how do i make it so then when i click a key,specified by a textbox in the program such as alt,and i right click,it will put my form next to the mouse and i can customize it.... Oh,i forgot something,the program,must be minimized,not appear on taskbar and also not visible while there is a icon on the taskbar. so if i click on the desktop while pressing the key,it will appear thanks in advance Check this thread for code that implements a hot key to make your form visible. To avoid seeing a button in the taskbar for your form, set th ...Show All
Windows Live Developer Forums Does VE v4 provide less road information in Taiwan than v3?
I'm glad to hear the VE v4 has lauched, but the new map seems to provide less road information in Taiwan, a lot of roads and streets disappear on the new map. Is it possible for me to use the old version VE map or has any other solutions Thanks. We certainly didn't cut back on road details with this release; if anything, we've added more detail in some places. Can you provide specifics about what you are seeing Perhaps you can go to http://maps.live.com and copy-and-paste a permalink here of an area where you are seeing a lot of roads disappear. And to answer your question, you can still use the v3 control--just keep the javascript reference you were using before Monday. But there is one set o ...Show All
.NET Development DoEvents not working?
This code doesn't seem to be working right. What I need to do is watch for left and mouse downs, and when both are down at the same time, show a window. This class should do it, but isn't working. The processMessage variable tells the mousehook to send the message to the appropriate window or to consume it. Public Class mouseComboWatcher Private WithEvents mh As WickedOrange.MouseHook Public Event ComboPressed() Public Event ComboReleased() Sub New () Me .mh = New WickedOrange.MouseHook End Sub Private leftMouseDown As Boolean = False Private rightMouseDown As Boolean = False Private comboDown As Boolean = False Private Sub mh_Mouse ...Show All
.NET Development Saving files from a Resource
I've added a file to my project's resource file (a database file, Empty.mdb, to be used as a template later on). Now, when running the program, how can I save this file (from the reosurce) to a real physical file I've looked into the System.Resources classes but they seem to be handling the actual *.resx files etc, not resources during runtime. What is GetResourceStream Couldn't find any reference to it. At any rate, your code gave me some hints so now I have a working saver using Assembly, ResourceManager and File. ...Show All
Visual C++ Problem moving byte array from C# to Managed C++ and back
Hi, I am currently trying to use Managed C++ to create a ,.Net wrapper for some unmanaged C++ code. I'm nearly there, but I have a really annoying issue. My code is as follows: public : void Play(System::Byte buffer[]) { char buffer2[88200]; // Fill the unmanaged buffer pSidplay2->play(buffer2, 88200); //buffer = buffer2*; ...Show All
SQL Server Financial Periods YTD & Date Ranges
I am developing a set of reports for a site based on AS2000. The reports will have columns for each finance period in the current year from period 01 to the current reporting period from the Primary Time dimension. i.e. If period 4 is the default period, The report should show columns for periods 1,2,3,4 with a total that sums the four columns. When the default period 5 the columns should be 1,2,3,4,5. I cannot use the current year and explode that to show all periods in the year, as there are postings in future periods beyond the current accounting period that should not be displayed on the report. I am setting the default member of the time dimension to the current reporting period. (2005/08 for example) I am ...Show All
Windows Forms Tooltip of ErrorProvider class gets lost
Hello whenever ErrorProvider detects an error it shows the tooltip when you hover your mouse over the icon. It stays there for some period and then it goes away. now if you hover your mouse over the icon again then tooltip is not displayed. i think it is getting lost any work arounds for this Thanks and Regards Jayesh (Moderator: Thread moved to this forum for better responses) About the only thing you can do is keep track of which control caused the ErrorProvider to be visible and change the error text with a timer. The ErrorProvider does not provide access to the ToolTip associated with it (it's separate from the parent form) so you can't change any of the timings of it's tooltip. ...Show All
