DannyvG's Q&A profile
Visual C# create DLL with unresolved externals
Hello! I want to create a dll that uses a GUI framework (wxWidgets). The dll will be loaded by a main application which uses the same framework as well. Hence all the included libraries exist twice when I load the dll which leads to problems with static variables of the framework e.g. the main event table. My intetion is to build the dll without linking the libraries to it and keep the symbols unresolved. These symbols should then be resolved by the dll loader. Now the question is: How can I build a dll and keep those symbols unresolved with Visual Studio 2005 Thank, Lenzoi I'm loadin ...Show All
Smart Device Development VS 2005 beta2 - Referenced package not found
I have just installed VS 2005 beta2. I created a smartphone application with a simple textbox and when I try to run (F5) using emulator I get a deploy error. The output log shows: SMP1 -> C:\dev\SMP1\SMP1\bin\Debug\SMP1.exe ------ Deploy started: Project: SMP1, Configuration: Debug Any CPU ------ Referenced package not found. ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== ========== Deploy: 0 succeeded, 1 failed, 0 skipped ========== Any ideas Hi, try to rename directory C:\Documents and Settings\<user name>\Local Settings\Application Dat ...Show All
Software Development for Windows Vista Is it a Bug?
I have used Visual Studio 2005 and workflow foundation beta 1.2, and I met a weird problem. when I used WebServiceReceive Activity and compiled, the VS showed the error message: property 'xxxx' has invalid value, Field type 'xxxxxxxxxxx' doesn't match with the expected type 'xxxxxxxxxxx' . But actually it did match. And the stranger thing is after I unload the project and reload it , it compiled successfully! Why Every time I met the compiling error, I should unload the project and reload it. Another problem is for chinese input: It still compiled fail after I saved all the files with UTF-8 encoding. The problem ...Show All
Windows Forms need to get a transparent object on a picturebox
Hello, I need to achive the backstyle property of the VB6-usercontrol in .NET. I tried setting the backcolor of the .NET user control to Web.transparent but it is meant only for transparency to the form and not for any objects in the form. The reason to use the backstyle is to draw a regions like rectangle and circle over the thirdparty streaming control/object. Thanks, These two lines of code should certainly help you - this .SetStyle(ControlStyles.SupportsTransparentBackColor , true ); this .BackColor = Color.Transparent; ...Show All
Microsoft ISV Community Center Forums macro that hides rows - excel
hi, i was wondering if there was a way to write a macro that will automatically hide a row based on a value in a cell in excel say, if the sum of a selection of cells = 0, i want to hide the row all together. is there a way to do that thanks. anthony hi Hiding rows is quite simple, the below hides row 1 is A1 is 0, you can also choose to hide the Rows/Columns in a range in a similar way With ActiveSheet If .Cells(1, 1) = 0 Then .Rows(1).Hidden = True End With ...Show All
Windows Forms Save position in DataGridView after refreshing
I have DatagridView on a form. When user click to save changes I save tham and then re-red data agin to reflect latets updates from database. Question how I can return pintor on current record after refreshing Otherwise user clicj save and find himself on first row of DataGridView. It is really annoyning scrol to old position especially on big table Thanks If you are using the BindingSource, you can store the Position to a member variable before saving, and set it after saving/refreshing the data, IF THE SAVE DID NOT CHANGE YOUR ORDER... But I cant stop asking : WHY do you refresh the whole data af ...Show All
Visual Studio Team System Question on source code control API
how do i get the history of a file using the source code control API in the beta 2 of vstfs 2005 The MSDN documents a method called QueryHistory which takes in the following parameters: The repository path to an item for which history should be queried. The version of the specified item for which history should be queried. The unique deletion ID for the item, if it is deleted. A flag determining whether history should be recursively queried. The user for whom history should be queried. The beginning of a version range for which history should be queried. The end of a version range for which history should be queried. ...Show All
Visual Studio Team System C# or VB.NET
It seems to me that all the code examples shown here and in the documentation are all based on C#. My client is completely standardized on VB.NET for all its developement and we are bound to this standard as well. For us, it would be nice if the examples were also available in VB.NET. Does anyone else feel that way or do we just have to bite the bullet and go for C# when we create tests Hi Roland, Yes, I feel that way too. I absolutely believe that we should be providing examples in VB.NET along with C# examples wherever possible, from the beginning. I can only speak for the documentation, ...Show All
Windows Forms Getting the focus of Custom Controls
I've created a custom Button, my control inherits from Control. I've overriden OnMouseUp, OnMouseDown, OnMouseMove, OnMouseEnter, OnMouseLeave and OnPaint. I have these in my Contructor: SetStyle(ControlStyles.UserPaint,true); SetStyle(ControlStyles.AllPaintingInWmPaint,true); SetStyle(ControlStyles.ResizeRedraw,true); Here is my problem, When I click on my Button, the control doesn't keep focus. For example, let say my focus is& ...Show All
Visual Studio Date-Time error in the select formula.
I have a crystal report for which i am trying to generate a selectionFormula at run time.I have a date control on the form, which i am using to generate the formula. The code i have is: Dim posDate As New Date ( Me .DateTimePicker1.Value.Year, Me .DateTimePicker1.Value.Month, Me .DateTimePicker1.Value.Day, 0, 0, 0) SelectFormula = "{tablename.columnname} =" & DateTime.Parse(posDate) But i get the error "a date-time is required" as i run the report. However if i write the formula like: SelectFormula = "{tablename.columnname} = DateTime (2005, 10, 31, 00, 00, 00)" .... ofcourse not hard coding t ...Show All
Visual C++ __CONTEXT from winnt.h in x64
Hi .... i am getting the following error when including one of my previous code constructs. It is using the member of Struct CONTEXT from winnt.h, error C2039: 'Ebp' : is not a member of '_CONTEXT Dont have much depth in x64 bit system structs or its equivalents for x64. any idea for its substitute or a suggestion for correction will be highly appreciated. Best Regards, - Imran. You can preprocess the file using the /P compiler option and see if Ebp is actually a member of _Context in the sample or application you are using. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio Team System Beta 3
OK, so I keep hearing that there may be a Beta 3 released for VSTS. Could someone please confirm or deny this If this is is true, when will it be released the dates here aren't exactly right. Yes, The client editions of VSTS have RTM'd and are commercially avalibale, but the TFS RTM is not 12/02, but is slated for Q1 CY06. We will post exact RTM date very early in the new year thanks Michael ...Show All
Visual C# Strange prolem with Culture settings
Hi, We are writing the .net application that should always work in en-US culture, regardless of the control panel settings. I was able to force the GUI culture to be en-US by the following code Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-CA", true); Thread.CurrentThread.CurrentCulture = new CultureInfo("en-CA", true); After that the DateTimePicker components are always displayed in en-US culture, which is good. But the PROBLEM is that if I retrieve the the DateTimePicker value in the code, it comes in Control Panel settings again. To retrieve the value i use the following: pickerDate.Va ...Show All
Visual Studio Express Editions why is vb.net printing so difficult?
Hi, I have loads of VB6 apps I am trying to migrate to VB.net and the biggest problem I have is that printer.print has no equivalent in vb.net Can anyone tell me a simple way to print in dot net Thanks That ok with fixed strings "yada..yada.." but what to do when we have a neatly formated datagridview of say a balance statement and I need a print out of that....I am having a real hell now ...Show All
Software Development for Windows Vista Some Workflow classes use wrong casing of Id
For example the Activity class uses ID as name of the property. According to the framework design guidelines the abbrevation ID should be spelled Id. From http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=186266&SiteID=1 I was redirected to http://lab.msdn.microsoft.com/productfeedback/Default.aspx where I tried to file a bug but found no corresponding product. Mike, Thanks for the feedback - this has already been corrected for Beta2, and the term "Id" is changed to "Name". I'm not sure why WF isn't listed in the product feedback lab, but I'll see if I can find ou ...Show All
