remedios_'s Q&A profile
.NET Development .Net Profiler How to Read paramater values
I am in the process of creating a profiler, I would like to read the parameter values and the object context. please anyone help me how to use the ICorProfilerInfo::GetFunctionInfo from VB.Net. Thanks in advance Mohanraj Hi Jonathan, Thanks for your reply, I am in the process of writing profiler in 2.0 CLR, can you elaborate little bit more about how to implement this or else can you provide me the link that could be useful for my implementation. Thanks again, Mohanraj ...Show All
.NET Development DataTable - Null Object Reference Error
We have a Multithreaded application where frequent updates will be done to Datatables either by adding or deleting or updating rows. As a precaution we lock the datatable to avoid any errors, but even after applying the lock mechanism on the datatable and when we make use of the Find method of the Rows collection of the database , we are flooded with the Null Object reference error. Error structure as follow Object reference not set to an instance of an object. in System.Data -> at System.Data.DataTable.GetIndex(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) at System.Data.DataTable.GetIndex(Int32[] indexDesc) at System.Data.DataTable.FindRow(DataKey key, Object[] values) at System.Data.DataTable. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to move, rotate, zoom 3D object
I am new in direct3D. I am writting a window application to view a 3D object. I need move, rotate and zoom function. I appreciate if I could get help. Examples in C# is better. Thanks. Plenty of samples here and in the SDK sample browser http://www.thezbuffer.com/categories/tutorials.aspx To move/rotate/zoom objects you need to set the world transformation before you draw the object using combinations of Matrix.Translate (move), Matrix.Rotate and matrix.Scale (zoom). TO move around the whole scene you set the View transform, usually using the MAtrix.LookAtXXX functions ...Show All
Visual Studio Express Editions Getting the WebBrowser LocationURL to show.
I am having a lot of trouble getting the webbrowser location to show up in the textbox that I use as my address bar. I am trying to make it so that the address bar always stays up to date with what URL the webbrowser is at. Can someone give me an example code of how this is done Sorry for all the questions. I'm very new to VB Thorlax, You're going to have to start learning to think through these thing. Obviously if something is being written out on the status bar correctly, to get that to happen in another control you need to identify the code paths from whence the desired behavior emanates. Private Sub wb_StatusTextChanged( ByVal sender As Object , _ B ...Show All
Visual Basic VB Controls Message Codes
Hi, I’m building a tool that responds to control events by intercepting the messages sent by a control to it’s parent window. I would like to support the controls shipped in COMCT332.ocx component, like ThunderRT6UserControlDC as well all other VB controls, but I can’t find any documentation on the message codes (and parameters) regarding the events generated (like mouse click). Can anyone give a hint on here to find this info Thanks, Luis M. Costa ...Show All
Visual Studio Express Editions silly question about converting a vector<char> to char []
I have a vector of vector char's that I need to display to the screen. I don't want to display char by char but would like to store them in char[] or strings. I hope this is easy and possible but I just can't figure it out at the moment. Any help or push in the right direction would be helpful. Thanks, Matt What is the purpose of your code In its present state, I can't see how it will ever work (it will either end up buffer overflowing or infinite looping). What's more, a BSTR is a pointer to an array of wchar_t s. Your code is written to think it's an array of char s, and you're not using the mbstowcs function between the two, you're using a cast . You can avoid any wchar_t -> char problems by usin ...Show All
Visual Basic MySQL
Using MySQL to store my information on my server and I am writing a program to read/write to it. I am using an example on the web click here to setup my Login screen. Im having problems with the Imports MySql.Data.MySqlClient . I have gone to MySQL.com and downloaded the connector but I can't seem to get things working right. What am I doing wrong Well, I am trying to write a program that will display information from my MySQL server and I also want to write some data to it but I don't know the first place to start with the setup of the MySQL. QWERTYtech ...Show All
Visual Studio Express Editions differences between VB.NEt 2003 and VB Express 2005
what differences would I notice I will be teaching Visual Basic (using the "Code Rules" software), and was wondering for a beginning high school programming course, would we notice any differences. If so, where can I find what the differences are alot! :-) .NET 2.0 framework has alot more classes, improved, better performance and gets the job done perfectly, and more! (not that there is anything wrong with .NET 1.1) in terms of the express editions, they are limited in that you cannot create mobile device applications, you cannot create ASP.NET applications, you cannot mix and match C#/VB.NET languages - each has its own IDE (C# Express -> C# coding, VB Express -> VB.NET coding, Visual Web Developer -> ASP.N ...Show All
Visual Studio Express Editions Sending Data between forms not working!
This simple example below does work. But, I am doing the same thing in my app and Form2 is not getting the string from Form1! Public Class Form1 Public str As String Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load str = "hey" Form2.ShowDialog() Close() End Sub End Class Public Class Form2 Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load MsgBox(Form1.str) Close() End Sub End Class try.... Dim Str A s String Public Sub New ( ByVal Str As String ) Me .Str = Str ...Show All
SQL Server Replacing Active X/VBscript used in SQL2000 data transformations to SQL2005 SSIS
Hi I am new to SSIS and have the following problem. I used the following script to clear data in columns of any CR/LF/Commas and char(0)'s. Can I just transfer this to SSIS and how exactly do I do that Any help or advice would help. Function Main() Dim x For x=1 to DTSSource.count If Isnull(DTSSource(x)) = False Then DTSDestination(x) = replace(replace(replace(Replace(DTSSource(x) , chr(13),""),chr(10),""),chr(0),""),","," ") Else DTSDestination(x) = DTSSource(x) End If Next Main = DTSTransformStat_OK End Function Andre Hi Thanks for the answer, problem though I do not want ...Show All
SQL Server Beginning with SQL Express
Hi everyone, I want to set a database which will be made of two parts: - One main set of files which is shared among users - Another set of files which is proper to each users and will be mainly used for processing infos. Because I must support Windows 2000 and XP as O/S platforms, I can't use SQL Everywhere. It seems that I'm stuck with SQL Express. My questions are the following: - Can SQL Express manage database files with variable namepath - How can I configure SQL Express so that such a file may reside on a dynamically configurable path, I mean, which would be configured by application Many thanks in advance for your help, Stephane I'm still not clear on what is contai ...Show All
Smart Device Development how to programatically install CF2 with my C# program using CEAppMgr
Hi, does anyone know how can i utilized CEAppMgr to install both CF2 and my C# program I can manually install both by using cab file or used CEAppMgr to install one file at a time but i would like to install both CAB files using CEAppMgr. It's possible Thank you in advance. You can register as many INI files with CeAppMgr as you need and then install them in one step. Of course device can only install one CAB at a time anyway, but at least you won’t get several CeAppMgr pop ups. Please see MSDN for details. ...Show All
Windows Forms Doubt about Event and Delegate in multithread context
Hi to all, I'm trying to understand well the paradigm of Event and Delegates, but I've some problem that I can't explain to myself. I've tried to write a little piece of code: in one class (the publisher) I declare a delegate and an public event, so someone can subscribe to it. In another class (the subscriber) I create an instance of the publisher class, and add its method to be executed when the event is raised. If I do this using a Windows Forms, when the event is raised up, I receive the message that I'm using Cross-Threading operation that is not a good think (I know how to disable the message, but is not what I want). I've tried to update the method signature so it can match with the EventHandler signature, but seems to not work; how ...Show All
Software Development for Windows Vista Properties and Scope
If a property is logically scoped at the level of a given activity, must that property be declared as a member of that activity For example, if a Sequence activity contains a While activity whose while-condition is initialized before the loop but changed within the loop, is it necessary to create a subclass of SequenceActivity for the sole purpose of declaring this property Or is there some other mechanism available Thanks, Matt. Your contributions to this forum (and my own growing WWF education these past weeks) are a huge benefit. Having mentors available when learning a new technology is invaluable, especially when many of the fundamental programming paradigms seem so different. My question is a g ...Show All
Visual Studio Express Editions update data on parent form
Hi, I have a parent form with a datagridview that display all employees under a division each time a new employee is added using a child form, datagridview is not updated. is there way to reload data to datagridview before child form is closed please could smebody help me thanks, Hi, I use child form to add new employee, employee is added to database, it is why data datagridview on parent form is not update. I need to update it before close child form. ...Show All
